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
41 # Some of these need building
45 sed < ${srcdir}/${FILE}.in > ${FILE}.tmp \
46 -e 's:@-PREFIX-@:${prefix}:' \
47 -e 's:@-LIBEXECDIR-@:${libexecdir}:' \
48 -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \
49 -e 's:@-PKGXMLDIR-@:${pkgxmldir}:' \
50 -e 's:@-PKGLOGDIR-@:${pkglogdir}:' \
51 -e 's:@-SHIRELOGDIR-@:${shirelogdir}:' \
52 -e 's:@-VARRUNDIR-@:${varrundir}:'
53 cmp -s ${FILE} ${FILE}.tmp || mv ${FILE}.tmp ${FILE}
56 apache.config: ${srcdir}/apache.config.in Makefile ${top_builddir}/config.status
57 $(MAKE) do-build-file FILE=$@
59 apache2.config: ${srcdir}/apache2.config.in Makefile ${top_builddir}/config.status
60 $(MAKE) do-build-file FILE=$@
62 apache22.config: ${srcdir}/apache22.config.in Makefile ${top_builddir}/config.status
63 $(MAKE) do-build-file FILE=$@
65 shibd: ${srcdir}/shibd.in Makefile ${top_builddir}/config.status
66 $(MAKE) do-build-file FILE=$@
68 shibd.logger: ${srcdir}/shibd.logger.in Makefile ${top_builddir}/config.status
69 $(MAKE) do-build-file FILE=$@
71 native.logger: ${srcdir}/native.logger.in Makefile ${top_builddir}/config.status
72 $(MAKE) do-build-file FILE=$@
74 shibboleth.xml: ${srcdir}/shibboleth.xml.in Makefile ${top_builddir}/config.status
75 $(MAKE) do-build-file FILE=$@
77 resolver-simple.xml: ${srcdir}/resolver-simple.xml.in Makefile ${top_builddir}/config.status
78 $(MAKE) do-build-file FILE=$@
80 example-metadata.xml: ${srcdir}/example-metadata.xml.in Makefile ${top_builddir}/config.status
81 $(MAKE) do-build-file FILE=$@
83 all-data-local: $(BUILTCONFIGFILES)
85 install-data-local: all-data-local
86 $(mkinstalldirs) $(DESTDIR)$(pkglogdir)
87 $(mkinstalldirs) $(DESTDIR)$(shirelogdir)
88 $(mkinstalldirs) $(DESTDIR)$(varrundir)
89 $(mkinstalldirs) $(DESTDIR)$(pkgxmldir)
90 $(mkinstalldirs) $(DESTDIR)$(prefix)/data
91 $(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir)
92 for f in $(BUILTCONFIGFILES); do \
93 if test ! -f $(DESTDIR)${pkgsysconfdir}/$$f; then \
94 $(INSTALL_DATA) $$f $(DESTDIR)${pkgsysconfdir}; \
96 $(INSTALL_DATA) $$f $(DESTDIR)${pkgsysconfdir}/$$f.dist; \
98 for f in $(CONFIGFILES); do \
99 if test ! -f $(DESTDIR)${pkgsysconfdir}/$$f; then \
100 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)${pkgsysconfdir}; \
102 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)${pkgsysconfdir}/$$f.dist; \
113 resolver-simple.xml \
116 EXTRA_DIST = .cvsignore \
131 resolver-simple.xml.in \
132 example-metadata.xml.in \