2 SUBDIRS
= srclib os server modules support
5 PROGRAM_NAME
= $(progname
)
6 PROGRAM_SOURCES
= modules.c
7 PROGRAM_LDADD
= buildmark.o
$(HTTPD_LDFLAGS
) $(PROGRAM_DEPENDENCIES
) $(EXTRA_LIBS
) $(AP_LIBS
) $(LIBS
)
8 PROGRAM_PRELINK
= $(COMPILE
) -c
$(top_srcdir
)/server
/buildmark.c
9 PROGRAM_DEPENDENCIES
= \
15 PROGRAMS
= $(PROGRAM_NAME
)
16 TARGETS
= $(PROGRAMS
) $(shared_build
) $(other_targets
)
17 INSTALL_TARGETS
= install-conf install-htdocs install-error install-icons \
18 install-other install-cgi install-include install-suexec install-build \
21 DISTCLEAN_TARGETS
= include/ap_config_auto.h
include/ap_config_layout.h \
22 modules.c config.cache config.log config.status build
/config_vars.mk \
23 build
/rules.mk docs
/conf
/httpd.conf docs
/conf
/extra
/*.conf shlibtool \
24 build
/pkg
/pkginfo build
/config_vars.sh
25 EXTRACLEAN_TARGETS
= configure
include/ap_config_auto.h.in generated_lists \
28 include $(top_builddir
)/build
/rules.mk
29 include $(top_srcdir
)/build
/program.mk
32 @echo Installing configuration files
33 @
$(MKINSTALLDIRS
) $(DESTDIR
)$(sysconfdir
) $(DESTDIR
)$(sysconfdir
)/extra
34 @
$(MKINSTALLDIRS
) $(DESTDIR
)$(sysconfdir
)/original
/extra
35 @cd
$(top_srcdir
)/docs
/conf
; \
36 for i in mime.types magic
; do \
37 if
test ! -f
$(DESTDIR
)$(sysconfdir
)/$$i; then \
38 $(INSTALL_DATA
) $$i $(DESTDIR
)$(sysconfdir
); \
41 for j in
$(top_srcdir
)/docs
/conf
$(top_builddir
)/docs
/conf
; do \
43 for i in httpd.conf extra
/httpd-
*.conf
; do \
44 if
[ -f
$$i ] ; then \
46 n_lm
=`awk 'BEGIN {n=0} /@@LoadModule@@/ {n+=1} END {print n}' < $$i`; \
47 if
test $$n_lm -eq
0 -o
"x$(DSO_MODULES)" = "x"; then \
48 sed
-e
's#@@ServerRoot@@#$(prefix)#g' \
49 -e
's#@@Port@@#$(PORT)#g' \
50 -e
's#@@SSLPort@@#$(SSLPORT)#g' \
51 -e
'/@@LoadModule@@/d' \
54 sed
-n
-e
'/@@LoadModule@@/q' \
55 -e
's#@@ServerRoot@@#$(prefix)#g' \
56 -e
's#@@Port@@#$(PORT)#g' \
57 -e
's#@@SSLPort@@#$(SSLPORT)#g' \
60 for j in
$(DSO_MODULES
) "^EOL^"; do \
61 if
test $$j != "^EOL^"; then \
62 echo
"LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
65 sed
-e
'1,/@@LoadModule@@/d' \
66 -e
'/@@LoadModule@@/d' \
67 -e
's#@@ServerRoot@@#$(prefix)#g' \
68 -e
's#@@Port@@#$(PORT)#g' \
69 -e
's#@@SSLPort@@#$(SSLPORT)#g' \
72 ) > $(DESTDIR
)$(sysconfdir
)/original
/$$i; \
73 chmod
0644 $(DESTDIR
)$(sysconfdir
)/original
/$$i; \
75 if
[ "$$i" = "httpd.conf" ]; then \
76 file
=`echo $$i|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
78 if
test ! -f
$(DESTDIR
)$(sysconfdir
)/$$file; then \
79 $(INSTALL_DATA
) $(DESTDIR
)$(sysconfdir
)/original
/$$i $(DESTDIR
)$(sysconfdir
)/$$file; \
84 if
test -f
"$(builddir)/envvars-std"; then \
85 cp
-p envvars-std
$(DESTDIR
)$(sbindir
); \
86 if
test ! -f
$(DESTDIR
)$(sbindir
)/envvars
; then \
87 cp
-p envvars-std
$(DESTDIR
)$(sbindir
)/envvars
; \
91 # Create a sanitized config_vars.mk
92 build
/config_vars.out
: build
/config_vars.mk
93 @
$(SHELL
) build
/config_vars.sh
< build
/config_vars.mk
> build
/config_vars.out
95 install-build
: build
/config_vars.out
96 @echo Installing build system files
97 @
$(MKINSTALLDIRS
) $(DESTDIR
)$(installbuilddir
)
98 @for f in
$(top_srcdir
)/build
/*.mk build
/*.mk
; do \
99 $(INSTALL_DATA
) $$f $(DESTDIR
)$(installbuilddir
); \
101 @for f in
$(top_builddir
)/config.nice \
102 $(top_srcdir
)/build
/mkdir.sh \
103 $(top_srcdir
)/build
/instdso.sh
; do \
104 $(INSTALL_PROGRAM
) $$f $(DESTDIR
)$(installbuilddir
); \
106 @
$(INSTALL_DATA
) build
/config_vars.out
$(DESTDIR
)$(installbuilddir
)/config_vars.mk
107 @
rm build
/config_vars.out
109 htdocs-srcdir
= $(top_srcdir
)/docs
/docroot
112 @if
test -d
$(top_srcdir
)/docs
/manual
/build
; then \
113 cd
$(top_srcdir
)/docs
/manual
/build
&& .
/build.sh
all; \
115 echo
'For details on generating the docs, please read:'; \
116 echo
' http://httpd.apache.org/docs-project/docsformat.html'; \
120 doxygen
$(top_srcdir
)/docs
/doxygen.conf
123 -@if
[ -d
$(DESTDIR
)$(htdocsdir
) ]; then \
124 echo
"[PRESERVING EXISTING HTDOCS SUBDIR: $(DESTDIR)$(htdocsdir)]"; \
126 echo Installing HTML documents
; \
127 $(MKINSTALLDIRS
) $(DESTDIR
)$(htdocsdir
) ; \
128 if
test -d
$(htdocs-srcdir
) && test "x$(RSYNC)" != "x" && test -x
$(RSYNC
) ; then \
129 $(RSYNC
) --exclude .svn
-rlpt
--numeric-ids
$(htdocs-srcdir
)/ $(DESTDIR
)$(htdocsdir
)/; \
131 test -d
$(htdocs-srcdir
) && (cd
$(htdocs-srcdir
) && cp
-rp
* $(DESTDIR
)$(htdocsdir
)) ; \
132 cd
$(DESTDIR
)$(htdocsdir
) && find .
-name
".svn" -type d
-print | xargs
rm -rf
2>/dev
/null || true
; \
137 -@if
[ -d
$(DESTDIR
)$(errordir
) ]; then \
138 echo
"[PRESERVING EXISTING ERROR SUBDIR: $(DESTDIR)$(errordir)]"; \
140 echo Installing error documents
; \
141 $(MKINSTALLDIRS
) $(DESTDIR
)$(errordir
) ; \
142 cd
$(top_srcdir
)/docs
/error
&& cp
-rp
* $(DESTDIR
)$(errordir
) ; \
143 test "x$(errordir)" != "x" && cd
$(DESTDIR
)$(errordir
) && find .
-name
".svn" -type d
-print | xargs
rm -rf
2>/dev
/null || true
; \
147 -@if
[ -d
$(DESTDIR
)$(iconsdir
) ]; then \
148 echo
"[PRESERVING EXISTING ICONS SUBDIR: $(DESTDIR)$(iconsdir)]"; \
150 echo Installing icons
; \
151 $(MKINSTALLDIRS
) $(DESTDIR
)$(iconsdir
) ; \
152 cd
$(top_srcdir
)/docs
/icons
&& cp
-rp
* $(DESTDIR
)$(iconsdir
) ; \
153 test "x$(iconsdir)" != "x" && cd
$(DESTDIR
)$(iconsdir
) && find .
-name
".svn" -type d
-print | xargs
rm -rf
2>/dev
/null || true
; \
157 -@if
[ -d
$(DESTDIR
)$(cgidir
) ];then \
158 echo
"[PRESERVING EXISTING CGI SUBDIR: $(DESTDIR)$(cgidir)]"; \
160 echo Installing CGIs
; \
161 $(MKINSTALLDIRS
) $(DESTDIR
)$(cgidir
) ; \
162 cd
$(top_srcdir
)/docs
/cgi-examples
&& cp
-rp
* $(DESTDIR
)$(cgidir
) ; \
163 test "x$(cgidir)" != "x" && cd
$(DESTDIR
)$(cgidir
) && find .
-name
".svn" -type d
-print | xargs
rm -rf
2>/dev
/null || true
; \
167 @
test -d
$(DESTDIR
)$(logfiledir
) ||
$(MKINSTALLDIRS
) $(DESTDIR
)$(logfiledir
)
168 @
test -d
$(DESTDIR
)$(runtimedir
) ||
$(MKINSTALLDIRS
) $(DESTDIR
)$(runtimedir
)
169 @for ext in dll x
; do \
170 file
=apachecore.
$$ext; \
171 if
test -f
$$file; then \
172 cp
-p
$$file $(DESTDIR
)$(libdir); \
176 if
test -f
$$file; then \
177 cp
-p
$$file $(DESTDIR
)$(bindir); \
182 $(srcdir)/include/*.h \
183 $(srcdir)/os
/$(OS_DIR
)/os.h \
184 $(srcdir)/server
/mpm
/$(MPM_SUBDIR_NAME
)/*.h \
185 $(srcdir)/modules
/database
/mod_dbd.h \
186 $(srcdir)/modules
/dav
/main
/mod_dav.h \
187 $(srcdir)/modules
/filters
/mod_include.h \
188 $(srcdir)/modules
/generators
/mod_cgi.h \
189 $(srcdir)/modules
/generators
/mod_status.h \
190 $(srcdir)/modules
/loggers
/mod_log_config.h \
191 $(srcdir)/modules
/mappers
/mod_rewrite.h \
192 $(srcdir)/modules
/proxy
/mod_proxy.h \
193 ${srcdir}/modules
/session
/mod_session.h \
194 $(srcdir)/modules
/ssl
/mod_ssl.h \
195 $(srcdir)/modules
/mappers
/mod_so.h \
196 $(srcdir)/modules
/mappers
/mod_rewrite.h \
197 $(srcdir)/modules
/mappers
/mod_watchdog.h \
198 $(srcdir)/modules
/cache
/mod_cache.h \
199 $(srcdir)/os
/$(OS_DIR
)/*.h
202 @echo Installing header files
203 @
$(MKINSTALLDIRS
) $(DESTDIR
)$(includedir)
204 @for hdr in
$(INSTALL_HEADERS
); do \
205 $(INSTALL_DATA
) $$hdr $(DESTDIR
)$(includedir); \
209 @echo Installing man pages and online manual
210 @
test -d
$(DESTDIR
)$(mandir) ||
$(MKINSTALLDIRS
) $(DESTDIR
)$(mandir)
211 @
test -d
$(DESTDIR
)$(mandir)/man1 ||
$(MKINSTALLDIRS
) $(DESTDIR
)$(mandir)/man1
212 @
test -d
$(DESTDIR
)$(mandir)/man8 ||
$(MKINSTALLDIRS
) $(DESTDIR
)$(mandir)/man8
213 @
test -d
$(DESTDIR
)$(manualdir
) ||
$(MKINSTALLDIRS
) $(DESTDIR
)$(manualdir
)
214 @cp
-p
$(top_srcdir
)/docs
/man
/*.1 $(DESTDIR
)$(mandir)/man1
215 @cp
-p
$(top_srcdir
)/docs
/man
/*.8 $(DESTDIR
)$(mandir)/man8
216 @if
test "x$(RSYNC)" != "x" && test -x
$(RSYNC
) ; then \
217 $(RSYNC
) --exclude .svn
-rlpt
--numeric-ids
$(top_srcdir
)/docs
/manual
/ $(DESTDIR
)$(manualdir
)/; \
219 cd
$(top_srcdir
)/docs
/manual
&& cp
-rp
* $(DESTDIR
)$(manualdir
); \
220 cd
$(DESTDIR
)$(manualdir
) && find .
-name
".svn" -type d
-print | xargs
rm -rf
2>/dev
/null || true
; \
224 @if
test -f
$(builddir
)/support
/suexec
; then \
225 test -d
$(DESTDIR
)$(sbindir
) ||
$(MKINSTALLDIRS
) $(DESTDIR
)$(sbindir
); \
226 $(INSTALL_PROGRAM
) $(top_builddir
)/support
/suexec
$(DESTDIR
)$(sbindir
); \
227 chmod
4755 $(DESTDIR
)$(sbindir
)/suexec
; \
231 cd support
&& $(MAKE
) suexec
234 @
rm -rf autom4te.cache
236 include $(top_srcdir
)/os
/os2
/core.mk