swig/Examples/test-suite/scilab/Makefile.in
2010-10-14 14:57:56 +00:00

44 lines
1.2 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:
%.ctest:
@$(setup)
@cp ../$*.i $*.i
@if [ -f ../$*.h ]; then (cp ../$*.h $*.h; ) fi;
@+$(swig_and_compile_c)
@$(run_testcase)
%.multicpptest:
# 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 *.i *.h *_wrap.cxx
clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile scilab_clean