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 \
13 lib/apr/$(LIBPRE)apr.a \
14 lib/pcre/libpcreposix.la \
17 PROGRAMS = $(PROGRAM_NAME)
19 phony_targets = $(srcdir)/buildmark.c
20 install_targets = install-conf install-htdocs install-icons install-other \
21 install-cgi install-include install-support
22 DISTCLEANFILES = include/config_auto.h modules.c aclocal.m4 buildmk.stamp \
23 configure generated_lists include/ap_config_auto.h \
24 include/ap_config_auto.h.in include/ap_config_path.h install-sh
26 include $(top_srcdir)/build/rules.mk
27 include $(top_srcdir)/build/program.mk
30 @echo Installing configuration files
31 @test -d $(sysconfdir) || $(mkinstalldirs) $(sysconfdir)
32 @cd $(srcdir)/../conf; \
33 for i in mime.types magic; do \
34 $(INSTALL_DATA) $$i $(sysconfdir); \
37 sed -e 's#@@ServerRoot@@#$(prefix)#g' \
38 < $$i > $(sysconfdir)/$$i; \
39 chmod 0644 $(sysconfdir)/$$i; \
40 file=`echo $$i|sed s/-dist//`; \
41 if [ "$$file" = "httpd.conf" ]; then \
42 file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
44 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
45 $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
50 @echo Installing HTML documents
51 @test -d $(htdocsdir) || $(mkinstalldirs) $(htdocsdir)
52 @(cd $(srcdir)/../htdocs && cp -rp * $(htdocsdir))
55 @echo Installing icons
56 @test -d $(iconsdir) || $(mkinstalldirs) $(iconsdir)
57 @(cd $(srcdir)/../icons && cp -rp * $(iconsdir))
61 @test -d $(cgidir) || $(mkinstalldirs) $(cgidir)
62 @(cd $(srcdir)/../cgi-bin && cp -rp * $(cgidir))
65 @echo Installing Support Binaries
66 @test -d $(bindir) || $(mkinstalldirs) $(bindir)
67 @cp -p $(srcdir)/support/httpd.exp $(bindir)
68 @cp -p $(builddir)/support/htpasswd $(bindir)
69 @cp -p $(builddir)/support/htdigest $(bindir)
70 @cp -p $(builddir)/support/rotatelogs $(bindir)
71 @cp -p $(builddir)/support/logresolve $(bindir)
72 @cp -p $(builddir)/support/ab $(bindir)
75 @test -d $(logdir) || $(mkinstalldirs) $(logdir)
78 @echo Installing header files
79 @test -d $(includedir) || $(mkinstalldirs) $(includedir)
80 @test -d $(includedir)/xml || $(mkinstalldirs) $(includedir)/xml
81 @test -d $(includedir)/apr || $(mkinstalldirs) $(includedir)/apr
82 @cp -p include/*.h $(srcdir)/include/*.h $(includedir)
83 @cp -p $(srcdir)/os/$(OS_DIR)/os.h $(includedir)
84 @cp -p $(srcdir)/os/$(OS_DIR)/os-inline.c $(includedir)
85 @cp -p $(srcdir)/lib/expat-lite/*.h $(includedir)/xml
86 @cp -p lib/apr/include/*.h $(srcdir)/lib/apr/include/*.h $(includedir)/apr
87 @chmod 644 $(includedir)/*.h $(includedir)/xml/*.h $(includedir)/apr/*.h