зеркало из https://github.com/microsoft/git.git
Merge branch 'jc/make-tags'
* jc/make-tags: Makefile: ask "ls-files" to list source files if available
This commit is contained in:
Коммит
1020fbc248
10
Makefile
10
Makefile
|
@ -2127,17 +2127,21 @@ po/git.pot: $(LOCALIZED_C)
|
||||||
|
|
||||||
pot: po/git.pot
|
pot: po/git.pot
|
||||||
|
|
||||||
|
FIND_SOURCE_FILES = ( git ls-files '*.[hcS]' 2>/dev/null || \
|
||||||
|
$(FIND) . \( -name .git -type d -prune \) \
|
||||||
|
-o \( -name '*.[hcS]' -type f -print \) )
|
||||||
|
|
||||||
$(ETAGS_TARGET): FORCE
|
$(ETAGS_TARGET): FORCE
|
||||||
$(RM) $(ETAGS_TARGET)
|
$(RM) $(ETAGS_TARGET)
|
||||||
$(FIND) . -name '*.[hcS]' -print | xargs etags -a -o $(ETAGS_TARGET)
|
$(FIND_SOURCE_FILES) | xargs etags -a -o $(ETAGS_TARGET)
|
||||||
|
|
||||||
tags: FORCE
|
tags: FORCE
|
||||||
$(RM) tags
|
$(RM) tags
|
||||||
$(FIND) . -name '*.[hcS]' -print | xargs ctags -a
|
$(FIND_SOURCE_FILES) | xargs ctags -a
|
||||||
|
|
||||||
cscope:
|
cscope:
|
||||||
$(RM) cscope*
|
$(RM) cscope*
|
||||||
$(FIND) . -name '*.[hcS]' -print | xargs cscope -b
|
$(FIND_SOURCE_FILES) | xargs cscope -b
|
||||||
|
|
||||||
### Detect prefix changes
|
### Detect prefix changes
|
||||||
TRACK_CFLAGS = $(CC):$(subst ','\'',$(ALL_CFLAGS)):\
|
TRACK_CFLAGS = $(CC):$(subst ','\'',$(ALL_CFLAGS)):\
|
||||||
|
|
Загрузка…
Ссылка в новой задаче