=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Makefile,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- src/usr.bin/lex/Makefile 2010/10/17 22:54:37 1.10 +++ src/usr.bin/lex/Makefile 2013/06/18 17:38:46 1.11 @@ -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.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