Remove ChangeLog references from Makefile and .gitattribute
[mono.git] / mcs / class / Commons.Xml.Relaxng / Makefile
index 0071fe69ff793e97e625af97ca011ea1137e1d57..1bc0fd2f2773f1c6f2c6e9a93d5de3ffddff8845 100644 (file)
@@ -2,27 +2,29 @@ thisdir = class/Commons.Xml.Relaxng
 SUBDIRS = 
 include ../../build/rules.make
 
+RESOURCE_FILES = resources/relaxng.rng
+
+OTHER_RES = $(RESOURCE_FILES)
+
 LIBRARY = Commons.Xml.Relaxng.dll
-LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:System.Xml.dll
-TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
+LIB_REFS = System System.Xml
+LIB_MCS_FLAGS = /r:$(corlib) \
+       $(foreach r, $(OTHER_RES), /resource:$(r),$(notdir $(r)))
+TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
 EXTRA_DISTFILES = \
        Commons.Xml.Relaxng.Rnc/RncParser.jay   \
-       Test/ChangeLog          \
-       Test/XmlFiles/ChangeLog \
-       Test/XmlFiles/SimpleElementPattern1.xml \
-       Test/XmlFiles/SimpleElementPattern1.rng \
-       Test/XmlFiles/SimpleElementPattern2.xml \
-       Test/XmlFiles/SimpleElementPattern2.rng \
-       Test/XmlFiles/team.xml  \
-       Test/XmlFiles/team.rng  \
-       Test/XmlFiles/relaxng.rng       \
-       Test/XmlFiles/relaxng.rnc       \
-       $(wildcard Test/standalone_tests/*.cs)
+       $(wildcard Test/XmlFiles/*.rng) \
+       $(wildcard Test/XmlFiles/*.rnc) \
+       $(wildcard Test/XmlFiles/*.nvdl) \
+       $(wildcard Test/XmlFiles/*.xml) \
+       $(wildcard Test/standalone_tests/*.cs) \
+       $(RESOURCE_FILES)
 
+Commons.Xml.Relaxng.Rnc/RncParser.cs: Commons.Xml.Relaxng.Rnc/RncParser.jay $(topdir)/jay/skeleton.cs
+       $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $(CURDIR)/Commons.Xml.Relaxng.Rnc/RncParser.jay > Commons.Xml.Relaxng.Rnc/RncParser.cs
 
-Commons.Xml.Relaxng.Rnc/RncParser.cs : Commons.Xml.Relaxng.Rnc/RncParser.jay
-       $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs Commons.Xml.Relaxng.Rnc/RncParser.jay > Commons.Xml.Relaxng.Rnc/RncParser.cs;
-
-CLEAN_FILES = Commons.Xml.Relaxng.Rnc/RncParser.cs
+BUILT_SOURCES = Commons.Xml.Relaxng.Rnc/RncParser.cs
 
 include ../../build/library.make
+
+$(the_lib): $(OTHER_RES)