[PATCH 3/3] add tag target to generate ctags
Jamie Couture
jamie.couture at gmail.com
Tue Nov 22 05:07:07 CET 2011
From: Jamie Couture <jamie.couture at gmail.com>
Signed-off-by: Jamie Couture <jamie.couture at gmail.com>
---
Makefile | 6 +++++-
cgitrc.5.txt | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 30f7575..4d65408 100644
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,7 @@ ifndef V
QUIET_SUBDIR0 = + at 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
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index 2931db1..e1173ce 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -151,7 +151,7 @@ enable-git-config::
any repo specific settings. Please read <<repo-settings>> to learn more
about which settings are possible to set. This option is used in
conjunction with "scan-path" to override repo settings. Please read
- <<git-config>> to learn how to integrate with gitolite.
+ <<git-config>> to learn how to integrate with gitolite. Default value: "0".
favicon::
Url used as link to a shortcut icon for cgit. If specified, it is
--
1.7.6
More information about the CGit
mailing list