direct-io.hg

changeset 4540:591397ce3bb9

bitkeeper revision 1.1302 (42603cdb-AbHd2ci9qddxFzBGr4xqA)

[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@osdl.org>
author chrisw@osdl.org[iap10]
date Fri Apr 15 22:14:51 2005 +0000 (2005-04-15)
parents 22de1b327a43
children 7ea030aa6f3f
files BitKeeper/etc/logging_ok xen/Makefile
line diff
     1.1 --- a/BitKeeper/etc/logging_ok	Thu Apr 14 23:31:12 2005 +0000
     1.2 +++ b/BitKeeper/etc/logging_ok	Fri Apr 15 22:14:51 2005 +0000
     1.3 @@ -15,6 +15,7 @@ br260@laudney.cl.cam.ac.uk
     1.4  bren@anvil.research
     1.5  bren@br260.wolfson.cam.ac.uk
     1.6  ccoffing@novell.com
     1.7 +chrisw@osdl.org
     1.8  cl349@arcadians.cl.cam.ac.uk
     1.9  cl349@firebug.cl.cam.ac.uk
    1.10  cl349@freefall.cl.cam.ac.uk
     2.1 --- a/xen/Makefile	Thu Apr 14 23:31:12 2005 +0000
     2.2 +++ b/xen/Makefile	Fri Apr 15 22:14:51 2005 +0000
     2.3 @@ -106,15 +106,18 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h
     2.4  .PHONY: default debug install dist clean delete-unfresh-files TAGS tags
     2.5  
     2.6  SUBDIRS = arch/$(TARGET_ARCH) common drivers 
     2.7 +define all_sources
     2.8 +    ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; \
     2.9 +      find include -type d -name SCCS -prune -o \( -name "asm-*" -o \
    2.10 +            -name config \) -prune -o -name '*.h' -print; \
    2.11 +      find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print )
    2.12 +endef
    2.13  TAGS: 
    2.14 -	( find include/asm-$(TARGET_ARCH) -name '*.h'; \
    2.15 -	  find include -type d \( -name "asm-*" -o -name config \) -prune -o \
    2.16 -		-name '*.h' -print; \
    2.17 -	  find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | etags -
    2.18 +	$(all_sources) | etags -
    2.19  tags: 
    2.20 -	( find include/asm-$(TARGET_ARCH) -name '*.h'; \
    2.21 -	  find include -type d \( -name "asm-*" -o -name config \) -prune -o \
    2.22 -		-name '*.h' -print; \
    2.23 -	  find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | xargs ctags
    2.24 +	$(all_sources) | xargs ctags
    2.25 +cscope: 
    2.26 +	$(all_sources) > cscope.files
    2.27 +	cscope -k -b -q
    2.28  MAP:
    2.29  	nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map