]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Makefile: add dependency on scripts/create_config
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jun 2016 11:25:24 +0000 (13:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jun 2016 12:14:30 +0000 (14:14 +0200)
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 <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rules.mak

index 4a8f464940bc3b2c611d4a70b760bc5ff06f5954..fae16b3fe20b76d191d24709c353ebb92825315c 100644 (file)
--- 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