Module Name:    src
Committed By:   christos
Date:           Tue Oct 27 18:50:32 UTC 2009

Added Files:
        src/tools/m4/bootstrap: Makefile

Log Message:
Add a Makefile to rebuild the bootstrap files.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tools/m4/bootstrap/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/tools/m4/bootstrap/Makefile
diff -u /dev/null src/tools/m4/bootstrap/Makefile:1.1
--- /dev/null	Tue Oct 27 14:50:32 2009
+++ src/tools/m4/bootstrap/Makefile	Tue Oct 27 14:50:31 2009
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2009/10/27 18:50:31 christos Exp $
+
+FILES=parser.h parser.c tokenizer.c
+
+all: ${FILES}
+
+.include <bsd.own.mk>
+
+DIST=${NETBSDSRCDIR}/usr.bin/m4
+
+parser.c parser.h: ${DIST}/parser.y
+	${YACC} -d ${DIST}/parser.y
+	sed -e 's/\$$NetBSD: Makefile,v 1.1 2009/10/27 18:50:31 christos Exp $$]*\)\ \$$/NetBSD:\1/' < y.tab.c > parser.c
+	rm -f y.tab.c
+	mv y.tab.h parser.h
+
+tokenizer.c:	${DIST}/tokenizer.l
+	${LEX} ${DIST}/tokenizer.l
+	sed -e 's/\$$NetBSD: Makefile,v 1.1 2009/10/27 18:50:31 christos Exp $$]*\)\ \$$/NetBSD:\1/' < lex.yy.c > ${.TARGET}
+	rm -f lex.yy.c
+
+clean::
+	rm -f ${FILES}
+

Reply via email to