1# @configure_input@
2
3# Modify these top variables.
4SUBDIRS =
5
6EXTRA_DIST = README \
7		create_tables.sql \
8		make_combined_log.pl \
9		mysql_import_combined_log.pl
10
11#Don't modify anything below here
12
13srcdir = @abs_srcdir@
14builddir = @abs_builddir@
15
16STD_DIST = Makefile.in
17
18DISTFILES = $(STD_DIST) $(EXTRA_DIST)
19
20all: all-subdirs
21
22all-subdirs install-subdirs update-subdirs clean-subdirs distclean-subdirs:
23	@otarget=`echo $@|sed s/-subdirs//`; \
24	list=' $(SUBDIRS)'; \
25	for i in $$list; do \
26		if test -d "$$i"; then \
27			target="$$otarget"; \
28			echo "Making $$target in $$i"; \
29			if test "$$i" = "."; then \
30				made_local=yes; \
31				target="local-$$target"; \
32			fi; \
33			(cd $$i && $(MAKE) $$target) || exit 1; \
34		fi; \
35	done; \
36
37include:
38	rm -rf include
39	ln -s @APACHE_INCDIR@ include
40
41install: install-subdirs
42
43update: update-subdirs
44
45clean: clean-subdirs
46
47distclean: clean distclean-subdirs
48	$(RM) Makefile
49
50DESTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@
51DESTTGZ = $(DESTDIR).tar.gz
52dist:
53	@rm -rf $(DESTDIR); \
54	list=' $(SUBDIRS)'; \
55	for i in $$list; do \
56		if test -d "$$i"; then \
57			target=local-dist; \
58			echo "Making $$target in $$i"; \
59			if test "$$i" = "."; then \
60				made_local=yes; \
61				target="local-dist"; \
62			fi; \
63			NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \
64			echo $(NEWDESTDIR); \
65			(cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit 1; \
66		fi; \
67	done;
68	if test "$$made_local" != "yes"; then \
69		$(MAKE) "local-dist" || exit 1; \
70	fi
71	tar -zcf $(DESTTGZ) $(DESTDIR)
72	rm -rf $(DESTDIR)
73
74local-dist: $(DISTFILES)
75	mkdir -p $(DESTDIR)
76	cp -dp --parents $(DISTFILES) $(DESTDIR)
77
78.PHONY: include all-subdirs update-subdirs install-subdirs \
79	clean-subdirs distclean-subdirs dist
80