[patch] "make plugins" verbose

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux