about summary refs log tree commit diff
path: root/Makefile
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}
054aeb9ce8430a62be05283300ec34e9c2b0af&follow=1'>Add export optionJune McEnroe Adding the export query parameter to any page downloads a .html with the default stylesheet embedded, and all navigation, forms and internal links removed, for being able to share some part of a private instance of litterbox. 2020-07-17Add margin to inputsJune McEnroe Seems that only Safari provides any margins on form elements by default. 2020-07-16Don't write null terminator in stylesheet responseJune McEnroe 2020-07-16Remove sudo from make installJune McEnroe