1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 2341 2010-10-17 02:30:07Z 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 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 | SUBDIRS = data |
---|
27 | |
---|
28 | ## we use suffix .cc for all source |
---|
29 | AM_DEFAULT_SOURCE_EXT = .cc |
---|
30 | |
---|
31 | noinst_HEADERS = Suite.h |
---|
32 | |
---|
33 | check_LTLIBRARIES = libyattest.la |
---|
34 | |
---|
35 | check_SCRIPTS = common_defs.sh |
---|
36 | |
---|
37 | .PHONY: FORCE |
---|
38 | |
---|
39 | clean-local:; rm -rf yathello testSubDir |
---|
40 | |
---|
41 | FORCE: |
---|
42 | |
---|
43 | yathello: create_yathello.sh $(top_srcdir)/m4/yat.m4 |
---|
44 | ./create_yathello.sh |
---|
45 | |
---|
46 | # testing autoconf macro YAT_CHECK_YAT on an installed yat (the bindir |
---|
47 | # argument requires some care). |
---|
48 | yat_check_yat_test: yathello FORCE |
---|
49 | cd yathello && autoreconf -sivf && \ |
---|
50 | ./configure --with-yat=$(bindir) && $(MAKE) check |
---|
51 | |
---|
52 | EXTRA_PROGRAMS = alignment_test averager_test \ |
---|
53 | commandline_test \ |
---|
54 | concept_test \ |
---|
55 | consensus_inputranker_test data_lookup_1d_test \ |
---|
56 | data_weight_test data_weight_proxy_test distance_test \ |
---|
57 | dna_test ensemble_test feature_selection_test fileutil_test \ |
---|
58 | fisher_test getline_iterator_test histogram_test \ |
---|
59 | igp_test index_test inputranker_test interpolation_test \ |
---|
60 | iterator_test kernel_lookup_test kernel_pca_test kernel_test \ |
---|
61 | knn_test kolmogorov_smirnov_test large_file_test matrix_lookup_test \ |
---|
62 | matrix_lookup_weighted_test matrix_test \ |
---|
63 | matrix_weighted_test merge_test nbc_test \ |
---|
64 | ncc_test nni_test normalization_test pca_test \ |
---|
65 | range_test regression_test rnd_test roc_test \ |
---|
66 | score_test segment_test smart_ptr_test \ |
---|
67 | smoother_test split_test statistics_test stream_redirect_test \ |
---|
68 | subset_generator_test svd_test svm_test \ |
---|
69 | svm_multi_class_test target_test \ |
---|
70 | ttest_test \ |
---|
71 | utility_test vector_test version_test view_test |
---|
72 | |
---|
73 | TESTS = $(EXTRA_PROGRAMS) |
---|
74 | CLEANFILES = $(EXTRA_PROGRAMS) |
---|
75 | |
---|
76 | # tests not passing through yet |
---|
77 | XFAIL_TESTS = |
---|
78 | |
---|
79 | TESTS += documentation_test.sh |
---|
80 | |
---|
81 | DISTRIBUTED_TESTS = \ |
---|
82 | static_test.sh \ |
---|
83 | yat_config_cblas_test.sh \ |
---|
84 | yat_cpp_add_flag_test.sh \ |
---|
85 | yat_cxx_add_flag_test.sh \ |
---|
86 | yat_ld_add_flag_test.sh \ |
---|
87 | yat_lt_link_ifelse_test.sh \ |
---|
88 | yat_m4_test.sh \ |
---|
89 | yat_m4_test2.sh |
---|
90 | |
---|
91 | TESTS += $(DISTRIBUTED_TESTS) |
---|
92 | EXTRA_DIST = $(DISTRIBUTED_TESTS) |
---|
93 | |
---|
94 | TEST_EXTENSIONS = .sh |
---|
95 | |
---|
96 | LDADD = $(top_builddir)/yat/libyat.la libyattest.la $(YAT_LIBS) |
---|
97 | |
---|
98 | libyattest_la_SOURCES = Suite.cc |
---|
99 | |
---|
100 | lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS= |
---|
101 | |
---|
102 | # dependencies for lazycheck |
---|
103 | static_test.log: $(top_srcdir)/m4/yat.m4 common_defs.sh |
---|
104 | yat_config_cblas_test.log: $(top_builddir)/build_support/yat-config \ |
---|
105 | common_defs.sh |
---|
106 | yat_cpp_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \ |
---|
107 | $(top_srcdir)/m4/ax_cxxcpp_check_flag.m4 common_defs.sh |
---|
108 | yat_cxx_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \ |
---|
109 | $(top_srcdir)/m4/ax_cxx_check_flag.m4 common_defs.sh |
---|
110 | yat_ld_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \ |
---|
111 | $(top_srcdir)/m4/ax_ld_check_flag.m4 common_defs.sh |
---|
112 | yat_m4_test.log:$(top_srcdir)/m4/yat.m4 common_defs.sh \ |
---|
113 | $(top_builddir)/build_support/yat-config |
---|
114 | yat_m4_test2.log:$(top_srcdir)/m4/yat.m4 common_defs.sh |
---|
115 | |
---|
116 | ## We always rerun documentation_test. When sources for doxygen have |
---|
117 | ## not changed and a rerun would not be needed, the test is very |
---|
118 | ## inexpensive because 'make doc' will not run anything, in other |
---|
119 | ## words, we always run the test but let the logic for 'make doc' take |
---|
120 | ## care of whether doxygen will run or not. |
---|
121 | documentation_test.log: FORCE |
---|