summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-02 05:19:02 -0400
committerJune McEnroe <june@causal.agency>2019-11-02 05:19:02 -0400
commitf5eb3c5b008c044a253c0be753e9573e215d1f6c (patch)
tree2e7a4a033ce70f1c6d5c6b2acfcd78bb4380faf6 /Makefile
parentApply capsicum to calico (diff)
downloadpounce-f5eb3c5b008c044a253c0be753e9573e215d1f6c.tar.gz
pounce-f5eb3c5b008c044a253c0be753e9573e215d1f6c.zip
Add calico rc script
Diffstat (limited to '')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 62cf6b0..5000038 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,11 @@ CFLAGS += -I${LIBRESSL_PREFIX}/include
 LDFLAGS += -L${LIBRESSL_PREFIX}/lib
 LDLIBS = -ltls
 
--include config.mk
-
 BINS = calico pounce
 MANS = ${BINS:=.1}
+RCS = ${BINS:%=rc.d/%}
+
+-include config.mk
 
 OBJS += bounce.o
 OBJS += client.o
@@ -37,16 +38,16 @@ tags: *.c *.h
 clean:
 	rm -f tags ${BINS} ${OBJS} dispatch.o
 
-install: ${BINS} ${MANS} rc.pounce
+install: ${BINS} ${MANS} ${RCS}
 	install -d ${PREFIX}/bin ${MANDIR}/man1 ${ETCDIR}/rc.d
 	install ${BINS} ${PREFIX}/bin
 	install -m 644 ${MANS} ${MANDIR}/man1
-	install rc.pounce ${ETCDIR}/rc.d/pounce
+	install ${RCS} ${ETCDIR}/rc.d
 
 uninstall:
 	rm -f ${BINS:%=${PREFIX}/bin/%}
 	rm -f ${MANS:%=${MANDIR}/man1/%}
-	rm -f ${ETCDIR}/rc.d/pounce
+	rm -f ${RCS:%=${ETCDIR}/%}
 
 localhost.crt:
 	printf "[dn]\nCN=localhost\n[req]\ndistinguished_name=dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" \