about summary refs log tree commit diff
path: root/Makefile
blob: 1cb3bf41a11cb4e660e038e6d00d7d021e66f62e (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
45
46
47
48
49
50
PREFIX ?= ~/.local
MANDIR ?= ${PREFIX}/share/man

CFLAGS += -std=c11 -Wall -Wextra -Wpedantic -Wno-overlength-strings
LDLIBS = -lkcgi -lkcgihtml -lsqlite3

TEST_DB = ~/.local/share/litterbox/litterbox.sqlite

-include config.mk

OBJS += contexts.o
OBJS += events.o
OBJS += html.o
OBJS += networks.o
OBJS += search.o
OBJS += server.o

dev: tags all test

all: scooper

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

${OBJS}: server.h

server.o: css.h

css.h: css.sh default.css color.css
	sh css.sh default.css color.css > $@

test: .test

.test: scooper
	./scooper -c ${TEST_DB}
	touch .test

tags: *.c *.h
	ctags -w *.c *.h

clean:
	rm -f scooper ${OBJS} css.h .test tags

install: scooper scooper.1
	install -d ${PREFIX}/bin ${MANDIR}/man1
	install scooper ${PREFIX}/bin
	install -m 644 scooper.1 ${MANDIR}/man1

uninstall:
	rm -f ${PREFIX}/bin/scooper ${MANDIR}/man1/scooper.1
cEnroe 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