Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/config Switch back to using YHEADER instead of cust...



details:   https://anonhg.NetBSD.org/src/rev/72952016d24e
branches:  trunk
changeset: 553614:72952016d24e
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Oct 19 05:30:30 2003 +0000

description:
Switch back to using YHEADER instead of custom yacc rules.
We use build.sh to support hosting on older NetBSD releases...

diffstat:

 usr.sbin/config/Makefile |  17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diffs (31 lines):

diff -r 16347328ca28 -r 72952016d24e usr.sbin/config/Makefile
--- a/usr.sbin/config/Makefile  Sun Oct 19 05:24:53 2003 +0000
+++ b/usr.sbin/config/Makefile  Sun Oct 19 05:30:30 2003 +0000
@@ -1,23 +1,14 @@
-#      $NetBSD: Makefile,v 1.27 2003/05/18 07:57:38 lukem Exp $
+#      $NetBSD: Makefile,v 1.28 2003/10/19 05:30:30 lukem Exp $
 #      from: @(#)Makefile      8.2 (Berkeley) 4/19/94
 
 PROG=  config
 BINDIR=        /usr/sbin
 SRCS=  files.c gram.y hash.c main.c mkdevsw.c mkheaders.c mkioconf.c \
        mkmakefile.c mkswap.c pack.c scan.l sem.c util.c
-YFLAGS=
-CPPFLAGS+=-I${.CURDIR} -I.
-CLEANFILES+=gram.h
+MAN=   config.8
+YHEADER=1
+CPPFLAGS+=-I${.CURDIR}
 
 CWARNFLAGS+=-Wno-format-y2k
 
-MAN=   config.8
-
-# XXX should use "YHEADER", but make this work on 1.3 as well as 1.4+
-gram.h: gram.c
-gram.c: gram.y
-       ${YACC.y} -d ${.ALLSRC}
-       mv -f y.tab.c gram.c
-       mv -f y.tab.h gram.h
-
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index