Author: ngie
Date: Thu Jun  1 06:39:55 2017
New Revision: 319382
URL: https://svnweb.freebsd.org/changeset/base/319382

Log:
  MFC r318434:
  
  Make the `.gperf.c` suffix rule depend on fake-gperf.awk
  
  Parameterize out fake-gperf.awk to avoid duplicating the path

Modified:
  stable/10/usr.bin/getconf/Makefile
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/getconf/Makefile
==============================================================================
--- stable/10/usr.bin/getconf/Makefile  Thu Jun  1 06:37:53 2017        
(r319381)
+++ stable/10/usr.bin/getconf/Makefile  Thu Jun  1 06:39:55 2017        
(r319382)
@@ -13,8 +13,9 @@ CLEANFILES+=  confstr.c limits.c pathconf.c progenv.c s
 
 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} | \
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to