ia64/xen-unstable

changeset 9700:c9d706834d25

Clean up xen Makefile. Use _-prefixed rules to avoid a
comparsion with XEN_ROOT variable.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Apr 13 10:57:57 2006 +0100 (2006-04-13)
parents 4f0ecc016cd1
children 2aa9e9867477
files xen/Makefile
line diff
     1.1 --- a/xen/Makefile	Thu Apr 13 10:45:43 2006 +0100
     1.2 +++ b/xen/Makefile	Thu Apr 13 10:57:57 2006 +0100
     1.3 @@ -10,19 +10,22 @@ export BASEDIR := $(CURDIR)
     1.4  .PHONY: default
     1.5  default: build
     1.6  
     1.7 -ifeq ($(XEN_ROOT),)
     1.8 -
     1.9 -.PHONY: build install clean
    1.10 -build install clean:
    1.11 -	make -f Rules.mk $@
    1.12 +.PHONY: dist
    1.13 +dist: install
    1.14  
    1.15 -else
    1.16 +.PHONY: debug
    1.17 +debug:
    1.18 +	objdump -D -S $(TARGET)-syms > $(TARGET).s
    1.19  
    1.20 -.PHONY: build
    1.21 -build: $(TARGET).gz
    1.22 +.PHONY: build install clean cscope TAGS tags
    1.23 +build install clean cscope TAGS tags::
    1.24 +	make -f Rules.mk _$@
    1.25  
    1.26 -.PHONY: install
    1.27 -install: $(TARGET).gz
    1.28 +.PHONY: _build
    1.29 +_build: $(TARGET).gz
    1.30 +
    1.31 +.PHONY: _install
    1.32 +_install: $(TARGET).gz
    1.33  	[ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
    1.34  	$(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz
    1.35  	ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz
    1.36 @@ -35,8 +38,8 @@ install: $(TARGET).gz
    1.37  	$(INSTALL_DATA) include/public/io/*.h $(DESTDIR)/usr/include/xen/io
    1.38  	$(INSTALL_DATA) include/public/COPYING $(DESTDIR)/usr/include/xen
    1.39  
    1.40 -.PHONY: clean
    1.41 -clean:: delete-unfresh-files
    1.42 +.PHONY: _clean
    1.43 +_clean: delete-unfresh-files
    1.44  	$(MAKE) -C tools clean
    1.45  	$(MAKE) -f $(BASEDIR)/Rules.mk -C common clean
    1.46  	$(MAKE) -f $(BASEDIR)/Rules.mk -C drivers clean
    1.47 @@ -46,15 +49,6 @@ clean:: delete-unfresh-files
    1.48  	rm -f include/asm-*/asm-offsets.h
    1.49  	rm -f include/xen/acm_policy.h
    1.50  
    1.51 -endif
    1.52 -
    1.53 -.PHONY: dist
    1.54 -dist: install
    1.55 -
    1.56 -.PHONY: debug
    1.57 -debug:
    1.58 -	objdump -D -S $(TARGET)-syms > $(TARGET).s
    1.59 -
    1.60  $(TARGET).gz: $(TARGET)
    1.61  	gzip -f -9 < $< > $@.new
    1.62  	mv $@.new $@
    1.63 @@ -135,10 +129,6 @@ define all_sources
    1.64        find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print )
    1.65  endef
    1.66  
    1.67 -.PHONY: cscope TAGS tags
    1.68 -cscope TAGS tags:
    1.69 -	make -f $(BASEDIR)/Rules.mk _$@
    1.70 -
    1.71  .PHONY: _TAGS
    1.72  _TAGS: 
    1.73  	$(all_sources) | etags -