diff options
author | June McEnroe <june@causal.agency> | 2019-10-25 23:47:41 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-25 23:47:41 -0400 |
commit | 50fc795e7bf594597a21df40ab8157c5f43c23a5 (patch) | |
tree | ba07ce3871fe483fd8d84ccf739253cab0519f3b | |
parent | Expand documentation (diff) | |
download | pounce-50fc795e7bf594597a21df40ab8157c5f43c23a5.tar.gz pounce-50fc795e7bf594597a21df40ab8157c5f43c23a5.zip |
Add install and uninstall targets
Diffstat (limited to '')
-rw-r--r-- | Makefile | 10 |
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 |