From 7c1f4598217c1ae2987a83756cfeaac04650d8d9 Mon Sep 17 00:00:00 2001 From: Clément Péron Date: Thu, 17 Feb 2022 18:39:06 +0100 Subject: Cmds: automatically create folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Cmds | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Cmds') 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) -- cgit v1.2.3-54-g00ecf