* [Qemu-devel] [PATCH] DESTDIRify
@ 2003-11-07 9:03 Gwenole Beauchesne
0 siblings, 0 replies; only message in thread
From: Gwenole Beauchesne @ 2003-11-07 9:03 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-07 9:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-07 9:03 [Qemu-devel] [PATCH] DESTDIRify Gwenole Beauchesne
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).