summary refs log tree commit diff
path: root/Makefile
blob: 19f8e21762f5f923b8e3255423cc87ebea1d2159 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
PREFIX ?= /usr/local
MANDIR ?= ${SHAREDIR}/man
DATADIR ?= ${PREFIX}/share

CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
LDLIBS = -ltls

-include config.mk

OBJS += archive.o
OBJS += atom.o
OBJS += concat.o
OBJS += decode.o
OBJS += export.o
OBJS += html.o
OBJS += imap.o
OBJS += mbox.o
OBJS += parse.o
OBJS += template.o

dev: tags all

all: bubger

bubger: ${OBJS}
	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@

${OBJS}: archive.h imap.h

tags: *.[ch]
	ctags -w *.[ch]

clean:
	rm -f bubger ${OBJS} tags

install: bubger bubger.1 default.html
	install -d ${PREFIX}/bin ${MANDIR}/man1 ${DATADIR}/bubger
	install bubger ${PREFIX}/bin
	install -m 644 bubger.1 ${MANDIR}/man1
	install -m 644 default.html ${DATADIR}/bubger

uninstall:
	rm -f ${PREFIX}/bin/bubger ${MANDIR}/man1/bubger.1
	rm -fr ${DATADIR}/bubger
amp;follow=1'>Fix /* **/ comment matchingJune McEnroe 2021-09-15Remove typer, add downgrade to READMEJune McEnroe 2021-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