1994-05-26 08:35:07 +02:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
|
|
|
|
|
|
PROG= route
|
1994-08-05 04:42:42 +02:00
|
|
|
MAN8= route.8
|
1994-08-14 08:57:34 +02:00
|
|
|
SRCS= route.c ccitt_addr.c keywords.h
|
1994-05-26 08:35:07 +02:00
|
|
|
CFLAGS+=-I.
|
|
|
|
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 04:42:42 +02:00
|
|
|
./keywords.h: keywords.h
|
|
|
|
|
1994-05-26 08:35:07 +02:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
route .depend lint tags: keywords.h
|