PREFIX ?= /usr/local MANDIR ?= ${PREFIX}/man 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 += getservinfo.o OBJS += html.o OBJS += imap.o OBJS += mbox.o OBJS += parse.o OBJS += stylesheet.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 install -d ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANDIR}/man1 install bubger ${DESTDIR}${PREFIX}/bin install -m 644 bubger.1 ${DESTDIR}${MANDIR}/man1 uninstall: rm -f ${DESTDIR}${PREFIX}/bin/bubger ${DESTDIR}${MANDIR}/man1/bubger.1