summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2024-07-16 11:43:44 +0200
committerjaseg <git@jaseg.de>2024-07-16 11:43:44 +0200
commit1212a9cc6c2a092359db460d9f62822b56dc02ef (patch)
treedbf00fe84e9e4d4191a079de628f07133d4ceae2 /Makefile
parent621b604edd146343c5d43fe5d889287edb4531a5 (diff)
downloadlolcat-1212a9cc6c2a092359db460d9f62822b56dc02ef.tar.gz
lolcat-1212a9cc6c2a092359db460d9f62822b56dc02ef.tar.bz2
lolcat-1212a9cc6c2a092359db460d9f62822b56dc02ef.zip
Correct DESTDIR/PREFIX usage in Makefilemain
Closes #56
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c89fcf8..c751508 100644
--- a/Makefile
+++ b/Makefile
@@ -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