2 SUBDIRS = srclib os server modules support
5 PROGRAM_NAME = $(progname)
6 PROGRAM_SOURCES = modules.c
7 PROGRAM_LDADD = $(EXTRA_LDFLAGS) $(HTTPD_LDFLAGS) \
8 $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
9 PROGRAM_DEPENDENCIES = \
13 os/$(OS_DIR)/libos.la \
16 PROGRAMS = $(PROGRAM_NAME)
17 TARGETS = $(PROGRAMS) $(shared_build) $(other_targets)
18 PHONY_TARGETS = $(srcdir)/buildmark.c
19 INSTALL_TARGETS = install-conf install-htdocs install-icons install-other \
20 install-cgi install-include install-suexec
22 DISTCLEAN_TARGETS = include/ap_config_auto.h include/ap_config_path.h \
23 modules.c config.cache config.log config.status config_vars.mk
24 EXTRACLEAN_TARGETS = configure include/ap_config_auto.h.in generated_lists
26 include $(top_srcdir)/build/rules.mk
27 include $(top_srcdir)/build/program.mk
30 @echo Installing configuration files
31 @test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
33 for i in mime.types magic; do \
34 $(INSTALL_DATA) $$i $(sysconfdir); \
37 sed -e 's#@@ServerRoot@@#$(prefix)#g' \
38 -e 's#@@Port@@#$(PORT)#g' \
39 < $$i > $(sysconfdir)/$$i; \
40 chmod 0644 $(sysconfdir)/$$i; \
41 file=`echo $$i|sed s/-std//`; \
42 if [ "$$file" = "httpd.conf" ]; then \
43 file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
45 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
46 $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
50 htdocs-srcdir = docs/docroot
54 srclib/apr/build/scandoc.pl -i./build/default.pl -p./docs/api/ ./include/*.h
57 doxygen docs/doxygen.conf
60 @echo Installing HTML documents
61 @test -d $(htdocsdir) || $(MKINSTALLDIRS) $(htdocsdir)
62 @test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
63 @test -d $(htdocsdir)/manual || $(MKINSTALLDIRS) $(htdocsdir)/manual
64 @test -d docs/manual && (cd docs/manual && cp -rp * $(htdocsdir)/manual)
65 @(cd $(htdocsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
68 @echo Installing icons
69 @test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
70 @(cd docs/icons && cp -rp * $(iconsdir))
71 @(cd $(iconsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
75 @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
76 @(cd docs/cgi-examples && cp -rp * $(cgidir))
77 @(cd $(cgidir) && find . -name "CVS" -print | xargs rm -rf {} \;)
80 @test -d $(logfiledir) || $(MKINSTALLDIRS) $(logfiledir)
81 @for ext in dll x; do \
82 file=apachecore.$$ext; \
83 if test -f $$file; then \
84 cp -p $$file $(bindir); \
88 if test -f $$file; then \
89 cp -p $$file $(bindir); \
93 @echo Installing header files
94 @test -d $(includedir) || $(MKINSTALLDIRS) $(includedir)
95 @cp -p include/*.h $(srcdir)/include/*.h $(includedir)
96 @cp -p $(srcdir)/os/$(OS_DIR)/os.h $(includedir)
97 @if test -f $(srcdir)/os/$(OS_DIR)/os-inline.c; then \
98 cp -p $(srcdir)/os/$(OS_DIR)/os-inline.c $(includedir); \
100 @cp -p $(srcdir)/server/mpm/$(MPM_NAME)/*.h $(includedir)
101 @cp -p $(srcdir)/modules/dav/main/mod_dav.h $(includedir)
102 @cp -p $(srcdir)/modules/filters/mod_include.h $(includedir)
103 @cp -p $(srcdir)/srclib/pcre/*.h $(includedir)
104 @cp -p $(srcdir)/srclib/apr/include/*.h $(includedir)
105 @cp -p $(srcdir)/srclib/apr-util/include/*.h $(includedir)
106 @cp -p $(srcdir)/os/$(OS_DIR)/*.h $(includedir)
107 @chmod 644 $(includedir)/*.h
110 @if test -f $(builddir)/support/suexec; then \
111 test -d $(sbindir) || $(MKINSTALLDIRS) $(sbindir); \
112 cp -p $(srcdir)/support/suexec $(sbindir); \
113 chmod 4755 $(sbindir)/suexec; \
117 cd support && make suexec
119 include $(top_srcdir)/os/os2/core.mk