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