소스 검색

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