7 SRCS= confstr.c getconf.c limits.c pathconf.c progenv.c sysconf.c
9 CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \
10 confstr.names limits.names pathconf.names sysconf.names \
11 conflicting.names unique.names
13 .SUFFIXES: .gperf .names
18 FAKE_GPERF= ${.CURDIR}/fake-gperf.awk
19 .gperf.c: ${FAKE_GPERF}
20 LC_ALL=C awk -f ${FAKE_GPERF} ${.IMPSRC} >${.TARGET}
23 LC_ALL=C awk '/^[_A-Z]/ { print; }' ${.IMPSRC} | \
24 sed -e 's/,$$//' >${.TARGET}
26 conflicts: conflicting.names unique.names
27 @if test `wc -l <conflicting.names` != `wc -l <unique.names`; then \
28 echo "Name conflicts found!" >&2; \
32 # pathconf.names is not included here because pathconf names are
33 # syntactically distinct from the other kinds.
34 conflicting.names: confstr.names limits.names sysconf.names
35 cat ${.ALLSRC} >${.TARGET}
37 unique.names: conflicting.names
38 LC_ALL=C sort -u ${.ALLSRC} >${.TARGET}
40 .if ${MK_TESTS} != "no"
44 .include <bsd.prog.mk>