瀏覽代碼

Add tags target

Bryan Drewery 13 年之前
父節點
當前提交
c011b0d6d4
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 4 0
      .gitignore
  2. 5 1
      Makefile.in

+ 4 - 0
.gitignore

@@ -22,3 +22,7 @@
 .hosts
 .resolv.conf
 .buildbot
+cscope.in.out
+cscope.out
+cscope.po.out
+tags

+ 5 - 1
Makefile.in

@@ -85,7 +85,7 @@ MAKE_UTILS_NR = $(MAKE) 'CXX=$(CXX)' 'STRIP=touch' 'INCLUDES=$(INCLUDES)' \
 
 MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
 
-.PHONY: checkclean.static checkclean.dynamic checkclean.debug lib wraith dwraith lib.debug debug test general crypto utils sorthelp makehelp makeset makeres stringfix set res help sort indent tar distrib distclean clean cleanutils test all dynamic static
+.PHONY: checkclean.static checkclean.dynamic checkclean.debug lib wraith dwraith lib.debug debug test general crypto utils sorthelp makehelp makeset makeres stringfix set res help sort indent tar distrib distclean clean cleanutils test all dynamic static tags
 
 all: dynamic
 
@@ -129,6 +129,10 @@ distrib: clean
 	@sed -e 's/GIT_REQUIRED=1/GIT_REQUIRED=0/' configure > $(DISTRIB)/configure
 #	@for s in `find $(DISTRIB)/src/ -name '*.h' -or -name '*.c'`; do mangle -rnw $$s > /dev/null 2>&1; done
 
+tags:
+	@which cscope >/dev/null 2>&1 && cscope -Rbq || :
+	@which ctags >/dev/null 2>&1 && ctags -R || :
+
 tar: distrib
 	tar -czvf $(DISTRIB).tar.gz $(DISTRIB)/
 	ls -al $(DISTRIB).tar.gz