avoid to call MAKE when building a .ccptes or .ctest case. This allows to use make -j2, and also it should reduce the running time in windows where forking another MAKE process is expensive

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-29 18:58:31 +00:00
commit d3fbe6779f

View file

@ -3,6 +3,9 @@
# Makefile for python test-suite
#######################################################################
srcdir = @srcdir@
include $(srcdir)/../../Makefile
LANGUAGE = python
ifneq (,$(USE_VALGRIND))
PYTHON = valgrind --leak-check=full --suppressions=pyswig.supp @PYTHON@
@ -10,7 +13,6 @@ else
PYTHON = @PYTHON@
endif
SCRIPTSUFFIX = _runme.py
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
@ -68,14 +70,28 @@ LIBS = -L.
# Rules for the different types of tests
%.cpptest:
$(setup) \
($(swig_and_compile_cpp); ) &&\
$(SWIG) -c++ -python $(SWIGOPT) $*.i && \
$(CXX) -c $(CCSHARED) $(CFLAGS) $*_wrap.cxx $(INCLUDES) $(PYTHON_INCLUDE) && \
$(CXXSHARED) $(OBJS) $*_wrap.o $(PYTHON_DLNK) $(LIBS) -o _$*$(PYTHON_SO) && \
$(run_testcase)
#%.cpptest:
# $(setup) \
# ($(swig_and_compile_cpp); ) &&\
# $(run_testcase)
%.ctest:
$(setup) \
($(swig_and_compile_c); ) &&\
$(SWIG) -python $(SWIGOPT) $*.i && \
$(CC) -c $(CCSHARED) $(CFLAGS) $*_wrap.c $(INCLUDES) $(PYTHON_INCLUDE) && \
$(LDSHARED) $(OBJS) $*_wrap.o $(PYTHON_DLNK) $(LIBS) -o _$*$(PYTHON_SO) && \
$(run_testcase)
#%.ctest:
# $(setup) \
# ($(swig_and_compile_c); ) &&\
# $(run_testcase)
%.multicpptest:
$(setup) \
($(swig_and_compile_multi_cpp); ) &&\