Add install target

weechat-hashes
C. McEnroe 2020-02-09 15:02:47 -05:00
parent 3a5ce4d10f
commit 1d26c880ed
1 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,6 @@
PREFIX = /usr/local
MANDIR = ${PREFIX}/share/man
CFLAGS += -std=c11 -Wall -Wextra -Wpedantic CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
LDLIBS = -lcrypto -ltls -lncursesw LDLIBS = -lcrypto -ltls -lncursesw
@ -27,3 +30,11 @@ tags: *.h *.c
clean: clean:
rm -f tags catgirl ${OBJS} 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