386585cb2951f334e39686af32ee1162c5bd6b8f
[shibboleth/sp.git] / configs / Makefile.am
1 ## $Id$ 
2
3 AUTOMAKE_OPTIONS = foreign
4
5 logdir=${pkgsysconfdir}
6 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
7 pkgsysconf_DATA = \
8         shibboleth.xml \
9         shibboleth.logger \
10         shire.logger \
11         shar.logger \
12         shar.key \
13         shar.crt \
14         apache.config \
15         apache2.config \
16         accessError.html \
17         rmError.html \
18         shireError.html \
19         AAP.xml \
20         sites.xml \
21         trust.xml \
22         inqueue.pem
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:@-PREFIX-@:${prefix}:' \
31             -e 's:@-LIBEXECDIR-@:${libexecdir}:' \
32             -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \
33             -e 's:@-LOGDIR-@:${logdir}:'
34         cmp -s ${FILE} ${FILE}.tmp || mv ${FILE}.tmp ${FILE}
35         rm -f ${FILE}.tmp
36
37 apache.config: ${srcdir}/apache.config.in Makefile ${top_builddir}/config.status
38         $(MAKE) do-build-file FILE=$@
39
40 apache2.config: ${srcdir}/apache2.config.in Makefile ${top_builddir}/config.status
41         $(MAKE) do-build-file FILE=$@
42
43 shar.logger: ${srcdir}/shar.logger.in Makefile ${top_builddir}/config.status
44         $(MAKE) do-build-file FILE=$@
45
46 shire.logger: ${srcdir}/shire.logger.in Makefile ${top_builddir}/config.status
47         $(MAKE) do-build-file FILE=$@
48
49 shibboleth.xml: ${srcdir}/shibboleth.xml.in Makefile ${top_builddir}/config.status
50         $(MAKE) do-build-file FILE=$@
51
52 CLEANFILES = \
53         apache.config \
54         apache2.config \
55         shar.logger \
56         shire.logger \
57         shibboleth.xml
58
59 EXTRA_DIST = .cvsignore \
60         shibboleth.xml.in \
61         shire.logger.in \
62         shar.logger.in \
63         apache.config.in \
64         apache2.config.in \
65         shibboleth.logger \
66         accessError.html \
67         rmError.html \
68         shireError.html \
69         AAP.xml \
70         sites.xml \
71         trust.xml \
72         inqueue.pem \
73         shar.key \
74         shar.crt