From 273e434815f5930823933b876dd987395bd18f01 Mon Sep 17 00:00:00 2001 From: "iap10@labyrinth.cl.cam.ac.uk" Date: Sat, 22 Jan 2005 21:39:35 +0000 Subject: 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 Signed-off-by: ian.pratt@cl.cam.ac.uk --- docs/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'docs/Makefile') diff --git a/docs/Makefile b/docs/Makefile index f489fd776b..e0b15b35a6 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,5 +1,7 @@ #!/usr/bin/make -f +INSTALL = install +INSTALL_DIR = $(INSTALL) -d -m0755 PS2PDF := ps2pdf DVIPS := dvips @@ -36,18 +38,18 @@ clean: install: all rm -rf $(prefix)$(pkgdocdir) - mkdir -p $(prefix)$(pkgdocdir) + $(INSTALL_DIR) $(prefix)$(pkgdocdir) cp -dR ps $(prefix)$(pkgdocdir) cp -dR pdf $(prefix)$(pkgdocdir) cp -dR html $(prefix)$(pkgdocdir) pdf/%.pdf: ps/%.ps - mkdir -p $(@D) + $(INSTALL_DIR) $(@D) $(PS2PDF) $< $@.new mv $@.new $@ ps/%.ps: %.dvi - mkdir -p $(@D) + $(INSTALL_DIR) $(@D) $(DVIPS) -Ppdf -G0 -o $@.new $< mv $@.new $@ @@ -62,7 +64,7 @@ ps/%.ps: %.dvi $(TGIF) -print -color -eps $< html/%/index.html: src/%.tex - mkdir -p $(@D) + $(INSTALL_DIR) $(@D) $(LATEX2HTML) -split 0 -show_section_numbers -toc_depth 3 -nonavigation \ -numbered_footnotes -local_icons -noinfo -math -dir $(@D) \ $< 1>/dev/null 2>/dev/null -- cgit v1.2.3