1# @(#)Makefile 8.1 (Berkeley) 6/5/93 2 3PROG= route 4MAN8= route.8 5SRCS= route.c keywords.h 6CFLAGS+=-I. -Wall -DNS 7CLEANFILES+=keywords.h 8BINMODE=4555 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./keywords.h: keywords.h 21 22.include <bsd.prog.mk> 23 24route .depend lint tags: keywords.h 25