diff options
author | Jamie Couture | 2012-10-08 13:12:17 -0400 |
---|---|---|
committer | Jason A. Donenfeld | 2012-10-08 23:40:23 +0200 |
commit | 6419c9b57c33a8a26d2775f01629f899afb61026 (patch) | |
tree | 2d2f0e4b2e4956a88f7c993313a8421efc3cb5f2 /Makefile | |
parent | ui-repolist: Bold the currently viewed page. (diff) | |
download | cgit-6419c9b57c33a8a26d2775f01629f899afb61026.tar.gz cgit-6419c9b57c33a8a26d2775f01629f899afb61026.zip |
Makefile: add tag target to generate ctags
Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
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 | |||
73 | QUIET_SUBDIR0 = +@subdir= | 73 | QUIET_SUBDIR0 = +@subdir= |
74 | QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \ | 74 | QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \ |
75 | $(MAKE) $(PRINT_DIR) -C $$subdir | 75 | $(MAKE) $(PRINT_DIR) -C $$subdir |
76 | QUIET_TAGS = @echo ' ' TAGS $@; | ||
76 | endif | 77 | endif |
77 | 78 | ||
78 | # | 79 | # |
@@ -124,7 +125,7 @@ endif | |||
124 | 125 | ||
125 | .PHONY: all libgit test install uninstall clean force-version get-git \ | 126 | .PHONY: all libgit test install uninstall clean force-version get-git \ |
126 | doc clean-doc install-doc install-man install-html install-pdf \ | 127 | doc clean-doc install-doc install-man install-html install-pdf \ |
127 | uninstall-doc uninstall-man uninstall-html uninstall-pdf | 128 | uninstall-doc uninstall-man uninstall-html uninstall-pdf tags |
128 | 129 | ||
129 | all: cgit | 130 | all: cgit |
130 | 131 | ||
@@ -242,3 +243,6 @@ clean-doc: | |||
242 | 243 | ||
243 | get-git: | 244 | get-git: |
244 | curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git | 245 | curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git |
246 | |||
247 | tags: | ||
248 | $(QUIET_TAGS)find . -name '*.[ch]' | xargs ctags | ||