Makefile.in revision 0a2212da6843659e65c378c5201e6612be625731
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversSUBDIRS = srclib os server modules support
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversCLEAN_SUBDIRS = test
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 $(BUILTIN_LIBS) \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers $(MPM_LIB) \
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 \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay SieversDISTCLEAN_TARGETS = include/ap_config_auto.h include/ap_config_layout.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 HerrmannEXTRACLEAN_TARGETS = configure include/ap_config_auto.h.in generated_lists \
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid Herrmanninclude $(top_builddir)/build/rules.mk
b17de8449c3ce26031d5bb7dec1086b56e51ac9bDavid Herrmanninclude $(top_srcdir)/build/program.mk
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); \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers for j in $(top_srcdir)/docs/conf $(top_builddir)/docs/conf ; do \
fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54Zbigniew Jędrzejewski-Szmek if [ -f $$i ] ; then \
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' \
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' \
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"; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer echo "#LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
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 ) > $(DESTDIR)$(sysconfdir)/original/$$i; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers chmod 0644 $(DESTDIR)$(sysconfdir)/original/$$i; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if [ "$$i" = "httpd.conf" ]; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers file=`echo $$i|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if test ! -f $(DESTDIR)$(sysconfdir)/$$file; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(INSTALL_DATA) $(DESTDIR)$(sysconfdir)/original/$$i $(DESTDIR)$(sysconfdir)/$$file; \
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 ; \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt# Create a sanitized config_vars.mk
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer @$(SHELL) build/config_vars.sh < build/config_vars.mk > 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 @for f in $(top_builddir)/config.nice \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt $(top_srcdir)/build/instdso.sh; do \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt $(INSTALL_PROGRAM) $$f $(DESTDIR)$(installbuilddir); \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer @$(INSTALL_DATA) build/config_vars.out $(DESTDIR)$(installbuilddir)/config_vars.mk
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitthtdocs-srcdir = $(top_srcdir)/docs/docroot
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt @if test -d $(top_srcdir)/docs/manual/build; then \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt cd $(top_srcdir)/docs/manual/build && ./build.sh all; \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt echo 'For details on generating the docs, please read:'; \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt echo ' http://httpd.apache.org/docs-project/docsformat.html'; \
c5b7838ddeae1fcd5c613ea15f04918b945823e5Martin Pitt doxygen $(top_srcdir)/docs/doxygen.conf
51c0c2869845a058268d54c3111d55d0dd485704Peter Huttererinstall-htdocs:
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer -@if [ -d $(DESTDIR)$(htdocsdir) ]; then \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer echo "[PRESERVING EXISTING HTDOCS SUBDIR: $(DESTDIR)$(htdocsdir)]"; \
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)/; \
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; \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sieversinstall-error:
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers -@if [ -d $(DESTDIR)$(errordir) ]; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers echo "[PRESERVING EXISTING ERROR SUBDIR: $(DESTDIR)$(errordir)]"; \
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 -@if [ -d $(DESTDIR)$(iconsdir) ]; then \
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1Kay Sievers echo "[PRESERVING EXISTING ICONS SUBDIR: $(DESTDIR)$(iconsdir)]"; \
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; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer -@if [ -d $(DESTDIR)$(cgidir) ];then \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer echo "[PRESERVING EXISTING CGI SUBDIR: $(DESTDIR)$(cgidir)]"; \
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; \
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); \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers if test -f $$file; then \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers cp -p $$file $(DESTDIR)$(bindir); \
51c0c2869845a058268d54c3111d55d0dd485704Peter HuttererINSTALL_HEADERS = \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer include/*.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/include/*.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/os/$(OS_DIR)/os.h \
aedc2eddd16e48d468e6ad0aea2caf00c7d37365Kay Sievers $(srcdir)/os/$(OS_DIR)/*.h
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 @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 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 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; \
51c0c2869845a058268d54c3111d55d0dd485704Peter Hutterer cd support && $(MAKE) suexec
51c0c2869845a058268d54c3111d55d0dd485704Peter Huttererx-local-distclean:
aba248ee6b1eb10baf3d89eca2ad7569459af6abHans de Goede# XXX: This looks awfully platform-specific [read: bad form and style]
51c0c2869845a058268d54c3111d55d0dd485704Peter Huttererinclude $(top_srcdir)/os/os2/core.mk