2 SUBDIRS = modules os server srclib support
4 PROGRAM_NAME = $(progname)
5 PROGRAM_SOURCES = modules.c
6 PROGRAM_LDADD = $(EXTRA_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
7 PROGRAM_DEPENDENCIES = \
11 os/$(OS_DIR)/libos.la \
14 PROGRAMS = $(PROGRAM_NAME)
16 phony_targets = $(srcdir)/buildmark.c
17 install_targets = install-conf install-htdocs install-icons install-other \
18 install-cgi install-include install-support
19 DISTCLEANFILES = include/config_auto.h modules.c aclocal.m4 buildmk.stamp \
20 configure generated_lists include/ap_config_auto.h \
21 include/ap_config_auto.h.in include/ap_config_path.h install-sh
23 include $(top_srcdir)/build/rules.mk
24 include $(top_srcdir)/build/program.mk
27 @echo Installing configuration files
28 @test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
30 for i in mime.types magic; do \
31 $(INSTALL_DATA) $$i $(sysconfdir); \
34 sed -e 's#@@ServerRoot@@#$(prefix)#g' \
35 -e 's#@@Port@@#$(PORT)#g' \
36 < $$i > $(sysconfdir)/$$i; \
37 chmod 0644 $(sysconfdir)/$$i; \
38 file=`echo $$i|sed s/-std//`; \
39 if [ "$$file" = "httpd.conf" ]; then \
40 file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
42 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
43 $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
47 htdocs-srcdir = docs/docroot
51 srclib/apr/helpers/scandoc -ihelpers/default.pl -p./docs/api/ ./include/*.h
54 @echo Installing HTML documents
55 @test -d $(htdocsdir) || $(MKINSTALLDIRS) $(htdocsdir)
56 @test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
59 @echo Installing icons
60 @test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
61 @(cd docs/icons && cp -rp * $(iconsdir))
65 @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
66 @(cd docs/cgi-examples && cp -rp * $(cgidir))
69 @echo Installing Support Binaries
70 @test -d $(bindir) || $(MKINSTALLDIRS) $(bindir)
71 @cp -p $(srcdir)/support/httpd.exp $(bindir)
72 @cp -p $(builddir)/support/htpasswd $(bindir)
73 @cp -p $(builddir)/support/htdigest $(bindir)
74 @cp -p $(builddir)/support/rotatelogs $(bindir)
75 @cp -p $(builddir)/support/logresolve $(bindir)
76 @cp -p $(builddir)/support/ab $(bindir)
77 @cp -p $(builddir)/support/apachectl $(bindir)
78 chmod 755 $(bindir)/apachectl
79 @if test -f $(builddir)/support/apxs; then \
80 cp -p $(builddir)/support/apxs $(bindir); \
81 chmod 755 $(bindir)/apxs; \
86 @test -d $(logdir) || $(MKINSTALLDIRS) $(logdir)
87 @for ext in dll x; do \
88 file=apachecore.$$ext; \
89 if test -f $$file; then \
90 cp -p $$file $(bindir); \
95 @echo Installing header files
96 @test -d $(includedir) || $(MKINSTALLDIRS) $(includedir)
97 @test -d $(includedir)/xml || $(MKINSTALLDIRS) $(includedir)/xml
98 @test -d $(includedir)/apr || $(MKINSTALLDIRS) $(includedir)/apr
99 @cp -p include/*.h $(srcdir)/include/*.h $(includedir)
100 @cp -p $(srcdir)/os/$(OS_DIR)/os.h $(includedir)
101 @if test -f $(srcdir)/os/$(OS_DIR)/os-inline.c; then \
102 cp -p $(srcdir)/os/$(OS_DIR)/os-inline.c $(includedir); \
104 @cp -p $(srcdir)/modules/dav/main/mod_dav.h $(includedir)
105 @cp -p $(srcdir)/srclib/expat-lite/*.h $(includedir)/xml
106 @cp -p srclib/apr/include/*.h $(srcdir)/srclib/apr/include/*.h $(includedir)/apr
107 @chmod 644 $(includedir)/*.h $(includedir)/xml/*.h $(includedir)/apr/*.h