summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-06 17:43:33 -0500
committerJune McEnroe <june@causal.agency>2019-11-06 17:43:33 -0500
commit70031693a5bee7fa1266a6c86c928bf7161479cd (patch)
treebbb4df784f442c0744b54310ce94ae3f6496a293 /Makefile
parentAdd Linux.mk (diff)
downloadpounce-70031693a5bee7fa1266a6c86c928bf7161479cd.tar.gz
pounce-70031693a5bee7fa1266a6c86c928bf7161479cd.zip
Don't install rc scripts or dirs on Linux
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 265781e..12ae05a 100644
--- a/Makefile
+++ b/Makefile
@@ -45,14 +45,15 @@ install: ${BINS} ${MANS} ${RCS}
 	install -d ${PREFIX}/bin ${MANDIR}/man1 ${ETCDIR}/rc.d
 	install ${BINS} ${PREFIX}/bin
 	install -m 644 ${MANS} ${MANDIR}/man1
-	install ${RCS} ${ETCDIR}/rc.d
-	install -d ${DIRS}
+	if [ -n '${RCS}' ]; then install -d ${ETCDIR}/rc.d; fi
+	if [ -n '${RCS}' ]; then install ${RCS} ${ETCDIR}/rc.d; fi
+	if [ -n '${DIRS}' ]; then install -d ${DIRS}; fi
 
 uninstall:
 	rm -f ${BINS:%=${PREFIX}/bin/%}
 	rm -f ${MANS:%=${MANDIR}/man1/%}
-	rm -f ${RCS:%=${ETCDIR}/%}
-	rmdir ${DIRS}
+	if [ -n '${RCS}' ]; then rm -f ${RCS:%=${ETCDIR}/%}; fi
+	if [ -n '${DIRS}' ]; then rmdir ${DIRS}; fi
 
 localhost.crt:
 	printf "[dn]\nCN=localhost\n[req]\ndistinguished_name=dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" \