1994-05-26 06:35:07 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
|
|
|
|
|
|
PROG= route
|
1994-08-05 02:42:42 +00:00
|
|
|
MAN8= route.8
|
1996-02-06 20:36:15 +00:00
|
|
|
SRCS= route.c keywords.h # ccitt_addr.h
|
1996-08-09 22:52:02 +00:00
|
|
|
CFLAGS+=-I. -Wall
|
1994-05-26 06:35:07 +00:00
|
|
|
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
|
|
|
|
|
1994-08-05 02:42:42 +00:00
|
|
|
./keywords.h: keywords.h
|
|
|
|
|
1994-05-26 06:35:07 +00:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
route .depend lint tags: keywords.h
|