No empty .Rs/.Re
[netbsd-mini2440.git] / usr.sbin / ipf / ippool / Makefile
blob5cd5b033345c25429e763a433ba4161aef9a3064
1 # $NetBSD: Makefile,v 1.9 2008/10/25 22:27:39 apb Exp $
3 PROG= ippool
4 SRCS= ippool_y.c ippool_l.c kmem.c ippool.c
5 MAN= ippool.5 ippool.8
6 MLINKS= ippool.5 ippool.conf.5
7 CPPFLAGS+= -I.
9 DPSRCS+= ippool_l.h ippool_y.h
11 CLEANFILES+= ippool_y.c ippool_y.h
12 CLEANFILES+= ippool_l.c ippool_l.h
14 ippool_y.c: ippool_y.y
15 ${_MKTARGET_CREATE}
16 ${YACC} -d ${.ALLSRC}
17 ${TOOL_SED} -e 's/yy/ippool_yy/g' \
18 -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \
19 y.tab.c > ${.TARGET}
20 ${TOOL_SED} -e 's/yy/ippool_yy/g' \
21 y.tab.h > ${.TARGET:.c=.h}
23 ippool_y.h: ippool_y.c
25 ippool_l.c: lexer.c
26 ${_MKTARGET_CREATE}
27 ${TOOL_SED} -e 's/yy/ippool_yy/g' \
28 -e 's/y.tab.h/ippool_y.h/' \
29 -e 's/lexer.h/ippool_l.h/' \
30 ${.ALLSRC} > ${.TARGET}
32 ippool_l.h: lexer.h
33 ${_MKTARGET_CREATE}
34 ${TOOL_SED} -e 's/yy/ippool_yy/g' \
35 ${.ALLSRC} > ${.TARGET}
37 .include <bsd.prog.mk>