summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c21a1a6..6889107 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+PREFIX = /usr/local
+MANDIR = ${PREFIX}/man
 LIBRESSL_PREFIX = /usr/local
 
 CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
@@ -26,3 +28,11 @@ tags: *.c *.h
 
 clean:
 	rm -f tags pounce ${OBJS}
+
+install: pounce pounce.1
+	install -d ${PREFIX}/bin ${MANDIR}/man1
+	install pounce ${PREFIX}/bin
+	install -m 644 pounce.1 ${MANDIR}/man1
+
+uninstall:
+	rm -f ${PREFIX}/bin/pounce ${MANDIR}/man1/pounce.1
ooks.txt?id=a9024581ad338b0cbd4282a4fc5e44fee943fe34&follow=1'>Add forgotten "sixth" book of H2G2June McEnroe'>Match tab following escaped newline in make assignmentsJune McEnroe 2021-01-18Allow matching lexers using first input lineJune McEnroe