summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-23 09:04:32 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-23 09:04:32 +0200
commitd7c8025fba61355f6b7f8e306c930da11525cb63 (patch)
tree0e610351211cd301f4db8b1b0db8c23c029637c4 /Makefile
parenta9060d6290676afb8cd48447a1d3d07031f09c58 (diff)
downloadvdr-d7c8025fba61355f6b7f8e306c930da11525cb63.tar.gz
vdr-d7c8025fba61355f6b7f8e306c930da11525cb63.tar.bz2
Added an error message about plugins that don't honor APIVERSION in their Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 38af4857..f671fb47 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Makefile 1.88 2006/04/22 09:58:44 kls Exp $
+# $Id: Makefile 1.89 2006/04/23 09:01:17 kls Exp $
.DELETE_ON_ERROR:
@@ -176,10 +176,17 @@ include-dir:
plugins: include-dir
@failed="";\
+ @noapiv="";\
for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do\
echo "Plugin $$i:";\
+ if ! grep -q "\$$(LIBDIR)/.*\$$(APIVERSION)" "$(PLUGINDIR)/src/$$i/Makefile" ; then\
+ echo "ERROR: plugin $$i doesn't honor APIVERSION - not compiled!";\
+ noapiv="$$noapiv $$i";\
+ continue;\
+ fi;\
$(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
clean-plugins: