mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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
33 lines
1.0 KiB
Makefile
Executable File
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:
|
|
|