Modified patch from Torsten Landschoff for fixing make distclean when the target languages that have no examples are detected - the default target was erroneously being run for clean and check of the examples

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2010-08-17 18:40:14 +00:00
commit 1c8618d635
2 changed files with 7 additions and 1 deletions

View file

@ -160,7 +160,7 @@ clisp_examples :=
uffi_examples :=
cffi_examples :=
r_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/r/check.list)
go_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/go/check.list)
go_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/go/check.list)
# all examples
check-%-examples :
@ -170,6 +170,8 @@ check-%-examples :
fi
@if $(skip-$*); then \
echo skipping $* $(ACTION); \
elif test -z "$($(strip $*_examples))"; then \
echo empty $* $(ACTION); \
else \
$(MAKE) -k -s $($*_examples:=.actionexample) LANGUAGE=$* ACTION=$(ACTION); \
fi