1From ea683a0dbaa30a0bf101adb09a1a2531c7112c62 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <Mingli.Yu@windriver.com>
3Date: Mon, 27 Aug 2018 11:02:45 +0800
4Subject: [PATCH] src/Makefile: use libdir instead of hardcoded /lib
5
6use libdir instead of hardcoded /lib
7
8Upstream-Status: Inappropriate [configuration]
9
10Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
11---
12 src/Makefile | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/src/Makefile b/src/Makefile
16index 4678d54..b73ddb6 100644
17--- a/src/Makefile
18+++ b/src/Makefile
19@@ -141,10 +141,10 @@ install-target:
20 	if [ ! -d $(BASE) ]; then mkdir $(BASE); fi
21 	if [ ! -d $(BASE)/bin ]; then mkdir $(BASE)/bin; fi
22 	if [ ! -d $(BASE)/include ]; then mkdir $(BASE)/include; fi
23-	if [ ! -d $(BASE)/lib ]; then mkdir $(BASE)/lib; fi
24+	if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir $(DESTDIR)$(libdir); fi
25 	cp $(EXES) $(BASE)/bin
26 	cp $(INCS) $(BASE)/include
27-	cp $O/lmbench.a $(BASE)/lib/libmbench.a
28+	cp $O/lmbench.a $(DESTDIR)$(libdir)/libmbench.a
29 	cd ../doc; env MAKEFLAGS="$(MAKEFLAGS)" make CC="${CC}" OS="${OS}" BASE="$(BASE)" install
30
31
32--
332.7.4
34
35