summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Couture <jamie.couture@gmail.com>2012-10-08 17:12:17 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2012-10-08 21:40:23 +0000
commit6419c9b57c33a8a26d2775f01629f899afb61026 (patch)
tree2d2f0e4b2e4956a88f7c993313a8421efc3cb5f2
parent4675b91211fe3119a0def539521ac759b3fb57d0 (diff)
downloadcgit-6419c9b57c33a8a26d2775f01629f899afb61026.tar
cgit-6419c9b57c33a8a26d2775f01629f899afb61026.tar.gz
cgit-6419c9b57c33a8a26d2775f01629f899afb61026.zip
Makefile: add tag target to generate ctags
Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eac24ad..1e34129 100644
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,7 @@ ifndef V
QUIET_SUBDIR0 = +@subdir=
QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
$(MAKE) $(PRINT_DIR) -C $$subdir
+ QUIET_TAGS = @echo ' ' TAGS $@;
endif
#
@@ -124,7 +125,7 @@ endif
.PHONY: all libgit test install uninstall clean force-version get-git \
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
@@ -242,3 +243,6 @@ clean-doc:
get-git:
curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git
+
+tags:
+ $(QUIET_TAGS)find . -name '*.[ch]' | xargs ctags