From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAFnU-0006C5-QB for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:07:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAFnP-0000XD-Nr for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:07:52 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:33399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAFnP-0000X9-Fk for qemu-devel@nongnu.org; Tue, 07 Jun 2016 08:07:47 -0400 Received: by mail-wm0-x242.google.com with SMTP id r5so5471523wmr.0 for ; Tue, 07 Jun 2016 05:07:47 -0700 (PDT) Received: from 640k.lan (94-39-188-118.adsl-ull.clienti.tiscali.it. [94.39.188.118]) by smtp.gmail.com with ESMTPSA id t199sm14672052wmt.11.2016.06.07.05.07.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 05:07:46 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 7 Jun 2016 14:07:44 +0200 Message-Id: <1465301264-115272-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2] Makefile: add dependency on scripts/create_config List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Make sure that config-host.h and config-target.h are rebuilt whenever there is a change in the scripts that generates them; add the dependency to the pattern rule as suggested by Peter. Signed-off-by: Paolo Bonzini --- rules.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.mak b/rules.mak index 4a8f464..fae16b3 100644 --- a/rules.mak +++ b/rules.mak @@ -172,7 +172,7 @@ TRACETOOL=$(PYTHON) $(SRC_PATH)/scripts/tracetool.py config-%.h: config-%.h-timestamp @cmp $< $@ >/dev/null 2>&1 || cp $< $@ -config-%.h-timestamp: config-%.mak +config-%.h-timestamp: config-%.mak $(SRC_PATH)/scripts/create_config $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, " GEN $(TARGET_DIR)config-$*.h") .PHONY: clean-timestamp -- 1.8.3.1