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