summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2013-06-18 17:38:47 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2013-06-18 17:38:47 +0000
commit173245d303590938d35161632a09f2f71837b5da (patch)
tree7b9c1961deb1df379df2b8a038bf843d32927fdf
parentbebf36c5183c3a12dd3742c513c76767d0f43ace (diff)
make sure the target directory gets created in the includes target
and add a trailing / as well to avoid problems
-rw-r--r--usr.bin/lex/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/lex/Makefile b/usr.bin/lex/Makefile
index 17177a2c320..c524e7c28a1 100644
--- a/usr.bin/lex/Makefile
+++ b/usr.bin/lex/Makefile
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.10 2010/10/17 22:54:37 schwarze Exp $
+# $OpenBSD: Makefile,v 1.11 2013/06/18 17:38:46 robert Exp $
#
# By default, flex will be configured to generate 8-bit scanners only if the
# -8 flag is given. If you want it to always generate 8-bit scanners, add
# "-DDEFAULT_CSIZE=256" to CFLAGS. Note that doing so will double the size
# of all uncompressed scanners.
-#
+#
# If on your system you have trouble building flex due to 8-bit character
# problems, remove the -8 from FLEX_FLAGS and the "#define FLEX_8_BIT_CHARS"
# from the beginning of flexdef.h.
@@ -40,7 +40,11 @@ scan.c: scan.l
scan.o: parse.c
includes:
+.if !exists(${DESTDIR}/usr/include/g++)
+ ${INSTALL} -d -o root -g bin -m 755 \
+ ${DESTDIR}/usr/include/g++
+.endif
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${.CURDIR}/FlexLexer.h ${DESTDIR}/usr/include/g++
+ ${.CURDIR}/FlexLexer.h ${DESTDIR}/usr/include/g++/
.include <bsd.prog.mk>