about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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
c2edf32914c5018ed910d08b15&follow=1'>Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow. 2019-02-17Always split spans after newlinesJune McEnroe Simplifies ANSI and IRC output code, and prepares for line numbered output. 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe