From patchwork Sat Dec 10 17:38:35 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Udo Richter X-Patchwork-Id: 12118 Received: from mail.gmx.net ([213.165.64.21]) by www.linuxtv.org with smtp (Exim 4.50) id 1El8gj-0002pG-Ba for vdr@linuxtv.org; Sat, 10 Dec 2005 18:39:13 +0100 Received: (qmail invoked by alias); 10 Dec 2005 17:38:42 -0000 Received: from p548A354E.dip0.t-ipconnect.de (EHLO [192.168.73.1]) [84.138.53.78] by mail.gmx.net (mp002) with SMTP; 10 Dec 2005 18:38:42 +0100 X-Authenticated: #1417946 Message-ID: <439B129B.60207@gmx.de> Date: Sat, 10 Dec 2005 18:38:35 +0100 From: Udo Richter User-Agent: Thunderbird 1.5 (Windows/20051209) MIME-Version: 1.0 To: vdr@linuxtv.org X-Y-GMX-Trusted: 0 Subject: [vdr] [patch] "make plugins" verbose X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 17:39:13 -0000 Status: O X-Status: X-Keywords: X-UID: 6574 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 --- 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