diff options
Diffstat (limited to 'tools/lib/traceevent/Makefile')
| -rw-r--r-- | tools/lib/traceevent/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 3d69aa9ff51..46c2f6b7b12 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 |
| @@ -270,11 +274,13 @@ endif | |||
| 270 | 274 | ||
| 271 | tags: force | 275 | tags: force |
| 272 | $(RM) tags | 276 | $(RM) tags |
| 273 | find . -name '*.[ch]' | xargs ctags --extra=+f --c-kinds=+px | 277 | find . -name '*.[ch]' | xargs ctags --extra=+f --c-kinds=+px \ |
| 278 | --regex-c++='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/' | ||
| 274 | 279 | ||
| 275 | TAGS: force | 280 | TAGS: force |
| 276 | $(RM) TAGS | 281 | $(RM) TAGS |
| 277 | find . -name '*.[ch]' | xargs etags | 282 | find . -name '*.[ch]' | xargs etags \ |
| 283 | --regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/' | ||
| 278 | 284 | ||
| 279 | define do_install | 285 | define do_install |
| 280 | $(print_install) \ | 286 | $(print_install) \ |
| @@ -290,7 +296,7 @@ install_lib: all_cmd install_plugins install_python | |||
| 290 | install: install_lib | 296 | install: install_lib |
| 291 | 297 | ||
| 292 | clean: | 298 | clean: |
| 293 | $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES).*.d | 299 | $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d |
| 294 | $(RM) tags TAGS | 300 | $(RM) tags TAGS |
| 295 | 301 | ||
| 296 | endif # skip-makefile | 302 | endif # skip-makefile |
