diff options
author | C. McEnroe | 2020-02-09 15:02:47 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-09 15:02:47 -0500 |
commit | 1d26c880ed305951715a548f934eb231b8fc9317 (patch) | |
tree | 6cc88daa016249fc34e518330d25487e80da44a3 | |
parent | 3a5ce4d10f1d0b4e2bcf1d958d42665d5cb0db96 (diff) |
Add install target
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile index bcbb0d8..89af9b3 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +PREFIX = /usr/local +MANDIR = ${PREFIX}/share/man + CFLAGS += -std=c11 -Wall -Wextra -Wpedantic LDLIBS = -lcrypto -ltls -lncursesw @@ -27,3 +30,11 @@ tags: *.h *.c clean: rm -f tags catgirl ${OBJS} + +install: catgirl catgirl.1 + install -d ${PREFIX}/bin ${MANDIR}/man1 + install catgirl ${PREFIX}/bin + gzip -c catgirl.1 > ${MANDIR}/man1/catgirl.1.gz + +uninstall: + rm -f ${PREFIX}/bin/catgirl ${MANDIR}/man1/catgirl.1.gz |