diff options
author | Olly Betts <olly@survex.com> | 2007-10-09 18:16:09 +0000 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2007-10-09 18:16:09 +0000 |
commit | f20d0b79460fea1aa6d60654bf2d673b6762606b (patch) | |
tree | 2ca433c90c3c483c33cc76babed6d1da898e9ac5 /Makefile.in | |
parent | 2fffdd118a5708f1abb5eb86d701064629c5ecf7 (diff) | |
download | swig-f20d0b79460fea1aa6d60654bf2d673b6762606b.tar.gz |
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
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index da3c797c3..c6e3a7bbf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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)" |