Permalink
Browse files

scilab: fix script location in test-suite makefile for out-of sources…

… build
  • Loading branch information...
1 parent a13a4d4 commit 6bba1817bfce72623a0c6f31f9e0fcbaee2daf9b @smarchetto smarchetto committed Jun 9, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 Examples/test-suite/scilab/Makefile.in
@@ -9,6 +9,7 @@ SCRIPTSUFFIX = _runme.sci
srcdir = $(abspath @srcdir@)
top_srcdir = $(abspath @top_srcdir@)
top_builddir = $(abspath @top_builddir@)
+SCRIPTDIR = .
C_TEST_CASES += \
scilab_enums \
@@ -26,7 +27,7 @@ CPP_STD_TEST_CASES += \
li_std_container_typemaps \
TEST_DIR = $*.dir
-RUNME_SCRIPT = $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX)
+RUNME_SCRIPT = $(SCRIPTDIR)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX)
include $(srcdir)/../common.mk
@@ -48,7 +49,7 @@ include $(srcdir)/../common.mk
# Makes a directory for the testcase if it does not exist
setup = \
- if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
+ if [ -f $(RUNME_SCRIPT) ]; then \
echo "$(ACTION)ing testcase $* (with run test) under $(LANGUAGE)" ; \
else \
echo "$(ACTION)ing testcase $* under $(LANGUAGE)" ; \

0 comments on commit 6bba181

Please sign in to comment.