File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2127,17 +2127,21 @@ po/git.pot: $(LOCALIZED_C)
21272127
21282128pot : po/git.pot
21292129
2130+ FIND_SOURCE_FILES = ( git ls-files '*.[hcS]' 2>/dev/null || \
2131+ $(FIND ) . \( -name .git -type d -prune \) \
2132+ -o \( -name '*.[hcS]' -type f -print \) )
2133+
21302134$(ETAGS_TARGET ) : FORCE
21312135 $(RM ) $(ETAGS_TARGET )
2132- $(FIND ) . -name ' *.[hcS] ' -print | xargs etags -a -o $(ETAGS_TARGET )
2136+ $(FIND_SOURCE_FILES ) | xargs etags -a -o $(ETAGS_TARGET )
21332137
21342138tags : FORCE
21352139 $(RM ) tags
2136- $(FIND ) . -name ' *.[hcS] ' -print | xargs ctags -a
2140+ $(FIND_SOURCE_FILES ) | xargs ctags -a
21372141
21382142cscope :
21392143 $(RM ) cscope*
2140- $(FIND ) . -name ' *.[hcS] ' -print | xargs cscope -b
2144+ $(FIND_SOURCE_FILES ) | xargs cscope -b
21412145
21422146# ## Detect prefix changes
21432147TRACK_CFLAGS = $(CC ) :$(subst ','\'',$(ALL_CFLAGS ) ) :\
You can’t perform that action at this time.
0 commit comments