blob: 52850f568b49e00aaeb4b652dfe50c8fda5952ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# $OpenBSD: Makefile,v 1.2 1996/06/23 14:32:20 deraadt Exp $
# $NetBSD: Makefile,v 1.12 1995/04/19 09:08:28 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.o .depend lint tags: keywords.h
.include <bsd.prog.mk>
|