mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 07:59:23 +00:00
25 lines
530 B
Makefile
25 lines
530 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
|
|
PROG= route
|
|
MAN8= route.8
|
|
SRCS= route.c keywords.h
|
|
CFLAGS+=-I. -Wall -DNS
|
|
CLEANFILES+=keywords.h
|
|
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
|
|
|
|
./keywords.h: keywords.h
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
route .depend lint tags: keywords.h
|