From: "Patrick Mauritz" <patrick.mauritz@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] destdir support
Date: Sat, 1 Apr 2006 11:56:52 +0200 [thread overview]
Message-ID: <5393dd630604010156geca424cw89ced9098df90fc4@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
Hi,
the attached patch adds DESTDIR at the right places in the makefile,
which is suitable for packaging (build with --prefix=/usr, install
with make install DESTDIR=/foo, then you have the resulting tree in
/foo/usr/...)
patrick mauritz
[-- Attachment #2: 20060401-destdir.patch --]
[-- Type: text/x-patch, Size: 2132 bytes --]
#
#
# patch "Makefile"
# from [24ce1c8e1082fb804f509f5fd27617f226893745]
# to [7249eece15dfa3b0c06aa0d0f2b916214fbe9226]
#
# patch "Makefile.target"
# from [556cc7e70656a74d391e395e641eafed16ed2c88]
# to [b414edd14d60c4dc7d00a55d38616613c83ff1b7]
#
============================================================
--- Makefile 24ce1c8e1082fb804f509f5fd27617f226893745
+++ Makefile 7249eece15dfa3b0c06aa0d0f2b916214fbe9226
@@ -44,21 +44,21 @@
common de-ch es fo fr-ca hu ja mk nl-be pt sl tr
install: all
- mkdir -p "$(bindir)"
- install -m 755 -s $(TOOLS) "$(bindir)"
- mkdir -p "$(datadir)"
+ mkdir -p "$(DESTDIR)$(bindir)"
+ install -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)"
+ mkdir -p "$(DESTDIR)$(datadir)"
install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
pc-bios/vgabios-cirrus.bin \
pc-bios/ppc_rom.bin pc-bios/video.x \
pc-bios/proll.elf \
- pc-bios/linux_boot.bin "$(datadir)"
- mkdir -p "$(docdir)"
- install -m 644 qemu-doc.html qemu-tech.html "$(docdir)"
+ pc-bios/linux_boot.bin "$(DESTDIR)$(datadir)"
+ mkdir -p "$(DESTDIR)$(docdir)"
+ install -m 644 qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
ifndef CONFIG_WIN32
- mkdir -p "$(mandir)/man1"
- install qemu.1 qemu-img.1 "$(mandir)/man1"
- mkdir -p "$(datadir)/keymaps"
- install -m 644 $(addprefix keymaps/,$(KEYMAPS)) "$(datadir)/keymaps"
+ mkdir -p "$(DESTDIR)$(mandir)/man1"
+ install qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
+ mkdir -p "$(DESTDIR)$(datadir)/keymaps"
+ install -m 644 $(addprefix keymaps/,$(KEYMAPS)) "$(DESTDIR)$(datadir)/keymaps"
endif
for d in $(TARGET_DIRS); do \
$(MAKE) -C $$d $@ || exit 1 ; \
============================================================
--- Makefile.target 556cc7e70656a74d391e395e641eafed16ed2c88
+++ Makefile.target b414edd14d60c4dc7d00a55d38616613c83ff1b7
@@ -469,7 +469,7 @@
install: all
ifneq ($(PROGS),)
- install -m 755 -s $(PROGS) "$(bindir)"
+ install -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)"
endif
ifneq ($(wildcard .depend),)
reply other threads:[~2006-04-01 9:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5393dd630604010156geca424cw89ced9098df90fc4@mail.gmail.com \
--to=patrick.mauritz@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.