[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] add a 'tags' target for ctags


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Rik van Riel <riel@xxxxxxxxxx>
  • Date: Mon, 28 Mar 2005 15:54:36 -0500 (EST)
  • Delivery-date: Mon, 28 Mar 2005 20:54:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Add a 'tags' target for ctags, just like the kernel has.  I use
this all the time...

Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>

--- xen-unstable/xen/Makefile.tags      2005-03-28 15:11:00.000000000 -0500
+++ xen-unstable/xen/Makefile   2005-03-28 15:11:25.000000000 -0500
@@ -103,7 +103,7 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h
          echo ""; \
          echo "#endif") <$< >$@
 
-.PHONY: default debug install dist clean delete-unfresh-files TAGS
+.PHONY: default debug install dist clean delete-unfresh-files TAGS tags
 
 SUBDIRS = arch common drivers 
 TAGS: 
@@ -111,5 +111,10 @@ TAGS: 
          find include -type d \( -name "asm-*" -o -name config \) -prune -o \
                -name '*.h' -print; \
          find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | etags -
+tags: 
+       ( find include/asm-$(TARGET_ARCH) -name '*.h'; \
+         find include -type d \( -name "asm-*" -o -name config \) -prune -o \
+               -name '*.h' -print; \
+         find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | xargs ctags
 MAP:
        nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] 
\)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.