NetBSD/sbin/route/Makefile

26 lines
588 B
Makefile
Raw Normal View History

1993-08-01 09:26:30 +04:00
# from: @(#)Makefile 5.6 (Berkeley) 6/27/91
# $Id: Makefile,v 1.6 1993/08/01 05:26:30 mycroft Exp $
1993-03-21 12:45:37 +03:00
PROG= route
MAN8= route.0
SRCS= route.c
1993-04-25 11:26:40 +04:00
SRCS= route.c ccitt_addr.c
1993-03-21 12:45:37 +03:00
CFLAGS+=-I.
CLEANFILES+=keywords.h
1993-03-21 12:45:37 +03:00
BINOWN= root
BINMODE=4555
all route depend lint tags: keywords.h
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
.include <bsd.prog.mk>