summary refs log tree commit diff
path: root/Makefile
blob: 94ca089a37cd324fe79c6b6fc038dc327571be10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PREFIX ?= ~/.local
MANDIR ?= ${PREFIX}/share/man

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

-include config.mk

scooper:

clean:
	rm -f scooper

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