source: branches/0.8-stable/test/Makefile.am @ 2618

Last change on this file since 2618 was 2618, checked in by Peter, 10 years ago

increase portability (see autoconf manual 12.1)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.9 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 2618 2011-11-05 16:05:44Z peter $
4
5# Copyright (C) 2003 Daniel Dalevi, Jari Häkkinen
6# Copyright (C) 2004 Jari Häkkinen, Peter Johansson, Cecilia Ritz
7# Copyright (C) 2005 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
9# Copyright (C) 2009, 2010, 2011 Peter Johansson
10#
11# This file is part of the yat library, http://dev.thep.lu.se/yat
12#
13# The yat library is free software; you can redistribute it
14# and/or modify it under the terms of the GNU General Public License as
15# published by the Free Software Foundation; either version 3 of the
16# License, or (at your option) any later version.
17#
18# The yat library is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21# General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with yat. If not, see <http://www.gnu.org/licenses/>.
25
26## we use suffix .cc for all source
27AM_DEFAULT_SOURCE_EXT = .cc
28
29noinst_HEADERS = Suite.h
30
31check_LTLIBRARIES = libyattest.la
32
33check_SCRIPTS = common_defs.sh
34
35.PHONY: FORCE
36
37clean-local:; rm -rf yathello testSubDir
38
39FORCE:
40
41EXTRA_PROGRAMS = alignment.test averager.test \
42  codon.test commandline.test \
43  concept.test \
44  consensus_inputranker.test data_lookup_1d.test  \
45  data_weight.test data_weight_proxy.test distance.test \
46  dna.test ensemble.test feature_selection.test fileutil.test \
47  fisher.test genomic_position.test getline_iterator.test \
48  gff.test help.test histogram.test \
49  igp.test index.test inputranker.test interpolation.test \
50  iterator.test kernel_lookup.test kernel_pca.test kernel.test \
51  knn.test kolmogorov_smirnov.test large_file.test matrix_lookup.test \
52  matrix_lookup_weighted.test matrix.test \
53  matrix_weighted.test merge.test nbc.test \
54  ncc.test nni.test normalization.test pca.test \
55  range.test regression.test rnd.test roc.test \
56  score.test  segment.test smart_ptr.test   \
57  smoother.test split.test statistics.test stream_redirect.test \
58  subset_generator.test svd.test svm.test \
59  svm_multi_class.test target.test \
60  ttest.test tukey.test \
61  utility.test vector.test version.test view.test
62
63TESTS = $(EXTRA_PROGRAMS)
64CLEANFILES = $(EXTRA_PROGRAMS)
65
66# tests not passing through yet
67XFAIL_TESTS =
68
69DISTRIBUTED_TESTS = \
70doxygen_test.sh \
71help_test.sh \
72static_test.sh \
73yat_config_test.sh \
74yat_config_cblas_test.sh \
75yat_cpp_add_flag_test.sh \
76yat_cxx_add_flag_test.sh \
77yat_ld_add_flag_test.sh \
78yat_have_svn_wc_test.sh \
79yat_lt_link_ifelse_test.sh \
80yat_msg_error_test.sh \
81yat_msg_error_test2.sh \
82yat_m4_test.sh \
83yat_m4_test2.sh \
84yat_prog_move_if_change_test.sh \
85yat_revision_header_test.sh \
86yat_svn_release_year_test.sh \
87yat_svn_revision_test.sh
88
89TESTS += $(DISTRIBUTED_TESTS)
90EXTRA_DIST = $(DISTRIBUTED_TESTS)
91
92TEST_EXTENSIONS = .sh .test
93
94LDADD = $(top_builddir)/yat/libyat.la libyattest.la $(YAT_LIBS)
95
96large_file_test_LDADD = libyattest.la
97
98libyattest_la_SOURCES = Suite.cc
99
100lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS=
101
102# dependencies for lazycheck
103help_test.log: help.test common_defs.sh
104static_test.log: $(top_srcdir)/m4/yat.m4 common_defs.sh
105yat_config_test.log: $(top_builddir)/build_support/yat-config \
106  $(top_builddir)/build_support/for_installation/yat-config common_defs.sh
107yat_config_cblas_test.log: $(top_builddir)/build_support/yat-config \
108  common_defs.sh
109yat_cpp_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
110  $(top_srcdir)/m4/ax_append_flag.m4 \
111  $(top_srcdir)/m4/ax_check_preproc_flag.m4 \
112  common_defs.sh
113yat_cxx_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
114  $(top_srcdir)/m4/ax_append_compile_flags.m4 \
115  $(top_srcdir)/m4/ax_append_flag.m4 \
116  $(top_srcdir)/m4/ax_check_compile_flag.m4 \
117  common_defs.sh
118yat_have_svn_wc_test.log: $(top_srcdir)/m4/yat_am_macros.m4 common_defs.sh
119yat_ld_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \
120  $(top_srcdir)/m4/ax_append_flag.m4 \
121  $(top_srcdir)/m4/ax_append_link_flags.m4 \
122  $(top_srcdir)/m4/ax_check_link_flag.m4 \
123  common_defs.sh
124yat_lt_link_ifelse_test.log: $(top_srcdir)/m4/yat_lt_link_ifelse.m4 \
125  $(top_srcdir)/m4/yat.m4 common_defs.sh \
126  $(top_builddir)/build_support/yat-config
127yat_m4_test.log:$(top_srcdir)/m4/yat.m4 common_defs.sh \
128  $(top_builddir)/build_support/yat-config
129yat_m4_test2.log:$(top_srcdir)/m4/yat.m4 common_defs.sh
130yat_msg_error_test.log:$(top_srcdir)/m4/yat_msg_error.m4 common_defs.sh
131yat_msg_error_test2.log:$(top_srcdir)/m4/yat_msg_error.m4 common_defs.sh
132yat_prog_move_if_change_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
133  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
134  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
135  $(top_srcdir)/m4/ax_file_escapes.m4 \
136  common_defs.sh
137yat_revision_header_test.log: $(top_srcdir)/m4/yat_am_macros.m4 common_defs.sh \
138  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
139  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
140  $(top_srcdir)/m4/ax_file_escapes.m4
141yat_svn_release_year_test.log: $(top_srcdir)/m4/yat_am_macros.m4 \
142  common_defs.sh \
143  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
144  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
145  $(top_srcdir)/m4/ax_file_escapes.m4
146yat_svn_revision_test.log: $(top_srcdir)/m4/yat_am_macros.m4 common_defs.sh \
147  $(top_srcdir)/m4/ax_ac_append_to_file.m4 \
148  $(top_srcdir)/m4/ax_ac_print_to_file.m4 \
149  $(top_srcdir)/m4/ax_file_escapes.m4
150
151## We always rerun doxygen_test. When sources for doxygen have
152## not changed and a rerun would not be needed, the test is very
153## inexpensive because 'make doc' will not run anything, in other
154## words, we always run the test but let the logic for 'make doc' take
155## care of whether doxygen will run or not.
156doxygen_test.log: FORCE
157
158
159# yat-hello is an example of a tiny package that uses yat
160noinst_DATA = $(srcdir)/yat-hello-1.0.tar.gz
161
162# Directory yat-hello contains what a developer would check out
163# from a VCS, i.e., no files generated by autotools.
164yat_hello_sources  =
165yat_hello_sources += $(srcdir)/yat-hello/configure.ac
166yat_hello_sources += $(srcdir)/yat-hello/Makefile.am
167yat_hello_sources += $(srcdir)/yat-hello/hello.cc
168
169EXTRA_DIST += $(yat_hello_sources)
170
171yat_hello_tmp_files =
172yat_hello_tmp_files += Makefile.in
173yat_hello_tmp_files += autom4te.cache
174yat_hello_tmp_files += aclocal.m4
175yat_hello_tmp_files += build-aux
176yat_hello_tmp_files += configure
177yat_hello_tmp_files += m4
178
179
180yat_hello_deps = $(yat_hello_sources)
181yat_hello_deps += $(top_srcdir)/m4/yat.m4
182## We depend on version.m4 so tarball is updated at every release (at least)
183yat_hello_deps += $(top_srcdir)/m4/version.m4
184
185EXTRA_DIST += $(srcdir)/yat-hello-1.0.tar.gz
186
187$(srcdir)/yat-hello-1.0.tar.gz: $(yat_hello_deps)
188  cd $(srcdir)/yat-hello \
189  && $(MKDIR_P) m4 \
190  && cp $(abs_top_srcdir)/m4/yat.m4 m4/ \
191  && autoreconf -ivf \
192  && ./configure --without-yat \
193  && $(MAKE) $(AM_MAKEFLAGS) dist \
194  && $(MAKE) $(AM_MAKEFLAGS) distclean \
195  && mv yat-hello-1.0.tar.gz .. \
196  && rm -rf $(yat_hello_tmp_files)
197
198installcheck-local: yat-hello-check
199
200yat-hello-check: $(srcdir)/yat-hello-1.0.tar.gz
201  GZIP=$(GZIP_ENV) gzip -dc $(srcdir)/yat-hello-1.0.tar.gz | $(am__untar) \
202  && cd yat-hello-1.0 \
203  && ./configure --with-yat=$(bindir) \
204  && $(MAKE) $(AM_MAKEFLAGS) all \
205  && ./hello \
206  && cd .. \
207  && rm -rf yat-hello-1.0
208
209
210## test data
211EXTRA_DIST += \
212data/isoform.peaks \
213data/knni_matrix.data \
214data/knni_result.data \
215data/knni_weight.data \
216data/nm_alpha_linear_matlab.txt \
217data/nm_data_centralized.txt \
218data/nm_kernel.txt \
219data/nm_kernel2.txt \
220data/nm_kernel_gaussian.txt \
221data/nm_target_bin.txt \
222data/normalization_test.data \
223data/rank_data.txt \
224data/rank_target.txt \
225data/regression_gauss.data \
226data/small.gff2 \
227data/small.gff3 \
228data/sorlie_centroid_classes.txt \
229data/sorlie_centroid_data.txt \
230data/sorlie_centroid_predictions.txt \
231data/sorlie_centroids.txt \
232data/vector1.data \
233data/vector2.data \
234data/vector3.data \
235data/vector4.data \
236data/vector5.data \
237data/vector6.data \
238data/vector7.data \
239data/wenni_result.data \
240data/wenni_weight.data
Note: See TracBrowser for help on using the repository browser.