added suport for 'make distcheck' target using no GNU make extentions at all
[metaproxy-moved-to-github.git] / etc / Makefile.am
index 7b3c811..ea834d2 100644 (file)
@@ -1,26 +1,45 @@
-# $Id: Makefile.am,v 1.3 2006-06-19 13:29:30 adam Exp $
+# $Id: Makefile.am,v 1.6 2006-10-11 13:21:51 marc Exp $
 
 # This doesn't actually build anything, it just tests whether the
 # configuration files here correspond with the schema.
 
 etcdatadir = $(pkgdatadir)/etc
 
-config = config0.xml config1.xml config2.xml \
-       config3.xml config4.xml config5.xml \
-       config-simple-multi.xml config-local.xml \
-       config-shared1.xml
+xmlconfig = $(srcdir)/config-bytarget.xml \
+    $(srcdir)/config-local.xml \
+    $(srcdir)/config-record-transform.xml \
+    $(srcdir)/config-shared1.xml \
+    $(srcdir)/config-simple-multi.xml \
+    $(srcdir)/config-sru-to-z3950.xml \
+    $(srcdir)/config-zurg.xml \
+    $(srcdir)/config0.xml \
+    $(srcdir)/config1.xml \
+    $(srcdir)/config2.xml \
+    $(srcdir)/config3.xml \
+    $(srcdir)/config4.xml \
+    $(srcdir)/config5.xml
 
-misc = example.simple-auth example.target-auth pqf2pqf.xsl
+config = example.simple-auth example.target-auth pqf2pqf.xsl
 
-etcdata_DATA = $(config) $(misc)
+
+rng = $(srcdir)/../xml/schema/metaproxy.rng
+xsd = $(srcdir)/../xml/schema/metaproxy.xsd
+
+etcdata_DATA = $(xmlconfig) $(config)
 
 EXTRA_DIST = $(etcdata_DATA)
 
-test: test-config0 test-config1 test-config2 \
-      test-config3 test-config4 test-config5 \
-      test-config-simple-multi test-config-local \
-       test-config-shared1
+.PHONY: check_rng
+check_rng: 
+       xmllint --noout --relaxng $(rng) $(xmlconfig)
+
+.PHONY: check_xsd
+check_xsd: 
+       xmllint --noout --schema $(xsd) $(xmlconfig)
+
+
+check-local:
+       $(MAKE) check_xsd
+       $(MAKE) check_rng
 
-test-%: %.xml config.xsd 
-       xmllint --noout --schema config.xsd $<