Просмотр исходного кода

Merge branch 'master' into next

* master:
  Add tags target
Bryan Drewery 13 лет назад
Родитель
Сommit
9ea4902970
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