From 68311c8bb2e7f974b5b91ad61f85980f432f2d7f Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Wed, 12 May 2021 16:08:47 -0400 Subject: system_cmds: shutdown may not work --- system_cmds/getconf.tproj/Makefile | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 system_cmds/getconf.tproj/Makefile (limited to 'system_cmds/getconf.tproj') diff --git a/system_cmds/getconf.tproj/Makefile b/system_cmds/getconf.tproj/Makefile new file mode 100644 index 0000000..a5b230d --- /dev/null +++ b/system_cmds/getconf.tproj/Makefile @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PROG= getconf + +SRCS= confstr.c getconf.c limits.c pathconf.c progenv.c sysconf.c +CFLAGS+= -I${.CURDIR} +CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \ + confstr.names limits.names pathconf.names sysconf.names \ + conflicting.names unique.names + +.SUFFIXES: .gperf .names +.PHONY: conflicts + +all: conflicts + +FAKE_GPERF= ${.CURDIR}/fake-gperf.awk +.gperf.c: ${FAKE_GPERF} + LC_ALL=C awk -f ${FAKE_GPERF} ${.IMPSRC} >${.TARGET} + +.gperf.names: + LC_ALL=C awk '/^[_A-Z]/ { print; }' ${.IMPSRC} | \ + sed -e 's/,$$//' >${.TARGET} + +conflicts: conflicting.names unique.names + @if test `wc -l &2; \ + exit 1; \ + fi + +# pathconf.names is not included here because pathconf names are +# syntactically distinct from the other kinds. +conflicting.names: confstr.names limits.names sysconf.names + cat ${.ALLSRC} >${.TARGET} + +unique.names: conflicting.names + LC_ALL=C sort -u ${.ALLSRC} >${.TARGET} + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests + +.include -- cgit v1.2.3-56-ge451