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