Browse Source

Add tags target

Bryan Drewery 13 năm trước cách đây
mục cha
commit
c011b0d6d4
2 tập tin đã thay đổi với 9 bổ sung1 xóa
  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