Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/lex make sure that nbtools_compat.h is the first thing...



details:   https://anonhg.NetBSD.org/src/rev/c118388a5774
branches:  trunk
changeset: 364002:c118388a5774
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Aug 20 10:27:32 2018 +0000

description:
make sure that nbtools_compat.h is the first thing included for generated files

diffstat:

 tools/lex/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r be0e439f2647 -r c118388a5774 tools/lex/Makefile
--- a/tools/lex/Makefile        Mon Aug 20 10:26:58 2018 +0000
+++ b/tools/lex/Makefile        Mon Aug 20 10:27:32 2018 +0000
@@ -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 @@
 
 
 __BUILD: .USE
-        echo "#include <init${.TARGET}>" > ${.TARGET}
+       (echo '#include "nbtool_config.h"'; \
+       echo "#include <init${.TARGET}>") > ${.TARGET}
 
 scan.c: __BUILD
 parse.c: __BUILD



Home | Main Index | Thread Index | Old Index