Browse files

scilab: base test-suite makefile on java makefile

  • Loading branch information...
1 parent 6bba181 commit 4bfbe20e52e641146dfc0c3e003e2258f4540a0f @smarchetto smarchetto committed Jun 9, 2014
Showing with 10 additions and 7 deletions.
  1. +10 −7 Examples/test-suite/scilab/Makefile.in
View
17 Examples/test-suite/scilab/Makefile.in
@@ -6,10 +6,10 @@ LANGUAGE = scilab
SCILAB = @SCILAB@
SCILAB_OPT = @SCILABOPT@
SCRIPTSUFFIX = _runme.sci
-srcdir = $(abspath @srcdir@)
-top_srcdir = $(abspath @top_srcdir@)
-top_builddir = $(abspath @top_builddir@)
-SCRIPTDIR = .
+
+srcdir = @srcdir@
+top_srcdir = ../@top_srcdir@
+top_builddir = ../@top_builddir@
C_TEST_CASES += \
scilab_enums \
@@ -26,11 +26,15 @@ CPP_TEST_CASES += \
CPP_STD_TEST_CASES += \
li_std_container_typemaps \
+include $(srcdir)/../common.mk
+
+# overriden variables
+SRCDIR = ../$(srcdir)/
+
+# local variables
TEST_DIR = $*.dir
RUNME_SCRIPT = $(SCRIPTDIR)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX)
-include $(srcdir)/../common.mk
-
# Rules for the different types of tests
%.cpptest:
$(setup)
@@ -70,4 +74,3 @@ run_testcase = \
@rm -rf $(TEST_DIR)
clean:
- $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile scilab_clean

0 comments on commit 4bfbe20

Please sign in to comment.