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 = -lcrypto -ltls -include config.mk notemap: clean: rm -f notemap install: notemap notemap.1 install -d ${PREFIX}/bin ${MANDIR}/man1 install notemap ${PREFIX}/bin gzip -c notemap.1 > ${MANDIR}/man1/notemap.1.gz uninstall: rm -f ${PREFIX}/bin/notemap ${MANDIR}/man1/notemap.1.gz