diff options
author | June McEnroe <june@causal.agency> | 2021-02-10 17:38:33 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-02-10 17:38:33 -0500 |
commit | 24e8c50fa4aaeaca35f2b10c96fb0edbc1fb6883 (patch) | |
tree | 28900991e211a34f066ff13e0bf231369bba6bac | |
parent | Colour battery level red when critical (diff) | |
download | src-24e8c50fa4aaeaca35f2b10c96fb0edbc1fb6883.tar.gz src-24e8c50fa4aaeaca35f2b10c96fb0edbc1fb6883.zip |
Add install targets to bin
Motivated by OpenBSD's default rules not setting copied shell scripts executable. install(1) does.
-rw-r--r-- | bin/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/bin/Makefile b/bin/Makefile index 11e73078..42165827 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -51,6 +51,11 @@ BINS_LINUX += psfed BINS_TLS += relay BINS_ALL = ${BINS} ${BINS_BSD} ${BINS_LINUX} ${BINS_TLS} + +MANS = ${BINS:%=man1/%.1} +MANS_BSD = ${BINS_BSD:%=man1/%.1} +MANS_LINUX = ${BINS_LINUX:%=man1/%.1} +MANS_TLS = ${BINS_TLS:%=man1/%.1} MANS_ALL = ${BINS_ALL:%=man1/%.1} any: meta ${BINS} @@ -117,6 +122,30 @@ unlink: rm -f ${BINS_ALL:%=${PREFIX}/bin/%} rm -f ${MANS_ALL:%=${MANDIR}/%} +install: ${BINS} ${MANS} + install -d ${PREFIX}/bin ${MANDIR}/man1 + install ${BINS} ${PREFIX}/bin + install -m 644 ${MANS} ${MANDIR}/man1 + +install-bsd: ${BINS_BSD} ${MANS_BSD} + install -d ${PREFIX}/bin ${MANDIR}/man1 + install ${BINS_BSD} ${PREFIX}/bin + install -m 644 ${MANS_BSD} ${MANDIR}/man1 + +install-linux: ${BINS_LINUX} ${MANS_BSD} + install -d ${PREFIX}/bin ${MANDIR}/man1 + install ${BINS_LINUX} ${PREFIX}/bin + install -m 644 ${MANS_LINUX} ${MANDIR}/man1 + +install-tls: ${BINS_TLS} ${MANS_BSD} + install -d ${PREFIX}/bin ${MANDIR}/man1 + install ${BINS_TLS} ${PREFIX}/bin + install -m 644 ${MANS_TLS} ${MANDIR}/man1 + +uninstall: + rm -f ${BINS_ALL:%=${PREFIX}/bin/%} + rm -f ${MANS_ALL:%=${MANDIR}/%} + HTMLS = index.html ${BINS_ALL:=.html} png.html WEBROOT = /usr/local/www/causal.agency |