ia64/xen-unstable

changeset 1874:a2fa0a647240

bitkeeper revision 1.1108.2.20 (4100050ee2rhUkBYDjTlzUWJXwt3Dg)

make 'make install' work more than once if the installed files are not writable
author cl349@freefall.cl.cam.ac.uk
date Thu Jul 22 18:18:54 2004 +0000 (2004-07-22)
parents 81c8e4067c72
children 2a0b8a9e1e5e 8a98ffe9c5ef
files tools/sv/Makefile
line diff
     1.1 --- a/tools/sv/Makefile	Thu Jul 22 17:22:06 2004 +0000
     1.2 +++ b/tools/sv/Makefile	Thu Jul 22 18:18:54 2004 +0000
     1.3 @@ -3,38 +3,37 @@ sv_insdir := $(prefix)/var/xen/sv
     1.4  all:
     1.5  
     1.6  install:
     1.7 -
     1.8 -
     1.9  	# make parent directory
    1.10  	mkdir -p $(sv_insdir)
    1.11  	
    1.12  	# copy Main.rpy file - references xen.sv.Main class
    1.13 -	cp Main.rpy $(sv_insdir)/
    1.14 +	install -m0644 Main.rpy $(sv_insdir)
    1.15  
    1.16  	# make images folder
    1.17  	mkdir -p $(sv_insdir)/images
    1.18  	
    1.19  	# copy images
    1.20 -	cp images/xen.png	$(sv_insdir)/images/
    1.21 -	cp images/orb_01.jpg	$(sv_insdir)/images/
    1.22 -	cp images/orb_02.jpg	$(sv_insdir)/images/
    1.23 +	install -m0644 images/xen.png $(sv_insdir)/images
    1.24 +	install -m0644 images/orb_01.jpg $(sv_insdir)/images
    1.25 +	install -m0644 images/orb_02.jpg $(sv_insdir)/images
    1.26  	
    1.27 -	cp images/left-end-highlight.jpg	$(sv_insdir)/images/
    1.28 -	cp images/left-end-no-highlight.jpg	$(sv_insdir)/images/
    1.29 -	cp images/right-end-highlight.jpg	$(sv_insdir)/images/
    1.30 -	cp images/right-end-no-highlight.jpg	$(sv_insdir)/images/
    1.31 +	install -m0644 images/left-end-highlight.jpg $(sv_insdir)/images
    1.32 +	install -m0644 images/left-end-no-highlight.jpg $(sv_insdir)/images
    1.33 +	install -m0644 images/right-end-highlight.jpg $(sv_insdir)/images
    1.34 +	install -m0644 images/right-end-no-highlight.jpg $(sv_insdir)/images
    1.35  
    1.36 -	cp images/middle-highlight.jpg		$(sv_insdir)/images/
    1.37 -	cp images/middle-no-highlight.jpg	$(sv_insdir)/images/
    1.38 +	install -m0644 images/middle-highlight.jpg $(sv_insdir)/images
    1.39 +	install -m0644 images/middle-no-highlight.jpg $(sv_insdir)/images
    1.40  	
    1.41 -	cp images/seperator.jpg			$(sv_insdir)/images/
    1.42 -	cp images/seperator-left-highlight.jpg	$(sv_insdir)/images/
    1.43 -	cp images/seperator-right-highlight.jpg	$(sv_insdir)/images/
    1.44 +	install -m0644 images/seperator.jpg $(sv_insdir)/images
    1.45 +	install -m0644 images/seperator-left-highlight.jpg $(sv_insdir)/images
    1.46 +	install -m0644 images/seperator-right-highlight.jpg $(sv_insdir)/images
    1.47  
    1.48  	# make include folder
    1.49  	mkdir -p $(sv_insdir)/inc
    1.50  	
    1.51 -	#copy stylesheet
    1.52 -	cp inc/style.css $(sv_insdir)/inc/
    1.53 +	# copy stylesheet
    1.54 +	install -m0644 inc/style.css $(sv_insdir)/inc
    1.55  
    1.56  clean:
    1.57 +