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 /tools/sv/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 'tools/sv/Makefile')
-rwxr-xr-x | tools/sv/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/sv/Makefile b/tools/sv/Makefile index dc47b71e09..c2b4e92dfc 100755 --- a/tools/sv/Makefile +++ b/tools/sv/Makefile @@ -1,4 +1,4 @@ -sv_insdir := $(prefix)/var/lib/xen/sv +sv_insdir := /var/lib/xen/sv INSTALL = install INSTALL_DIR = $(INSTALL) -d -m0755 INSTALL_DATA = $(INSTALL) -m0644 @@ -17,16 +17,16 @@ IMAGES += next.png previous.png finish.png install: # copy XenSV Main.rpy file - @$(INSTALL_DIR) $(sv_insdir) - @$(INSTALL_DATA) Main.rpy $(sv_insdir) + @$(INSTALL_DIR) $(DESTDIR)$(sv_insdir) + @$(INSTALL_DATA) Main.rpy $(DESTDIR)$(sv_insdir) # copy XenSV images - @($(INSTALL_DIR) $(sv_insdir)/images - @(cd images && $(INSTALL_DATA) $(IMAGES) $(sv_insdir)/images) + @$(INSTALL_DIR) $(DESTDIR)$(sv_insdir)/images + @(cd images && $(INSTALL_DATA) $(IMAGES) $(DESTDIR)$(sv_insdir)/images) # copy XenSV stylesheet - @$(INSTALL_DIR) $(sv_insdir)/inc - @$(INSTALL_DATA) inc/style.css inc/script.js $(sv_insdir)/inc + @$(INSTALL_DIR) $(DESTDIR)$(sv_insdir)/inc + @$(INSTALL_DATA) inc/style.css inc/script.js $(DESTDIR)$(sv_insdir)/inc clean: |