]> granicus.if.org Git - apache/blob - Makefile.in
src/build/build2.mk: build PCRE's configure script if needed (when you
[apache] / Makefile.in
1
2 SUBDIRS = ap lib main modules os support
3
4 PROGRAM_NAME         = $(progname)
5 PROGRAM_SOURCES      = modules.c buildmark.c
6 PROGRAM_LDADD        = $(EXTRA_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
7 PROGRAM_DEPENDENCIES = \
8   $(BUILTIN_LIBS) \
9   $(MPM_LIB) \
10   main/libmain.la \
11   os/$(OS_DIR)/libos.la \
12   ap/libap.la \
13   lib/apr/$(LIBPRE)apr.a \
14   lib/pcre/libpcreposix.la \
15   lib/pcre/libpcre.la
16
17 PROGRAMS        = $(PROGRAM_NAME)
18 targets         = $(PROGRAMS)
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
25
26 include $(top_srcdir)/build/rules.mk
27 include $(top_srcdir)/build/program.mk
28
29 install-conf:
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); \
35         done; \
36         for i in *-dist; do \
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/`; \
43                 fi; \
44                 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
45                         $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
46                 fi; \
47         done
48
49 install-htdocs:
50         @echo Installing HTML documents
51         @test -d $(htdocsdir) || $(mkinstalldirs) $(htdocsdir)
52         @(cd $(srcdir)/../htdocs && cp -rp * $(htdocsdir))
53
54 install-icons:
55         @echo Installing icons
56         @test -d $(iconsdir) || $(mkinstalldirs) $(iconsdir)
57         @(cd $(srcdir)/../icons && cp -rp * $(iconsdir))
58
59 install-cgi:
60         @echo Installing CGIs
61         @test -d $(cgidir) || $(mkinstalldirs) $(cgidir)
62         @(cd $(srcdir)/../cgi-bin && cp -rp * $(cgidir))
63
64 install-support:
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)
73
74 install-other:
75         @test -d $(logdir) || $(mkinstalldirs) $(logdir)
76
77 install-include:
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