diff options
author | Clément Péron <peron.clem@gmail.com> | 2022-02-17 18:39:06 +0100 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2022-02-18 12:04:51 +0100 |
commit | 7c1f4598217c1ae2987a83756cfeaac04650d8d9 (patch) | |
tree | f6589897880f93fc4092f5246f5c461e7621d35b | |
parent | 963e18342e93ca033a262fa23ce74105833bd1e8 (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>
-rw-r--r-- | Cmds | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |