Message ID | 20180110014754.61598eaa@vmware.local.home (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | trace-cmd TAGS: Fix tags to not parse .pc directory of patch | expand |
On Wed, 2018-01-10 at 01:47 -0500, Steven Rostedt wrote: > [ Vlad, this patch does touch the Makefile. How will it affect you? ] > Thanks for asking, Steven. I've applied this patch on a temp_master branch and I've tried to rebase all of my makefile-related changes on the top of it. Fortunately we're lucky and git's 3-way merge was able to correctly rebase everything. I've quickly tested that the build (both in-tree and out-of-tree) continue to work. In conclusion, no problem with this patch at all :-)
diff --git a/Makefile b/Makefile index 5871fd5..c78db04 100644 --- a/Makefile +++ b/Makefile @@ -537,17 +537,22 @@ show_gui_done: PHONY += show_gui_make +define find_tag_files + find . -name '\.pc' -prune -o -name '*\.[ch]' \ + ! -name '\.#' -print +endef + tags: force $(RM) tags - find . -name '*.[ch]' | xargs ctags --extra=+f --c-kinds=+px + $(call find_tag_files) | xargs ctags --extra=+f --c-kinds=+px TAGS: force $(RM) TAGS - find . -name '*.[ch]' | xargs etags + $(call find_tag_files) | xargs etags cscope: force $(RM) cscope* - find . -name '*.[ch]' | cscope -b -q + $(call find_tag_files) | cscope -b -q PLUGINS_INSTALL = $(subst .so,.install,$(PLUGINS)) $(subst .so,.install,$(PYTHON_PLUGINS))