"make plugins" verbose

Message ID 439B129B.60207@gmx.de
State New
Headers

Commit Message

Udo Richter Dec. 10, 2005, 5:38 p.m. UTC
  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
  

Patch

--- 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