]> granicus.if.org Git - apache/blob - Makefile.in
Get Apache to configure completely again. This still doesn't build, but
[apache] / Makefile.in
1
2 SUBDIRS = modules os server srclib support test
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_LIBS)
13
14 PROGRAMS        = $(PROGRAM_NAME)
15 targets         = $(PROGRAMS)
16 phony_targets   = $(srcdir)/buildmark.c
17 install_targets = install-conf install-htdocs install-icons install-other \
18         install-cgi install-include install-support
19 DISTCLEANFILES  = include/config_auto.h modules.c aclocal.m4 buildmk.stamp \
20         configure generated_lists include/ap_config_auto.h \
21         include/ap_config_auto.h.in include/ap_config_path.h install-sh
22
23 include $(top_srcdir)/build/rules.mk
24 include $(top_srcdir)/build/program.mk
25
26 install-conf:
27         @echo Installing configuration files
28         @test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
29         @cd $(srcdir)/../conf; \
30         for i in mime.types magic; do \
31                 $(INSTALL_DATA) $$i $(sysconfdir); \
32         done; \
33         for i in *-dist; do \
34                 sed -e 's#@@ServerRoot@@#$(prefix)#g' \
35                     -e 's#@@Port@@#$(PORT)#g' \
36                         < $$i > $(sysconfdir)/$$i; \
37                 chmod 0644 $(sysconfdir)/$$i; \
38                 file=`echo $$i|sed s/-dist//`; \
39                 if [ "$$file" = "httpd.conf" ]; then \
40                         file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
41                 fi; \
42                 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
43                         $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
44                 fi; \
45         done
46
47 htdocs-srcdir = $(srcdir)/../htdocs
48
49 docs: include/*.h
50         mkdir -p ./docs/api
51         srclib/apr/helpers/scandoc -ihelpers/default.pl -p./docs/api/ ./include/*.h
52
53 install-htdocs:
54         @echo Installing HTML documents
55         @test -d $(htdocsdir) || $(MKINSTALLDIRS) $(htdocsdir)
56         @test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
57
58 install-icons:
59         @echo Installing icons
60         @test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
61         @(cd $(srcdir)/../icons && cp -rp * $(iconsdir))
62
63 install-cgi:
64         @echo Installing CGIs
65         @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
66         @(cd $(srcdir)/../cgi-bin && cp -rp * $(cgidir))
67
68 install-support:
69         @echo Installing Support Binaries
70         @test -d $(bindir) || $(MKINSTALLDIRS) $(bindir)
71         @cp -p $(srcdir)/support/httpd.exp $(bindir)
72         @cp -p $(builddir)/support/htpasswd $(bindir)
73         @cp -p $(builddir)/support/htdigest $(bindir)
74         @cp -p $(builddir)/support/rotatelogs $(bindir)
75         @cp -p $(builddir)/support/logresolve $(bindir)
76         @cp -p $(builddir)/support/ab $(bindir)
77         @cp -p $(builddir)/support/apachectl $(bindir)
78         chmod 755 $(bindir)/apachectl
79         @if test -f $(builddir)/support/apxs; then \
80             cp -p $(builddir)/support/apxs $(bindir); \
81             chmod 755 $(bindir)/apxs; \
82         fi
83
84
85 install-other:
86         @test -d $(logdir) || $(MKINSTALLDIRS) $(logdir)
87         @for ext in dll x; do \
88                 file=apachecore.$$ext; \
89                 if test -f $$file; then \
90                         cp -p $$file $(bindir); \
91                 fi; \
92         done;
93
94 install-include:
95         @echo Installing header files
96         @test -d $(includedir)     || $(MKINSTALLDIRS) $(includedir)
97         @test -d $(includedir)/xml || $(MKINSTALLDIRS) $(includedir)/xml
98         @test -d $(includedir)/apr || $(MKINSTALLDIRS) $(includedir)/apr
99         @cp -p include/*.h $(srcdir)/include/*.h $(includedir)
100         @cp -p $(srcdir)/os/$(OS_DIR)/os.h $(includedir)
101         @if test -f $(srcdir)/os/$(OS_DIR)/os-inline.c; then \
102             cp -p $(srcdir)/os/$(OS_DIR)/os-inline.c $(includedir); \
103         fi;
104         @cp -p $(srcdir)/modules/dav/main/mod_dav.h $(includedir)
105         @cp -p $(srcdir)/srclib/expat-lite/*.h $(includedir)/xml
106         @cp -p srclib/apr/include/*.h $(srcdir)/srclib/apr/include/*.h $(includedir)/apr
107         @chmod 644 $(includedir)/*.h $(includedir)/xml/*.h $(includedir)/apr/*.h