summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-21 14:47:03 -0500
committerJune McEnroe <june@causal.agency>2019-12-21 14:47:03 -0500
commit56c0a0cc104c1d9f74299ae5e3513109dccc80c9 (patch)
tree4b5aee79baea985564804e6924aa715adc2354cd /Makefile
parentDetermine host by SRV lookup (diff)
downloadimbox-56c0a0cc104c1d9f74299ae5e3513109dccc80c9.tar.gz
imbox-56c0a0cc104c1d9f74299ae5e3513109dccc80c9.zip
Add git-fetch-email wrapper
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
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}