]> granicus.if.org Git - apache/blob - Makefile.in
Return "1" to apr_table_do()
[apache] / Makefile.in
1
2 SUBDIRS = srclib os server modules support
3 CLEAN_SUBDIRS = test
4
5 PROGRAM_NAME         = $(progname)
6 PROGRAM_SOURCES      = modules.c
7 PROGRAM_LDADD        = $(EXTRA_LDFLAGS) $(HTTPD_LDFLAGS) \
8                        $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
9 PROGRAM_DEPENDENCIES = \
10   $(BUILTIN_LIBS) \
11   $(MPM_LIB) \
12   server/libmain.la \
13   os/$(OS_DIR)/libos.la \
14   $(AP_LIBS)
15
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
21
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
25
26 include $(top_srcdir)/build/rules.mk
27 include $(top_srcdir)/build/program.mk
28
29 install-conf:
30         @echo Installing configuration files
31         @test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
32         @cd docs/conf; \
33         for i in mime.types magic; do \
34                 $(INSTALL_DATA) $$i $(sysconfdir); \
35         done; \
36         for i in *-std*; do \
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/`; \
44                 fi; \
45                 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
46                         $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
47                 fi; \
48         done
49
50 htdocs-srcdir = docs/docroot
51
52 docs::
53         mkdir -p ./docs/api
54         srclib/apr/build/scandoc.pl -i./build/default.pl -p./docs/api/ ./include/*.h
55
56 dox::
57         doxygen docs/doxygen.conf
58
59 install-htdocs:
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 {} \;)
66
67 install-icons:
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 {} \;)
72
73 install-cgi:
74         @echo Installing CGIs
75         @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
76         @(cd docs/cgi-examples && cp -rp * $(cgidir))
77         @(cd $(cgidir) && find . -name "CVS" -print | xargs rm -rf {} \;)
78
79 install-other:
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); \
85                 fi; \
86         done; \
87         file=httpd.dll; \
88         if test -f $$file; then \
89                 cp -p $$file $(bindir); \
90         fi;
91
92 install-include:
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); \
99         fi;
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
108
109 install-suexec:
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; \
114         fi
115
116 suexec:
117         cd support && make suexec
118
119 include $(top_srcdir)/os/os2/core.mk