PREFIX ?= /usr/local MANDIR ?= ${PREFIX}/share/man CFLAGS += -std=c11 -Wall -Wextra -Wpedantic LDLIBS = -ltls -include config.mk OBJS += imap.o OBJS += notemap.o notemap: ${OBJS} ${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@ ${OBJS}: imap.h clean: rm -f notemap ${OBJS} install: notemap notemap.1 install -d ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANDIR}/man1 install notemap ${DESTDIR}${PREFIX}/bin install -m 644 notemap.1 ${DESTDIR}${MANDIR}/man1 uninstall: rm -f ${DESTDIR}${PREFIX}/bin/notemap ${DESTDIR}${MANDIR}/man1/notemap.1