1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 2232 2010-03-26 12:21:58Z 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 | consensus_inputranker_test data_lookup_1d_test \ |
---|
55 | data_weight_test data_weight_proxy_test distance_test \ |
---|
56 | ensemble_test feature_selection_test fileutil_test \ |
---|
57 | fisher_test getline_iterator_test histogram_test \ |
---|
58 | igp_test index_test inputranker_test interpolation_test \ |
---|
59 | iterator_test kernel_lookup_test kernel_test \ |
---|
60 | knn_test kolmogorov_smirnov_test large_file_test matrix_lookup_test \ |
---|
61 | matrix_lookup_weighted_test matrix_test \ |
---|
62 | matrix_weighted_test merge_test nbc_test \ |
---|
63 | ncc_test nni_test normalization_test pca_test \ |
---|
64 | range_test regression_test rnd_test roc_test \ |
---|
65 | score_test smart_ptr_test \ |
---|
66 | smoother_test statistics_test stream_redirect_test \ |
---|
67 | subset_generator_test svd_test svm_test \ |
---|
68 | svm_multi_class_test target_test \ |
---|
69 | ttest_test \ |
---|
70 | utility_test vector_test version_test view_test |
---|
71 | |
---|
72 | TESTS = $(EXTRA_PROGRAMS) |
---|
73 | CLEANFILES = $(EXTRA_PROGRAMS) |
---|
74 | |
---|
75 | # tests not passing through yet |
---|
76 | XFAIL_TESTS = |
---|
77 | |
---|
78 | TESTS += documentation_test.sh |
---|
79 | |
---|
80 | DISTRIBUTED_TESTS = \ |
---|
81 | static_test.sh \ |
---|
82 | yat_config_cblas_test.sh \ |
---|
83 | yat_cpp_add_flag_test.sh \ |
---|
84 | yat_cxx_add_flag_test.sh \ |
---|
85 | yat_ld_add_flag_test.sh \ |
---|
86 | yat_m4_test.sh \ |
---|
87 | yat_m4_test2.sh |
---|
88 | |
---|
89 | TESTS += $(DISTRIBUTED_TESTS) |
---|
90 | EXTRA_DIST = $(DISTRIBUTED_TESTS) |
---|
91 | |
---|
92 | TEST_EXTENSIONS = .sh |
---|
93 | |
---|
94 | LDADD = $(top_builddir)/$(YAT_LIB_LOCATION)/libyat.la libyattest.la $(YAT_LIBS) |
---|
95 | |
---|
96 | libyattest_la_SOURCES = Suite.cc |
---|
97 | |
---|
98 | lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS= |
---|
99 | |
---|
100 | # dependencies for lazycheck |
---|
101 | static_test.sh: $(top_srcdir)/m4/yat.m4 |
---|
102 | yat_config_cblas_test.sh: $(top_builddir)/build_support/yat-config |
---|
103 | yat_cpp_add_flag_test.sh: $(top_srcdir)/m4/yat_add_flag.m4 $(top_srcdir)/m4/ax_cxxcpp_check_flag.m4 |
---|
104 | yat_cxx_add_flag_test.sh: $(top_srcdir)/m4/yat_add_flag.m4 $(top_srcdir)/m4/ax_cxx_check_flag.m4 |
---|
105 | yat_ld_add_flag_test.sh: $(top_srcdir)/m4/yat_add_flag.m4 $(top_srcdir)/m4/ax_ld_check_flag.m4 |
---|
106 | yat_m4_test.sh:$(top_srcdir)/m4/yat.m4 $(top_builddir)/build_support/yat-config |
---|
107 | yat_m4_test2.sh:$(top_srcdir)/m4/yat.m4 |
---|
108 | |
---|
109 | # all shell tests depend on common_defs.sh |
---|
110 | $(DISTRIBUTED_TESTS): common_defs.sh |
---|
111 | |
---|
112 | ## we wanna rerun documentation_test if a header file has |
---|
113 | ## changed. Depending on libyat should cover all those cases. When |
---|
114 | ## libyat has beed recreated due to source changes and not header file |
---|
115 | ## changes the documentation_test is very cheap anyway since 'make |
---|
116 | ## doc' will do nothing. |
---|
117 | documentation_test.sh: $(top_builddir)/yat/libyat.la |
---|