From 8394e833cb6775f1b35ce4e5cb755fce01e85504 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 6 Mar 2023 12:04:06 +0600 Subject: [PATCH] Makefile check for unexisted directories --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ddf681c..7bced06 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ CMAKE_COMMAND = cmake CMAKE_SOURCE_DIR = ./source CMAKE_BUILD_DIR = ./compile PKGNAME = $(MAKEFILE_DIR) +version_application = #PKGNAME = check-hostalive default_target: all @@ -110,6 +111,9 @@ install: check uninstall @install -Dm644 -t /usr/share/icons/hicolor/scalable/apps/ ${PKGNAME}.svg @install -Dm755 -t /usr/bin/ ${CMAKE_BUILD_DIR}/${PKGNAME} @install -Dm644 -t /usr/share/applications/ ${PKGNAME}.desktop; \ + if [ ! -d "/usr/share/${PKGNAME}" ]; then \ + mkdir /usr/share/${PKGNAME}; \ + fi; \ if [ ! -d "/usr/share/${PKGNAME}/ui" ]; then \ mkdir /usr/share/${PKGNAME}/ui; \ fi; \