PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/clisp/Makefile.in

#
Autoconf | 51 lines | 27 code | 12 blank | 12 comment | 1 complexity | 4dab6264e75367b7762b42cb7cf0a567 MD5 | raw file
 1#######################################################################
 2# Makefile for clisp test-suite
 3#######################################################################
 4
 5LANGUAGE     = clisp
 6CLISP        = @CLISPBIN@
 7SCRIPTSUFFIX = _runme.lisp
 8srcdir       = @srcdir@
 9top_srcdir   = @top_srcdir@
10top_builddir = @top_builddir@
11
12include $(srcdir)/../common.mk
13
14# Overridden variables here
15# no C++ tests for now
16CPP_TEST_CASES =
17#C_TEST_CASES += 
18
19# Custom tests - tests with additional commandline options
20# none!
21
22# Rules for the different types of tests
23%.cpptest: 
24	$(setup)
25	+$(swig_and_compile_cpp)
26	$(run_testcase)
27
28%.ctest:
29	$(setup)
30	+$(swig_and_compile_c)
31	$(run_testcase)
32
33%.multicpptest: 
34	$(setup)
35	+$(swig_and_compile_multi_cpp)
36	$(run_testcase)
37
38# Runs the testcase. A testcase is only run if
39# a file is found which has _runme.lisp appended after the testcase name.
40run_testcase = \
41	if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
42	  env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(CLISPBIN) -batch -s $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
43	fi
44
45# Clean: (does nothing, we dont generate extra clisp code)
46%.clean:
47	
48
49clean:
50	$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile clisp_clean
51