diff options
author | ngie <ngie@FreeBSD.org> | 2017-06-01 06:39:57 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-06-01 06:39:57 +0000 |
commit | 6ab03c7590d7fc5c94e17f234ab3b5c592e9a295 (patch) | |
tree | 7d4513b279d726604d771b4b4670263f0fa4fbf1 | |
parent | 6f0f9a1f991c1d8b5cc2d006b13790b00ffdbd53 (diff) | |
download | FreeBSD-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
-rw-r--r-- | usr.bin/getconf/Makefile | 5 |
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} | \ |