blob: 61310ccf5b6c836eeb779d4442f08e4d4f4a292d [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From a70513ff59da3c593c76330afb445c21761c3268 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Hongxu Jia <hongxu.jia@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08003Date: Tue, 31 Jul 2018 17:14:24 +0800
4Subject: [PATCH 1/2] tweak install prefix
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005
6Upstream-Status: Inappropriate [oe specific]
7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9---
10 Makefile | 28 ++++++++++++++--------------
11 1 file changed, 14 insertions(+), 14 deletions(-)
12
13diff --git a/Makefile b/Makefile
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014index c98cf35..7c5907f 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015--- 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 Bishop1a4b7ee2018-12-16 17:11:34 -080046- 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 Bishopd7bf8c12018-02-25 22:55:05 -050047+ 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 Bishop1a4b7ee2018-12-16 17:11:34 -080054+ sed "s#@VERSION@#${VERSION}#g; s#@includedir@#$(includedir)#g; s#@libdir@#$(libdir)#g" isomd5sum.pc.in > ${DESTDIR}${datadir}/pkgconfig/isomd5sum.pc
Brad Bishopd7bf8c12018-02-25 22:55:05 -050055
56 clean:
57 rm -f *.o *.so *.pyc *.a .depend *~
58--
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800592.7.4
Brad Bishopd7bf8c12018-02-25 22:55:05 -050060