Scilab: refactor & clean make command lines

This commit is contained in:
Simon Marchetto 2013-09-03 14:11:45 +02:00
commit 360a565f7c
2 changed files with 21 additions and 30 deletions

View file

@ -4,11 +4,13 @@
LANGUAGE = scilab
SCILAB = @SCILAB@
SCILAB_STARTOPT = @SCILABSTARTOPT@
SCRIPTSUFFIX = _runme.sci
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
# Overridden variables here
# None!
# - member_funcptr_galore (C++)
@ -61,7 +63,7 @@ include $(srcdir)/../common.mk
# 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) echo 'exit(1)' |$(SCILAB) -nwni -nb -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ; ) \
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(SCILAB) $(SCILAB_STARTOPT) -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ; ) \
fi;
# Clean: remove the generated files