2 # This doesn't actually build anything, it just tests whether the
3 # configuration files here correspond with the schema.
5 etcdatadir = $(pkgdatadir)/etc
7 xmlconfig = $(srcdir)/config-bytarget.xml \
8 $(srcdir)/config-local.xml \
9 $(srcdir)/config-load-balance.xml \
10 $(srcdir)/config-record-transform.xml \
11 $(srcdir)/config-shared1.xml \
12 $(srcdir)/config-simple-multi.xml \
13 $(srcdir)/config-sru-to-z3950.xml \
14 $(srcdir)/config-sru-holdings.xml \
15 $(srcdir)/config-zurg.xml \
16 $(srcdir)/config0.xml \
17 $(srcdir)/config1.xml \
18 $(srcdir)/config2.xml \
19 $(srcdir)/config3.xml \
20 $(srcdir)/config4.xml \
21 $(srcdir)/config5.xml \
22 $(srcdir)/config-cgi.xml \
23 $(srcdir)/config-solr.xml \
24 $(srcdir)/config-zoom.xml \
25 $(srcdir)/config-proxy.xml \
26 $(srcdir)/config-rewrite.xml \
27 $(srcdir)/retrieval-info.xml
29 config = example.simple-auth example.target-auth pqf2pqf.xsl explain.xml \
33 rng = $(srcdir)/../xml/schema/metaproxy.rng
34 xsd = $(srcdir)/../xml/schema/metaproxy.xsd
36 etcdata_DATA = $(xmlconfig) $(config)
38 EXTRA_DIST = $(etcdata_DATA) cgi.sh
42 if test -f $(rng); then \
43 xmllint --noout --xinclude --relaxng $(rng) $(xmlconfig); \
46 ## Only run XSD checks for a "new" Libxml2
49 if test `xmllint --version 2>&1 |head -1|awk '{print $$5}'` -gt 20622; then xmllint --noout --xinclude --schema $(xsd) $(xmlconfig); fi
51 #check-local: check_rng check_xsd
52 check-local: check_rng