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

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

Fixes #146.

  • 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 825 2008-11-26 22:42:17Z jari $
4
5# Copyright (C) 2005, 2006 Jari Häkkinen
6# Copyright (C) 2007 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 ../base/base1/$@/$@
45nni:; ln -fs ../bin/$@/$@
46NNIFileConverter:; ln -fs ../bin/$@/$@
47$(WENNI_PL_LINK):; ln -fs ../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  ln -fs ../data raw_results;
57  ln -fs ../data default_results;
58
59clean-local:; rm -rf $(SUPPORT_LINKS) $(WENNI_PL_LINK) default_results \
60  raw_results
61
62
63
Note: See TracBrowser for help on using the repository browser.