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

Last change on this file was 853, checked in by Jari Häkkinen, 14 years ago

Fixes #152. Added custom target 'install-plugin' that parallels 'install'.

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