source: plugins/base1/se.lu.thep.wenni/trunk/test/Makefile.am @ 836

Last change on this file since 836 was 836, checked in by Peter Johansson, 13 years ago

refs #63. Fixed vpath issues in test so make distcheck no works in stand-alone and base1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 836 2008-11-28 17:27:49Z peter $
4
5# Copyright (C) 2005, 2006 Jari Häkkinen
6# Copyright (C) 2007 2008 Peter Johansson
7#
8# This file is part of WeNNI,
9# http://baseplugins.thep.lu.se/wiki/se.lu.thep.WeNNI
10#
11# WeNNI is free software; you can redistribute it and/or modify it
12# under the terms of the GNU General Public License as published by the
13# Free Software Foundation; either version 3 of the License, or (at
14# your option) any later version.
15#
16# WeNNI is distributed in the hope that it will be useful, but WITHOUT
17# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19# for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with WeNNI. If not, see <http://www.gnu.org/licenses/>.
23
24check_PROGRAMS = wenni_test
25
26TESTS = $(check_PROGRAMS)
27
28if BASE1
29CREATE_INDATA = run_base1_plugin
30else
31CREATE_INDATA = link_base_files
32endif
33
34SUPPORT_LINKS = BaseFileConverter NNIFileConverter nni
35WENNI_PL_LINK = wenni.pl
36LINKS = $(SUPPORT_LINKS) $(WENNI_PL_LINK)
37
38AM_CPPFLAGS = -I@top_srcdir@/lib
39LDADD = -L@top_builddir@/$(CPP_TOOLS_LIBPATH) -lc++_tools
40
41wenni_test_DEPENDENCIES = $(SUPPORT_LINKS) $(WENNI_PL_LINK) $(CREATE_INDATA)
42wenni_test_SOURCES = wenni_test.cc
43
44BaseFileConverter:; ln -fs $(top_builddir)/base/base1/$@/$@
45nni:; ln -fs $(top_builddir)/bin/$@/$@
46NNIFileConverter:; ln -fs $(top_builddir)/bin/$@/$@
47$(WENNI_PL_LINK):; ln -fs $(top_srcdir)/base/base1/base_plugin_script/$@
48
49run_base1_plugin:
50  @(install -d raw_results && cd raw_results && ../wenni.pl --datatype raw \
51--nodelete < ../$(top_srcdir)/data/basefile_in.data > basefile_out.data);
52  @(install -d default_results && cd default_results && ../wenni.pl \
53--nodelete < ../$(top_srcdir)/data/basefile_in.data > basefile_out.data);
54
55link_base_files:
56  rm -f raw_results && ln -fs $(top_srcdir)/data raw_results && \
57  rm -f default_results && ln -fs $(top_srcdir)/data default_results;
58
59clean-local:; rm -rf $(LINKS) default_results raw_results \
60  knni_imputed.data wenni_imputed.data
61
62
63
Note: See TracBrowser for help on using the repository browser.