3fd6989fb9f1e055caa84fa2519574e8bdad9b72
[shibboleth/cpp-sp.git] / schemas / Makefile.am
1 ## $Id$ 
2
3 AUTOMAKE_OPTIONS = foreign
4
5 pkgxmldir = $(datadir)/xml/@PACKAGE@
6
7 schemafiles = \
8     shibboleth.xsd \
9     shibboleth-metadata-1.0.xsd \
10     shibboleth-2.0-native-sp-config.xsd \
11     shibboleth-2.0-afp.xsd \
12     shibboleth-2.0-afp-mf-basic.xsd \
13     shibboleth-2.0-afp-mf-saml.xsd \
14     shibboleth-2.0-attribute-map.xsd \
15     shibboleth-2.0-sp-notify.xsd \
16     metadata_v12_to_v13.xsl \
17     metadata_v13_to_v12.xsl \
18     trust_v13_to_v12.xsl
19
20 pkgxml_DATA = \
21         catalog.xml \
22         $(schemafiles)
23
24 #
25 # Some of these need building
26 #
27 do-build-file:
28         rm -f ${FILE}.tmp
29         sed < ${srcdir}/${FILE}.in > ${FILE}.tmp \
30             -e 's:@-PKGXMLDIR-@:${pkgxmldir}:g'
31         cmp -s ${FILE} ${FILE}.tmp || mv ${FILE}.tmp ${FILE}
32         rm -f ${FILE}.tmp
33
34 catalog.xml: ${srcdir}/catalog.xml.in Makefile ${top_builddir}/config.status
35         $(MAKE) do-build-file FILE=$@
36
37 CLEANFILES = catalog.xml
38
39 EXTRA_DIST = catalog.xml.in \
40         $(schemafiles)