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/95c9fe653bf1
branches:  trunk
changeset: 365534:95c9fe653bf1
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 5699df8659c2 -r 95c9fe653bf1 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