Source-Changes-HG archive

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

[src/trunk]: src/tools/lex Simplify.



details:   https://anonhg.NetBSD.org/src/rev/eeb7e0ae48c7
branches:  trunk
changeset: 826864:eeb7e0ae48c7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 02 22:32:04 2017 +0000

description:
Simplify.

diffstat:

 tools/lex/Makefile |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r 6a26e508a3dc -r eeb7e0ae48c7 tools/lex/Makefile
--- a/tools/lex/Makefile        Mon Oct 02 22:21:31 2017 +0000
+++ b/tools/lex/Makefile        Mon Oct 02 22:32:04 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2009/10/30 00:30:20 christos Exp $
+#      $NetBSD: Makefile,v 1.10 2017/10/02 22:32:04 christos Exp $
 
 HOSTPROGNAME=  ${_TOOL_PREFIX}lex
 HOST_SRCDIR=   external/bsd/flex/bin
@@ -9,12 +9,13 @@
 .y.c .l.c .y.h:
        @true
 
-scan.c:
-       echo '#include <initscan.c>' >$@
-parse.c:
-       echo '#include <initparse.c>' >$@
-parse.h:
-       echo '#include <initparse.h>' >$@
+
+__BUILD: .USE
+        echo "#include <init${.TARGET}>" > ${.TARGET}
+
+scan.c: __BUILD
+parse.c: __BUILD
+parse.h: __BUILD
 
 scan.c: parse.h
 



Home | Main Index | Thread Index | Old Index