summaryrefslogtreecommitdiff
path: root/Cmds
diff options
context:
space:
mode:
authorClément Péron <peron.clem@gmail.com>2022-02-17 18:39:06 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2022-02-18 12:04:51 +0100
commit7c1f4598217c1ae2987a83756cfeaac04650d8d9 (patch)
treef6589897880f93fc4092f5246f5c461e7621d35b /Cmds
parent963e18342e93ca033a262fa23ce74105833bd1e8 (diff)
Cmds: automatically create folder
When installing netsniff-ng, the make install complain when the folder are not present. Let's create them for the user. Signed-off-by: Clément Péron <peron.clem@gmail.com>
Diffstat (limited to 'Cmds')
-rw-r--r--Cmds3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cmds b/Cmds
index e590b38..3df23b8 100644
--- a/Cmds
+++ b/Cmds
@@ -44,7 +44,8 @@ ifeq ("$(origin PREFIX)", "$(filter $(origin PREFIX), file 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))
+ INSTX = echo -e " INST\t$(1)" && install -d $(2) && \
+ install -C $(1) $(2)/$(shell basename $(1))
endif
MKDIR = echo -e " MKDIR\t$(1)" && mkdir -p $(1)