Makefile check for unexisted directories

pull/9/head
parent a8fe46134f
commit 8394e833cb

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

Loading…
Cancel
Save