added suport for 'make distcheck' target using no GNU make extentions at all
[metaproxy-moved-to-github.git] / etc / Makefile.am
1 # $Id: Makefile.am,v 1.6 2006-10-11 13:21:51 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-record-transform.xml \
11     $(srcdir)/config-shared1.xml \
12     $(srcdir)/config-simple-multi.xml \
13     $(srcdir)/config-sru-to-z3950.xml \
14     $(srcdir)/config-zurg.xml \
15     $(srcdir)/config0.xml \
16     $(srcdir)/config1.xml \
17     $(srcdir)/config2.xml \
18     $(srcdir)/config3.xml \
19     $(srcdir)/config4.xml \
20     $(srcdir)/config5.xml
21
22 config = example.simple-auth example.target-auth pqf2pqf.xsl
23
24
25 rng = $(srcdir)/../xml/schema/metaproxy.rng
26 xsd = $(srcdir)/../xml/schema/metaproxy.xsd
27
28 etcdata_DATA = $(xmlconfig) $(config)
29
30 EXTRA_DIST = $(etcdata_DATA)
31
32 .PHONY: check_rng
33 check_rng: 
34         xmllint --noout --relaxng $(rng) $(xmlconfig)
35
36 .PHONY: check_xsd
37 check_xsd: 
38         xmllint --noout --schema $(xsd) $(xmlconfig)
39
40
41 check-local:
42         $(MAKE) check_xsd
43         $(MAKE) check_rng
44
45