3 AUTOMAKE_OPTIONS = foreign
5 pkglogdir = ${localstatedir}/log/@PACKAGE@
6 shirelogdir = ${localstatedir}/log/httpd
7 pkgxmldir = $(datadir)/xml/@PACKAGE@
8 varrundir = $(localstatedir)/run
9 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
15 # The config files are installed "special". Unlike the entries in
16 # pkgsysconf_DATA, these files are installed as "foo.dist" and only
17 # installed as "foo" if "foo" does not already exist. In other words,
18 # the config files will not overwrite existing versions.
27 # While BUILTCONFIGFILES are processed, these are not; so we should pull
38 # Some of these need building
42 sed < ${srcdir}/${FILE}.in > ${FILE}.tmp \
43 -e 's:@-PREFIX-@:${prefix}:' \
44 -e 's:@-LIBEXECDIR-@:${libexecdir}:' \
45 -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \
46 -e 's:@-PKGXMLDIR-@:${pkgxmldir}:' \
47 -e 's:@-PKGLOGDIR-@:${pkglogdir}:' \
48 -e 's:@-SHIRELOGDIR-@:${shirelogdir}:' \
49 -e 's:@-VARRUNDIR-@:${varrundir}:'
50 cmp -s ${FILE} ${FILE}.tmp || mv ${FILE}.tmp ${FILE}
53 apache.config: ${srcdir}/apache.config.in Makefile ${top_builddir}/config.status
54 $(MAKE) do-build-file FILE=$@
56 apache2.config: ${srcdir}/apache2.config.in Makefile ${top_builddir}/config.status
57 $(MAKE) do-build-file FILE=$@
59 shar.logger: ${srcdir}/shar.logger.in Makefile ${top_builddir}/config.status
60 $(MAKE) do-build-file FILE=$@
62 shire.logger: ${srcdir}/shire.logger.in Makefile ${top_builddir}/config.status
63 $(MAKE) do-build-file FILE=$@
65 shibboleth.xml: ${srcdir}/shibboleth.xml.in Makefile ${top_builddir}/config.status
66 $(MAKE) do-build-file FILE=$@
68 AAP.xml: ${srcdir}/AAP.xml.in Makefile ${top_builddir}/config.status
69 $(MAKE) do-build-file FILE=$@
71 IQ-sites.xml: ${srcdir}/IQ-sites.xml.in Makefile ${top_builddir}/config.status
72 $(MAKE) do-build-file FILE=$@
74 IQ-trust.xml: ${srcdir}/IQ-trust.xml.in Makefile ${top_builddir}/config.status
75 $(MAKE) do-build-file FILE=$@
77 all-data-local: $(BUILTCONFIGFILES)
79 install-data-local: all-data-local
80 $(mkinstalldirs) $(DESTDIR)$(pkglogdir)
81 $(mkinstalldirs) $(DESTDIR)$(pkgxmldir)
82 $(mkinstalldirs) $(DESTDIR)$(prefix)/data
83 $(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir)
84 for f in $(BUILTCONFIGFILES); do \
85 if test ! -f $(DESTDIR)${pkgsysconfdir}/$$f; then \
86 $(INSTALL_DATA) $$f $(DESTDIR)${pkgsysconfdir}; \
88 $(INSTALL_DATA) $$f $(DESTDIR)${pkgsysconfdir}/$$f.dist; \
90 for f in $(CONFIGFILES); do \
91 if test ! -f $(DESTDIR)${pkgsysconfdir}/$$f; then \
92 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)${pkgsysconfdir}; \
94 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)${pkgsysconfdir}/$$f.dist; \
107 EXTRA_DIST = .cvsignore \