aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 06995fe7f57c..d01b004a2a0e 100644
--- a/Makefile
+++ b/Makefile
@@ -1203,9 +1203,15 @@ cscope: FORCE
1203 $(call cmd,cscope) 1203 $(call cmd,cscope)
1204 1204
1205quiet_cmd_TAGS = MAKE $@ 1205quiet_cmd_TAGS = MAKE $@
1206cmd_TAGS = $(all-sources) | etags - 1206define cmd_TAGS
1207 rm -f $@; \
1208 ETAGSF=`etags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL --extra=+f"`; \
1209 $(all-sources) | xargs etags $$ETAGSF -a
1210endef
1211
1212TAGS: FORCE
1213 $(call cmd,TAGS)
1207 1214
1208# Exuberant ctags works better with -I
1209 1215
1210quiet_cmd_tags = MAKE $@ 1216quiet_cmd_tags = MAKE $@
1211define cmd_tags 1217define cmd_tags
@@ -1214,9 +1220,6 @@ define cmd_tags
1214 $(all-sources) | xargs ctags $$CTAGSF -a 1220 $(all-sources) | xargs ctags $$CTAGSF -a
1215endef 1221endef
1216 1222
1217TAGS: FORCE
1218 $(call cmd,TAGS)
1219
1220tags: FORCE 1223tags: FORCE
1221 $(call cmd,tags) 1224 $(call cmd,tags)
1222 1225