Skip to content

Commit

Permalink
kbuild: fix make TAGS (for emacs use)
Browse files Browse the repository at this point in the history
From: [email protected] <Jeremy Bongio>
make TAGS does not make source code tags for emacs. It instead
returns an error than "etags -" isn't valid. The problem is
easily remedied.

Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Sam Ravnborg committed Jul 28, 2005
1 parent 4949057 commit 66d609e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1203,9 +1203,15 @@ cscope: FORCE
$(call cmd,cscope)

quiet_cmd_TAGS = MAKE $@
cmd_TAGS = $(all-sources) | etags -
define cmd_TAGS
rm -f $@; \
ETAGSF=`etags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL --extra=+f"`; \
$(all-sources) | xargs etags $$ETAGSF -a
endef

TAGS: FORCE
$(call cmd,TAGS)

# Exuberant ctags works better with -I

quiet_cmd_tags = MAKE $@
define cmd_tags
Expand All @@ -1214,9 +1220,6 @@ define cmd_tags
$(all-sources) | xargs ctags $$CTAGSF -a
endef

TAGS: FORCE
$(call cmd,TAGS)

tags: FORCE
$(call cmd,tags)

Expand Down

0 comments on commit 66d609e

Please sign in to comment.