blob: 2a9d1d9bcfae2c718e8763286ecd48dedc45c8da (
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
|
PREFIX = /usr/local
MANDIR = ${PREFIX}/share/man
LIBRESSL_PREFIX = /usr/local
CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
CFLAGS += ${LIBRESSL_PREFIX:%=-I%/include}
LDFLAGS += ${LIBRESSL_PREFIX:%=-L%/lib}
LDLIBS = -ltls
BINS = imbox git-fetch-email
MANS = ${BINS:=.1}
-include config.mk
all: ${BINS}
clean:
rm -f ${BINS}
install: ${BINS} ${MANS}
install -d ${PREFIX}/bin ${MANDIR}/man1
install ${BINS} ${PREFIX}/bin
for man in ${MANS}; do gzip -c $$man > ${MANDIR}/man1/$$man.gz; done
uninstall:
rm -f ${BINS:%=${PREFIX}/bin/%} ${MANS:%=${MANDIR}/man1/%.gz}
|