diff options
-rw-r--r-- | tools/lib/traceevent/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 34a577e7d554..46c2f6b7b123 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile | |||
@@ -250,8 +250,12 @@ endef | |||
250 | all_objs := $(sort $(ALL_OBJS)) | 250 | all_objs := $(sort $(ALL_OBJS)) |
251 | all_deps := $(all_objs:%.o=.%.d) | 251 | all_deps := $(all_objs:%.o=.%.d) |
252 | 252 | ||
253 | # let .d file also depends on the source and header files | ||
253 | define check_deps | 254 | define check_deps |
254 | $(CC) -M $(CFLAGS) $< > $@; | 255 | @set -e; $(RM) $@; \ |
256 | $(CC) -M $(CFLAGS) $< > $@.$$$$; \ | ||
257 | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ | ||
258 | $(RM) $@.$$$$ | ||
255 | endef | 259 | endef |
256 | 260 | ||
257 | $(gui_deps): ks_version.h | 261 | $(gui_deps): ks_version.h |