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-error install-icons \
20 install-other install-cgi install-include install-suexec install-man \
23 DISTCLEAN_TARGETS = include/ap_config_auto.h include/ap_config_path.h \
24 modules.c config.cache config.log config.status config_vars.mk
25 EXTRACLEAN_TARGETS = configure include/ap_config_auto.h.in generated_lists
27 include $(top_srcdir)/build/rules.mk
28 include $(top_srcdir)/build/program.mk
31 @echo Installing configuration files
32 @test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
34 for i in mime.types magic; do \
35 $(INSTALL_DATA) $$i $(sysconfdir); \
38 sed -e 's#@@ServerRoot@@#$(prefix)#g' \
39 -e 's#@@Port@@#$(PORT)#g' \
40 < $$i > $(sysconfdir)/$$i; \
41 chmod 0644 $(sysconfdir)/$$i; \
42 file=`echo $$i|sed s/-std//`; \
43 if [ "$$file" = "httpd.conf" ]; then \
44 file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
46 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
47 $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
52 @echo Installing build system files
53 @test -d $(installbuilddir) || $(MKINSTALLDIRS) $(installbuilddir)
54 @cp config_vars.mk $(installbuilddir); \
56 cp *.mk $(installbuilddir);
58 htdocs-srcdir = docs/docroot
62 srclib/apr/build/scandoc.pl -i./build/default.pl -p./docs/api/ ./include/*.h
65 doxygen docs/doxygen.conf
68 @echo Installing HTML documents
69 @test -d $(htdocsdir) || $(MKINSTALLDIRS) $(htdocsdir)
70 @test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
71 @test -d $(prefix)/manual || $(MKINSTALLDIRS) $(prefix)/manual
72 @test -d docs/manual && (cd docs/manual && cp -rp * $(prefix)/manual)
73 @(cd $(htdocsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
76 @echo Installing error documents
77 @test -d $(errordir) || $(MKINSTALLDIRS) $(errordir)
78 @(cd docs/error && cp -rp * $(errordir))
79 @(cd $(errordir) && find . -name "CVS" -print | xargs rm -rf {} \;)
82 @echo Installing icons
83 @test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
84 @(cd docs/icons && cp -rp * $(iconsdir))
85 @(cd $(iconsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
89 @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
90 @(cd docs/cgi-examples && cp -rp * $(cgidir))
91 @(cd $(cgidir) && find . -name "CVS" -print | xargs rm -rf {} \;)
94 @test -d $(logfiledir) || $(MKINSTALLDIRS) $(logfiledir)
95 @for ext in dll x; do \
96 file=apachecore.$$ext; \
97 if test -f $$file; then \
98 cp -p $$file $(bindir); \
102 if test -f $$file; then \
103 cp -p $$file $(bindir); \
107 @echo Installing header files
108 @test -d $(includedir) || $(MKINSTALLDIRS) $(includedir)
109 @cp -p include/*.h $(srcdir)/include/*.h $(includedir)
110 @cp -p $(srcdir)/os/$(OS_DIR)/os.h $(includedir)
111 @if test -f $(srcdir)/os/$(OS_DIR)/os-inline.c; then \
112 cp -p $(srcdir)/os/$(OS_DIR)/os-inline.c $(includedir); \
114 @cp -p $(srcdir)/server/mpm/$(MPM_NAME)/*.h $(includedir)
115 @cp -p $(srcdir)/modules/dav/main/mod_dav.h $(includedir)
116 @cp -p $(srcdir)/modules/filters/mod_include.h $(includedir)
117 @cp -p $(srcdir)/modules/ssl/*.h $(includedir)
118 @cp -p $(srcdir)/srclib/pcre/*.h $(includedir)
119 @cp -p $(srcdir)/srclib/apr/include/*.h $(includedir)
120 @cp -p $(srcdir)/srclib/apr-util/include/*.h $(includedir)
121 @cp -p $(srcdir)/os/$(OS_DIR)/*.h $(includedir)
122 @chmod 644 $(includedir)/*.h
125 @echo Installing man pages
126 @test -d $(mandir) || $(MKINSTALLDIRS) $(mandir)
127 @test -d $(mandir)/man1 || $(MKINSTALLDIRS) $(mandir)/man1
128 @test -d $(mandir)/man8 || $(MKINSTALLDIRS) $(mandir)/man8
129 @cp -p docs/man/*.1 $(mandir)/man1
130 @cp -p docs/man/*.8 $(mandir)/man8
133 @if test -f $(builddir)/support/suexec; then \
134 test -d $(sbindir) || $(MKINSTALLDIRS) $(sbindir); \
135 cp -p $(srcdir)/support/suexec $(sbindir); \
136 chmod 4755 $(sbindir)/suexec; \
140 cd support && make suexec
142 include $(top_srcdir)/os/os2/core.mk