From d7740bfd7a30ba8bf0748ca26238acd14ead5953 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 21 Jan 2018 04:28:31 +0300 Subject: [PATCH] makefile tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/Makefile b/ui (gen4)/Makefile index 3ba66020..4eade611 100755 --- a/ui (gen4)/Makefile +++ b/ui (gen4)/Makefile @@ -314,11 +314,10 @@ dist: test-electron-dist # - deploy only when scrip both the script AND target are available .PHONY: deploy deploy: $(wildcard $(DIST_DIR)/$(APP_NAME)-*.zip) $(wildcard scripts/deploy.sh) - @[ -e $(DIST_DIR)/$(APP_NAME)-*.zip ] \ - || echo "Deploy error: Nothing to deploy, skipping." @[ -e ./scripts/deploy.sh ] \ + && [ -e $(DIST_DIR)/$(APP_NAME)-*.zip ] \ && bash ./scripts/deploy.sh "$(DIST_DIR)/$(APP_NAME)-*.zip" \ - || echo "Deploy error: No deploy.sh script found in ./scripts/, skipping." + || echo "Deploy error: `[ -e ./scripts/deploy.sh ] && echo Distribution || echo Deploy script` not found."