[System.Xml] Use profile-specific file names for generated files.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 30 May 2014 14:50:05 +0000 (16:50 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 30 May 2014 14:57:54 +0000 (16:57 +0200)
Otherwise parallel builds will break randomly.

mcs/class/System.XML/Makefile
mcs/class/System.XML/System.Xml.XPath/.gitignore

index 2160578776c31fc576d2664c0e0f05dcf94b9946..c52a56468ffe7eace41f8bd470fb029c2ec83a35 100644 (file)
@@ -65,8 +65,8 @@ EXTRA_DISTFILES = \
        $(xmlfiles_files:%=Test/XmlFiles/%) \
        $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
 
-System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
-       (cd System.Xml.XPath; $(topdir)/../jay/jay -ct < $(topdir)/../jay/skeleton.cs Parser.jay >> Parser.cs)
+System.Xml.XPath/$(PROFILE)_Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
+       (cd System.Xml.XPath; $(topdir)/../jay/jay -ct < $(topdir)/../jay/skeleton.cs Parser.jay >> $(PROFILE)_Parser.cs)
 
 Mono.Xml.Xsl/$(PROFILE)_PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
        sed "s/\%start Expr/\%start Pattern/" $< >$@
@@ -80,12 +80,12 @@ Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
        cat $< >>$@
 
 ifneq (moonlight_raw, $(PROFILE))
-BUILT_SOURCES = System.Xml.XPath/Parser.cs \
+BUILT_SOURCES = System.Xml.XPath/$(PROFILE)_Parser.cs \
        Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs \
        Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs
 
 CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
-       System.Xml.XPath/Parser.cs \
+       System.Xml.XPath/$(PROFILE)_Parser.cs \
        Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs \
        Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs
 endif
index ac16218ced330daca06dd545e6c5eb5f140adf8d..9affbc6415d3ba82f58bd0669a9c303ee0e9505e 100644 (file)
@@ -1 +1 @@
-/Parser.cs
+/*_Parser.cs