summaryrefslogtreecommitdiff
path: root/Cmds
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-08-23 00:17:11 +0300
committerTobias Klauser <tklauser@distanz.ch>2016-09-15 18:34:56 +0200
commitba85243ef4f90c022502604a8faadbc4e7d8f439 (patch)
treef47167bb2f3fef69f4b99d4393b2f252ed611c69 /Cmds
parent9ec74c8eb4d44510827140446a9b155cb8a61690 (diff)
build: configure: Add option to specify install path for binary files
Add new --prefix=PREFIX configure commandline option to specify installation directory for binaries. Add additional check in 'Cmds' file if --prefix was specified from 'configure' script, in that case required installation path components will be created automatically as it is done for 'make PREFIX=...' option. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Cmds')
-rw-r--r--Cmds7
1 files changed, 6 insertions, 1 deletions
diff --git a/Cmds b/Cmds
index 7167e0c..159939e 100644
--- a/Cmds
+++ b/Cmds
@@ -29,7 +29,12 @@ ifeq ("$(origin PREFIX)", "command line")
INSTX = echo -e " INST\t$(1)" && install -d $(2) && \
install -C $(1) $(2)/$(shell basename $(1))
else
- INSTX = echo -e " INST\t$(1)" && install -C $(1) $(2)/$(shell basename $(1))
+ ifeq ("$(origin PREFIX)", "file")
+ INSTX = echo -e " INST\t$(1)" && install -d $(2) && \
+ install -C $(1) $(2)/$(shell basename $(1))
+ else
+ INSTX = echo -e " INST\t$(1)" && install -C $(1) $(2)/$(shell basename $(1))
+ endif
endif
MKDIR = echo -e " MKDIR\t$(1)" && mkdir -p $(1)