NetBSD/sbin/route/Makefile
1994-12-22 10:44:04 +00:00

25 lines
566 B
Makefile

# from: @(#)Makefile 8.1 (Berkeley) 6/5/93
# $Id: Makefile,v 1.10 1994/12/22 10:48:26 cgd Exp $
PROG= route
MAN= route.8
SRCS= route.c ccitt_addr.c
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
route .depend lint tags: keywords.h
.include <bsd.prog.mk>