Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From ea683a0dbaa30a0bf101adb09a1a2531c7112c62 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mingli Yu <Mingli.Yu@windriver.com> |
| 3 | Date: Mon, 27 Aug 2018 11:02:45 +0800 |
| 4 | Subject: [PATCH] src/Makefile: use libdir instead of hardcoded /lib |
| 5 | |
| 6 | use libdir instead of hardcoded /lib |
| 7 | |
| 8 | Upstream-Status: Inappropriate [configuration] |
| 9 | |
| 10 | Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> |
| 11 | --- |
| 12 | src/Makefile | 4 ++-- |
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 14 | |
| 15 | diff --git a/src/Makefile b/src/Makefile |
| 16 | index 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 | -- |
| 33 | 2.7.4 |
| 34 | |