]> granicus.if.org Git - apache/blob - Makefile.in
Cleanup more files when make distclean is used. This should be all the
[apache] / Makefile.in
1
2 DEPTH     = .
3 top_srcdir = @top_srcdir@
4 srcdir    = @srcdir@
5 VPATH     = @srcdir@
6
7 SUBDIRS = ap lib main modules os support $(REGEX_DIR)
8
9 PROGRAM_NAME         = $(progname)
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/$(LIBPRE)apr.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 install-support
26 DISTCLEANFILES  = include/config_auto.h modules.c aclocal.m4 buildmk.stamp \
27         configure generated_lists include/ap_config_auto.h \
28         include/ap_config_auto.h.in include/ap_config_path.h install-sh
29
30 include $(top_srcdir)/build/rules.mk
31 include $(top_srcdir)/build/program.mk
32
33 install-conf:
34         @echo Installing configuration files
35         @test -d $(sysconfdir) || $(mkinstalldirs) $(sysconfdir)
36         @cd $(srcdir)/../conf; \
37         for i in mime.types magic; do \
38                 $(INSTALL_DATA) $$i $(sysconfdir); \
39         done; \
40         for i in *-dist; do \
41                 sed -e 's#@@ServerRoot@@#$(prefix)#g' \
42                         < $$i > $(sysconfdir)/$$i; \
43                 chmod 0644 $(sysconfdir)/$$i; \
44                 file=`echo $$i|sed s/-dist//`; \
45                 if [ "$$file" = "httpd.conf" ]; then \
46                         file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
47                 fi; \
48                 if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
49                         $(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
50                 fi; \
51         done
52
53 install-htdocs:
54         @echo Installing HTML documents
55         @test -d $(htdocsdir) || $(mkinstalldirs) $(htdocsdir)
56         @cp -rp $(srcdir)/../htdocs/* $(htdocsdir)
57
58 install-icons:
59         @echo Installing icons
60         @test -d $(iconsdir) || $(mkinstalldirs) $(iconsdir)
61         @cp -rp $(srcdir)/../icons/* $(iconsdir)
62
63 install-cgi:
64         @echo Installing CGIs
65         @test -d $(cgidir) || $(mkinstalldirs) $(cgidir)
66         @cp -rp $(srcdir)/../cgi-bin/* $(cgidir)
67
68 install-support:
69         @echo Installing Support Binaries
70         @test -d $(bindir) || $(mkinstalldirs) $(bindir)
71         @cp -rp $(srcdir)/support/httpd.exp $(bindir)
72         @cp -rp $(srcdir)/support/htpasswd $(bindir)
73         @cp -rp $(srcdir)/support/htdigest $(bindir)
74         @cp -rp $(srcdir)/support/rotatelogs $(bindir)
75         @cp -rp $(srcdir)/support/logresolve $(bindir)
76         @cp -rp $(srcdir)/support/ab $(bindir)
77         
78 install-other:
79         @test -d $(logdir) || $(mkinstalldirs) $(logdir)
80
81 install-include:
82         @echo Installing header files
83         @test -d $(includedir)     || $(mkinstalldirs) $(includedir)
84         @test -d $(includedir)/xml || $(mkinstalldirs) $(includedir)/xml
85         @test -d $(includedir)/apr || $(mkinstalldirs) $(includedir)/apr
86         @cp include/*.h $(srcdir)/include/*.h $(includedir)
87         @cp $(srcdir)/lib/expat-lite/*.h $(includedir)/xml
88         @cp lib/apr/include/*.h $(srcdir)/lib/apr/include/*.h $(includedir)/apr
89         @chmod 644 $(includedir)/*.h $(includedir)/xml/*.h $(includedir)/apr/*.h