INN commit: trunk/innfeed (Makefile)

INN Commit rra at isc.org
Sun Dec 30 18:01:28 UTC 2012


    Date: Sunday, December 30, 2012 @ 10:01:28
  Author: eagle
Revision: 9453

Fix the innfeed configfile parser generation rule

Using $? in the rule, now that the extra dependency has been added,
caused the wrong arguments to be passed to bison.  Pass the correct
arguments explicitly.

This still seems to run bison twice for reasons that I can't figure
out, but that should be harmless.

Modified:
  trunk/innfeed/Makefile

----------+
 Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: Makefile
===================================================================
--- Makefile	2012-12-29 21:12:11 UTC (rev 9452)
+++ Makefile	2012-12-30 18:01:28 UTC (rev 9453)
@@ -52,9 +52,10 @@
 INNFEEDLIBS	= $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS)
 
 config_y.c config_y.h: configfile.y
-	$(YACC) -d $?
+	$(YACC) -d configfile.y
 	mv y.tab.h config_y.h
 	mv y.tab.c config_y.c
+	touch config_y.h
 config_y.h: config_y.c
 
 config_l.c: configfile.l



More information about the inn-committers mailing list