WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] add a 'tags' target for ctags
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>