1# NOTES on automake requirements:
2#
3# Testing and patching scripts as of Tue Jul 11 00:00:27 CEST 2006 we got:
4#
5#	automake 1.5 is known to work
6#       automake 1.4-p6 is known *NOT* to work
7#
8# Original automake contributor (David Schleef <ds@schleef.org>) set
9# requirement to 1.4d, but we didn't check it
10#
11AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip 1.4d
12ACLOCAL_AMFLAGS = -I macros
13
14additionnal_dist_subdirs =
15
16if BUILD_PERL_EXTENSION
17PERLSUBDIR = perl_ext
18else
19additionnal_dist_subdirs += perl_ext
20endif
21
22if BUILD_PHP_EXTENSION
23PHPSUBDIR = php_ext
24else
25additionnal_dist_subdirs += php_ext
26endif
27
28if BUILD_PYTHON_EXTENSION
29PYSUBDIR = py_ext
30else
31additionnal_dist_subdirs += py_ext
32endif
33
34if BUILD_TCL_EXTENSION
35TCLSUBDIR = tcl_ext
36else
37additionnal_dist_subdirs += tcl_ext
38endif
39
40SUBDIRS =	\
41        src	\
42	$(PERLSUBDIR) \
43	$(PHPSUBDIR) \
44	$(PYSUBDIR) \
45	$(TCLSUBDIR) \
46	util	\
47	docs	\
48	macros	\
49	test
50
51DIST_SUBDIRS = $(SUBDIRS) $(additionnal_dist_subdirs)
52
53if USE_CXX
54include_HEADERS = mingpp.h
55endif
56
57COPYING: LICENSE
58	ln -fs $(srcdir)/LICENSE COPYING
59
60.PHONY: rpm ChangeLog
61rpm: dist
62	rpmbuild -ta ming-@VERSION@.tar.gz
63
64EXTRA_DIST = ming.spec ming.spec.in ming.i COPYING LICENSE LICENSE_GPL2 \
65	autogen.sh HISTORY
66DISTCLEANFILES = ming-@VERSION@* ming.spec COPYING
67
68ChangeLog Changelog:
69	cd $(srcdir) && git2cl > ChangeLog
70
71# alias to make travis config easier
72test: check
73