Date: Thu, 18 May 2017 01:35:07 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r318434 - head/usr.bin/getconf Message-ID: <201705180135.v4I1Z7Fh043409@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Thu May 18 01:35:07 2017 New Revision: 318434 URL: https://svnweb.freebsd.org/changeset/base/318434 Log: Make the `.gperf.c` suffix rule depend on fake-gperf.awk Parameterize out fake-gperf.awk to avoid duplicating the path MFC after: 2 weeks Sponsored by: Dell EMC Isilon Modified: head/usr.bin/getconf/Makefile Modified: head/usr.bin/getconf/Makefile ============================================================================== --- head/usr.bin/getconf/Makefile Thu May 18 01:32:50 2017 (r318433) +++ head/usr.bin/getconf/Makefile Thu May 18 01:35:07 2017 (r318434) @@ -13,8 +13,9 @@ CLEANFILES+= confstr.c limits.c pathconf 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} | \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705180135.v4I1Z7Fh043409>