Module: check_mk
Branch: master
Commit: 7a84ecb120285cd888a75721706592015a96b8da
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a84ecb120285c…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Dec 21 13:45:26 2017 +0100
Handle unsupported architecture (e.g. ARM) gracefully.
Change-Id: I7ef341167d7a5fa812031307a485fb0ba056e044
---
omd/packages/navicli/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/omd/packages/navicli/Makefile b/omd/packages/navicli/Makefile
index 57ca796..2d80e66 100755
--- a/omd/packages/navicli/Makefile
+++ b/omd/packages/navicli/Makefile
@@ -11,10 +11,6 @@ ifeq ($(UNAME_M),i686)
SOURCE_DIR=navisphere-32
endif
-ifeq ($(SOURCE_DIR),)
- $(error "Falsche Architektur: $(UNAME_M)")
-endif
-
.PHONY: build install skel clean
build:
@@ -27,6 +23,9 @@ build:
# consequence, we install the libraries to a subdirectory which is not searched
# and call the command via a wrapper which sets LD_LIBRARY_PATH.
install:
+ifeq ($(SOURCE_DIR),)
+ $(warning unsupported architecture $(UNAME_M))
+else
mkdir -p $(DESTDIR)$(OMD_ROOT)/bin
install -m 755 $(SOURCE_DIR)/bin/admsnap $(DESTDIR)$(OMD_ROOT)/bin
install -m 755 $(SOURCE_DIR)/bin/setlevel_cli.sh $(DESTDIR)$(OMD_ROOT)/bin
@@ -38,5 +37,6 @@ install:
install -m 755 $(SOURCE_DIR)/lib/seccli/* $(DESTDIR)$(OMD_ROOT)/lib/seccli
mkdir -p $(DESTDIR)$(OMD_ROOT)/share/navicli
cp -pr $(SOURCE_DIR)/seccli/CST $(DESTDIR)$(OMD_ROOT)/share/navicli
+endif
skel: