summaryrefslogtreecommitdiffstats
path: root/sbin/route/Makefile
blob: aff5994412b31a6d609e6bfbf6d58b77166d98ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#	@(#)Makefile	8.1 (Berkeley) 6/5/93

PROG=	route
MAN8=	route.8
SRCS=	route.c ccitt_addr.c keywords.h
CFLAGS+=-I.
CLEANFILES+=keywords.h
BINOWN=	root
BINMODE=4555

keywords.h: keywords
	sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
	tr a-z A-Z < _keywords.tmp | paste _keywords.tmp - | \
	    awk '{ \
		if (NF > 1) \
			printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
			    $$2, NR, $$1, $$2 }' \
	    > ${.TARGET}
	rm -f _keywords.tmp

./keywords.h:	keywords.h

.include <bsd.prog.mk>

route .depend lint tags: keywords.h
OpenPOWER on IntegriCloud