Multiple build directory support

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-09-01 15:15:50 +00:00
commit 5206dd0912
13 changed files with 126 additions and 83 deletions

View file

@ -3,15 +3,19 @@
# Makefile for guile test-suite
#######################################################################
LANGUAGE = guile
VARIANT = _passive
LANGUAGE = guile
VARIANT = _passive
SCRIPTSUFFIX = _runme.scm
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
C_TEST_CASES = long_long list_vector pointer_in_out multivalue
include ../common.mk
include $(srcdir)/../common.mk
# Overridden variables here
# none!
# Rules for the different types of tests
%.cpptest:
@ -32,8 +36,8 @@ include ../common.mk
# Runs the testcase. A testcase is only run if
# a file is found which has _runme.scm appended after the testcase name.
run_testcase = \
if [ -f $*\_runme.scm ]; then ( \
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH guile -l $*\_runme.scm;) \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH guile -l $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
fi;
# Clean
@ -41,4 +45,4 @@ run_testcase = \
@rm -f $*-guile
clean:
$(MAKE) -f $(TOP)/Makefile guile_clean
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile guile_clean