Commit Message
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
@@ -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