1 # $NetBSD: Makefile,v 1.2 2009/11/03 22:52:59 christos Exp $
3 FILES
=parser.h parser.c tokenizer.c
9 DIST
=${NETBSDSRCDIR}/usr.bin
/m4
11 parser.c parser.h
: ${DIST}/parser.y
12 ${YACC} -d
${DIST}/parser.y
13 sed
-e
's/\$$''NetBSD:\([^$$]*\)\ \$$/NetBSD:\1/' < y.tab.c
> parser.c
17 tokenizer.c
: ${DIST}/tokenizer.l
18 ${LEX} ${DIST}/tokenizer.l
19 sed
-e
's/\$$''NetBSD:\([^$$]*\)\ \$$/NetBSD:\1/' < lex.yy.c
> ${.TARGET
}