blob: 8a3dffc20755598ab8174fd96b0c0c04d4f86629 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
SUBDIRS = srclib os server modules support
CLEAN_SUBDIRS = test
PROGRAM_NAME = $(progname)
PROGRAM_SOURCES = modules.c
PROGRAM_LDADD = $(EXTRA_LDFLAGS) $(HTTPD_LDFLAGS) \
$(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
PROGRAM_DEPENDENCIES = \
$(BUILTIN_LIBS) \
$(MPM_LIB) \
server/libmain.la \
os/$(OS_DIR)/libos.la \
$(AP_LIBS)
PROGRAMS = $(PROGRAM_NAME)
TARGETS = $(PROGRAMS) $(shared_build) $(other_targets)
PHONY_TARGETS = $(srcdir)/buildmark.c
INSTALL_TARGETS = install-conf install-htdocs install-error install-icons \
install-other install-cgi install-include install-suexec install-man \
install-build
DISTCLEAN_TARGETS = include/ap_config_auto.h include/ap_config_path.h \
modules.c config.cache config.log config.status config_vars.mk
EXTRACLEAN_TARGETS = configure include/ap_config_auto.h.in generated_lists
include $(top_srcdir)/build/rules.mk
include $(top_srcdir)/build/program.mk
install-conf:
@echo Installing configuration files
@test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
@cd docs/conf; \
for i in mime.types magic; do \
$(INSTALL_DATA) $$i $(sysconfdir); \
done; \
for i in *-std*; do \
sed -e 's#@@ServerRoot@@#$(prefix)#g' \
-e 's#@@Port@@#$(PORT)#g' \
< $$i > $(sysconfdir)/$$i; \
chmod 0644 $(sysconfdir)/$$i; \
file=`echo $$i|sed s/-std//`; \
if [ "$$file" = "httpd.conf" ]; then \
file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
fi; \
if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
$(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
fi; \
done
install-build:
@echo Installing build system files
@test -d $(installbuilddir) || $(MKINSTALLDIRS) $(installbuilddir)
@cp config_vars.mk $(installbuilddir); \
cd build; \
cp *.mk $(installbuilddir);
htdocs-srcdir = docs/docroot
docs::
mkdir -p ./docs/api
srclib/apr/build/scandoc.pl -i./build/default.pl -p./docs/api/ ./include/*.h
dox::
doxygen docs/doxygen.conf
install-htdocs:
@echo Installing HTML documents
@test -d $(htdocsdir) || $(MKINSTALLDIRS) $(htdocsdir)
@test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
@test -d $(htdocsdir)/manual || $(MKINSTALLDIRS) $(htdocsdir)/manual
@test -d docs/manual && (cd docs/manual && cp -rp * $(htdocsdir)/manual)
@(cd $(htdocsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
install-error:
@echo Installing error documents
@test -d $(errordir) || $(MKINSTALLDIRS) $(errordir)
@(cd docs/error && cp -rp * $(errordir))
@(cd $(errordir) && find . -name "CVS" -print | xargs rm -rf {} \;)
install-icons:
@echo Installing icons
@test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
@(cd docs/icons && cp -rp * $(iconsdir))
@(cd $(iconsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
install-cgi:
@echo Installing CGIs
@test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
@(cd docs/cgi-examples && cp -rp * $(cgidir))
@(cd $(cgidir) && find . -name "CVS" -print | xargs rm -rf {} \;)
install-other:
@test -d $(logfiledir) || $(MKINSTALLDIRS) $(logfiledir)
@for ext in dll x; do \
file=apachecore.$$ext; \
if test -f $$file; then \
cp -p $$file $(bindir); \
fi; \
done; \
file=httpd.dll; \
if test -f $$file; then \
cp -p $$file $(bindir); \
fi;
install-include:
@echo Installing header files
@test -d $(includedir) || $(MKINSTALLDIRS) $(includedir)
@cp -p include/*.h $(srcdir)/include/*.h $(includedir)
@cp -p $(srcdir)/os/$(OS_DIR)/os.h $(includedir)
@if test -f $(srcdir)/os/$(OS_DIR)/os-inline.c; then \
cp -p $(srcdir)/os/$(OS_DIR)/os-inline.c $(includedir); \
fi;
@cp -p $(srcdir)/server/mpm/$(MPM_NAME)/*.h $(includedir)
@cp -p $(srcdir)/modules/dav/main/mod_dav.h $(includedir)
@cp -p $(srcdir)/modules/filters/mod_include.h $(includedir)
@cp -p $(srcdir)/modules/ssl/*.h $(includedir)
@cp -p $(srcdir)/srclib/pcre/*.h $(includedir)
@cp -p $(srcdir)/srclib/apr/include/*.h $(includedir)
@cp -p $(srcdir)/srclib/apr-util/include/*.h $(includedir)
@cp -p $(srcdir)/os/$(OS_DIR)/*.h $(includedir)
@chmod 644 $(includedir)/*.h
install-man:
@echo Installing man pages
@test -d $(mandir) || $(MKINSTALLDIRS) $(mandir)
@test -d $(mandir)/man1 || $(MKINSTALLDIRS) $(mandir)/man1
@test -d $(mandir)/man8 || $(MKINSTALLDIRS) $(mandir)/man8
@cp -p docs/man/*.1 $(mandir)/man1
@cp -p docs/man/*.8 $(mandir)/man8
install-suexec:
@if test -f $(builddir)/support/suexec; then \
test -d $(sbindir) || $(MKINSTALLDIRS) $(sbindir); \
cp -p $(srcdir)/support/suexec $(sbindir); \
chmod 4755 $(sbindir)/suexec; \
fi
suexec:
cd support && make suexec
include $(top_srcdir)/os/os2/core.mk
|