mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 02:18:42 +00:00
Makefile: add tag target to generate ctags
Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
This commit is contained in:
parent
4675b91211
commit
6419c9b57c
6
Makefile
6
Makefile
@ -73,6 +73,7 @@ ifndef V
|
|||||||
QUIET_SUBDIR0 = +@subdir=
|
QUIET_SUBDIR0 = +@subdir=
|
||||||
QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
|
QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
|
||||||
$(MAKE) $(PRINT_DIR) -C $$subdir
|
$(MAKE) $(PRINT_DIR) -C $$subdir
|
||||||
|
QUIET_TAGS = @echo ' ' TAGS $@;
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -124,7 +125,7 @@ endif
|
|||||||
|
|
||||||
.PHONY: all libgit test install uninstall clean force-version get-git \
|
.PHONY: all libgit test install uninstall clean force-version get-git \
|
||||||
doc clean-doc install-doc install-man install-html install-pdf \
|
doc clean-doc install-doc install-man install-html install-pdf \
|
||||||
uninstall-doc uninstall-man uninstall-html uninstall-pdf
|
uninstall-doc uninstall-man uninstall-html uninstall-pdf tags
|
||||||
|
|
||||||
all: cgit
|
all: cgit
|
||||||
|
|
||||||
@ -242,3 +243,6 @@ clean-doc:
|
|||||||
|
|
||||||
get-git:
|
get-git:
|
||||||
curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git
|
curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git
|
||||||
|
|
||||||
|
tags:
|
||||||
|
$(QUIET_TAGS)find . -name '*.[ch]' | xargs ctags
|
||||||
|
Loading…
Reference in New Issue
Block a user