forked from espressomd/espresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
executable file
·104 lines (85 loc) · 2.84 KB
/
Makefile.am
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Copyright (C) 2012,2013,2014 The ESPResSo project
# Copyright (C) 2007,2008,2009,2010,2011 Olaf Lenz, Axel Arnold
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ESPResSo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
DIST_SUBDIRS = config src . scripts tools testsuite doc
SUBDIRS = config src .
if TCL
SUBDIRS += scripts
endif
SUBDIRS += tools testsuite doc
ACLOCAL_AMFLAGS = -I config
AUTOMAKE_OPTIONS = gnu subdir-objects dist-xz
# List files that should go into the distribution but are not required
# by any other means
EXTRA_DIST = bootstrap.sh samples packages $(extra)
CLEANFILES =
if TCL
all-local: Espresso
CLEANFILES += Espresso
if !DEVEL_SRC
Espresso: FORCE
test -L Espresso || $(LN_S) src/tcl/Espresso .
else
Espresso: version.txt
test -L Espresso || $(LN_S) src/tcl/Espresso .
endif
endif
if PYTHON_INTERFACE
all-local: espresso-python pypresso
espresso-python: FORCE
test -L espressomd || $(LN_S) src/python/espressomd espressomd
pypresso: FORCE
test -L pypresso || $(LN_S) src/python/pypresso pypresso
CLEANFILES += pypresso espresso
endif
# Sample myconfig generation
myconfig-sample.hpp:
./config.status myconfig-sample.hpp
DISTCLEANFILES = myconfig-sample.hpp
# config.status deps in configure.ac
# Handle version
EXTRA_DIST += version.txt
if DEVEL_SRC
MOSTLYCLEANFILES = version.txt
version.txt: FORCE
cd $(top_srcdir); sh config/genversion.sh -rd > $(abs_top_builddir)/version.txt
dist-hook:
@VERSION=`cd $(top_srcdir); sh config/genversion.sh -rd`; \
if test "$$VERSION" != "$(PACKAGE_VERSION)"; then \
echo "***************************************************************************"; \
echo "ERROR: Package version is not up-to-date."; \
echo "ERROR: $$VERSION (current) != $(PACKAGE_VERSION) (configure)"; \
echo "ERROR: Please run autoreconf -vf"; \
echo "ERROR: before running 'make dist' again."; \
echo "***************************************************************************"; \
exit 1; \
fi;
endif
#################################################################
# Documentation
#################################################################
if DEVEL_SRC
.PHONY: FORCE doc ug dg tutorials doxygen
ug dg tutorials: FORCE
cd doc; $(MAKE) --print-directory $@
else
.PHONY: FORCE doc doxygen
endif
doc doxygen: FORCE
cd doc; $(MAKE) --print-directory $@
FORCE: