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