1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 2445 2011-03-19 23:06:05Z 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 | 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 | EXTRA_PROGRAMS = alignment.test averager.test \ |
---|
44 | codon.test commandline.test \ |
---|
45 | concept.test \ |
---|
46 | consensus_inputranker.test data_lookup_1d.test \ |
---|
47 | data_weight.test data_weight_proxy.test distance.test \ |
---|
48 | dna.test ensemble.test feature_selection.test fileutil.test \ |
---|
49 | fisher.test genomic_position.test getline_iterator.test histogram.test \ |
---|
50 | igp.test index.test inputranker.test interpolation.test \ |
---|
51 | iterator.test kernel_lookup.test kernel_pca.test kernel.test \ |
---|
52 | knn.test kolmogorov_smirnov.test large_file.test matrix_lookup.test \ |
---|
53 | matrix_lookup_weighted.test matrix.test \ |
---|
54 | matrix_weighted.test merge.test nbc.test \ |
---|
55 | ncc.test nni.test normalization.test pca.test \ |
---|
56 | range.test regression.test rnd.test roc.test \ |
---|
57 | score.test segment.test smart_ptr.test \ |
---|
58 | smoother.test split.test statistics.test stream_redirect.test \ |
---|
59 | subset_generator.test svd.test svm.test \ |
---|
60 | svm_multi_class.test target.test \ |
---|
61 | ttest.test \ |
---|
62 | utility.test vector.test version.test view.test |
---|
63 | |
---|
64 | TESTS = $(EXTRA_PROGRAMS) |
---|
65 | CLEANFILES = $(EXTRA_PROGRAMS) |
---|
66 | |
---|
67 | # tests not passing through yet |
---|
68 | XFAIL_TESTS = |
---|
69 | |
---|
70 | TESTS += documentation_test.sh |
---|
71 | |
---|
72 | DISTRIBUTED_TESTS = \ |
---|
73 | static_test.sh \ |
---|
74 | yat_config_test.sh \ |
---|
75 | yat_config_cblas_test.sh \ |
---|
76 | yat_cpp_add_flag_test.sh \ |
---|
77 | yat_cxx_add_flag_test.sh \ |
---|
78 | yat_ld_add_flag_test.sh \ |
---|
79 | yat_lt_link_ifelse_test.sh \ |
---|
80 | yat_msg_error_test.sh \ |
---|
81 | yat_msg_error_test2.sh \ |
---|
82 | yat_m4_test.sh \ |
---|
83 | yat_m4_test2.sh |
---|
84 | |
---|
85 | TESTS += $(DISTRIBUTED_TESTS) |
---|
86 | EXTRA_DIST = $(DISTRIBUTED_TESTS) |
---|
87 | |
---|
88 | TEST_EXTENSIONS = .sh .test |
---|
89 | |
---|
90 | LDADD = $(top_builddir)/yat/libyat.la libyattest.la $(YAT_LIBS) |
---|
91 | |
---|
92 | large_file_test_LDADD = libyattest.la |
---|
93 | |
---|
94 | libyattest_la_SOURCES = Suite.cc |
---|
95 | |
---|
96 | lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS= |
---|
97 | |
---|
98 | # dependencies for lazycheck |
---|
99 | static_test.log: $(top_srcdir)/m4/yat.m4 common_defs.sh |
---|
100 | yat_config_test.log: $(top_builddir)/build_support/yat-config \ |
---|
101 | $(top_builddir)/build_support/for_installation/yat-config common_defs.sh |
---|
102 | yat_config_cblas_test.log: $(top_builddir)/build_support/yat-config \ |
---|
103 | common_defs.sh |
---|
104 | yat_cpp_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \ |
---|
105 | $(top_srcdir)/m4/ax_cxxcpp_check_flag.m4 common_defs.sh |
---|
106 | yat_cxx_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \ |
---|
107 | $(top_srcdir)/m4/ax_cxx_check_flag.m4 common_defs.sh |
---|
108 | yat_ld_add_flag_test.log: $(top_srcdir)/m4/yat_add_flag.m4 \ |
---|
109 | $(top_srcdir)/m4/ax_ld_check_flag.m4 common_defs.sh |
---|
110 | yat_lt_link_ifelse_test.log: $(top_srcdir)/m4/yat_lt_link_ifelse.m4 \ |
---|
111 | 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 | yat_msg_error_test.log:$(top_srcdir)/m4/yat_msg_error.m4 common_defs.sh |
---|
116 | yat_msg_error_test2.log:$(top_srcdir)/m4/yat_msg_error.m4 common_defs.sh |
---|
117 | |
---|
118 | ## We always rerun documentation_test. When sources for doxygen have |
---|
119 | ## not changed and a rerun would not be needed, the test is very |
---|
120 | ## inexpensive because 'make doc' will not run anything, in other |
---|
121 | ## words, we always run the test but let the logic for 'make doc' take |
---|
122 | ## care of whether doxygen will run or not. |
---|
123 | documentation_test.log: FORCE |
---|
124 | |
---|
125 | |
---|
126 | # yat-hello is an example of a tiny package that uses yat |
---|
127 | noinst_DATA = $(srcdir)/yat-hello-1.0.tar.gz |
---|
128 | |
---|
129 | # Directory yat-hello contains what a developer would check out |
---|
130 | # from a VCS, i.e., no files generated by autotools. |
---|
131 | yat_hello_sources = |
---|
132 | yat_hello_sources += $(srcdir)/yat-hello/configure.ac |
---|
133 | yat_hello_sources += $(srcdir)/yat-hello/Makefile.am |
---|
134 | yat_hello_sources += $(srcdir)/yat-hello/hello.cc |
---|
135 | |
---|
136 | EXTRA_DIST += $(yat_hello_sources) |
---|
137 | |
---|
138 | yat_hello_tmp_files = |
---|
139 | yat_hello_tmp_files += Makefile.in |
---|
140 | yat_hello_tmp_files += autom4te.cache |
---|
141 | yat_hello_tmp_files += aclocal.m4 |
---|
142 | yat_hello_tmp_files += config.guess |
---|
143 | yat_hello_tmp_files += config.sub |
---|
144 | yat_hello_tmp_files += configure |
---|
145 | yat_hello_tmp_files += depcomp |
---|
146 | yat_hello_tmp_files += install-sh |
---|
147 | yat_hello_tmp_files += ltmain.sh |
---|
148 | yat_hello_tmp_files += m4 |
---|
149 | yat_hello_tmp_files += missing |
---|
150 | |
---|
151 | |
---|
152 | |
---|
153 | yat_hello_deps = $(yat_hello_sources) |
---|
154 | yat_hello_deps += $(top_srcdir)/m4/yat.m4 |
---|
155 | ## We depend on version.m4 so tarball is updated at every release (at least) |
---|
156 | yat_hello_deps += $(top_srcdir)/m4/version.m4 |
---|
157 | |
---|
158 | EXTRA_DIST += $(srcdir)/yat-hello-1.0.tar.gz |
---|
159 | |
---|
160 | $(srcdir)/yat-hello-1.0.tar.gz: $(yat_hello_deps) |
---|
161 | cd $(srcdir)/yat-hello \ |
---|
162 | && $(MKDIR_P) m4 \ |
---|
163 | && cp $(abs_top_srcdir)/m4/yat.m4 m4/ \ |
---|
164 | && autoreconf -ivf \ |
---|
165 | && ./configure --without-yat \ |
---|
166 | && $(MAKE) $(AM_MAKEFLAGS) dist \ |
---|
167 | && $(MAKE) $(AM_MAKEFLAGS) distclean \ |
---|
168 | && mv yat-hello-1.0.tar.gz .. \ |
---|
169 | && rm -rf $(yat_hello_tmp_files) |
---|
170 | |
---|
171 | installcheck-local: yat-hello-check |
---|
172 | |
---|
173 | yat-hello-check: $(srcdir)/yat-hello-1.0.tar.gz |
---|
174 | GZIP=$(GZIP_ENV) gzip -dc $< | $(am__untar) \ |
---|
175 | && cd yat-hello-1.0 \ |
---|
176 | && ./configure --with-yat=$(bindir) \ |
---|
177 | && $(MAKE) $(AM_MAKEFLAGS) all \ |
---|
178 | && ./hello \ |
---|
179 | && cd .. \ |
---|
180 | && rm -rf yat-hello-1.0 |
---|