Multiple build directory support

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

View file

@ -3,12 +3,16 @@
# Makefile for tcl test-suite
#######################################################################
LANGUAGE = tcl
LANGUAGE = tcl
SCRIPTSUFFIX = _runme.tcl
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,13 +33,12 @@ include ../common.mk
# Runs the testcase. A testcase is only run if
# a file is found which has _runme.tcl appended after the testcase name.
run_testcase = \
if [ -f $*\_runme.tcl ]; then ( \
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH tclsh $*\_runme.tcl;) \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH tclsh $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
fi;
# Clean
%.clean:
clean:
$(MAKE) -f $(TOP)/Makefile tcl_clean
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile tcl_clean