diff options
author | ngie <ngie@FreeBSD.org> | 2017-06-01 06:39:55 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-06-01 06:39:55 +0000 |
commit | 0643d369f2b620bbd4b5ddd67540bc6bddf86a6b (patch) | |
tree | 2a7d7de41b571547ec6e6d85ee00c9849cfa54b4 | |
parent | e93cfba44029f54b4d41d21aae5270f5f55c2eeb (diff) | |
download | FreeBSD-src-0643d369f2b620bbd4b5ddd67540bc6bddf86a6b.zip FreeBSD-src-0643d369f2b620bbd4b5ddd67540bc6bddf86a6b.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} | \ |