---
 lib/Makefile.am |    3 +++
 1 file changed, 3 insertions(+)

Index: libnl-2.0/lib/Makefile.am
===================================================================
--- libnl-2.0.orig/lib/Makefile.am
+++ libnl-2.0/lib/Makefile.am
@@ -27,11 +27,15 @@ CLEANFILES = \
 	route/pktloc_grammar.c route/pktloc_grammar.h \
 	route/pktloc_syntax.c route/pktloc_syntax.h
 
+BUILT_SOURCES = route/pktloc_syntax.h route/pktloc_grammar.h
+
 # Hack to avoid using ylwrap. It does not function correctly in combination
 # with --header-file=
-route/pktloc_grammar.c: route/pktloc_grammar.l
+route/pktloc_grammar.h: route/pktloc_grammar.c
+route/pktloc_grammar.c: route/pktloc_grammar.y
 	$(LEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
 
+route/pktloc_syntax.h: route/pktloc_syntax.c
 route/pktloc_syntax.c: route/pktloc_syntax.y
 	$(YACC) -d $(YFLAGS) -o $@ $^
 

Index: libnl-2.0/lib/Makefile.am
===================================================================
--- libnl-2.0.orig/lib/Makefile.am
+++ libnl-2.0/lib/Makefile.am
@@ -27,11 +27,15 @@ CLEANFILES = \
 	route/pktloc_grammar.c route/pktloc_grammar.h \
 	route/pktloc_syntax.c route/pktloc_syntax.h
 
+BUILT_SOURCES = route/pktloc_syntax.h route/pktloc_grammar.h
+
 # Hack to avoid using ylwrap. It does not function correctly in combination
 # with --header-file=
+route/pktloc_grammar.h: route/pktloc_grammar.c
 route/pktloc_grammar.c: route/pktloc_grammar.l
 	$(LEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
 
+route/pktloc_syntax.h: route/pktloc_syntax.c
 route/pktloc_syntax.c: route/pktloc_syntax.y
 	$(YACC) -d $(YFLAGS) -o $@ $^
 

Fix thinko in last patch
libnl2: Fix thinko in last patch

Signed-off-by: Tom Rini <4c3d5c8f8c21c27dd329bd585f481113514551fd@mentor.com>
