2 # This file is part of project GEOS (http://trac.osgeo.org/geos/)
4 # NOTE: Make sure that 'src' appears first.
5 # 'capi' and 'doc' surely rely on availability of libgeos
6 # which is built under 'src' and it seems that automake
7 # is not able to detect required build order but blindly
8 # relies on the order items in SUBDIRS appear.
11 # foreign is needed to avoid enforced ChangeLog in EXTRA_DIST
12 # (we'll still take care of adding it ourselves)
13 AUTOMAKE_OPTIONS = foreign
25 BUILT_SOURCES = geos_revision.h
27 EXTRA_DIST = acsite.m4 makefile.vc nmake.opt autogen.bat CMakeLists.txt \
28 cmake/modules/CheckPrototypeExists.cmake \
29 cmake/modules/COPYING-CMAKE-SCRIPTS \
30 cmake/cmake_uninstall.cmake.in geos_revision.h
32 ACLOCAL_AMFLAGS = -I macros
34 dist-hook: gen-ChangeLog
37 cd $(distdir) && owd=`pwd` && \
38 cd ../ && cd $(srcdir) && \
39 if test -d .git; then \
40 git2cl > $${owd}/ChangeLog; \
41 elif test -d .svn; then \
42 svn2cl --authors=authors.svn -i -o $${owd}/ChangeLog; \
43 elif test -f ChangeLog; then \
44 cp ChangeLog $${owd}/ChangeLog; \
50 authors.git: authors.svn
51 cd $(srcdir) && sed -e 's/:/ = /' authors.svn > authors.git
53 svnrebase: authors.git
54 cd $(srcdir) && git svn rebase --authors-file authors.git
57 top_srcdir=$(srcdir) sh $(srcdir)/tools/repo_revision.sh
59 VALGRIND = $(LIBTOOL) --mode=execute valgrind --leak-check=full --error-exitcode=1
62 $(VALGRIND) tests/unit/geos_unit
64 .PHONY: geos_revision.h