Patchwork [3/3,trivial] Regenerate files when tracetool changes

login
register
mail settings
Submitter Lluís Vilanova
Date Feb. 3, 2012, 9:15 p.m.
Message ID <20120203211542.31173.78004.stgit@ginnungagap.bsc.es>
Download mbox | patch
Permalink /patch/139470/
State New
Headers show

Comments

Lluís Vilanova - Feb. 3, 2012, 9:15 p.m.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
 Makefile.objs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/Makefile.objs b/Makefile.objs
index b187d17..e6644c6 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -352,12 +352,12 @@  ifeq ($(TRACE_BACKEND),dtrace)
 TRACE_H_EXTRA_DEPS=trace-dtrace.h
 endif
 trace.h: trace.h-timestamp $(TRACE_H_EXTRA_DEPS)
-trace.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
+trace.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(TRACETOOL)
 	$(call tracetool-gen,h,$(TRACE_BACKEND))
 	$(call tracetool-ci)
 
 trace.c: trace.c-timestamp
-trace.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
+trace.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(TRACETOOL)
 	$(call tracetool-gen,c,$(TRACE_BACKEND))
 	$(call tracetool-ci)
 
@@ -370,7 +370,7 @@  trace-dtrace.h: trace-dtrace.dtrace
 # but that gets picked up by QEMU's Makefile as an external dependency
 # rule file. So we use '.dtrace' instead
 trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp
-trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
+trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(TRACETOOL)
 	$(call tracetool-gen,d,$(TRACE_BACKEND))
 	$(call tracetool-ci)