Replace ; with && where appropriate. This fixes the makefiles so that Make correctly errors out rather than blindly carrying on when some error occurs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
61e105a895
commit
197b15b0ec
15 changed files with 66 additions and 66 deletions
|
|
@ -15,7 +15,7 @@ C_TEST_CASES =
|
|||
run_testcase = \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||
ocamlc -c $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
|
||||
ocamlc swig.cmo -custom -g -cc '$(CXX)' -o runme $(srcdir)/$*\.cmo $(srcdir)/$*\_runme.cmo $(srcdir)/$*\_wrap.o ; \
|
||||
ocamlc swig.cmo -custom -g -cc '$(CXX)' -o runme $(srcdir)/$*\.cmo $(srcdir)/$*\_runme.cmo $(srcdir)/$*\_wrap.o && \
|
||||
./runme) ; \
|
||||
fi ;
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ include $(srcdir)/../common.mk
|
|||
%.cpptest:
|
||||
echo $@ >> testing
|
||||
$(setup) \
|
||||
($(swig_and_compile_cpp); ) ; \
|
||||
($(swig_and_compile_cpp); ) && \
|
||||
$(run_testcase) \
|
||||
if [ -f $(@:%.cpptest=%_wrap.o) ] ; then \
|
||||
echo $@ >> success ; \
|
||||
|
|
@ -53,7 +53,7 @@ include $(srcdir)/../common.mk
|
|||
%.ctest:
|
||||
echo $@ >> testing
|
||||
$(setup) \
|
||||
($(swig_and_compile_c); ) ; \
|
||||
($(swig_and_compile_c); ) && \
|
||||
$(run_testcase) \
|
||||
if [ -f $(@:%.ctest=%_wrap.o) ] ; then \
|
||||
echo $@ >> success ; \
|
||||
|
|
@ -62,7 +62,7 @@ include $(srcdir)/../common.mk
|
|||
%.multicpptest:
|
||||
echo $@ >> testing
|
||||
$(setup) \
|
||||
($(swig_and_compile_multi_cpp); ) ; \
|
||||
($(swig_and_compile_multi_cpp); ) && \
|
||||
$(run_testcase) \
|
||||
if [ -f $(@:%.multicpptest=%_a_wrap.o) ] ; then \
|
||||
echo $@ >> success ; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue