Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/m4/bootstrap Add a Makefile to rebuild the bootstrap f...
details: https://anonhg.NetBSD.org/src/rev/4fce20c06f00
branches: trunk
changeset: 748574:4fce20c06f00
user: christos <christos%NetBSD.org@localhost>
date: Tue Oct 27 18:50:31 2009 +0000
description:
Add a Makefile to rebuild the bootstrap files.
diffstat:
tools/m4/bootstrap/Makefile | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r 0218bf62f0d8 -r 4fce20c06f00 tools/m4/bootstrap/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/m4/bootstrap/Makefile Tue Oct 27 18:50:31 2009 +0000
@@ -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}
+
Home |
Main Index |
Thread Index |
Old Index