From: Paolo Bonzini Date: Tue, 7 Jun 2016 11:25:24 +0000 (+0200) Subject: Makefile: add dependency on scripts/create_config X-Git-Tag: qemu-xen-4.8.0-rc1~226^2~5 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=553350156d80c18d0127c742f47b7adbd642f3ef;p=qemu-xen.git Makefile: add dependency on scripts/create_config 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. Reviewed-by: Peter Maydell Signed-off-by: Paolo Bonzini --- diff --git a/rules.mak b/rules.mak index 4a8f464940..fae16b3fe2 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