2 SUBDIRS = ap lib main modules os support $(REGEX_DIR)
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 \
16 PROGRAMS = $(PROGRAM_NAME)
18 phony_targets = $(srcdir)/buildmark.c
19 install_targets = install-conf install-htdocs install-icons install-other \
20 install-cgi install-include install-support
21 DISTCLEANFILES = include/config_auto.h modules.c aclocal.m4 buildmk.stamp \
22 configure generated_lists include/ap_config_auto.h \
23 include/ap_config_auto.h.in include/ap_config_path.h install-sh
25 include $(top_srcdir)/build/rules.mk
26 include $(top_srcdir)/build/program.mk
29 @echo Installing configuration files
30 @test -d $(sysconfdir) || $(mkinstalldirs) $(sysconfdir)
31 @cd $(srcdir)/../conf; \
32 for i in mime.types magic; do \
33 $(INSTALL_DATA) $$i $(sysconfdir); \
36 sed -e 's#@@ServerRoot@@#$(prefix)#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; \
49 @echo Installing HTML documents
50 @test -d $(htdocsdir) || $(mkinstalldirs) $(htdocsdir)
51 @(cd $(srcdir)/../htdocs && cp -rp * $(htdocsdir))
54 @echo Installing icons
55 @test -d $(iconsdir) || $(mkinstalldirs) $(iconsdir)
56 @(cd $(srcdir)/../icons && cp -rp * $(iconsdir))
60 @test -d $(cgidir) || $(mkinstalldirs) $(cgidir)
61 @(cd $(srcdir)/../cgi-bin && cp -rp * $(cgidir))
64 @echo Installing Support Binaries
65 @test -d $(bindir) || $(mkinstalldirs) $(bindir)
66 @cp -p $(srcdir)/support/httpd.exp $(bindir)
67 @cp -p $(builddir)/support/htpasswd $(bindir)
68 @cp -p $(builddir)/support/htdigest $(bindir)
69 @cp -p $(builddir)/support/rotatelogs $(bindir)
70 @cp -p $(builddir)/support/logresolve $(bindir)
71 @cp -p $(builddir)/support/ab $(bindir)
74 @test -d $(logdir) || $(mkinstalldirs) $(logdir)
77 @echo Installing header files
78 @test -d $(includedir) || $(mkinstalldirs) $(includedir)
79 @test -d $(includedir)/xml || $(mkinstalldirs) $(includedir)/xml
80 @test -d $(includedir)/apr || $(mkinstalldirs) $(includedir)/apr
81 @cp -p include/*.h $(srcdir)/include/*.h $(includedir)
82 @cp -p $(srcdir)/os/$(OS_DIR)/os.h $(includedir)
83 @cp -p $(srcdir)/os/$(OS_DIR)/os-inline.c $(includedir)
84 @cp -p $(srcdir)/lib/expat-lite/*.h $(includedir)/xml
85 @cp -p lib/apr/include/*.h $(srcdir)/lib/apr/include/*.h $(includedir)/apr
86 @chmod 644 $(includedir)/*.h $(includedir)/xml/*.h $(includedir)/apr/*.h