aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Holstein <nathan.holstein@gmail.com>2015-08-05 09:53:11 -0400
committerNathan Holstein <nathan.holstein@gmail.com>2015-08-05 10:51:24 -0400
commitcb888450540a9a9efbca1badb056fc6cce9f9feb (patch)
tree514d48f475facbd06af3bb2cbae8943aa4848a10
parent4c108fee7db8225cd891aba06ed3733f5f36ce7d (diff)
downloadopendoas-cb888450540a9a9efbca1badb056fc6cce9f9feb.tar.gz
Add installation rules for man files.
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e573b6c..4399611 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,10 @@ ${BINDIR}:
${BINDIR}/${PROG}: .${PROG}.chmod ${BINDIR}
mv $< $@
-install: ${BINDIR}/${PROG}
+MAN:=$(join $(addprefix ${MANDIR}/man,$(patsubst .%,%/,$(suffix ${MAN}))),${MAN})
+$(foreach M,${MAN},$(eval $M: $(notdir $M); cp $$< $$@))
+
+install: ${BINDIR}/${PROG} ${MAN}
clean:
rm -f libopenbsd.a
@@ -51,5 +54,5 @@ clean:
rm -f ${OBJS}
rm -f ${PROG}
-.PHONY: default clean install
+.PHONY: default clean install man
.INTERMEDIATE: .${PROG}.chmod