2 SUBDIRS = ap lib main modules os support
4 PROGRAM_NAME = $(progname)
5 PROGRAM_SOURCES = modules.c buildmark.c
6 PROGRAM_LDADD = $(EXTRA_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
7 PROGRAM_DEPENDENCIES = \
11 os/$(OS_DIR)/libos.la \
15 PROGRAMS = $(PROGRAM_NAME)
17 phony_targets = $(srcdir)/buildmark.c
18 install_targets = install-conf install-htdocs install-icons install-other \
19 install-cgi install-include install-support
20 DISTCLEANFILES = include/config_auto.h modules.c aclocal.m4 buildmk.stamp \
21 configure generated_lists include/ap_config_auto.h \
22 include/ap_config_auto.h.in include/ap_config_path.h install-sh
24 include $(top_srcdir)/build/rules.mk
25 include $(top_srcdir)/build/program.mk
28 @echo Installing configuration files
29 @test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
30 @cd $(srcdir)/../conf; \
31 for i in mime.types magic; do \
32 $(INSTALL_DATA) $$i $(sysconfdir); \
35 sed -e 's#@@ServerRoot@@#$(prefix)#g' \
36 -e 's#@@Port@@#$(PORT)#g' \
37 < $$i > $(sysconfdir)/$$i; \
38 chmod 0644 $(sysconfdir)/$$i; \
39 file=`echo $$i|sed s/-dist//`; \
40 if [ "$$file" = "httpd.conf" ]; then \
41 file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
43 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
44 $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
48 htdocs-srcdir = $(srcdir)/../htdocs
52 lib/apr/helpers/scandoc -ihelpers/default.pl -p./docs/api/ ./include/*.h
55 @echo Installing HTML documents
56 @test -d $(htdocsdir) || $(MKINSTALLDIRS) $(htdocsdir)
57 @test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
60 @echo Installing icons
61 @test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
62 @(cd $(srcdir)/../icons && cp -rp * $(iconsdir))
66 @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
67 @(cd $(srcdir)/../cgi-bin && cp -rp * $(cgidir))
70 @echo Installing Support Binaries
71 @test -d $(bindir) || $(MKINSTALLDIRS) $(bindir)
72 @cp -p $(srcdir)/support/httpd.exp $(bindir)
73 @cp -p $(builddir)/support/htpasswd $(bindir)
74 @cp -p $(builddir)/support/htdigest $(bindir)
75 @cp -p $(builddir)/support/rotatelogs $(bindir)
76 @cp -p $(builddir)/support/logresolve $(bindir)
77 @cp -p $(builddir)/support/ab $(bindir)
80 @test -d $(logdir) || $(MKINSTALLDIRS) $(logdir)
81 @for ext in dll x; do \
82 file=apachecore.$$ext; \
83 if test -f $$file; then \
84 cp -p $$file $(bindir); \
89 @echo Installing header files
90 @test -d $(includedir) || $(MKINSTALLDIRS) $(includedir)
91 @test -d $(includedir)/xml || $(MKINSTALLDIRS) $(includedir)/xml
92 @test -d $(includedir)/apr || $(MKINSTALLDIRS) $(includedir)/apr
93 @cp -p include/*.h $(srcdir)/include/*.h $(includedir)
94 @cp -p $(srcdir)/os/$(OS_DIR)/os.h $(includedir)
95 @if test -f $(srcdir)/os/$OSDIR/os-inline.c; then \
96 cp -p $(srcdir)/os/$(OS_DIR)/os-inline.c $(includedir); \
98 @cp -p $(srcdir)/modules/dav/main/mod_dav.h $(includedir)
99 @cp -p $(srcdir)/lib/expat-lite/*.h $(includedir)/xml
100 @cp -p lib/apr/include/*.h $(srcdir)/lib/apr/include/*.h $(includedir)/apr
101 @chmod 644 $(includedir)/*.h $(includedir)/xml/*.h $(includedir)/apr/*.h