added first shot on load balance filter which removes all but one vhost from Z39...
[metaproxy-moved-to-github.git] / etc / Makefile.am
1 # $Id: Makefile.am,v 1.8 2007-01-02 15:35:36 marc Exp $
2
3 # This doesn't actually build anything, it just tests whether the
4 # configuration files here correspond with the schema.
5
6 etcdatadir = $(pkgdatadir)/etc
7
8 xmlconfig = $(srcdir)/config-bytarget.xml \
9     $(srcdir)/config-local.xml \
10     $(srcdir)/config-load-balance.xml \
11     $(srcdir)/config-record-transform.xml \
12     $(srcdir)/config-shared1.xml \
13     $(srcdir)/config-simple-multi.xml \
14     $(srcdir)/config-sru-to-z3950.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
23 config = example.simple-auth example.target-auth pqf2pqf.xsl
24
25
26 rng = $(srcdir)/../xml/schema/metaproxy.rng
27 xsd = $(srcdir)/../xml/schema/metaproxy.xsd
28
29 etcdata_DATA = $(xmlconfig) $(config)
30
31 EXTRA_DIST = $(etcdata_DATA)
32
33 .PHONY: check_rng
34 check_rng: 
35         xmllint --noout --xinclude --relaxng $(rng) $(xmlconfig)
36
37 .PHONY: check_xsd
38 check_xsd: 
39         xmllint --noout --xinclude --schema $(xsd) $(xmlconfig)
40
41
42 check-local:
43         $(MAKE) check_xsd
44         $(MAKE) check_rng
45
46