[vdr] [patch] "make plugins" verbose

Udo Richter udo_richter at gmx.de
Sat Dec 10 18:38:35 CET 2005


Hi list,

I wrote a small patch to get some useful output on 'make plugins', maybe
some like it too. Here's what it does:

- At the end of 'make plugins', output a list of all plugins that failed
to compile (if any)

- Write plugin name to output before starting to 'make' it


If you compile lots of plugins, its quite hard to spot which plugins
didn't 'make' it. With the patch, you'll get a list of all failed
compiles at the end, so you don't have to carefully check all output.

The second change is especially useful if you use 'make -s plugins' to
reduce the overall output noise, because with -s you never know exactly
what plugin currently compiles in case of errors or warnings.

Cheers,

Udo
-------------- next part --------------
--- vdr-1.3.37/Makefile	2005-12-09 16:59:03.000000000 +0100
+++ vdr-1.3.37/Makefile	2005-12-09 17:03:43.000000000 +0100
@@ -194,7 +194,12 @@
 # Plugins:
 
 plugins: include-dir
-	@for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do $(MAKE) -C "$(PLUGINDIR)/src/$$i" all; done
+	@failed="";\
+	for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do\
+	    echo "Plugin $$i:";\
+	    $(MAKE) -C "$(PLUGINDIR)/src/$$i" all || failed="$$failed $$i";\
+	    done;\
+	if [ -n "$$failed" ] ; then echo "Failed plugins:$$failed"; fi
 
 plugins-clean:
 	@for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do $(MAKE) -C "$(PLUGINDIR)/src/$$i" clean; done


More information about the vdr mailing list