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