summary refs log tree commit diff
path: root/Makefile
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 /Makefile
parentSort standards in manual page (diff)
downloadpounce-1abb5792b404e06e8bcc2c64ad1e67371773b33c.tar.gz
pounce-1abb5792b404e06e8bcc2c64ad1e67371773b33c.zip
Use ETCDIR variable for install target
Diffstat (limited to 'Makefile')
-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
ars on either sideJune McEnroe This fixes, for example, where the link gets placed on static regex_t regex(const char *pattern, int flags) in title.c. 2022-03-24Add The Invisible Life of Addie LaRueJune McEnroe So good, but so long. Reminded me of The Ten Thousand Doors of January at the beginning, and more of that N. K. Jemisin series about gods later. I like this interacting with gods and becoming something like one sort of thing. God, it took me a whole month (more?) to read and this is only my third book of the year :( I need some more novellas to read, but the other books I have from the library currently are also thick. 2022-03-22Source ~/.profile.local if it existsJune McEnroe 2022-03-18Publish "Addendum 2021"June McEnroe 2022-03-16Remove wcwidth portJune McEnroe DYLD_FORCE_FLAT_NAMESPACE no longer exists in macOS 12 so this approach doesn't work anymore. Moved to <https://git.causal.agency/jorts/tree/wcwidth> and compiled into <https://git.causal.agency/jorts/tree/ncurses>. 2022-03-16Remove -j4 from ./PlanJune McEnroe Plan learned to set this automatically! 2022-03-15Rewrite Linux install.sh for DebianJune McEnroe 2022-03-15Remove dashJune McEnroe