Deleted Added
full compact
Makefile (59642) Makefile (103591)
1# $FreeBSD: head/usr.bin/getconf/Makefile 59642 2000-04-26 07:00:46Z obrien $
1# $FreeBSD: head/usr.bin/getconf/Makefile 103591 2002-09-19 03:39:03Z wollman $
2
3PROG= getconf
4
2
3PROG= getconf
4
5SRCS= confstr.c getconf.c pathconf.c sysconf.c
5SRCS= confstr.c getconf.c limits.c pathconf.c progenv.c sysconf.c
6CFLAGS+= -I${.CURDIR}
6CFLAGS+= -I${.CURDIR}
7CLEANFILES+= confstr.c pathconf.c sysconf.c
7CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \
8 confstr.names limits.names pathconf.names sysconf.names \
9 conflicting.names unique.names
8
10
9.SUFFIXES: .gperf
11.SUFFIXES: .gperf .names
12.PHONY: conflicts
10
13
14all: conflicts
15
11.gperf.c:
16.gperf.c:
12 gperf -t -L ANSI-C -C -k 1,2,7-10,21,'$$' ${.IMPSRC} >${.TARGET}
17 awk -f ${.CURDIR}/fake-gperf.awk ${.IMPSRC} >${.TARGET}
13
18
19.gperf.names:
20 awk '/^[_A-Z]/ { print; }' ${.IMPSRC} | sed -e 's/,$$//' >${.TARGET}
21
22conflicts: conflicting.names unique.names
23 @if test `wc -l <conflicting.names` != `wc -l <unique.names`; then \
24 echo "Name conflicts found!" >&2; \
25 exit 1; \
26 fi
27
28# pathconf.names is not included here because pathconf names are
29# syntactically distinct from the other kinds.
30conflicting.names: confstr.names limits.names sysconf.names
31 cat ${.ALLSRC} >${.TARGET}
32
33unique.names: conflicting.names
34 sort -u ${.ALLSRC} >${.TARGET}
35
14.include <bsd.prog.mk>
36.include <bsd.prog.mk>