Enhance check-%-test-suite rule and friends to give a more helpful

error message if you try them for a language which doesn't exist
(e.g. "make check-php-test-suite" rather than the correct
"make check-php4-test-suite").


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9970 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2007-10-09 18:16:09 +00:00
commit f20d0b7946
2 changed files with 28 additions and 2 deletions

View file

@ -1,7 +1,17 @@
Version 1.3.32 (in progress)
============================
10/08/2007: olly
10/09/2007: olly
Enhance check-%-test-suite rule and friends to give a more helpful
error message if you try them for a language which doesn't exist
(e.g. "make check-php-test-suite" rather than the correct
"make check-php4-test-suite").
10/09/2007: olly
Add make rule to regenerate Makefile from Makefile.in if it has
changed.
10/09/2007: olly
[php] Fix long-standing memory leak in wrapped constructors and
wrapped functions/methods which return an object.

View file

@ -134,11 +134,15 @@ r_examples :=
# all examples
check-%-examples :
@if test -z "$(skip-$*)"; then \
echo $* unknown; \
exit 1; \
fi
@if $(skip-$*); then \
echo skipping $* $(ACTION); \
else \
$(MAKE) -k -s $($*_examples:=.actionexample) LANGUAGE=$* ACTION=$(ACTION); \
fi;
fi
# individual example
%.actionexample:
@ -175,6 +179,10 @@ check-gifplot: \
# check-modula3-gifplot
check-%-gifplot: gifplot-library
@if test -z "$(skip-$*)"; then \
echo $* unknown; \
exit 1; \
fi
@passed=true; \
up=`$(srcdir)/Tools/capitalize $*`; \
dir="Examples/GIFPlot/$$up"; \
@ -217,6 +225,10 @@ check-test-suite: \
check-r-test-suite
check-%-test-suite:
@if test -z "$(skip-$*)"; then \
echo $* unknown; \
exit 1; \
fi
@passed=true; \
dir="Examples/test-suite/$*"; \
if $(skip-$*); then \
@ -492,6 +504,10 @@ configfiles:
wget ftp://ftp.gnu.org/pub/gnu/config/config.sub -O Tools/config/config.sub
chmod a+x Tools/config/config.sub
# Regenerate Makefile if Makefile.in or config.status have changed.
Makefile: $(srcdir)/Makefile.in config.status
$(SHELL) ./config.status
# This target is usually called from Source/Makefile when configure.in has changed
am--refresh:
@echo "Build system is out of date. Please reconfigure (rerun: ./autogen.sh && ./configure)"