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; \