diff options
Diffstat (limited to 'contrib/Makefile.in')
-rw-r--r-- | contrib/Makefile.in | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/contrib/Makefile.in b/contrib/Makefile.in new file mode 100644 index 0000000..ca70e2f --- /dev/null +++ b/contrib/Makefile.in | |||
@@ -0,0 +1,86 @@ | |||
1 | # @configure_input@ | ||
2 | |||
3 | # Modify these top variables. | ||
4 | SUBDIRS = | ||
5 | |||
6 | EXTRA_DIST = README documentation.lyx | ||
7 | |||
8 | #Don't modify anything below here | ||
9 | |||
10 | srcdir = @abs_srcdir@ | ||
11 | builddir = @abs_builddir@ | ||
12 | |||
13 | STD_DIST = Makefile.in | ||
14 | |||
15 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) | ||
16 | |||
17 | all: $(TARGET) all-subdirs | ||
18 | |||
19 | all-subdirs install-subdirs update-subdirs clean-subdirs distclean-subdirs: | ||
20 | @otarget=`echo $@|sed s/-subdirs//`; \ | ||
21 | list=' $(SUBDIRS)'; \ | ||
22 | for i in $$list; do \ | ||
23 | if test -d "$$i"; then \ | ||
24 | target="$$otarget"; \ | ||
25 | echo "Making $$target in $$i"; \ | ||
26 | if test "$$i" = "."; then \ | ||
27 | made_local=yes; \ | ||
28 | target="local-$$target"; \ | ||
29 | fi; \ | ||
30 | (cd $$i && $(MAKE) $$target) || exit 1; \ | ||
31 | fi; \ | ||
32 | done; \ | ||
33 | |||
34 | include: | ||
35 | rm -rf include | ||
36 | ln -s @APACHE_INCDIR@ include | ||
37 | |||
38 | install: install-subdirs | ||
39 | @APXS_BIN@ -i -a -n $(subst mod_,,@PACKAGE_NAME@) $(TARGET) | ||
40 | |||
41 | update: update-subdirs | ||
42 | |||
43 | clean: clean-subdirs | ||
44 | |||
45 | distclean: clean distclean-subdirs | ||
46 | $(RM) Makefile | ||
47 | |||
48 | DESTDIR = @PACKAGE_TARNAME@-@PACKAGE_VERSION@ | ||
49 | DESTTGZ = $(DESTDIR).tar.gz | ||
50 | dist: | ||
51 | @rm -rf $(DESTDIR); \ | ||
52 | list=' $(SUBDIRS)'; \ | ||
53 | for i in $$list; do \ | ||
54 | if test -d "$$i"; then \ | ||
55 | target=local-dist; \ | ||
56 | echo "Making $$target in $$i"; \ | ||
57 | if test "$$i" = "."; then \ | ||
58 | made_local=yes; \ | ||
59 | target="local-dist"; \ | ||
60 | fi; \ | ||
61 | NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \ | ||
62 | echo $(NEWDESTDIR); \ | ||
63 | (cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit 1; \ | ||
64 | fi; \ | ||
65 | done; | ||
66 | if test "$$made_local" != "yes"; then \ | ||
67 | $(MAKE) "local-dist" || exit 1; \ | ||
68 | fi | ||
69 | tar -zcf $(DESTTGZ) $(DESTDIR) | ||
70 | rm -rf $(DESTDIR) | ||
71 | |||
72 | local-dist: $(DISTFILES) | ||
73 | mkdir -p $(DESTDIR) | ||
74 | cp -dp --parents $(DISTFILES) $(DESTDIR) | ||
75 | |||
76 | $(builddir)/.deps: depend | ||
77 | |||
78 | depend: $(SOURCES) $(HEADERS) | ||
79 | if test -n "`ls $(srcdir)/*.c 2> /dev/null`"; then \ | ||
80 | $(CC) -MM -MT $(TARGET) -I@APACHE_INCDIR@ $(INCLUDES) $(srcdir)/*.c > $(builddir)/.deps || true; \ | ||
81 | fi | ||
82 | |||
83 | include $(builddir)/.deps | ||
84 | |||
85 | .PHONY: include all-subdirs update-subdirs install-subdirs \ | ||
86 | clean-subdirs distclean-subdirs dist | ||