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@
16 # The config files are installed "special". Unlike the entries in
17 # pkgsysconf_DATA, these files are installed as "foo.dist" and only
18 # installed as "foo" if "foo" does not already exist. In other words,
19 # the config files will not overwrite existing versions.
27 # While BUILTCONFIGFILES are processed, these are not; so we should pull
36 bindingTemplate.html \
42 # Some of these need building
46 sed < ${srcdir}/${FILE}.in > ${FILE}.tmp \
47 -e 's:@-PREFIX-@:${prefix}:' \
48 -e 's:@-LIBEXECDIR-@:${libexecdir}:' \
49 -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \
50 -e 's:@-PKGXMLDIR-@:${pkgxmldir}:' \
51 -e 's:@-PKGLOGDIR-@:${pkglogdir}:' \
52 -e 's:@-SHIRELOGDIR-@:${shirelogdir}:' \
53 -e 's:@-VARRUNDIR-@:${varrundir}:'
54 cmp -s ${FILE} ${FILE}.tmp || mv ${FILE}.tmp ${FILE}
57 apache.config: ${srcdir}/apache.config.in Makefile ${top_builddir}/config.status
58 $(MAKE) do-build-file FILE=$@
60 apache2.config: ${srcdir}/apache2.config.in Makefile ${top_builddir}/config.status
61 $(MAKE) do-build-file FILE=$@
63 apache22.config: ${srcdir}/apache22.config.in Makefile ${top_builddir}/config.status
64 $(MAKE) do-build-file FILE=$@
66 shibd: ${srcdir}/shibd.in Makefile ${top_builddir}/config.status
67 $(MAKE) do-build-file FILE=$@
69 shibd.logger: ${srcdir}/shibd.logger.in Makefile ${top_builddir}/config.status
70 $(MAKE) do-build-file FILE=$@
72 native.logger: ${srcdir}/native.logger.in Makefile ${top_builddir}/config.status
73 $(MAKE) do-build-file FILE=$@
75 shibboleth.xml: ${srcdir}/shibboleth.xml.in Makefile ${top_builddir}/config.status
76 $(MAKE) do-build-file FILE=$@
78 resolver-simple.xml: ${srcdir}/resolver-simple.xml.in Makefile ${top_builddir}/config.status
79 $(MAKE) do-build-file FILE=$@
81 example-metadata.xml: ${srcdir}/example-metadata.xml.in Makefile ${top_builddir}/config.status
82 $(MAKE) do-build-file FILE=$@
84 all-data-local: $(BUILTCONFIGFILES)
86 install-data-local: all-data-local
87 $(mkinstalldirs) $(DESTDIR)$(pkglogdir)
88 $(mkinstalldirs) $(DESTDIR)$(shirelogdir)
89 $(mkinstalldirs) $(DESTDIR)$(varrundir)
90 $(mkinstalldirs) $(DESTDIR)$(pkgxmldir)
91 $(mkinstalldirs) $(DESTDIR)$(prefix)/data
92 $(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir)
93 for f in $(BUILTCONFIGFILES); do \
94 if test ! -f $(DESTDIR)${pkgsysconfdir}/$$f; then \
95 $(INSTALL_DATA) $$f $(DESTDIR)${pkgsysconfdir}; \
97 $(INSTALL_DATA) $$f $(DESTDIR)${pkgsysconfdir}/$$f.dist; \
99 for f in $(CONFIGFILES); do \
100 if test ! -f $(DESTDIR)${pkgsysconfdir}/$$f; then \
101 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)${pkgsysconfdir}; \
103 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)${pkgsysconfdir}/$$f.dist; \
114 resolver-simple.xml \
117 EXTRA_DIST = .cvsignore \
132 resolver-simple.xml.in \
133 example-metadata.xml.in \