summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-06-01 06:39:57 +0000
committerngie <ngie@FreeBSD.org>2017-06-01 06:39:57 +0000
commit6ab03c7590d7fc5c94e17f234ab3b5c592e9a295 (patch)
tree7d4513b279d726604d771b4b4670263f0fa4fbf1 /usr.bin
parent6f0f9a1f991c1d8b5cc2d006b13790b00ffdbd53 (diff)
downloadFreeBSD-src-6ab03c7590d7fc5c94e17f234ab3b5c592e9a295.zip
FreeBSD-src-6ab03c7590d7fc5c94e17f234ab3b5c592e9a295.tar.gz
MFC r318434:
Make the `.gperf.c` suffix rule depend on fake-gperf.awk Parameterize out fake-gperf.awk to avoid duplicating the path
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/getconf/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/getconf/Makefile b/usr.bin/getconf/Makefile
index eaaf628..ca0f0c0 100644
--- a/usr.bin/getconf/Makefile
+++ b/usr.bin/getconf/Makefile
@@ -13,8 +13,9 @@ CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \
all: conflicts
-.gperf.c:
- LC_ALL=C awk -f ${.CURDIR}/fake-gperf.awk ${.IMPSRC} >${.TARGET}
+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} | \
OpenPOWER on IntegriCloud