aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Holstein <nathan.holstein@gmail.com>2015-08-05 03:11:15 -0400
committerNathan Holstein <nathan.holstein@gmail.com>2015-08-05 08:58:17 -0400
commitac645996c2edf79c39619f6a1b651f081108856a (patch)
tree6c5fec69cbe422c2b08b88fa086df6340bcd2cab
parente38b848a0e46ec926627ac3d2c43eedcfd5e3d80 (diff)
downloadopendoas-ac645996c2edf79c39619f6a1b651f081108856a.tar.gz
Add a make rule to create ${BINDIR}.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 345b8f2..e573b6c 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,10 @@ ${PROG}: ${OBJS} libopenbsd.a
chmod ${BINMODE} $@
chown ${BINOWN}:${BINGRP} $@
-${BINDIR}/${PROG}: .${PROG}.chmod
+${BINDIR}:
+ mkdir -pm 0755 $@
+
+${BINDIR}/${PROG}: .${PROG}.chmod ${BINDIR}
mv $< $@
install: ${BINDIR}/${PROG}