The 'plugins' target in the Makefile now returns an error exit code if one of the plugins failed to compile

This commit is contained in:
Klaus Schmidinger
2008-03-01 09:42:36 +01:00
parent e2c3582834
commit 2497217096
3 changed files with 7 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: Makefile 1.112 2008/01/13 12:53:17 kls Exp $
# $Id: Makefile 1.113 2008/02/29 21:43:03 kls Exp $
.DELETE_ON_ERROR:
@@ -153,7 +153,7 @@ plugins: include-dir
$(MAKE) -C "$(PLUGINDIR)/src/$$i" all || failed="$$failed $$i";\
done;\
if [ -n "$$noapiv" ] ; then echo; echo "*** plugins without APIVERSION:$$noapiv"; echo; fi;\
if [ -n "$$failed" ] ; then echo; echo "*** failed plugins:$$failed"; echo; fi
if [ -n "$$failed" ] ; then echo; echo "*** failed plugins:$$failed"; echo; exit 1; fi
clean-plugins:
@for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do $(MAKE) -C "$(PLUGINDIR)/src/$$i" clean; done