1From 97c06ae955b270851f4fd2396c715f9c76591f37 Mon Sep 17 00:00:00 2001 2From: Etienne Cordonnier <etienne.cordonnier@streamunlimited.com> 3Date: Thu, 2 Apr 2015 10:15:08 +0200 4Subject: [PATCH] Use DESTDIR in "install" Makefile rule 5 6This change allows to perform installations in a sysroot folder, which is required e.g. by 7the recipes inheriting yocto autotool class, and is an autotool standard: 8make install DESTDIR=~/mysysroot 9 10Upstream-Status: Inappropriate (the upstream project is dead) 11 12Signed-off-by: Etienne Cordonnier <etienne.cordonnier@streamunlimited.com> 13--- 14 Makefile.in | 36 ++++++++++++++++++------------------ 15 1 file changed, 18 insertions(+), 18 deletions(-) 16 17diff --git a/Makefile.in b/Makefile.in 18index 3d235ad..df544c7 100644 19--- a/Makefile.in 20+++ b/Makefile.in 21@@ -63,28 +63,28 @@ slib: 22 cd paranoia && $(MAKE) slib 23 24 install: 25- $(INSTALL) -d -m 0755 $(BINDIR) 26- $(INSTALL) -m 755 $(srcdir)/cdparanoia $(BINDIR) 27- $(INSTALL) -d -m 0755 $(MANDIR) 28- $(INSTALL) -d -m 0755 $(MANDIR)/man1 29- $(INSTALL) -m 0644 $(srcdir)/cdparanoia.1 $(MANDIR)/man1 30- $(INSTALL) -d -m 0755 $(INCLUDEDIR) 31- $(INSTALL) -m 0644 $(srcdir)/paranoia/cdda_paranoia.h $(INCLUDEDIR) 32- $(INSTALL) -d -m 0755 $(LIBDIR) 33- $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(LIBDIR) 34- $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.a $(LIBDIR) 35- $(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(INCLUDEDIR) 36- $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(LIBDIR) 37- $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(LIBDIR) 38- $(INSTALL) -m 0644 $(srcdir)/utils.h $(INCLUDEDIR) 39+ $(INSTALL) -d -m 0755 $(DESTDIR)$(BINDIR) 40+ $(INSTALL) -m 755 $(srcdir)/cdparanoia $(DESTDIR)$(BINDIR) 41+ $(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR) 42+ $(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR)/man1 43+ $(INSTALL) -m 0644 $(srcdir)/cdparanoia.1 $(DESTDIR)$(MANDIR)/man1 44+ $(INSTALL) -d -m 0755 $(DESTDIR)$(INCLUDEDIR) 45+ $(INSTALL) -m 0644 $(srcdir)/paranoia/cdda_paranoia.h $(DESTDIR)$(INCLUDEDIR) 46+ $(INSTALL) -d -m 0755 $(DESTDIR)$(LIBDIR) 47+ $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(DESTDIR)$(LIBDIR) 48+ $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.a $(DESTDIR)$(LIBDIR) 49+ $(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(DESTDIR)$(INCLUDEDIR) 50+ $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(DESTDIR)$(LIBDIR) 51+ $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(DESTDIR)$(LIBDIR) 52+ $(INSTALL) -m 0644 $(srcdir)/utils.h $(DESTDIR)$(INCLUDEDIR) 53 ln -fs libcdda_interface.so.0.$(VERSION) \ 54- $(LIBDIR)/libcdda_interface.so.0 55+ $(DESTDIR)$(LIBDIR)/libcdda_interface.so.0 56 ln -fs libcdda_interface.so.0.$(VERSION) \ 57- $(LIBDIR)/libcdda_interface.so 58+ $(DESTDIR)$(LIBDIR)/libcdda_interface.so 59 ln -fs libcdda_paranoia.so.0.$(VERSION) \ 60- $(LIBDIR)/libcdda_paranoia.so.0 61+ $(DESTDIR)$(LIBDIR)/libcdda_paranoia.so.0 62 ln -fs libcdda_paranoia.so.0.$(VERSION) \ 63- $(LIBDIR)/libcdda_paranoia.so 64+ $(DESTDIR)$(LIBDIR)/libcdda_paranoia.so 65 66 cdparanoia: $(OFILES) $(LIBDEP) 67 $(LD) $(CFLAGS) $(LDFLAGS) $(OFILES) \ 68-- 691.9.1 70 71