From 1db22b58892d059983e2b47eea99d771a53425ad Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sat, 24 Feb 2018 17:04:53 -0500 Subject: [PATCH] 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. Backports commit 553350156d80c18d0127c742f47b7adbd642f3ef from qemu --- qemu/rules.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/rules.mak b/qemu/rules.mak index 9be927e4..cc045d83 100644 --- a/qemu/rules.mak +++ b/qemu/rules.mak @@ -180,7 +180,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