Cross Reference: Makefile
xref: /src/tools/m4/bootstrap/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/tools/m4/bootstrap/
11.2Schristos# $NetBSD: Makefile,v 1.2 2009/11/03 22:52:59 christos Exp $
21.1Schristos
31.1SchristosFILES=parser.h parser.c tokenizer.c
41.1Schristos
51.1Schristosall: ${FILES}
61.1Schristos
71.1Schristos.include <bsd.own.mk>
81.1Schristos
91.1SchristosDIST=${NETBSDSRCDIR}/usr.bin/m4
101.1Schristos
111.1Schristosparser.c parser.h: ${DIST}/parser.y
121.1Schristos	${YACC} -d ${DIST}/parser.y
131.2Schristos	sed -e 's/\$$''NetBSD:\([^$$]*\)\ \$$/NetBSD:\1/' < y.tab.c > parser.c
141.1Schristos	rm -f y.tab.c
151.1Schristos	mv y.tab.h parser.h
161.1Schristos
171.1Schristostokenizer.c:	${DIST}/tokenizer.l
181.1Schristos	${LEX} ${DIST}/tokenizer.l
191.2Schristos	sed -e 's/\$$''NetBSD:\([^$$]*\)\ \$$/NetBSD:\1/' < lex.yy.c > ${.TARGET}
201.1Schristos	rm -f lex.yy.c
211.1Schristos
221.1Schristosclean::
231.1Schristos	rm -f ${FILES}
241.1Schristos
25

Indexes created Sat Nov 29 02:09:32 GMT 2025