Autotools fix. Add missing dependency on grammar.y.
[WebKit-https.git] / JavaScriptCore / GNUmakefile.am
index 358fbb5c2053ca31fb78982c1171ce9e3561fddc..197bd6cb70a32a5b8889ac76039f3e297a0ed337 100644 (file)
@@ -121,7 +121,7 @@ endif # END ENABLE_DEBUG
 
 DerivedSources/grammar.h: DerivedSources/grammar.cpp
 
 
 DerivedSources/grammar.h: DerivedSources/grammar.cpp
 
-DerivedSources/grammar.cpp:
+DerivedSources/grammar.cpp: $(srcdir)/JavaScriptCore/kjs/grammar.y
        $(BISON) -d -p kjsyy $(srcdir)/JavaScriptCore/kjs/grammar.y -o $@ > bison_out.txt 2>&1
        $(PERL) -p -e 'END { if ($$conflict) { unlink "grammar.cpp"; die; } } $$conflict ||= /conflict/' < bison_out.txt
        cat $(GENSOURCES)/grammar.hpp > $(GENSOURCES)/grammar.h
        $(BISON) -d -p kjsyy $(srcdir)/JavaScriptCore/kjs/grammar.y -o $@ > bison_out.txt 2>&1
        $(PERL) -p -e 'END { if ($$conflict) { unlink "grammar.cpp"; die; } } $$conflict ||= /conflict/' < bison_out.txt
        cat $(GENSOURCES)/grammar.hpp > $(GENSOURCES)/grammar.h