]> granicus.if.org Git - apache/blob - Makefile.in
one too many deletes
[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-error install-icons \
20         install-other install-cgi install-include install-suexec install-man \
21         install-build
22
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
26
27 include $(top_srcdir)/build/rules.mk
28 include $(top_srcdir)/build/program.mk
29
30 install-conf:
31         @echo Installing configuration files
32         @test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
33         @cd docs/conf; \
34         for i in mime.types magic; do \
35                 $(INSTALL_DATA) $$i $(sysconfdir); \
36         done; \
37         for i in *-std*; do \
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/`; \
45                 fi; \
46                 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
47                         $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
48                 fi; \
49         done
50
51 install-build:
52         @echo Installing build system files 
53         @test -d $(installbuilddir) || $(MKINSTALLDIRS) $(installbuilddir) 
54         @cp config_vars.mk $(installbuilddir); \
55         cd build; \
56         cp *.mk $(installbuilddir);
57
58 htdocs-srcdir = docs/docroot
59
60 docs::
61         mkdir -p ./docs/api
62         srclib/apr/build/scandoc.pl -i./build/default.pl -p./docs/api/ ./include/*.h
63
64 dox::
65         doxygen docs/doxygen.conf
66
67 install-htdocs:
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 $(htdocsdir)/manual || $(MKINSTALLDIRS) $(htdocsdir)/manual
72         @test -d docs/manual && (cd docs/manual && cp -rp * $(htdocsdir)/manual)
73         @(cd $(htdocsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
74
75 install-error:
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 {} \;)
80
81 install-icons:
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 {} \;)
86
87 install-cgi:
88         @echo Installing CGIs
89         @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
90         @(cd docs/cgi-examples && cp -rp * $(cgidir))
91         @(cd $(cgidir) && find . -name "CVS" -print | xargs rm -rf {} \;)
92
93 install-other:
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); \
99                 fi; \
100         done; \
101         file=httpd.dll; \
102         if test -f $$file; then \
103                 cp -p $$file $(bindir); \
104         fi;
105
106 install-include:
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); \
113         fi;
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
123
124 install-man:
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
131
132 install-suexec:
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; \
137         fi
138
139 suexec:
140         cd support && make suexec
141
142 include $(top_srcdir)/os/os2/core.mk