Module Name: src
Committed By: christos
Date: Mon Aug 20 10:27:32 UTC 2018
Modified Files:
src/tools/lex: Makefile
Log Message:
make sure that nbtools_compat.h is the first thing included for generated files
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tools/lex/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/lex/Makefile
diff -u src/tools/lex/Makefile:1.10 src/tools/lex/Makefile:1.11
--- src/tools/lex/Makefile:1.10 Mon Oct 2 18:32:04 2017
+++ src/tools/lex/Makefile Mon Aug 20 06:27:32 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2017/10/02 22:32:04 christos Exp $
+# $NetBSD: Makefile,v 1.11 2018/08/20 10:27:32 christos Exp $
HOSTPROGNAME= ${_TOOL_PREFIX}lex
HOST_SRCDIR= external/bsd/flex/bin
@@ -11,7 +11,8 @@ HOST_CPPFLAGS+= -DM4=\"${TOOL_M4}\"
__BUILD: .USE
- echo "#include <init${.TARGET}>" > ${.TARGET}
+ (echo '#include "nbtool_config.h"'; \
+ echo "#include <init${.TARGET}>") > ${.TARGET}
scan.c: __BUILD
parse.c: __BUILD