e5fee78a0513d91ca4f26866a84af28831b86a4d
[shibboleth/cpp-sp.git] / configs / Makefile.am
1 ## $Id$ 
2
3 AUTOMAKE_OPTIONS = foreign
4
5 logdir=${localstatedir}/log/shibboleth
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 install-data-local:
53         $(mkinstalldirs) $(DESTDIR)$(logdir)
54         $(mkinstalldirs) $(DESTDIR)$(prefix)/data
55
56 CLEANFILES = \
57         apache.config \
58         apache2.config \
59         shar.logger \
60         shire.logger \
61         shibboleth.xml
62
63 EXTRA_DIST = .cvsignore \
64         shibboleth.xml.in \
65         shire.logger.in \
66         shar.logger.in \
67         apache.config.in \
68         apache2.config.in \
69         shibboleth.logger \
70         accessError.html \
71         rmError.html \
72         shireError.html \
73         AAP.xml \
74         sites.xml \
75         trust.xml \
76         inqueue.pem \
77         shar.key \
78         shar.crt