Skip to content
Permalink
Browse files

Make deploy without SERVER print an error.

  • Loading branch information
nolanl committed Feb 6, 2020
1 parent 3fd5d34 commit 4af14fb60885b55570860d5dcf38d01f3ab93339
Showing with 2 additions and 3 deletions.
  1. +2 −3 Makefile
@@ -236,7 +236,6 @@ $(UBOOT_SRC):
[ `echo "$${PIPESTATUS[@]}" | tr -s ' ' + | bc` -eq 0 ] || \
( rm -rf $(UBOOTDIR) && false )


UBOOT_PATCH := $(UBOOTDIR)/.config
uboot_patch: $(UBOOT_PATCH)
$(UBOOT_PATCH): $(UBOOT_SRC) $(KCONFIGDIR)/$(ARCH)_uconfig
@@ -613,11 +612,11 @@ endif
PHONY += deploy
ifeq ($(ARCH:arm%=),)
deploy: $(RPI3_ZIP)
@test $(SERVER)
@test $(SERVER) || ( echo 'set SERVER' && false)
scp $(RPI3_ZIP) root@$(SERVER):~/data/sslnginx/html/images/
else ifeq ($(ARCH), amd64)
deploy: $(PC_ZIP)
@test $(SERVER)
@test $(SERVER) || ( echo 'set SERVER' && false)
scp $(PC_ZIP) root@$(SERVER):~/data/sslnginx/html/images/
endif
########################

0 comments on commit 4af14fb

Please sign in to comment.
You can’t perform that action at this time.