File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2127,17 +2127,21 @@ po/git.pot: $(LOCALIZED_C)
2127
2127
2128
2128
pot : po/git.pot
2129
2129
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
+
2130
2134
$(ETAGS_TARGET ) : FORCE
2131
2135
$(RM ) $(ETAGS_TARGET )
2132
- $(FIND ) . -name ' *.[hcS] ' -print | xargs etags -a -o $(ETAGS_TARGET )
2136
+ $(FIND_SOURCE_FILES ) | xargs etags -a -o $(ETAGS_TARGET )
2133
2137
2134
2138
tags : FORCE
2135
2139
$(RM ) tags
2136
- $(FIND ) . -name ' *.[hcS] ' -print | xargs ctags -a
2140
+ $(FIND_SOURCE_FILES ) | xargs ctags -a
2137
2141
2138
2142
cscope :
2139
2143
$(RM ) cscope*
2140
- $(FIND ) . -name ' *.[hcS] ' -print | xargs cscope -b
2144
+ $(FIND_SOURCE_FILES ) | xargs cscope -b
2141
2145
2142
2146
# ## Detect prefix changes
2143
2147
TRACK_CFLAGS = $(CC ) :$(subst ','\'',$(ALL_CFLAGS ) ) :\
You can’t perform that action at this time.
0 commit comments