]> granicus.if.org Git - apache/blob - Makefile.in
BeOS doesn't have an os-inline.c file so don't try to install it!
[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   $(AP_LIBS)
14
15 PROGRAMS        = $(PROGRAM_NAME)
16 targets         = $(PROGRAMS)
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
23
24 include $(top_srcdir)/build/rules.mk
25 include $(top_srcdir)/build/program.mk
26
27 install-conf:
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); \
33         done; \
34         for i in *-dist; do \
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/`; \
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 htdocs-srcdir = $(srcdir)/../htdocs
49
50 docs: include/*.h
51         mkdir -p ./docs/api
52         lib/apr/helpers/scandoc -ihelpers/default.pl -p./docs/api/ ./include/*.h
53
54 install-htdocs:
55         @echo Installing HTML documents
56         @test -d $(htdocsdir) || $(MKINSTALLDIRS) $(htdocsdir)
57         @test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
58
59 install-icons:
60         @echo Installing icons
61         @test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
62         @(cd $(srcdir)/../icons && cp -rp * $(iconsdir))
63
64 install-cgi:
65         @echo Installing CGIs
66         @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
67         @(cd $(srcdir)/../cgi-bin && cp -rp * $(cgidir))
68
69 install-support:
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)
78
79 install-other:
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); \
85                 fi; \
86         done;
87
88 install-include:
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); \
97         fi;
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