Makefile.in revision 6074406605dbf7a998f0c3b774fc6ef2e2607f8b
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshikiSUBDIRS = srclib os server modules support
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshikiCLEAN_SUBDIRS = test
acc36ab93565d2880447d535da6ca6e5feac7a70ndPROGRAM_NAME = $(progname)
acc36ab93565d2880447d535da6ca6e5feac7a70ndPROGRAM_SOURCES = modules.c
031b91a62d25106ae69d4693475c79618dd5e884fieldingPROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(PCRE_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
031b91a62d25106ae69d4693475c79618dd5e884fieldingPROGRAM_PRELINK = $(COMPILE) -c $(top_srcdir)/server/buildmark.c
031b91a62d25106ae69d4693475c79618dd5e884fieldingPROGRAM_DEPENDENCIES = \
031b91a62d25106ae69d4693475c79618dd5e884fielding $(BUILTIN_LIBS) \
031b91a62d25106ae69d4693475c79618dd5e884fielding $(MPM_LIB) \
acc36ab93565d2880447d535da6ca6e5feac7a70nd os/$(OS_DIR)/libos.la
acc36ab93565d2880447d535da6ca6e5feac7a70ndPROGRAMS = $(PROGRAM_NAME)
acc36ab93565d2880447d535da6ca6e5feac7a70ndTARGETS = $(PROGRAMS) $(shared_build) $(other_targets)
acc36ab93565d2880447d535da6ca6e5feac7a70ndINSTALL_TARGETS = install-conf install-htdocs install-error install-icons \
acc36ab93565d2880447d535da6ca6e5feac7a70nd install-other install-cgi install-include install-suexec install-build \
acc36ab93565d2880447d535da6ca6e5feac7a70nd install-man
acc36ab93565d2880447d535da6ca6e5feac7a70ndDISTCLEAN_TARGETS = include/ap_config_auto.h include/ap_config_layout.h \
7db9f691a00ead175b03335457ca296a33ddf31bnd modules.c config.cache config.log config.status build/config_vars.mk \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki build/rules.mk docs/conf/httpd.conf docs/conf/extra/*.conf shlibtool \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshikiEXTRACLEAN_TARGETS = configure include/ap_config_auto.h.in generated_lists \
208651a016b098f4fa1f6279559f104d70f1632dtakashiinclude $(top_builddir)/build/rules.mk
208651a016b098f4fa1f6279559f104d70f1632dtakashiinclude $(top_srcdir)/build/program.mk
208651a016b098f4fa1f6279559f104d70f1632dtakashiinstall-conf:
208651a016b098f4fa1f6279559f104d70f1632dtakashi @echo Installing configuration files
208651a016b098f4fa1f6279559f104d70f1632dtakashi @$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(sysconfdir)/extra
208651a016b098f4fa1f6279559f104d70f1632dtakashi @$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir)/original/extra
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki @cd $(top_srcdir)/docs/conf; \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki for i in mime.types magic; do \
d0e461f79912b6ba125ba7d7b0a8ed2966f0a44dyoshiki if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
d0e461f79912b6ba125ba7d7b0a8ed2966f0a44dyoshiki $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
208651a016b098f4fa1f6279559f104d70f1632dtakashi for j in $(top_srcdir)/docs/conf $(top_builddir)/docs/conf ; do \
208651a016b098f4fa1f6279559f104d70f1632dtakashi if [ -f $$i ] ; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi n_lm=`awk 'BEGIN {n=0} /@@LoadModule@@/ {n+=1} END {print n}' < $$i`; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi if test $$n_lm -eq 0 -o "x$(DSO_MODULES)" = "x"; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi sed -e 's#@@ServerRoot@@#$(prefix)#g' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi -e 's#@@Port@@#$(PORT)#g' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi -e 's#@@SSLPort@@#$(SSLPORT)#g' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi -e '/@@LoadModule@@/d' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi sed -n -e '/@@LoadModule@@/q' \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi -e 's#@@ServerRoot@@#$(prefix)#g' \
59d52c5719a3320d5775ab821b810f294e168f65yoshiki -e 's#@@Port@@#$(PORT)#g' \
59d52c5719a3320d5775ab821b810f294e168f65yoshiki -e 's#@@SSLPort@@#$(SSLPORT)#g' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi for j in $(DSO_MODULES) "^EOL^"; do \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki if test $$j != "^EOL^"; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi if echo "$(ENABLED_DSO_MODULES)"|$(EGREP) "\<$$j\>" > /dev/null ; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi echo "LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
498e8a909bc308283d3713bb348246fe51de059cyoshiki echo "#LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi sed -e '1,/@@LoadModule@@/d' \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi -e '/@@LoadModule@@/d' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi -e 's#@@ServerRoot@@#$(prefix)#g' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi -e 's#@@Port@@#$(PORT)#g' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi -e 's#@@SSLPort@@#$(SSLPORT)#g' \
208651a016b098f4fa1f6279559f104d70f1632dtakashi ) > $(DESTDIR)$(sysconfdir)/original/$$i; \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki chmod 0644 $(DESTDIR)$(sysconfdir)/original/$$i; \
498e8a909bc308283d3713bb348246fe51de059cyoshiki file=$$i; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi if [ "$$i" = "httpd.conf" ]; then \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki file=`echo $$i|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki if test ! -f $(DESTDIR)$(sysconfdir)/$$file; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(INSTALL_DATA) $(DESTDIR)$(sysconfdir)/original/$$i $(DESTDIR)$(sysconfdir)/$$file; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi if test -f "$(builddir)/envvars-std"; then \
498e8a909bc308283d3713bb348246fe51de059cyoshiki cp -p envvars-std $(DESTDIR)$(sbindir); \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki if test ! -f $(DESTDIR)$(sbindir)/envvars; then \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi# Create a sanitized config_vars.mk
208651a016b098f4fa1f6279559f104d70f1632dtakashi @$(SHELL) build/config_vars.sh < build/config_vars.mk > build/config_vars.out
208651a016b098f4fa1f6279559f104d70f1632dtakashi @echo Installing build system files
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki @$(MKINSTALLDIRS) $(DESTDIR)$(installbuilddir)
208651a016b098f4fa1f6279559f104d70f1632dtakashi @for f in $(top_srcdir)/build/*.mk build/*.mk; do \
498e8a909bc308283d3713bb348246fe51de059cyoshiki $(INSTALL_DATA) $$f $(DESTDIR)$(installbuilddir); \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki @for f in $(top_builddir)/config.nice \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(top_srcdir)/build/mkdir.sh \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(top_srcdir)/build/instdso.sh; do \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(INSTALL_PROGRAM) $$f $(DESTDIR)$(installbuilddir); \
208651a016b098f4fa1f6279559f104d70f1632dtakashi @$(INSTALL_DATA) build/config_vars.out $(DESTDIR)$(installbuilddir)/config_vars.mk
208651a016b098f4fa1f6279559f104d70f1632dtakashihtdocs-srcdir = $(top_srcdir)/docs/docroot
208651a016b098f4fa1f6279559f104d70f1632dtakashi @if test -d $(top_srcdir)/docs/manual/build; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi cd $(top_srcdir)/docs/manual/build && ./build.sh all; \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki echo 'For details on generating the docs, please read:'; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi echo ' http://httpd.apache.org/docs-project/docsformat.html'; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi doxygen $(top_srcdir)/docs/doxygen.conf
208651a016b098f4fa1f6279559f104d70f1632dtakashiinstall-htdocs:
208651a016b098f4fa1f6279559f104d70f1632dtakashi -@if [ -d $(DESTDIR)$(htdocsdir) ]; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi echo "[PRESERVING EXISTING HTDOCS SUBDIR: $(DESTDIR)$(htdocsdir)]"; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi echo Installing HTML documents ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(MKINSTALLDIRS) $(DESTDIR)$(htdocsdir) ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi if test -d $(htdocs-srcdir) && test "x$(RSYNC)" != "x" && test -x $(RSYNC) ; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(RSYNC) --exclude .svn -rlpt --numeric-ids $(htdocs-srcdir)/ $(DESTDIR)$(htdocsdir)/; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(DESTDIR)$(htdocsdir)) ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi cd $(DESTDIR)$(htdocsdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
208651a016b098f4fa1f6279559f104d70f1632dtakashiinstall-error:
208651a016b098f4fa1f6279559f104d70f1632dtakashi -@if [ -d $(DESTDIR)$(errordir) ]; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi echo "[PRESERVING EXISTING ERROR SUBDIR: $(DESTDIR)$(errordir)]"; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi echo Installing error documents ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(MKINSTALLDIRS) $(DESTDIR)$(errordir) ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi cd $(top_srcdir)/docs/error && cp -rp * $(DESTDIR)$(errordir) ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi test "x$(errordir)" != "x" && cd $(DESTDIR)$(errordir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
208651a016b098f4fa1f6279559f104d70f1632dtakashiinstall-icons:
208651a016b098f4fa1f6279559f104d70f1632dtakashi -@if [ -d $(DESTDIR)$(iconsdir) ]; then \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi echo "[PRESERVING EXISTING ICONS SUBDIR: $(DESTDIR)$(iconsdir)]"; \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi echo Installing icons ; \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi $(MKINSTALLDIRS) $(DESTDIR)$(iconsdir) ; \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi cd $(top_srcdir)/docs/icons && cp -rp * $(DESTDIR)$(iconsdir) ; \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi test "x$(iconsdir)" != "x" && cd $(DESTDIR)$(iconsdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
208651a016b098f4fa1f6279559f104d70f1632dtakashiinstall-cgi:
208651a016b098f4fa1f6279559f104d70f1632dtakashi -@if [ -d $(DESTDIR)$(cgidir) ];then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi echo "[PRESERVING EXISTING CGI SUBDIR: $(DESTDIR)$(cgidir)]"; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi echo Installing CGIs ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(MKINSTALLDIRS) $(DESTDIR)$(cgidir) ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi cd $(top_srcdir)/docs/cgi-examples && cp -rp * $(DESTDIR)$(cgidir) ; \
208651a016b098f4fa1f6279559f104d70f1632dtakashi test "x$(cgidir)" != "x" && cd $(DESTDIR)$(cgidir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshikiinstall-other:
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki @test -d $(DESTDIR)$(logfiledir) || $(MKINSTALLDIRS) $(DESTDIR)$(logfiledir)
208651a016b098f4fa1f6279559f104d70f1632dtakashi @test -d $(DESTDIR)$(runtimedir) || $(MKINSTALLDIRS) $(DESTDIR)$(runtimedir)
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki @for ext in dll x; do \
208651a016b098f4fa1f6279559f104d70f1632dtakashi file=apachecore.$$ext; \
498e8a909bc308283d3713bb348246fe51de059cyoshiki if test -f $$file; then \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki cp -p $$file $(DESTDIR)$(libdir); \
208651a016b098f4fa1f6279559f104d70f1632dtakashi if test -f $$file; then \
208651a016b098f4fa1f6279559f104d70f1632dtakashi cp -p $$file $(DESTDIR)$(bindir); \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshikiINSTALL_HEADERS = \
208651a016b098f4fa1f6279559f104d70f1632dtakashi include/*.h \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(srcdir)/include/*.h \
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki $(srcdir)/os/$(OS_DIR)/os.h \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi $(srcdir)/os/$(OS_DIR)/*.h
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashiinstall-include:
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @echo Installing header files
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @$(MKINSTALLDIRS) $(DESTDIR)$(includedir)
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @for hdr in $(INSTALL_HEADERS); do \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi $(INSTALL_DATA) $$hdr $(DESTDIR)$(includedir); \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashiinstall-man:
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @echo Installing man pages and online manual
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @test -d $(DESTDIR)$(mandir) || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @test -d $(DESTDIR)$(mandir)/man1 || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @test -d $(DESTDIR)$(mandir)/man8 || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man8
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @test -d $(DESTDIR)$(manualdir) || $(MKINSTALLDIRS) $(DESTDIR)$(manualdir)
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @cp -p $(top_srcdir)/docs/man/*.1 $(DESTDIR)$(mandir)/man1
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @cp -p $(top_srcdir)/docs/man/*.8 $(DESTDIR)$(mandir)/man8
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @if test "x$(RSYNC)" != "x" && test -x $(RSYNC) ; then \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi $(RSYNC) --exclude .svn -rlpt --numeric-ids $(top_srcdir)/docs/manual/ $(DESTDIR)$(manualdir)/; \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi cd $(top_srcdir)/docs/manual && cp -rp * $(DESTDIR)$(manualdir); \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi cd $(DESTDIR)$(manualdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashiinstall-suexec:
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi @if test -f $(builddir)/support/suexec; then \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi test -d $(DESTDIR)$(sbindir) || $(MKINSTALLDIRS) $(DESTDIR)$(sbindir); \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi $(INSTALL_PROGRAM) $(top_builddir)/support/suexec $(DESTDIR)$(sbindir); \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi chmod 4755 $(DESTDIR)$(sbindir)/suexec; \
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashi cd support && $(MAKE) suexec
11b88e5476dfb8807d3fbfc280b0ac6ea6fa53e8takashix-local-distclean:
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshiki# XXX: This looks awfully platform-specific [read: bad form and style]
0d419faf71b4d392a596273bd6cc6db401bf6ab7yoshikiinclude $(top_srcdir)/os/os2/core.mk