diff options
author | jaseg <git@jaseg.de> | 2024-07-16 11:43:44 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2024-07-16 11:43:44 +0200 |
commit | 1212a9cc6c2a092359db460d9f62822b56dc02ef (patch) | |
tree | dbf00fe84e9e4d4191a079de628f07133d4ceae2 | |
parent | 621b604edd146343c5d43fe5d889287edb4531a5 (diff) | |
download | lolcat-main.tar.gz lolcat-main.tar.bz2 lolcat-main.zip |
Correct DESTDIR/PREFIX usage in Makefilemain
Closes #56
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ CC ?= gcc CFLAGS ?= -std=c11 -Wall -Wextra -O3 -Wno-sign-compare LIBS := -lm -DESTDIR ?= /usr/local/bin +PREFIX ?= /usr/local all: lolcat censor @@ -22,8 +22,8 @@ censor: censor.c $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) install: lolcat censor - install lolcat $(DESTDIR)/lolcat - install censor $(DESTDIR)/censor + install lolcat $(DESTDIR)$(PREFIX)/bin/lolcat + install censor $(DESTDIR)$(PREFIX)/bin/censor clean: rm -f lolcat censor |