summaryrefslogtreecommitdiff
path: root/Cmds
diff options
context:
space:
mode:
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)