From 05d8159d8f1bf0b4e3ad109db3d415a5eb91a1b1 Mon Sep 17 00:00:00 2001 From: Yves Martin Date: Sun, 3 Dec 2017 21:12:00 +0100 Subject: [PATCH] Add NO_SERVICE_SHORTCUT switch for non web protocol When service protocol is not browsable, this switch allow to disable UI shortcut icon generation for service. --- mk/spksrc.service.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/spksrc.service.mk b/mk/spksrc.service.mk index 85ee1de09a6..6d31aeea02f 100644 --- a/mk/spksrc.service.mk +++ b/mk/spksrc.service.mk @@ -167,6 +167,7 @@ endif # Generate DSM UI configuration ifneq ($(strip $(SPK_ICON)),) ifneq ($(strip $(SERVICE_PORT)),) +ifeq ($(strip $(NO_SERVICE_SHORTCUT)),) # Set some defaults ifeq ($(strip $(SERVICE_URL)),) SERVICE_URL=/ @@ -199,6 +200,7 @@ $(STAGING_DIR)/$(DSM_UI_DIR)/config: SERVICE_FILES += $(STAGING_DIR)/$(DSM_UI_DIR)/config endif endif +endif service_target: $(PRE_SERVICE_TARGET) $(SERVICE_FILES)