summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b1db8d4..1ae3fb2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
+PREFIX = /usr/local
+SHAREDIR = ${PREFIX}/share
+MANDIR = ${SHAREDIR}/man
+
 CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
 LDLIBS = -ltls
 
@@ -28,3 +32,13 @@ tags: *.c *.h
 
 clean:
 	rm -f bubger ${OBJS} tags
+
+install: bubger bubger.1 default.html
+	install -d ${PREFIX}/bin ${MANDIR}/man1 ${SHAREDIR}/bubger
+	install bubger ${PREFIX}/bin
+	gzip -c bubger.1 > ${MANDIR}/man1/bubger.1.gz
+	install -m 644 default.html ${SHAREDIR}/bubger
+
+uninstall:
+	rm -f ${PREFIX}/bin/bubger ${MANDIR}/man1/bubger.1.gz
+	rm -fr ${SHAREDIR}/bubger
mmit/event.c?h=2.2&id=0a417e28e217f9a4270070d9fed31c259f3094e5&follow=1'>Draw UI before connectingJune McEnroe 2019-01-25Avoid unused variable warnings with getyxJune McEnroe 2019-01-25Add GNU/Linux build instructionsJune McEnroe-09-15Set bot mode on downgradeJune McEnroe 2021-09-15Enter capsicum in downgradeJune McEnroe 2021-09-15Factor out common parts of downgrade messagesJune McEnroe 2021-09-14Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe 2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe