summaryrefslogtreecommitdiffstats
path: root/contrib/Makefile.in
blob: b384fd0d1b6a313ec6c58a567a404bf65742ab59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# @configure_input@

# Modify these top variables.
SUBDIRS = 

EXTRA_DIST = README \
		create_tables.sql \
		make_combined_log.pl \
		mysql_import_combined_log.pl

#Don't modify anything below here

srcdir = @abs_srcdir@
builddir = @abs_builddir@

STD_DIST = Makefile.in

DISTFILES = $(STD_DIST) $(EXTRA_DIST)

all: all-subdirs

all-subdirs install-subdirs update-subdirs clean-subdirs distclean-subdirs:
	@otarget=`echo $@|sed s/-subdirs//`; \
	list=' $(SUBDIRS)'; \
	for i in $$list; do \
		if test -d "$$i"; then \
			target="$$otarget"; \
			echo "Making $$target in $$i"; \
			if test "$$i" = "."; then \
				made_local=yes; \
				target="local-$$target"; \
			fi; \
			(cd $$i && $(MAKE) $$target) || exit 1; \
		fi; \
	done; \

include:
	rm -rf include
	ln -s @APACHE_INCDIR@ include

install: install-subdirs

update: update-subdirs

clean: clean-subdirs

distclean: clean distclean-subdirs
	$(RM) Makefile

DESTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@
DESTTGZ = $(DESTDIR).tar.gz
dist:
	@rm -rf $(DESTDIR); \
	list=' $(SUBDIRS)'; \
	for i in $$list; do \
		if test -d "$$i"; then \
			target=local-dist; \
			echo "Making $$target in $$i"; \
			if test "$$i" = "."; then \
				made_local=yes; \
				target="local-dist"; \
			fi; \
			NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \
			echo $(NEWDESTDIR); \
			(cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit 1; \
		fi; \
	done;
	if test "$$made_local" != "yes"; then \
		$(MAKE) "local-dist" || exit 1; \
	fi
	tar -zcf $(DESTTGZ) $(DESTDIR)
	rm -rf $(DESTDIR)

local-dist: $(DISTFILES)
	mkdir -p $(DESTDIR)
	cp -dp --parents $(DISTFILES) $(DESTDIR)

.PHONY: include all-subdirs update-subdirs install-subdirs \
	clean-subdirs distclean-subdirs dist