qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] DESTDIRify
Date: Fri, 7 Nov 2003 10:03:11 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.50.0311071002030.9116-100000@thalys.mandrakesoft.com> (raw)

Hi,

This patch renders make install DESTDIR aware. That helps for packages 
generation. At the same time, make sure there is actually something to 
install prior to proceeding.

Patch against 0.5.0

--- qemu-0.5.0/Makefile.DESTDIR	2003-10-28 01:53:12.000000000 +0100
+++ qemu-0.5.0/Makefile	2003-11-06 13:39:31.000000000 +0100
@@ -35,12 +35,12 @@ distclean: clean
         done
 
 install: all 
-	mkdir -p $(prefix)/bin
-	install -m 755 -s $(TOOLS) $(prefix)/bin
-	mkdir -p $(sharedir)
-	install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin $(sharedir)
-	mkdir -p $(mandir)/man1
-	install qemu.1 $(mandir)/man1
+	mkdir -p $(DESTDIR)$(prefix)/bin
+	install -m 755 -s $(TOOLS) $(DESTDIR)$(prefix)/bin
+	mkdir -p $(DESTDIR)$(sharedir)
+	install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin $(DESTDIR)$(sharedir)
+	mkdir -p $(DESTDIR)$(mandir)/man1
+	install qemu.1 $(DESTDIR)$(mandir)/man1
 	for d in $(TARGET_DIRS); do \
 	make -C $$d $@ || exit 1 ; \
         done
--- qemu-0.5.0/Makefile.target.DESTDIR	2003-11-06 13:23:32.000000000 +0100
+++ qemu-0.5.0/Makefile.target	2003-11-06 13:40:32.000000000 +0100
@@ -235,7 +235,9 @@
 	rm -f *.o  *.a *~ $(PROGS) gen-op.h opc.h op.h
 
 install: all 
+ifneq ($(PROGS),)
-	install -m 755 -s $(PROGS) $(prefix)/bin
+	install -m 755 -s $(PROGS) $(DESTDIR)$(prefix)/bin
+endif
 
 ifneq ($(wildcard .depend),)
 include .depend

                 reply	other threads:[~2003-11-07  9:07 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=Pine.LNX.4.50.0311071002030.9116-100000@thalys.mandrakesoft.com \
    --to=gbeauchesne@mandrakesoft.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).