forked from espressomd/espresso
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
85 lines (70 loc) · 2.49 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
# Copyright (C) 2012,2013 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/>.
#
SUBDIRS = config src . scripts 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)
all-local: Espresso
CLEANFILES = Espresso
if !DEVEL_SRC
Espresso: FORCE
test -e Espresso || $(LN_S) src/Espresso .
else
Espresso: version.txt
test -e Espresso || $(LN_S) src/Espresso .
endif
# Sample myconfig generation
myconfig-sample.hpp:
./config.status myconfig-sample.hpp
CLEANFILES += 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 src; $(MAKE) --print-directory $@
cd doc; $(MAKE) --print-directory $@
FORCE: