]> granicus.if.org Git - re2c/commitdiff
Makefile.am: lexer dependends on bison-generated parser; fixed rule order.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 23 Nov 2015 21:11:19 +0000 (21:11 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 23 Nov 2015 21:11:19 +0000 (21:11 +0000)
re2c/Makefile.am

index dcbb4715580b499a7907e17846f8ab2bad456b88..083c1627c9ffa1309d59752dc2558c78c67a912c 100644 (file)
@@ -199,6 +199,10 @@ $(AUTOGEN_PARSER): $(CUSTOM_PARSER)
                        $(top_srcdir)/$(CUSTOM_PARSER); \
        fi
 
+# lexer depends on bison-generated header
+# so bison rule must be triggered before lexer rule
+$(AUTOGEN_LEX): $(AUTOGEN_PARSER)
+
 $(BOOTSTRAP_PARSER): $(CUSTOM_PARSER)
        @test $(BISON) == "no" || \
        $(BISON) \