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:
parent
e9f27a9c19
commit
0cc299f6d8
13 changed files with 126 additions and 83 deletions
|
|
@ -3,14 +3,16 @@
|
|||
# Makefile for python test-suite
|
||||
#######################################################################
|
||||
|
||||
LANGUAGE = python
|
||||
LANGUAGE = python
|
||||
SCRIPTSUFFIX = _runme.py
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
|
||||
include ../common.mk
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
# Overridden variables here
|
||||
TARGETSUFFIX =
|
||||
SWIGOPT = -I$(TOP)/$(TEST_SUITE)
|
||||
# none!
|
||||
|
||||
# Rules for the different types of tests
|
||||
%.cpptest:
|
||||
|
|
@ -31,8 +33,8 @@ SWIGOPT = -I$(TOP)/$(TEST_SUITE)
|
|||
# Runs the testcase. A testcase is only run if
|
||||
# a file is found which has _runme.py appended after the testcase name.
|
||||
run_testcase = \
|
||||
if [ -f $*\_runme.py ]; then ( \
|
||||
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH python $*\_runme.py;) \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH python $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
|
||||
fi;
|
||||
|
||||
# Clean: remove the generated .py file
|
||||
|
|
@ -40,5 +42,5 @@ run_testcase = \
|
|||
@rm -f $*.py;
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(TOP)/Makefile python_clean
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile python_clean
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue