make clean-test-suite now cleans all languages, not just languages detected at configure time

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-02-17 08:03:22 +00:00
commit 7a13f92038
2 changed files with 12 additions and 37 deletions

View file

@ -1,6 +1,11 @@
Version 1.3.39 (in progress)
============================
2008-02-17: wsfulton
'make clean-test-suite' will now run clean on ALL languages. Previously it only
ran the correctly configured languages. This way it is now possible to clean up
properly after running 'make partialcheck-test-suite'.
2008-02-14: wsfulton
Extend attribute library support for structs/classes and the accessor functions use
pass/return by value semantics. Two new macros are available and usage is identical

View file

@ -84,6 +84,7 @@ skip-gcj = test -n "@SKIP_GCJ@"
#####################################################################
ACTION = check
NOSKIP =
chk-set-swiglib = SWIG_LIB=@ROOT_DIR@/Lib
chk-set-swig = SWIG=@ROOT_DIR@/$(TARGET)
@ -258,7 +259,7 @@ check-%-test-suite:
fi
@passed=true; \
dir="Examples/test-suite/$*"; \
if $(skip-$*) -a $(ACTION) != "partialcheck"; then \
if $(skip-$*) -a "$(NOSKIP)" != "1"; then \
echo skipping $* test-suite $(ACTION); \
elif [ ! -d $$dir ]; then \
echo warning: cannot $(ACTION) $* test-suite "(no dir $$dir)";\
@ -271,10 +272,10 @@ check-%-test-suite:
# Partial test-suite check - it only invokes SWIG, ie no compilation and no runtime testing
partialcheck-test-suite:
@$(MAKE) -k -s check-test-suite ACTION=partialcheck
@$(MAKE) -k -s check-test-suite ACTION=partialcheck NOSKIP=1
partialcheck-%-test-suite:
@$(MAKE) -k -s check-$*-test-suite ACTION=partialcheck
@$(MAKE) -k -s check-$*-test-suite ACTION=partialcheck NOSKIP=1
check: check-aliveness check-ccache check-examples check-gifplot check-test-suite
@ -355,13 +356,13 @@ clean-gifplot:
@$(MAKE) -k -s check-gifplot ACTION=clean
clean-test-suite:
@$(MAKE) -k -s check-test-suite ACTION=clean
@$(MAKE) -k -s check-test-suite ACTION=clean NOSKIP=1
clean-%-examples:
@$(MAKE) -k -s check-$*-examples ACTION=clean
clean-%-test-suite:
@$(MAKE) -k -s check-$*-test-suite ACTION=clean
@$(MAKE) -k -s check-$*-test-suite ACTION=clean NOSKIP=1
clean-%-gifplot:
@$(MAKE) -k -s check-$*-gifplot ACTION=clean
@ -398,42 +399,11 @@ distclean-source:
distclean-test-suite:
@echo distcleaning Examples/test-suite
@$(MAKE) -k -s noskip-test-suite ACTION=distclean
@$(MAKE) -k -s check-test-suite ACTION=distclean NOSKIP=1
distclean-ccache:
test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) -s distclean)
noskip-test-suite: \
noskip-tcl-test-suite \
noskip-perl5-test-suite \
noskip-python-test-suite \
noskip-java-test-suite \
noskip-guilescm-test-suite \
noskip-guile-test-suite \
noskip-mzscheme-test-suite \
noskip-ruby-test-suite \
noskip-ocaml-test-suite \
noskip-octave-test-suite \
noskip-php-test-suite \
noskip-pike-test-suite \
noskip-csharp-test-suite \
noskip-lua-test-suite \
noskip-allegrocl-test-suite \
noskip-clisp-test-suite \
noskip-uffi-test-suite \
noskip-cffi-test-suite \
noskip-chicken-test-suite \
noskip-r-test-suite
noskip-%-test-suite:
dir="Examples/test-suite/$*"; \
if [ ! -d $$dir ]; then \
echo warning: cannot $(ACTION) $* test-suite "(no dir $$dir)";\
else \
echo $(ACTION)ing $$dir; \
(cd $$dir && $(MAKE) -k -s $(ACTION)) \
fi;
distclean-dead:
rm -f $(DISTCLEAN-DEAD)