INN commit: trunk/innfeed (Makefile)

INN Commit rra at isc.org
Sat Dec 29 21:11:58 UTC 2012


    Date: Saturday, December 29, 2012 @ 13:11:58
  Author: eagle
Revision: 9451

Add additional dependency to de-parallelize innfeed yacc rule

With a highly parallel make, yacc could be invoked on the innfeed
configuration parser twice, once to build the *.c file and once to
build the *.h file, leading to one of the mv commands failing.
Follow the recommendation in the Automake manual and add an
additional dependency from the *.h file to the *.c file, forcing
the rule to be run once.

Reported by Remco Rijnders.

Modified:
  trunk/innfeed/Makefile

----------+
 Makefile |    1 +
 1 file changed, 1 insertion(+)

Modified: Makefile
===================================================================
--- Makefile	2012-12-23 19:20:59 UTC (rev 9450)
+++ Makefile	2012-12-29 21:11:58 UTC (rev 9451)
@@ -55,6 +55,7 @@
 	$(YACC) -d $?
 	mv y.tab.h config_y.h
 	mv y.tab.c config_y.c
+config_y.h: config_y.c
 
 config_l.c: configfile.l
 	$(LEX) $?



More information about the inn-committers mailing list