Makefile: add dependency on scripts/make_device_config.sh
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jun 2016 11:25:58 +0000 (13:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jun 2016 12:14:38 +0000 (14:14 +0200)
Make sure that config-devices.mak is rebuilt whenever
there is a change in the scripts that generates it.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile

index 59af636..6406847 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,7 @@ endif
 
 -include $(SUBDIR_DEVICES_MAK_DEP)
 
-%/config-devices.mak: default-configs/%.mak
+%/config-devices.mak: default-configs/%.mak $(SRC_PATH)/scripts/make_device_config.sh
        $(call quiet-command, \
             $(SHELL) $(SRC_PATH)/scripts/make_device_config.sh $< $*-config-devices.mak.d $@ > $@.tmp, "  GEN   $@.tmp")
        $(call quiet-command, if test -f $@; then \