diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-03-22 10:26:41 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-03-22 10:26:41 +0300 |
commit | ad73d6ca40c458eecb39db9cd7376be1fc6e4476 (patch) | |
tree | f217ca97dcd7a075888bb3b69f858516dca4dbac /mcs/class/System.XML/Makefile | |
parent | c6abb6a8d86de6b2febf83ae63a47d506897216e (diff) |
2004-03-22 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : now it creates XSLT pattern parser files from
Parser.jay and Tokenizer.cs in System.Xml.XPath.
* Parser.jay, Tokenizer.cs : Now they are used as common code base for
XPath parser and XSLT pattern parser. Makefile now creates two
set of sources of them. (This change takes effect on the next change).
svn path=/trunk/mcs/; revision=42062
Diffstat (limited to 'mcs/class/System.XML/Makefile')
-rw-r--r-- | mcs/class/System.XML/Makefile | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/mcs/class/System.XML/Makefile b/mcs/class/System.XML/Makefile index 9379605b3e4..7274e2cdd86 100644 --- a/mcs/class/System.XML/Makefile +++ b/mcs/class/System.XML/Makefile @@ -40,7 +40,6 @@ EXTRA_DISTFILES = \ $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \ $(wildcard System.Xml.Serialization/standalone_tests/*.output) \ System.Xml.XPath/Parser.jay \ - System.Xml.Query/XQueryParser.jay \ System.Xml.Query/skeleton-2.0.cs \ Test/Microsoft.Test.csproj \ Test/Mono.Test.csproj \ @@ -54,10 +53,24 @@ EXTRA_DISTFILES = \ System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@ -System.Xml.Query/XQueryParser.cs: System.Xml.Query/XQueryParser.jay System.Xml.Query/skeleton-2.0.cs - $(topdir)/jay/jay -ct < System.Xml.Query/skeleton-2.0.cs $< >$@ +Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs + sed "s/\%start Expr/\%start Pattern/" $< >$@ -BUILT_SOURCES = System.Xml.XPath/Parser.cs #System.Xml.Query/XQueryParser.cs -CLEAN_FILES = Test/XmlFiles/xsl/result.xml System.Xml.Query/XQueryParser.cs +Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs + echo "#define XSLT_PATTERN" > $@ + $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@ + +Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs + echo "#define XSLT_PATTERN" > $@ + cat $< >>$@ + +BUILT_SOURCES = System.Xml.XPath/Parser.cs \ + Mono.Xml.Xsl/PatternParser.cs \ + Mono.Xml.Xsl/PatternTokenizer.cs + +CLEAN_FILES = Test/XmlFiles/xsl/result.xml \ + System.Xml.XPath/Parser.cs \ + Mono.Xml.Xsl/PatternParser.cs \ + Mono.Xml.Xsl/PatternTokenizer.cs include ../../build/library.make |