swig/Examples/test-suite/scilab/Makefile.in
Vincent Couvert efcc9e97c9 Enable cpp tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-04 16:06:40 +00:00

48 lines
1.3 KiB
Makefile

#######################################################################
# Makefile for scilab test-suite
#######################################################################
LANGUAGE = scilab
SCILAB = @SCILAB@
SCRIPTSUFFIX = _runme.sci
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
include $(srcdir)/../common.mk
# Overridden variables here
# none!
# Rules for the different types of tests
%.cpptest:
@$(setup)
@+$(swig_and_compile_cpp)
@$(run_testcase)
%.ctest:
@$(setup)
@+$(swig_and_compile_c)
@$(run_testcase)
%.multicpptest:
@$(setup)
@+$(swig_and_compile_multi_cpp)
@$(run_testcase)
# Runs the testcase. A testcase is only run if
# a file is found which has _runme.sci appended after the testcase name.
run_testcase = \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(SCILAB) -nwni -nb -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ; ) \
else \
(echo "**********************\n* RUNME FILE MISSING *\n* $(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) *\n**********************") \
fi; \
# Clean: remove the generated .sci file
%.clean:
@rm -f $*.sci *_wrap.c *.h *_wrap.cxx
clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile scilab_clean