Makefile.in revision b3aeccd394a91bef671438fa47b9ccd7cd6145a5
SUBDIRS = ap lib main modules os support $(REGEX_DIR)
PROGRAM_NAME = $(progname)
PROGRAM_SOURCES = modules.c buildmark.c
PROGRAM_LDADD = $(EXTRA_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
PROGRAM_DEPENDENCIES = \
$(BUILTIN_LIBS) \
$(MPM_LIB) \
$(OS_DIR)/libos.la \
$(REGEX_LIB)
PROGRAMS = $(PROGRAM_NAME)
targets = $(PROGRAMS)
phony_targets = buildmark.c
install_targets = install-conf install-htdocs install-icons install-other \
install-cgi install-include install-support
configure generated_lists include/ap_config_auto.h \
include $(top_srcdir)/build/rules.mk
include $(top_srcdir)/build/program.mk
install-conf:
@echo Installing configuration files
@test -d $(sysconfdir) || $(mkinstalldirs) $(sysconfdir)
@cd $(srcdir)/../conf; \
for i in mime.types magic; do \
$(INSTALL_DATA) $$i $(sysconfdir); \
done; \
for i in *-dist; do \
sed -e 's#@@ServerRoot@@#$(prefix)#g' \
< $$i > $(sysconfdir)/$$i; \
chmod 0644 $(sysconfdir)/$$i; \
file=`echo $$i|sed s/-dist//`; \
if [ "$$file" = "httpd.conf" ]; then \
file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
fi; \
if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
$(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
fi; \
done
install-htdocs:
@echo Installing HTML documents
@test -d $(htdocsdir) || $(mkinstalldirs) $(htdocsdir)
@cp -rp $(srcdir)/../htdocs/* $(htdocsdir)
install-icons:
@echo Installing icons
@test -d $(iconsdir) || $(mkinstalldirs) $(iconsdir)
@cp -rp $(srcdir)/../icons/* $(iconsdir)
install-cgi:
@echo Installing CGIs
@test -d $(cgidir) || $(mkinstalldirs) $(cgidir)
@cp -rp $(srcdir)/../cgi-bin/* $(cgidir)
install-support:
@echo Installing Support Binaries
@test -d $(bindir) || $(mkinstalldirs) $(bindir)
@cp -rp $(srcdir)/support/httpd.exp $(bindir)
@cp -rp $(srcdir)/support/htpasswd $(bindir)
@cp -rp $(srcdir)/support/htdigest $(bindir)
@cp -rp $(srcdir)/support/rotatelogs $(bindir)
@cp -rp $(srcdir)/support/logresolve $(bindir)
@cp -rp $(srcdir)/support/ab $(bindir)
install-other:
@test -d $(logdir) || $(mkinstalldirs) $(logdir)
install-include:
@echo Installing header files
@test -d $(includedir) || $(mkinstalldirs) $(includedir)
@test -d $(includedir)/xml || $(mkinstalldirs) $(includedir)/xml
@test -d $(includedir)/apr || $(mkinstalldirs) $(includedir)/apr
@cp include/*.h $(srcdir)/include/*.h $(includedir)
@cp $(srcdir)/lib/expat-lite/*.h $(includedir)/xml
@cp lib/apr/include/*.h $(srcdir)/lib/apr/include/*.h $(includedir)/apr
@chmod 644 $(includedir)/*.h $(includedir)/xml/*.h $(includedir)/apr/*.h