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-changelog

[Xen-changelog] [PATCH] add cscope support to xen Makefile

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [PATCH] add cscope support to xen Makefile
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 15 Apr 2005 22:19:51 +0000
Delivery-date: Fri, 15 Apr 2005 23:03:30 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1159.256.98, 2005/04/15 23:19:51+01:00, iap10@xxxxxxxxxxxxxxxxxxxxx

        [PATCH] add cscope support to xen Makefile
          
        Add cscope support to xen Makefile.  While at it, refactor a bit so
        etags, ctags, and cscope use same method to generate file list.
          
        Signed-off-by: Chris Wright <chrisw@xxxxxxxx>
        



 Makefile |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)


diff -Nru a/xen/Makefile b/xen/Makefile
--- a/xen/Makefile      2005-04-15 19:03:44 -04:00
+++ b/xen/Makefile      2005-04-15 19:03:44 -04:00
@@ -27,7 +27,7 @@
 dist: install
 
 build: $(TARGET).gz
-       
+
 install: $(TARGET).gz
        [ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
        $(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot
@@ -106,15 +106,18 @@
 .PHONY: default debug install dist clean delete-unfresh-files TAGS tags
 
 SUBDIRS = arch/$(TARGET_ARCH) common drivers 
+define all_sources
+    ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; 
\
+      find include -type d -name SCCS -prune -o \( -name "asm-*" -o \
+            -name config \) -prune -o -name '*.h' -print; \
+      find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print )
+endef
 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 '*.[ch]' ) | grep -v /SCCS/ | etags -
+       $(all_sources) | 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
+       $(all_sources) | xargs ctags
+cscope: 
+       $(all_sources) > cscope.files
+       cscope -k -b -q
 MAP:
        nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] 
\)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map

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

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