Makefile.in revision 0a2212da6843659e65c378c5201e6612be625731
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversSUBDIRS = srclib os server modules support
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversCLEAN_SUBDIRS = test
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversPROGRAM_NAME = $(progname)
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversPROGRAM_SOURCES = modules.c
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversPROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(PCRE_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversPROGRAM_PRELINK = $(COMPILE) -c $(top_srcdir)/server/buildmark.c
51c0c2869845a058268d54c3111d55d0dd485704Peter HuttererPROGRAM_DEPENDENCIES = \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers server/libmain.la \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers $(BUILTIN_LIBS) \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers $(MPM_LIB) \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers os/$(OS_DIR)/libos.la
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers
b26e4ced91d0ac0eabdce1c505228ccafc65a23fDavid HerrmannPROGRAMS = $(PROGRAM_NAME)
51c0c2869845a058268d54c3111d55d0dd485704Peter HuttererTARGETS = $(PROGRAMS) $(shared_build) $(other_targets)
b26e4ced91d0ac0eabdce1c505228ccafc65a23fDavid HerrmannINSTALL_TARGETS = install-conf install-htdocs install-error install-icons \
b26e4ced91d0ac0eabdce1c505228ccafc65a23fDavid Herrmann install-other install-cgi install-include install-suexec install-build \
b26e4ced91d0ac0eabdce1c505228ccafc65a23fDavid Herrmann install-man
b26e4ced91d0ac0eabdce1c505228ccafc65a23fDavid Herrmann
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversDISTCLEAN_TARGETS = include/ap_config_auto.h include/ap_config_layout.h \
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid Herrmann include/apache_probes.h \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer modules.c config.cache config.log config.status build/config_vars.mk \
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid Herrmann build/rules.mk docs/conf/httpd.conf docs/conf/extra/*.conf shlibtool \
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid Herrmann build/pkg/pkginfo build/config_vars.sh
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid HerrmannEXTRACLEAN_TARGETS = configure include/ap_config_auto.h.in generated_lists \
ba76ee29bc02879fb42c048132af8889b00220d5David Herrmann httpd.spec
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid Herrmanninclude $(top_builddir)/build/rules.mk
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid Herrmanninclude $(top_srcdir)/build/program.mk
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid Herrmann
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sieversinstall-conf:
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek @echo Installing configuration files
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek @$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(sysconfdir)/extra
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek @$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir)/original/extra
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek @cd $(top_srcdir)/docs/conf; \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers for i in mime.types magic; do \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek fi; \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek done; \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers for j in $(top_srcdir)/docs/conf $(top_builddir)/docs/conf ; do \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers cd $$j ; \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers for i in httpd.conf extra/httpd-*.conf; do \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek if [ -f $$i ] ; then \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek ( \
24a4501d70e60f15c074e9f5bda46a7fbc5735e5Peter Hutterer n_lm=`awk 'BEGIN {n=0} /@@LoadModule@@/ {n+=1} END {print n}' < $$i`; \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek if test $$n_lm -eq 0 -o "x$(DSO_MODULES)" = "x"; then \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek sed -e 's#@@ServerRoot@@#$(prefix)#g' \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek -e 's#@@Port@@#$(PORT)#g' \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek -e 's#@@SSLPort@@#$(SSLPORT)#g' \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek -e '/@@LoadModule@@/d' \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek < $$i; \
195c9e37fcb1273b92e2cdacc1d0aa573bf7a92dZbigniew Jędrzejewski-Szmek else \
195c9e37fcb1273b92e2cdacc1d0aa573bf7a92dZbigniew Jędrzejewski-Szmek sed -n -e '/@@LoadModule@@/q' \
195c9e37fcb1273b92e2cdacc1d0aa573bf7a92dZbigniew Jędrzejewski-Szmek -e 's#@@ServerRoot@@#$(prefix)#g' \
195c9e37fcb1273b92e2cdacc1d0aa573bf7a92dZbigniew Jędrzejewski-Szmek -e 's#@@Port@@#$(PORT)#g' \
195c9e37fcb1273b92e2cdacc1d0aa573bf7a92dZbigniew Jędrzejewski-Szmek -e 's#@@SSLPort@@#$(SSLPORT)#g' \
52bd587fe7ff7ab29a56efe7f5cf5c82de74ca0bChris Atkinson -e 'p' \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers < $$i; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers for j in $(DSO_MODULES) "^EOL^"; do \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if test $$j != "^EOL^"; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if echo "$(ENABLED_DSO_MODULES)"|$(EGREP) "\<$$j\>" > /dev/null ; then \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers echo "LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt else \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer echo "#LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer fi; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer fi; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers done; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers sed -e '1,/@@LoadModule@@/d' \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers -e '/@@LoadModule@@/d' \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers -e 's#@@ServerRoot@@#$(prefix)#g' \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt -e 's#@@Port@@#$(PORT)#g' \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers -e 's#@@SSLPort@@#$(SSLPORT)#g' \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers < $$i; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers ) > $(DESTDIR)$(sysconfdir)/original/$$i; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers chmod 0644 $(DESTDIR)$(sysconfdir)/original/$$i; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers file=$$i; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if [ "$$i" = "httpd.conf" ]; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers file=`echo $$i|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if test ! -f $(DESTDIR)$(sysconfdir)/$$file; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(INSTALL_DATA) $(DESTDIR)$(sysconfdir)/original/$$i $(DESTDIR)$(sysconfdir)/$$file; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers done ; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers done ; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if test -f "$(builddir)/envvars-std"; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers cp -p envvars-std $(DESTDIR)$(sbindir); \
42a9de1c2513aa348df369080cdd941ef4ab00abMartin Pitt if test ! -f $(DESTDIR)$(sbindir)/envvars; then \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
84a122a008e06901ce2d1d3941864afce8fd5d15Kay Sievers fi ; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer fi
90e633a7901060063e62bf53948c4c239a9f55d1Jason St. John
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt# Create a sanitized config_vars.mk
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pittbuild/config_vars.out: build/config_vars.mk
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer @$(SHELL) build/config_vars.sh < build/config_vars.mk > build/config_vars.out
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pittinstall-build: build/config_vars.out
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt @echo Installing build system files
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt @$(MKINSTALLDIRS) $(DESTDIR)$(installbuilddir)
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer @for f in $(top_srcdir)/build/*.mk build/*.mk; do \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer $(INSTALL_DATA) $$f $(DESTDIR)$(installbuilddir); \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt done
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt @for f in $(top_builddir)/config.nice \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer $(top_srcdir)/build/mkdir.sh \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt $(top_srcdir)/build/instdso.sh; do \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt $(INSTALL_PROGRAM) $$f $(DESTDIR)$(installbuilddir); \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt done
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer @$(INSTALL_DATA) build/config_vars.out $(DESTDIR)$(installbuilddir)/config_vars.mk
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer @rm build/config_vars.out
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitthtdocs-srcdir = $(top_srcdir)/docs/docroot
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pittdocs:
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt @if test -d $(top_srcdir)/docs/manual/build; then \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt cd $(top_srcdir)/docs/manual/build && ./build.sh all; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer else \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt echo 'For details on generating the docs, please read:'; \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt echo ' http://httpd.apache.org/docs-project/docsformat.html'; \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt fi
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pittdox:
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt doxygen $(top_srcdir)/docs/doxygen.conf
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt
51c0c2869845a058268d54c3111d55d0dd485704Peter Huttererinstall-htdocs:
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer -@if [ -d $(DESTDIR)$(htdocsdir) ]; then \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer echo "[PRESERVING EXISTING HTDOCS SUBDIR: $(DESTDIR)$(htdocsdir)]"; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer else \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer echo Installing HTML documents ; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer $(MKINSTALLDIRS) $(DESTDIR)$(htdocsdir) ; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer if test -d $(htdocs-srcdir) && test "x$(RSYNC)" != "x" && test -x $(RSYNC) ; then \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer $(RSYNC) --exclude .svn -rlpt --numeric-ids $(htdocs-srcdir)/ $(DESTDIR)$(htdocsdir)/; \
2dd30e7da94b32df03451df8cf602e9454a376cbKay Sievers else \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(DESTDIR)$(htdocsdir)) ; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer cd $(DESTDIR)$(htdocsdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
1e091c1285b59d0fbab58e6e5113ad111bc08794Martin Pitt fi; \
1e091c1285b59d0fbab58e6e5113ad111bc08794Martin Pitt fi
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sieversinstall-error:
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers -@if [ -d $(DESTDIR)$(errordir) ]; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers echo "[PRESERVING EXISTING ERROR SUBDIR: $(DESTDIR)$(errordir)]"; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer else \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers echo Installing error documents ; \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers $(MKINSTALLDIRS) $(DESTDIR)$(errordir) ; \
aa75494ad5cdf7bede947212ad8c8356d78580faMario Limonciello cd $(top_srcdir)/docs/error && cp -rp * $(DESTDIR)$(errordir) ; \
aa75494ad5cdf7bede947212ad8c8356d78580faMario Limonciello test "x$(errordir)" != "x" && cd $(DESTDIR)$(errordir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
aa75494ad5cdf7bede947212ad8c8356d78580faMario Limonciello fi
aa75494ad5cdf7bede947212ad8c8356d78580faMario Limonciello
aa75494ad5cdf7bede947212ad8c8356d78580faMario Limoncielloinstall-icons:
aa75494ad5cdf7bede947212ad8c8356d78580faMario Limonciello -@if [ -d $(DESTDIR)$(iconsdir) ]; then \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers echo "[PRESERVING EXISTING ICONS SUBDIR: $(DESTDIR)$(iconsdir)]"; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers else \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers echo Installing icons ; \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers $(MKINSTALLDIRS) $(DESTDIR)$(iconsdir) ; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer cd $(top_srcdir)/docs/icons && cp -rp * $(DESTDIR)$(iconsdir) ; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers test "x$(iconsdir)" != "x" && cd $(DESTDIR)$(iconsdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sieversinstall-cgi:
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer -@if [ -d $(DESTDIR)$(cgidir) ];then \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer echo "[PRESERVING EXISTING CGI SUBDIR: $(DESTDIR)$(cgidir)]"; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer else \
90e633a7901060063e62bf53948c4c239a9f55d1Jason St. John echo Installing CGIs ; \
33e74db2667103e33f7e47277378612dcdbdfaa5Martin Pitt $(MKINSTALLDIRS) $(DESTDIR)$(cgidir) ; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers cd $(top_srcdir)/docs/cgi-examples && cp -rp * $(DESTDIR)$(cgidir) ; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers test "x$(cgidir)" != "x" && cd $(DESTDIR)$(cgidir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers
51c0c2869845a058268d54c3111d55d0dd485704Peter Huttererinstall-other:
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @test -d $(DESTDIR)$(logfiledir) || $(MKINSTALLDIRS) $(DESTDIR)$(logfiledir)
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers @test -d $(DESTDIR)$(runtimedir) || $(MKINSTALLDIRS) $(DESTDIR)$(runtimedir)
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers @for ext in dll x; do \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers file=apachecore.$$ext; \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers if test -f $$file; then \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers cp -p $$file $(DESTDIR)$(libdir); \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer fi; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers done; \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers file=httpd.dll; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if test -f $$file; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers cp -p $$file $(DESTDIR)$(bindir); \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi;
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers
51c0c2869845a058268d54c3111d55d0dd485704Peter HuttererINSTALL_HEADERS = \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer include/*.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/include/*.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/os/$(OS_DIR)/os.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/modules/arch/unix/mod_unixd.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/modules/core/mod_so.h \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers $(srcdir)/modules/core/mod_watchdog.h \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer $(srcdir)/modules/cache/mod_cache.h \
fc1ae82cae69d8dbbd9e7a31938810a486fac782Hans de Goede $(srcdir)/modules/database/mod_dbd.h \
fc1ae82cae69d8dbbd9e7a31938810a486fac782Hans de Goede $(srcdir)/modules/dav/main/mod_dav.h \
fc1ae82cae69d8dbbd9e7a31938810a486fac782Hans de Goede $(srcdir)/modules/filters/mod_include.h \
fc1ae82cae69d8dbbd9e7a31938810a486fac782Hans de Goede $(srcdir)/modules/generators/mod_cgi.h \
fc1ae82cae69d8dbbd9e7a31938810a486fac782Hans de Goede $(srcdir)/modules/generators/mod_status.h \
fc1ae82cae69d8dbbd9e7a31938810a486fac782Hans de Goede $(srcdir)/modules/loggers/mod_log_config.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/modules/mappers/mod_rewrite.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/modules/proxy/mod_proxy.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/modules/proxy/mod_serf.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers ${srcdir}/modules/session/mod_session.h \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer $(srcdir)/modules/ssl/mod_ssl.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/os/$(OS_DIR)/*.h
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sieversinstall-include:
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @echo Installing header files
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @$(MKINSTALLDIRS) $(DESTDIR)$(includedir)
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @for hdr in $(INSTALL_HEADERS); do \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(INSTALL_DATA) $$hdr $(DESTDIR)$(includedir); \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers done
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sieversinstall-man:
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @echo Installing man pages and online manual
42a9de1c2513aa348df369080cdd941ef4ab00abMartin Pitt @test -d $(DESTDIR)$(mandir) || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @test -d $(DESTDIR)$(mandir)/man1 || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @test -d $(DESTDIR)$(mandir)/man8 || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man8
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @test -d $(DESTDIR)$(manualdir) || $(MKINSTALLDIRS) $(DESTDIR)$(manualdir)
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @cp -p $(top_srcdir)/docs/man/*.1 $(DESTDIR)$(mandir)/man1
42a9de1c2513aa348df369080cdd941ef4ab00abMartin Pitt @cp -p $(top_srcdir)/docs/man/*.8 $(DESTDIR)$(mandir)/man8
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @if test "x$(RSYNC)" != "x" && test -x $(RSYNC) ; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(RSYNC) --exclude .svn -rlpt --numeric-ids $(top_srcdir)/docs/manual/ $(DESTDIR)$(manualdir)/; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers else \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers cd $(top_srcdir)/docs/manual && cp -rp * $(DESTDIR)$(manualdir); \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers cd $(DESTDIR)$(manualdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sieversinstall-suexec:
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @if test -f $(builddir)/support/suexec; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers test -d $(DESTDIR)$(sbindir) || $(MKINSTALLDIRS) $(DESTDIR)$(sbindir); \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(INSTALL_PROGRAM) $(top_builddir)/support/suexec $(DESTDIR)$(sbindir); \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers chmod 4755 $(DESTDIR)$(sbindir)/suexec; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers fi
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterersuexec:
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer cd support && $(MAKE) suexec
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer
51c0c2869845a058268d54c3111d55d0dd485704Peter Huttererx-local-distclean:
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers @rm -rf autom4te.cache
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers
aba248ee6b1eb10baf3d89eca2ad7569459af6abHans de Goede# XXX: This looks awfully platform-specific [read: bad form and style]
51c0c2869845a058268d54c3111d55d0dd485704Peter Huttererinclude $(top_srcdir)/os/os2/core.mk
aba248ee6b1eb10baf3d89eca2ad7569459af6abHans de Goede