diff options
author | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2005-01-22 22:03:34 +0000 |
---|---|---|
committer | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2005-01-22 22:03:34 +0000 |
commit | d2f5d53621f141ce1be63eeeae4a8a9e289498d8 (patch) | |
tree | 206f20e7e561bfdab882dacb13aab906755e6cf0 /docs/Makefile | |
parent | 84a280c8928e988f7e8fac3fe69f1b1e67d95da5 (diff) | |
download | xen-d2f5d53621f141ce1be63eeeae4a8a9e289498d8.tar.gz xen-d2f5d53621f141ce1be63eeeae4a8a9e289498d8.tar.bz2 xen-d2f5d53621f141ce1be63eeeae4a8a9e289498d8.zip |
bitkeeper revision 1.1159.223.26 (41f2cdb6LNpheOtPoAKEUn-czlZFig)
Description: use DESTDIR correctly
Standard makefiles always attempt to install to the root(/). Setting
DESTDIR is the normal way to install to an alternative location.
Setting prefix has the possibility of breaking programs, as the prefix
may have been embedded inside a compiled binary.
From: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/Makefile b/docs/Makefile index e0b15b35a6..46c2d38c59 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -11,7 +11,8 @@ TGIF := tgif LATEX2HTML := latex2html package = xen -docdir = /usr/share/doc +prefix = /usr +docdir = $(prefix)/share/doc pkgdocdir = $(docdir)/$(package) DOC_TEX := $(wildcard src/*.tex) @@ -37,11 +38,11 @@ clean: rm -rf $(GFX) ps pdf html install: all - rm -rf $(prefix)$(pkgdocdir) - $(INSTALL_DIR) $(prefix)$(pkgdocdir) - cp -dR ps $(prefix)$(pkgdocdir) - cp -dR pdf $(prefix)$(pkgdocdir) - cp -dR html $(prefix)$(pkgdocdir) + rm -rf $(DESTDIR)$(pkgdocdir) + $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir) + cp -dR ps $(DESTDIR)$(pkgdocdir) + cp -dR pdf $(DESTDIR)$(pkgdocdir) + cp -dR html $(DESTDIR)$(pkgdocdir) pdf/%.pdf: ps/%.ps $(INSTALL_DIR) $(@D) |