]> granicus.if.org Git - apache/blob - Makefile.in
Fix include file order.
[apache] / Makefile.in
1
2 DEPTH     = .
3 topsrcdir = @topsrcdir@
4 srcdir    = @srcdir@
5 VPATH     = @srcdir@
6
7 SUBDIRS = ap lib main modules os $(REGEX_DIR)
8
9 PROGRAM_NAME         = apache
10 PROGRAM_SOURCES      = modules.c buildmark.c
11 PROGRAM_LDADD        = $(EXTRA_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
12 PROGRAM_DEPENDENCIES = \
13   $(BUILTIN_LIBS) \
14   $(MPM_LIB) \
15   main/libmain.la \
16   $(OS_DIR)/libos.la \
17   ap/libap.la \
18   lib/apr/libapr.a \
19   $(REGEX_LIB)
20
21 PROGRAMS        = $(PROGRAM_NAME)
22 targets         = $(PROGRAMS)
23 phony_targets   = buildmark.c
24 install_targets = install-conf install-htdocs install-icons install-other \
25         install-cgi install-include
26
27 include $(topsrcdir)/build/rules.mk
28 include $(topsrcdir)/build/program.mk
29
30 install-conf:
31         @echo Installing configuration files
32         @test -d $(sysconfdir) || $(mkinstalldirs) $(sysconfdir)
33         @cd $(srcdir)/../conf; \
34         for i in mime.types magic; do \
35                 $(INSTALL_DATA) $$i $(sysconfdir); \
36         done; \
37         for i in *-dist; do \
38                 sed -e 's#@@ServerRoot@@#$(prefix)#g' \
39                         < $$i > $(sysconfdir)/$$i; \
40                 chmod 0644 $(sysconfdir)/$$i; \
41                 file=`echo $$i|sed s/-dist//`; \
42                 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
43                         $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
44                 fi; \
45         done
46
47 install-htdocs:
48         @echo Installing HTML documents
49         @test -d $(htdocsdir) || $(mkinstalldirs) $(htdocsdir)
50         @cp -rp $(srcdir)/../htdocs/* $(htdocsdir)
51
52 install-icons:
53         @echo Installing icons
54         @test -d $(iconsdir) || $(mkinstalldirs) $(iconsdir)
55         @cp -rp $(srcdir)/../icons/* $(iconsdir)
56
57 install-cgi:
58         @echo Installing CGIs
59         @test -d $(cgidir) || $(mkinstalldirs) $(cgidir)
60         @cp -rp $(srcdir)/../cgi-bin/* $(cgidir)
61         
62 install-other:
63         @test -d $(logdir) || $(mkinstalldirs) $(logdir)
64
65 install-include:
66         @echo Installing header files
67         @test -d $(includedir)     || $(mkinstalldirs) $(includedir)
68         @test -d $(includedir)/xml || $(mkinstalldirs) $(includedir)/xml
69         @test -d $(includedir)/apr || $(mkinstalldirs) $(includedir)/apr
70         @cp include/*.h $(srcdir)/include/*.h $(includedir)
71         @cp $(srcdir)/lib/expat-lite/*.h $(includedir)/xml
72         @cp lib/apr/include/*.h $(srcdir)/lib/apr/include/*.h $(includedir)/apr
73         @chmod 644 $(includedir)/*.h $(includedir)/xml/*.h $(includedir)/apr/*.h