From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRmSw-0006Mg-1N for qemu-devel@nongnu.org; Sat, 28 Feb 2015 13:50:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRmSr-0003gb-2c for qemu-devel@nongnu.org; Sat, 28 Feb 2015 13:50:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRmSq-0003gG-Qx for qemu-devel@nongnu.org; Sat, 28 Feb 2015 13:50:12 -0500 Date: Sat, 28 Feb 2015 19:50:00 +0100 From: "Michael S. Tsirkin" Message-ID: <20150228185000.GA28374@redhat.com> References: <1424332114-13440-1-git-send-email-mst@redhat.com> <54F0BA1A.5080509@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54F0BA1A.5080509@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/2] Makefile: don't silence mak file test with V=1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: peter.maydell@linaro.org, Fam Zheng , Michael Tokarev , qemu-devel@nongnu.org, blauwirbel@gmail.com, Stefan Hajnoczi , =?iso-8859-1?Q?Llu=EDs?= Vilanova On Fri, Feb 27, 2015 at 07:40:26PM +0100, Paolo Bonzini wrote: > > > On 19/02/2015 08:48, Michael S. Tsirkin wrote: > > V=1 should show what's going on, it's not nice > > to silence things unconditionally. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > Makefile | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/Makefile b/Makefile > > index 6817c6f..84ca8be 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -110,7 +110,7 @@ endif > > > > %/config-devices.mak: default-configs/%.mak > > $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/make_device_config.sh $@ $<, " GEN $@") > > - @if test -f $@; then \ > > + $(call quiet-command, if test -f $@; then \ > > if cmp -s $@.old $@; then \ > > mv $@.tmp $@; \ > > cp -p $@ $@.old; \ > > @@ -126,7 +126,7 @@ endif > > else \ > > mv $@.tmp $@; \ > > cp -p $@ $@.old; \ > > - fi > > + fi, " TEST $@"); > > > > defconfig: > > rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK) > > > > Squashing this to make the non-verbose messages clearer, ok? Acked-by: Michael S. Tsirkin > diff --git a/Makefile b/Makefile > index 5604209..d92d4cd 100644 > --- a/Makefile > +++ b/Makefile > @@ -109,7 +109,7 @@ endif > -include $(SUBDIR_DEVICES_MAK_DEP) > > %/config-devices.mak: default-configs/%.mak > - $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/make_device_config.sh $@ $<, " GEN $@") > + $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/make_device_config.sh $@.tmp $<, " GEN $@.tmp") > $(call quiet-command, if test -f $@; then \ > if cmp -s $@.old $@; then \ > mv $@.tmp $@; \ > @@ -126,7 +126,7 @@ endif > else \ > mv $@.tmp $@; \ > cp -p $@ $@.old; \ > - fi, " TEST $@"); > + fi, " GEN $@"); > > defconfig: > rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK) > diff --git a/scripts/make_device_config.sh b/scripts/make_device_config.sh > index 7242707..7958086 100644 > --- a/scripts/make_device_config.sh > +++ b/scripts/make_device_config.sh > @@ -2,7 +2,7 @@ > # Construct a target device config file from a default, pulling in any > # files from include directives. > > -dest=$1.tmp > +dest=$1 > dep=`dirname $1`-`basename $1`.d > src=$2 > src_dir=`dirname $src`