Makefile.am 2.98 KB
Newer Older
1
# -*- makefile; indent-tabs-mode: t -*-
prudhomm's avatar
prudhomm committed
2
#
simone's avatar
simone committed
3
#
prudhomm's avatar
prudhomm committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Copyright (C) 2004 Christophe Prud'homme (christophe.prudhomme@epfl.ch)
#
#  Distributed under the GPL(GNU Public License):
#  This program 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 2 of the License, or
#  (at your option) any later version.
#
#  This program 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, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

vmartin's avatar
vmartin committed
23
SUFFIXES	= .cpp .hpp .idl .c .h .f .F .o .moc
prudhomm's avatar
prudhomm committed
24

25
DO_NOT_COMPILE=
prudhomm's avatar
prudhomm committed
26

27
SUBDIRS		= data  \
28
              test_TemplateTest \
29
              test_cylinder \
30
              test_getpot \
31
              test_heart \
32
33
              test_structure \
              test_ethiersteinman \
34
              test_masstransport \
35
	          test_fsi \
gfourestey's avatar
gfourestey committed
36
              test_cavity \
37
              test_ns_flux \
38
              test_meshReorder \
39
40
	          test_ML \
	          test_laplacian \
41
              test_filters
gfourestey's avatar
gfourestey committed
42
              $(DO_NOT_COMPILE)
prudhomm's avatar
prudhomm committed
43

44
45
TESTSUITES=$(srcdir)/test_TemplateTest/testsuite.at \
           $(srcdir)/test_cylinder/testsuite.at \
46
47
           $(srcdir)/test_structure/testsuite.at \
           $(srcdir)/test_ethiersteinman/testsuite.at\
48
           $(srcdir)/test_fsi/testsuite.at \
49
50
51
           $(srcdir)/test_filters/testsuite.at \
           $(srcdir)/test_meshReorder/testsuite.at

simone's avatar
simone committed
52

53
54
55
56
57
58
59
60
61
62
63
64

$(srcdir)/package.m4: $(top_srcdir)/configure.in.in
	{									   \
	echo '# Signature of the current package.'; \
	echo 'm4_define([AT_PACKAGE_NAME],		[@PACKAGE_NAME@])'; \
	echo 'm4_define([AT_PACKAGE_TARNAME],	[@PACKAGE_TARNAME@])'; \
	echo 'm4_define([AT_PACKAGE_VERSION],	[@PACKAGE_VERSION@])'; \
	echo 'm4_define([AT_PACKAGE_STRING],	[@PACKAGE_STRING@])'; \
	echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
	} >$(srcdir)/package.m4


prudhomm's avatar
prudhomm committed
65
EXTRA_DIST = testsuite.at testsuite package.m4
66
67

TESTSUITE = $(srcdir)/testsuite
68
check-local: atconfig atlocal  $(TESTSUITE) $(LN_TESTSUITE)
69
70
71
72
73
74
75
	$(SHELL) $(TESTSUITE)

AUTOM4TE    = autom4te
AUTOTEST = $(AUTOM4TE) --language=autotest
$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 $(TESTSUITES)
	$(AUTOTEST) -I $(srcdir) $@.at -o $@.tmp
	mv $@.tmp $@
76
77
78
79
80
81
82
83
84
85
	@if test $(top_srcdir) != $(top_builddir); then\
     ln -sf $(TESTSUITE);\
    fi

testsuite: $(srcdir)/testsuite.at $(srcdir)/package.m4 $(TESTSUITES)
	$(AUTOTEST) -I $(srcdir) $(srcdir)/$@.at -o $(srcdir)/$@.tmp
	mv $(srcdir)/$@.tmp $(srcdir)/$@
	@if test $(top_srcdir) != $(top_builddir); then\
     ln -sf $(TESTSUITE);\
    fi
prudhomm's avatar
prudhomm committed
86

prudhomm's avatar
prudhomm committed
87
88
89

include $(top_srcdir)/admin/Doxyfile.am

90
MOSTLYCLEANFILES	= testsuite.log `find -type f -print | grep testsuite.dir`
prudhomm's avatar
prudhomm committed
91

92
DISTCLEANFILES		= atconfig
prudhomm's avatar
prudhomm committed
93
94
95