1# @(#)Makefile 8.1 (Berkeley) 6/5/93 2 3PROG= route 4MAN8= route.0 5SRCS= route.c ccitt_addr.c 6CFLAGS+=-I. 7CLEANFILES+=keywords.h 8BINOWN= root 9BINMODE=4555 10 11all: route ${MAN8} 12 13keywords.h: keywords 14 sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp 15 tr a-z A-Z < _keywords.tmp | paste _keywords.tmp - | \ 16 awk '{ \ 17 if (NF > 1) \ 18 printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \ 19 $$2, NR, $$1, $$2 }' \ 20 > ${.TARGET} 21 rm -f _keywords.tmp 22 23.include <bsd.prog.mk> 24 25route .depend lint tags: keywords.h 26