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 | |
---|
25 | check_PROGRAMS = wenni_test |
---|
26 | |
---|
27 | TESTS = $(check_PROGRAMS) |
---|
28 | |
---|
29 | LINKS = NNIFileConverter nni |
---|
30 | WENNI_PL_LINK = wenni.pl |
---|
31 | |
---|
32 | if BASE1 |
---|
33 | LINKS += BaseFileConverter $(WENNI_PL_LINK) |
---|
34 | CREATE_INDATA = run_base1_plugin |
---|
35 | endif |
---|
36 | |
---|
37 | CPP_TOOLS_LIB=$(top_builddir)/$(CPP_TOOLS_LIBPATH)/libc++_tools.la |
---|
38 | LDADD = $(CPP_TOOLS_LIB) |
---|
39 | |
---|
40 | wenni_test_DEPENDENCIES = $(LINKS) $(CREATE_INDATA) $(CPP_TOOLS_LIB) |
---|
41 | wenni_test_SOURCES = wenni_test.cc |
---|
42 | |
---|
43 | BaseFileConverter:; ln -fs $(top_builddir)/base/base1/$@/$@ |
---|
44 | nni:; ln -fs $(top_builddir)/bin/$@/$@ |
---|
45 | NNIFileConverter:; ln -fs $(top_builddir)/bin/$@/$@ |
---|
46 | $(WENNI_PL_LINK):; ln -fs $(top_srcdir)/base/base1/base_plugin_script/$@ |
---|
47 | |
---|
48 | run_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 | |
---|
54 | clean-local:; rm -rf $(LINKS) default_results raw_results \ |
---|
55 | knni_imputed.data wenni_imputed.data |
---|
56 | |
---|
57 | install-plugin:; |
---|
58 | .PHONY: install-plugin |
---|