Received: from eggs.gnu.org ([2001:4830:134:3::10]:44147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAFra-0001Ph-Km for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAFrY-0001ds-Pj for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:12:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAFrY-0001dk-K9 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:12:04 -0400 References: <1465300083-72463-1-git-send-email-pbonzini@redhat.com> <1465300083-72463-2-git-send-email-pbonzini@redhat.com> <0e015abb-becc-081a-4965-0f53bd14eb74@redhat.com> From: Paolo Bonzini Message-ID: Date: Tue, 7 Jun 2016 14:11:55 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/3] Makefile: add dependency on scripts/create_config List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 07/06/2016 14:09, Peter Maydell wrote: > On 7 June 2016 at 13:05, Paolo Bonzini wrote: >> >> >> On 07/06/2016 13:58, Peter Maydell wrote: >>> Does it work to add the dependency on the RHS of the pattern rule >>> instead, like: >>> >>> config-%.h-timestamp: config-%.mak $(SRC_PATH)/scripts/create_config >>> $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < >>> $< > $@, " GEN $(TARGET_DIR)config-$*.h") >> >> Yes, that works too. > > Cool -- I think it's a bit clearer to add the dependency > in the same place where the rule text invoking the script is. I agree, I've sent v2. Paolo