aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Li <philip.li@intel.com>2019-07-05 22:40:01 +0800
committerGitHub <noreply@github.com>2019-07-05 22:40:01 +0800
commitd5afd4fd5daf08ddba750831590e15f7b475f093 (patch)
tree90619106bb6efdb04e17b7b7d10d1f791a2f0f7e
parent232d7c91b28bdc7035e6ff9a7642f48236a1c411 (diff)
parent731fb6d7a683d02509c49851aae4425aded89a4d (diff)
downloadlkp-tests-d5afd4fd5daf08ddba750831590e15f7b475f093.tar.gz
Merge pull request #37 from apnavik/master
Makefile: Adds TARGET_DIR_BIN variable
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 99ed0d2f..76b842b6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
+ifeq ($(TARGET_DIR_BIN), )
+ TARGET_DIR_BIN := /usr/local/bin
+endif
+
install:
- mkdir -p /usr/local/bin/
- ln -sf $(shell pwd)/bin/lkp /usr/local/bin/lkp
+ mkdir -p $(TARGET_DIR_BIN)
+ ln -sf $(shell pwd)/bin/lkp $(TARGET_DIR_BIN)/lkp
.PHONY: doc
doc: