]> granicus.if.org Git - apache/blob - Makefile.in
Remove unixd_detach function, because it is provided by APR as ap_detach.
[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/libpcre.la
15
16 PROGRAMS        = $(PROGRAM_NAME)
17 targets         = $(PROGRAMS)
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
24
25 include $(top_srcdir)/build/rules.mk
26 include $(top_srcdir)/build/program.mk
27
28 install-conf:
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); \
34         done; \
35         for i in *-dist; do \
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/`; \
42                 fi; \
43                 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
44                         $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
45                 fi; \
46         done
47
48 install-htdocs:
49         @echo Installing HTML documents
50         @test -d $(htdocsdir) || $(mkinstalldirs) $(htdocsdir)
51         @(cd $(srcdir)/../htdocs && cp -rp * $(htdocsdir))
52
53 install-icons:
54         @echo Installing icons
55         @test -d $(iconsdir) || $(mkinstalldirs) $(iconsdir)
56         @(cd $(srcdir)/../icons && cp -rp * $(iconsdir))
57
58 install-cgi:
59         @echo Installing CGIs
60         @test -d $(cgidir) || $(mkinstalldirs) $(cgidir)
61         @(cd $(srcdir)/../cgi-bin && cp -rp * $(cgidir))
62
63 install-support:
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)
72
73 install-other:
74         @test -d $(logdir) || $(mkinstalldirs) $(logdir)
75
76 install-include:
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