Explorar el Código

Merge branch 'master' into next

* master:
  Add tags target
Bryan Drewery hace 13 años
padre
commit
9ea4902970
Se han modificado 2 ficheros con 9 adiciones y 1 borrados
  1. 4 0
      .gitignore
  2. 5 1
      Makefile.in

+ 4 - 0
.gitignore

@@ -22,3 +22,7 @@
 .hosts
 .hosts
 .resolv.conf
 .resolv.conf
 .buildbot
 .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)'
 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
 all: dynamic
 
 
@@ -129,6 +129,10 @@ distrib: clean
 	@sed -e 's/GIT_REQUIRED=1/GIT_REQUIRED=0/' configure > $(DISTRIB)/configure
 	@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
 #	@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: distrib
 	tar -czvf $(DISTRIB).tar.gz $(DISTRIB)/
 	tar -czvf $(DISTRIB).tar.gz $(DISTRIB)/
 	ls -al $(DISTRIB).tar.gz
 	ls -al $(DISTRIB).tar.gz