summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-29 01:38:23 -0400
committerJune McEnroe <june@causal.agency>2019-10-29 01:38:23 -0400
commit1abb5792b404e06e8bcc2c64ad1e67371773b33c (patch)
treebd3dee2d7d9c0c7e19da2b4534023db1f4ab6247
parentSort standards in manual page (diff)
downloadpounce-1abb5792b404e06e8bcc2c64ad1e67371773b33c.tar.gz
pounce-1abb5792b404e06e8bcc2c64ad1e67371773b33c.zip
Use ETCDIR variable for install target
Diffstat (limited to '')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f208e25..650c255 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 PREFIX = /usr/local
 MANDIR = ${PREFIX}/man
+ETCDIR = ${PREFIX}/etc
 LIBRESSL_PREFIX = /usr/local
 
 CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
@@ -30,10 +31,10 @@ clean:
 	rm -f tags pounce ${OBJS}
 
 install: pounce pounce.1 rc.pounce
-	install -d ${PREFIX}/bin ${MANDIR}/man1 ${PREFIX}/etc/rc.d
+	install -d ${PREFIX}/bin ${MANDIR}/man1 ${ETCDIR}/rc.d
 	install pounce ${PREFIX}/bin
 	install -m 644 pounce.1 ${MANDIR}/man1
-	install rc.pounce ${PREFIX}/etc/rc.d/pounce
+	install rc.pounce ${ETCDIR}/rc.d/pounce
 
 uninstall:
-	rm -f ${PREFIX}/bin/pounce ${MANDIR}/man1/pounce.1 ${PREFIX}/etc/rc.d/pounce
+	rm -f ${PREFIX}/bin/pounce ${MANDIR}/man1/pounce.1 ${ETCDIR}/rc.d/pounce