fixes to use parallel make when running the examples and test-suite

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-07-24 21:26:54 +00:00
commit e4bade15f3
22 changed files with 187 additions and 154 deletions

View file

@ -47,27 +47,27 @@ include $(srcdir)/../common.mk
# Rules for the different types of tests
%.cpptest:
echo $@ >> testing
$(setup) \
($(swig_and_compile_cpp); ) && \
$(run_testcase) \
$(setup)
+$(swig_and_compile_cpp)
$(run_testcase)
if [ -f $(@:%.cpptest=%_wrap.o) ] ; then \
echo $@ >> success ; \
fi
%.ctest:
echo $@ >> testing
$(setup) \
($(swig_and_compile_c); ) && \
$(run_testcase) \
$(setup)
+$(swig_and_compile_c)
$(run_testcase)
if [ -f $(@:%.ctest=%_wrap.o) ] ; then \
echo $@ >> success ; \
fi
%.multicpptest:
echo $@ >> testing
($(swig_and_compile_multi_cpp); ) && \
$(setup) \
$(run_testcase) \
+$(swig_and_compile_multi_cpp)
$(setup)
$(run_testcase)
if [ -f $(@:%.multicpptest=%_runtime_wrap.o) ] ; then \
echo $@ >> success ; \
fi