From ba85243ef4f90c022502604a8faadbc4e7d8f439 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Tue, 23 Aug 2016 00:17:11 +0300 Subject: 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 Signed-off-by: Tobias Klauser --- Cmds | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Cmds') 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) -- cgit v1.2.3-54-g00ecf