-# $Id: Makefile.am,v 1.9 2007-01-08 13:07:38 marc Exp $
# This doesn't actually build anything, it just tests whether the
# configuration files here correspond with the schema.
$(srcdir)/config-shared1.xml \
$(srcdir)/config-simple-multi.xml \
$(srcdir)/config-sru-to-z3950.xml \
+ $(srcdir)/config-sru-holdings.xml \
$(srcdir)/config-zurg.xml \
$(srcdir)/config0.xml \
$(srcdir)/config1.xml \
$(srcdir)/config2.xml \
$(srcdir)/config3.xml \
$(srcdir)/config4.xml \
- $(srcdir)/config5.xml
+ $(srcdir)/config5.xml \
+ $(srcdir)/config-cgi.xml \
+ $(srcdir)/config-zoom.xml \
+ $(srcdir)/retrieval-info.xml
config = example.simple-auth example.target-auth pqf2pqf.xsl explain.xml
etcdata_DATA = $(xmlconfig) $(config)
-EXTRA_DIST = $(etcdata_DATA)
+EXTRA_DIST = $(etcdata_DATA) cgi.sh
.PHONY: check_rng
-check_rng:
- xmllint --noout --xinclude --relaxng $(rng) $(xmlconfig)
+check_rng:
+ if test -f $(rng); then \
+ xmllint --noout --xinclude --relaxng $(rng) $(xmlconfig); \
+ fi
+## Only run XSD checks for a "new" Libxml2
.PHONY: check_xsd
check_xsd:
- xmllint --noout --xinclude --schema $(xsd) $(xmlconfig)
+ if test `xmllint --version 2>&1 |head -1|awk '{print $$5}'` -gt 20622; then xmllint --noout --xinclude --schema $(xsd) $(xmlconfig); fi
-
-check-local:
- $(MAKE) check_xsd
- $(MAKE) check_rng
+#check-local: check_rng check_xsd
+check-local: check_rng