1994-05-13 12:02:16 +04:00
|
|
|
# from: @(#)Makefile 8.1 (Berkeley) 6/5/93
|
1994-12-22 13:44:04 +03:00
|
|
|
# $Id: Makefile,v 1.10 1994/12/22 10:48:26 cgd Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
PROG= route
|
1994-12-22 13:44:04 +03:00
|
|
|
MAN= route.8
|
1993-04-25 11:26:40 +04:00
|
|
|
SRCS= route.c ccitt_addr.c
|
1993-03-21 12:45:37 +03:00
|
|
|
CFLAGS+=-I.
|
1993-04-25 11:50:56 +04:00
|
|
|
CLEANFILES+=keywords.h
|
1993-03-21 12:45:37 +03:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
|
|
|
|
1993-04-25 11:50:56 +04:00
|
|
|
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
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1994-05-13 12:02:16 +04:00
|
|
|
route .depend lint tags: keywords.h
|
1994-05-14 01:24:15 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|