diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile index 312c579..2a9d1d9 100644 --- a/Makefile +++ b/Makefile @@ -7,17 +7,20 @@ CFLAGS += ${LIBRESSL_PREFIX:%=-I%/include} LDFLAGS += ${LIBRESSL_PREFIX:%=-L%/lib} LDLIBS = -ltls +BINS = imbox git-fetch-email +MANS = ${BINS:=.1} + -include config.mk -imbox: +all: ${BINS} clean: - rm -f imbox + rm -f ${BINS} -install: imbox imbox.1 +install: ${BINS} ${MANS} install -d ${PREFIX}/bin ${MANDIR}/man1 - install imbox ${PREFIX}/bin - gzip -c imbox.1 > ${MANDIR}/man1/imbox.1.gz + install ${BINS} ${PREFIX}/bin + for man in ${MANS}; do gzip -c $$man > ${MANDIR}/man1/$$man.gz; done uninstall: - rm -f ${PREFIX}/bin/imbox ${MANDIR}/man1/imbox.1.gz + rm -f ${BINS:%=${PREFIX}/bin/%} ${MANS:%=${MANDIR}/man1/%.gz} |