From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAFp5-0007b5-CQ for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:09:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAFp4-0000ve-9J for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:09:31 -0400 Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:35814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAFp4-0000vY-58 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:09:30 -0400 Received: by mail-vk0-x22f.google.com with SMTP id d127so239461046vkh.2 for ; Tue, 07 Jun 2016 05:09:30 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <0e015abb-becc-081a-4965-0f53bd14eb74@redhat.com> 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: Peter Maydell Date: Tue, 7 Jun 2016 13:09:10 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 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: Paolo Bonzini Cc: QEMU Developers 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. thanks -- PMM