Files
xen/tools/sv/Makefile
T
iap10@labyrinth.cl.cam.ac.uk d2f5d53621 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
2005-01-22 22:03:34 +00:00

33 lines
1.0 KiB
Makefile
Executable File

sv_insdir := /var/lib/xen/sv
INSTALL = install
INSTALL_DIR = $(INSTALL) -d -m0755
INSTALL_DATA = $(INSTALL) -m0644
all:
IMAGES = xen.png orb_01.jpg orb_02.jpg
IMAGES += left-end-highlight.jpg left-end-no-highlight.jpg
IMAGES += right-end-highlight.jpg right-end-no-highlight.jpg
IMAGES += middle-highlight.jpg middle-no-highlight.jpg
IMAGES += seperator.jpg
IMAGES += seperator-left-highlight.jpg seperator-right-highlight.jpg
IMAGES += shutdown.png reboot.png pause.png unpause.png destroy.png
IMAGES += small-destroy.png small-pause.png small-unpause.png
IMAGES += next.png previous.png finish.png
install:
# copy XenSV Main.rpy file
@$(INSTALL_DIR) $(DESTDIR)$(sv_insdir)
@$(INSTALL_DATA) Main.rpy $(DESTDIR)$(sv_insdir)
# copy XenSV images
@$(INSTALL_DIR) $(DESTDIR)$(sv_insdir)/images
@(cd images && $(INSTALL_DATA) $(IMAGES) $(DESTDIR)$(sv_insdir)/images)
# copy XenSV stylesheet
@$(INSTALL_DIR) $(DESTDIR)$(sv_insdir)/inc
@$(INSTALL_DATA) inc/style.css inc/script.js $(DESTDIR)$(sv_insdir)/inc
clean: