ia64/xen-unstable

changeset 3493:119c53bf0d16

bitkeeper revision 1.1159.223.20 (41f2c8174klQJ8mMgM3YDtJ6GQBXjw)

Missing prat of earlier patch.
Description: use INSTALL everywhere
Use install(by way of INSTALL variables) to create directories, install
programs, and install data files.

From: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
author iap10@labyrinth.cl.cam.ac.uk
date Sat Jan 22 21:39:35 2005 +0000 (2005-01-22)
parents 2ec8297d7032
children 4bbe824cb519
files docs/Makefile
line diff
     1.1 --- a/docs/Makefile	Sat Jan 22 21:37:24 2005 +0000
     1.2 +++ b/docs/Makefile	Sat Jan 22 21:39:35 2005 +0000
     1.3 @@ -1,5 +1,7 @@
     1.4  #!/usr/bin/make -f
     1.5  
     1.6 +INSTALL		= install
     1.7 +INSTALL_DIR	= $(INSTALL) -d -m0755
     1.8  
     1.9  PS2PDF		:= ps2pdf
    1.10  DVIPS		:= dvips
    1.11 @@ -36,18 +38,18 @@ clean:
    1.12  
    1.13  install: all
    1.14  	rm -rf $(prefix)$(pkgdocdir)
    1.15 -	mkdir -p $(prefix)$(pkgdocdir)
    1.16 +	$(INSTALL_DIR) $(prefix)$(pkgdocdir)
    1.17  	cp -dR ps $(prefix)$(pkgdocdir)
    1.18  	cp -dR pdf $(prefix)$(pkgdocdir)
    1.19  	cp -dR html $(prefix)$(pkgdocdir)
    1.20  
    1.21  pdf/%.pdf: ps/%.ps
    1.22 -	mkdir -p $(@D)
    1.23 +	$(INSTALL_DIR) $(@D)
    1.24  	$(PS2PDF) $< $@.new
    1.25  	mv $@.new $@
    1.26  
    1.27  ps/%.ps: %.dvi
    1.28 -	mkdir -p $(@D)
    1.29 +	$(INSTALL_DIR) $(@D)
    1.30  	$(DVIPS) -Ppdf -G0 -o $@.new $<
    1.31  	mv $@.new $@
    1.32  
    1.33 @@ -62,7 +64,7 @@ ps/%.ps: %.dvi
    1.34  	$(TGIF) -print -color -eps $<
    1.35  
    1.36  html/%/index.html: src/%.tex
    1.37 -	mkdir -p $(@D)
    1.38 +	$(INSTALL_DIR) $(@D)
    1.39  	$(LATEX2HTML) -split 0 -show_section_numbers -toc_depth 3 -nonavigation \
    1.40  	-numbered_footnotes -local_icons -noinfo -math -dir $(@D) \
    1.41  	$< 1>/dev/null 2>/dev/null