ia64/xen-unstable

changeset 5634:43e2d33fc5d9

Fix Xen 'make install' not to rebuild console.o if called
from sudo environemnt, for example.
author kaf24@firebug.cl.cam.ac.uk
date Fri Jul 01 14:30:46 2005 +0000 (2005-07-01)
parents 7c95f26c2f0e
children 88a7a299d927
files xen/Makefile xen/drivers/char/Makefile
line diff
     1.1 --- a/xen/Makefile	Fri Jul 01 13:35:03 2005 +0000
     1.2 +++ b/xen/Makefile	Fri Jul 01 14:30:46 2005 +0000
     1.3 @@ -67,9 +67,12 @@ endif
     1.4  	$(MAKE) -C arch/$(TARGET_ARCH)
     1.5  
     1.6  # drivers/char/console.o contains static banner/compile info. Blow it away.
     1.7 +# Don't refresh these files during e.g., 'sudo make install'
     1.8  delete-unfresh-files:
     1.9 -	rm -f include/xen/banner.h include/xen/compile.h drivers/char/console.o
    1.10 -	$(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files
    1.11 +	@if [ ! -r include/xen/compile.h -o -O include/xen/compile.h ]; then \
    1.12 +		rm -f include/xen/{banner,compile}.h; \
    1.13 +		$(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files; \
    1.14 +	fi
    1.15  
    1.16  # acm_policy.h contains security policy for Xen
    1.17  include/xen/acm_policy.h:
     2.1 --- a/xen/drivers/char/Makefile	Fri Jul 01 13:35:03 2005 +0000
     2.2 +++ b/xen/drivers/char/Makefile	Fri Jul 01 14:30:46 2005 +0000
     2.3 @@ -7,3 +7,5 @@ driver.o: $(OBJS)
     2.4  
     2.5  clean:
     2.6  	rm -f *.o *~ core
     2.7 +
     2.8 +console.o: $(BASEDIR)/include/xen/compile.h