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,12 +3,16 @@
# Makefile for mzscheme test-suite
#######################################################################
LANGUAGE = mzscheme
LANGUAGE = mzscheme
SCRIPTSUFFIX = _runme.scm
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
include ../common.mk
include $(srcdir)/../common.mk
# Overridden variables here
# none!
# Rules for the different types of tests
%.cpptest:
@ -29,12 +33,12 @@ 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 mzscheme -r $*\_runme.scm;) \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH mzscheme -r $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
fi;
# Clean
%.clean:
clean:
$(MAKE) -f $(TOP)/Makefile mzscheme_clean
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile mzscheme_clean