ia64/xen-unstable

changeset 4543:4099062dbee6

bitkeeper revision 1.1159.258.98 (42603e07B1WGB8z5xrijsm1UIICwKg)

[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 iap10@freefall.cl.cam.ac.uk
date Fri Apr 15 22:19:51 2005 +0000 (2005-04-15)
parents 3b1865796b88
children 189085197f6d a7679ebfe9cc
files xen/Makefile
line diff
     1.1 --- a/xen/Makefile	Fri Apr 15 22:00:50 2005 +0000
     1.2 +++ b/xen/Makefile	Fri Apr 15 22:19:51 2005 +0000
     1.3 @@ -27,7 +27,7 @@ debug:
     1.4  dist: install
     1.5  
     1.6  build: $(TARGET).gz
     1.7 -	
     1.8 +
     1.9  install: $(TARGET).gz
    1.10  	[ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
    1.11  	$(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot
    1.12 @@ -106,15 +106,18 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h
    1.13  .PHONY: default debug install dist clean delete-unfresh-files TAGS tags
    1.14  
    1.15  SUBDIRS = arch/$(TARGET_ARCH) common drivers 
    1.16 +define all_sources
    1.17 +    ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; \
    1.18 +      find include -type d -name SCCS -prune -o \( -name "asm-*" -o \
    1.19 +            -name config \) -prune -o -name '*.h' -print; \
    1.20 +      find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print )
    1.21 +endef
    1.22  TAGS: 
    1.23 -	( find include/asm-$(TARGET_ARCH) -name '*.h'; \
    1.24 -	  find include -type d \( -name "asm-*" -o -name config \) -prune -o \
    1.25 -		-name '*.h' -print; \
    1.26 -	  find $(SUBDIRS) -name '*.[ch]' ) | grep -v /SCCS/ | etags -
    1.27 +	$(all_sources) | etags -
    1.28  tags: 
    1.29 -	( find include/asm-$(TARGET_ARCH) -name '*.h'; \
    1.30 -	  find include -type d \( -name "asm-*" -o -name config \) -prune -o \
    1.31 -		-name '*.h' -print; \
    1.32 -	  find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | xargs ctags
    1.33 +	$(all_sources) | xargs ctags
    1.34 +cscope: 
    1.35 +	$(all_sources) > cscope.files
    1.36 +	cscope -k -b -q
    1.37  MAP:
    1.38  	nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map