Autotools build fix. Make can expand $@ to any of the targets for the rule,
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jan 2008 14:42:02 +0000 (14:42 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jan 2008 14:42:02 +0000 (14:42 +0000)
while we always want to use the name of the .cpp file as the output file.

Reviewed by Alp Toker.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29082 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/GNUmakefile.am

index aa9c31155bf7bb986911ad31db38383b12396e36..619850939ca9a486ff29c675cd06626a5c37e423 100644 (file)
@@ -1,3 +1,12 @@
+2008-01-02  Mark Rowe  <mrowe@apple.com>
+
+        Reviewed by Alp Toker.
+
+        Autotools build fix.  Make can expand $@ to any of the targets for the rule,
+        while we always want to use the name of the .cpp file as the output file.
+
+        * GNUmakefile.am:
+
 2008-01-02  Luca Bruno  <lethalman88@gmail.com>
 
         Reviewed by Alp Toker.
index 1f131cb1ffb8d02b15fa26934784ff15d430a088..775be31d05c5a44e69687b5756d788cd1ece2954 100644 (file)
@@ -1152,8 +1152,9 @@ webcore_sources += \
 
 # XPath grammar
 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
-DerivedSources/XPathGrammar.h DerivedSources/XPathGrammar.cpp : $(WebCore)/xml/XPathGrammar.y
-       $(BISON) -d -p xpathyy $< -o $@
+$(GENSOURCES)/XPathGrammar.h $(GENSOURCES)/XPathGrammar.cpp : $(WebCore)/xml/XPathGrammar.y
+       $(BISON) -d -p xpathyy $< -o $(GENSOURCES)/XPathGrammar.cpp
+       rm -f $(GENSOURCES)/XPathGrammar.cpp.h $(GENSOURCES)/XPathGrammar.hpp
        touch $(GENSOURCES)/XPathGrammar.cpp.h $(GENSOURCES)/XPathGrammar.hpp
        echo '#ifndef XPathGrammar_h' > $(GENSOURCES)/XPathGrammar.h
        echo '#define XPathGrammar_h' >> $(GENSOURCES)/XPathGrammar.h
@@ -1887,7 +1888,7 @@ DerivedSources/tokenizer.cpp :
 
 # CSS grammar
 # NOTE: older versions of bison do not inject an inclusion guard, so we do it
-DerivedSources/CSSGrammar.h DerivedSources/CSSGrammar.cpp : $(WebCore)/css/CSSGrammar.y
+$(GENSOURCES)/CSSGrammar.h $(GENSOURCES)/CSSGrammar.cpp : $(WebCore)/css/CSSGrammar.y
        $(BISON) -d -p cssyy $< -o $(GENSOURCES)/CSSGrammar.cpp
        touch $(GENSOURCES)/CSSGrammar.cpp.h $(GENSOURCES)/CSSGrammar.hpp
        echo '#ifndef CSSGrammar_h' > $(GENSOURCES)/CSSGrammar.h