about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-03 20:10:29 +0000
committerJune McEnroe <june@causal.agency>2020-05-03 20:10:29 +0000
commit59dc00c7f7741bc811d17769bf545209188621a9 (patch)
tree0dda689ac8dea1933df02a5fc4b6b9a992b590bd /Makefile
parentAdd install, uninstall targets (diff)
downloadexman-59dc00c7f7741bc811d17769bf545209188621a9.tar.gz
exman-59dc00c7f7741bc811d17769bf545209188621a9.zip
Add exman(1) page
Diffstat (limited to '')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2614ff2..20f9e81 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
 PREFIX = /usr/local
+SHAREDIR = ${PREFIX}/share
+MANDIR = ${SHAREDIR}/man
 
 CURL ?= curl
 TAR ?= tar
@@ -38,10 +40,11 @@ STRIP.posix = 1
 clean:
 	rm -fr ${SYSTEMS} *.tar
 
-install: exman ${SYSTEMS}
-	install -d ${PREFIX}/bin ${PREFIX}/share/exman
+install: exman exman.1 ${SYSTEMS}
+	install -d ${PREFIX}/bin ${MANDIR}/man1 ${SHAREDIR}/exman
 	install exman ${PREFIX}/bin
-	${TAR} -c -f - ${SYSTEMS} | ${TAR} -xo -f - -C ${PREFIX}/share/exman
+	gzip -c exman.1 > ${MANDIR}/man1/exman.1.gz
+	${TAR} -c -f - ${SYSTEMS} | ${TAR} -xo -f - -C ${SHAREDIR}/exman
 
 uninstall:
-	rm -fr ${PREFIX}/bin/exman ${PREFIX}/share/exman
+	rm -fr ${PREFIX}/bin/exman ${MANDIR}/man1/exman.1.gz ${SHAREDIR}/exman