File: Makefile.am

package info (click to toggle)
geos 3.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 17,900 kB
  • sloc: cpp: 106,077; xml: 29,592; sh: 4,446; ansic: 1,877; makefile: 1,662; ruby: 1,295; python: 928
file content (71 lines) | stat: -rw-r--r-- 1,867 bytes parent folder | download
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
#
# This file is part of project GEOS (http://trac.osgeo.org/geos/)
#
# NOTE: Make sure that 'src' appears first.
# 'capi' and 'doc' surely rely on availability of libgeos
# which is built under 'src' and it seems that automake
# is not able to detect required build order but blindly
# relies on the order items in SUBDIRS appear.
#

# foreign is needed to avoid enforced ChangeLog in EXTRA_DIST
# (we'll still take care of adding it ourselves)
AUTOMAKE_OPTIONS = foreign

SUBDIRS =   \
    include \
    src     \
    capi    \
    doc     \
    macros  \
    swig    \
    tests   \
    tools

BUILT_SOURCES = geos_revision.h

EXTRA_DIST = acsite.m4 .editorconfig makefile.vc nmake.opt autogen.bat CMakeLists.txt \
  cmake/modules/CheckPrototypeExists.cmake \
  cmake/modules/COPYING-CMAKE-SCRIPTS \
  cmake/modules/GenerateSourceGroups.cmake \
  cmake/cmake_uninstall.cmake.in geos_revision.h \
  README.md

ACLOCAL_AMFLAGS = -I macros

dist-hook: gen-ChangeLog

gen-ChangeLog:
	cd $(distdir) && owd=`pwd` && \
  cd ../ && cd $(srcdir) && \
	if test -d .git; then \
		git log --pretty --numstat --summary | git2cl > $${owd}/ChangeLog; \
	elif test -d .svn; then \
		svn2cl --authors=authors.svn -i -o $${owd}/ChangeLog; \
	elif test -f ChangeLog; then \
		cp ChangeLog  $${owd}/ChangeLog; \
	fi

apidoc doxygen:
	cd doc && make $@

authors.git: authors.svn
	cd $(srcdir) && sed -e 's/:/ = /' authors.svn > authors.git

svnrebase: authors.git
	cd $(srcdir) && git svn rebase --authors-file authors.git

geos_revision.h:
	top_srcdir=$(srcdir) sh $(srcdir)/tools/repo_revision.sh

VALGRIND = $(LIBTOOL) --mode=execute valgrind --leak-check=full --error-exitcode=1

valgrindcheck:
	$(VALGRIND) tests/unit/geos_unit

.PHONY: geos_revision.h

check-local:
	! find . -name '*.cpp' -o -name '*.h' | \
		grep -v tests/xmltester/tinyxml | \
		xargs grep -n '[[:space:]]$$'