Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From a70513ff59da3c593c76330afb445c21761c3268 Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 3 | Date: Tue, 31 Jul 2018 17:14:24 +0800 |
| 4 | Subject: [PATCH 1/2] tweak install prefix |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | |
| 6 | Upstream-Status: Inappropriate [oe specific] |
| 7 | |
| 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 9 | --- |
| 10 | Makefile | 28 ++++++++++++++-------------- |
| 11 | 1 file changed, 14 insertions(+), 14 deletions(-) |
| 12 | |
| 13 | diff --git a/Makefile b/Makefile |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | index c98cf35..7c5907f 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | --- a/Makefile |
| 16 | +++ b/Makefile |
| 17 | @@ -39,26 +39,26 @@ pyisomd5sum.so: $(PYOBJS) |
| 18 | install: all install-bin install-python install-devel |
| 19 | |
| 20 | install-bin: |
| 21 | - install -d -m 0755 $(DESTDIR)/usr/bin |
| 22 | - install -d -m 0755 $(DESTDIR)/usr/share/man/man1 |
| 23 | - install -m 0755 implantisomd5 $(DESTDIR)/usr/bin |
| 24 | - install -m 0755 checkisomd5 $(DESTDIR)/usr/bin |
| 25 | - install -m 0644 implantisomd5.1 $(DESTDIR)/usr/share/man/man1 |
| 26 | - install -m 0644 checkisomd5.1 $(DESTDIR)/usr/share/man/man1 |
| 27 | + install -d -m 0755 $(DESTDIR)$(bindir) |
| 28 | + install -d -m 0755 $(DESTDIR)$(mandir)/man1 |
| 29 | + install -m 0755 implantisomd5 $(DESTDIR)$(bindir) |
| 30 | + install -m 0755 checkisomd5 $(DESTDIR)$(bindir) |
| 31 | + install -m 0644 implantisomd5.1 $(DESTDIR)$(mandir)/man1 |
| 32 | + install -m 0644 checkisomd5.1 $(DESTDIR)$(mandir)/man1 |
| 33 | |
| 34 | install-python: |
| 35 | install -d -m 0755 $(DESTDIR)$(PYTHONSITEPACKAGES) |
| 36 | install -m 0755 pyisomd5sum.so $(DESTDIR)$(PYTHONSITEPACKAGES) |
| 37 | |
| 38 | install-devel: |
| 39 | - install -d -m 0755 $(DESTDIR)/usr/include |
| 40 | - install -d -m 0755 $(DESTDIR)/usr/$(LIBDIR) |
| 41 | - install -d -m 0755 $(DESTDIR)/usr/share/pkgconfig |
| 42 | - install -m 0644 libimplantisomd5.h $(DESTDIR)/usr/include/ |
| 43 | - install -m 0644 libcheckisomd5.h $(DESTDIR)/usr/include/ |
| 44 | - install -m 0644 libimplantisomd5.a $(DESTDIR)/usr/$(LIBDIR) |
| 45 | - install -m 0644 libcheckisomd5.a $(DESTDIR)/usr/$(LIBDIR) |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 46 | - sed "s#@VERSION@#${VERSION}#g; s#@includedir@#/usr/include#g; s#@libdir@#/usr/${LIBDIR}#g" isomd5sum.pc.in > ${DESTDIR}/usr/share/pkgconfig/isomd5sum.pc |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 47 | + install -d -m 0755 $(DESTDIR)$(includedir) |
| 48 | + install -d -m 0755 $(DESTDIR)$(libdir) |
| 49 | + install -d -m 0755 $(DESTDIR)${datadir}/pkgconfig |
| 50 | + install -m 0644 libimplantisomd5.h $(DESTDIR)$(includedir) |
| 51 | + install -m 0644 libcheckisomd5.h $(DESTDIR)$(includedir) |
| 52 | + install -m 0644 libimplantisomd5.a $(DESTDIR)$(libdir) |
| 53 | + install -m 0644 libcheckisomd5.a $(DESTDIR)$(libdir) |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 54 | + sed "s#@VERSION@#${VERSION}#g; s#@includedir@#$(includedir)#g; s#@libdir@#$(libdir)#g" isomd5sum.pc.in > ${DESTDIR}${datadir}/pkgconfig/isomd5sum.pc |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 55 | |
| 56 | clean: |
| 57 | rm -f *.o *.so *.pyc *.a .depend *~ |
| 58 | -- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 59 | 2.7.4 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 60 | |