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} | \
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to