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

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

#
Autoconf | 64 lines | 37 code | 17 blank | 10 comment | 2 complexity | 102815ef33da0313338e47363fbc407a MD5 | raw file
 1#######################################################################
 2# Makefile for lua test-suite
 3#######################################################################
 4
 5LANGUAGE     = lua
 6LUA          = @LUABIN@
 7SCRIPTSUFFIX = _runme.lua
 8srcdir       = @srcdir@
 9top_srcdir   = @top_srcdir@
10top_builddir = @top_builddir@
11
12# sorry, currently very few test cases work/have been written
13
14CPP_TEST_CASES += \
15	lua_no_module_global \
16
17
18C_TEST_CASES += \
19	lua_no_module_global \
20
21
22include $(srcdir)/../common.mk
23
24# Overridden variables here
25LIBS       = -L.
26
27# Custom tests - tests with additional commandline options
28lua_no_module_global.%: SWIGOPT += -nomoduleglobal
29
30# Rules for the different types of tests
31%.cpptest: 
32	$(setup)
33	+$(swig_and_compile_cpp)
34	$(run_testcase)
35
36%.ctest:
37	$(setup)
38	+$(swig_and_compile_c)
39	$(run_testcase)
40
41%.multicpptest: 
42	$(setup)
43	+$(swig_and_compile_multi_cpp)
44	$(run_testcase)
45
46# Runs the testcase. A testcase is only run if
47# a file is found which has _runme.lua appended after the testcase name.
48run_testcase = \
49	if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
50	  env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(LUA) $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
51	fi
52
53# Clean: (does nothing, we dont generate extra lua code)
54%.clean:
55	
56
57clean:
58	$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile lua_clean
59
60cvsignore:
61	@echo '*wrap* *.so *.dll *.exp *.lib'
62	@echo Makefile
63	@for i in ${CPP_TEST_CASES} ${C_TEST_CASES}; do echo $$i.lua; done 
64	@for i in ${CPP_TEST_CASES} ${C_TEST_CASES}; do if grep -q $${i}_runme.lua CVS/Entries ; then echo $${i}_runme.lua; fi; done