summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gospeladlershof.de/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/gospeladlershof.de/Makefile b/gospeladlershof.de/Makefile
index 8c80b2a..458694d 100644
--- a/gospeladlershof.de/Makefile
+++ b/gospeladlershof.de/Makefile
@@ -1,7 +1,11 @@
export PATH := /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/horus/app/gospeladlershof.de/gospeladlershof.de/node_modules/gulp/bin
+GOSPELCLIENT:=/usr/local/bin/gospelclient
all: build
+test:
+ if [ ! -x $(GOSPELCLIENT) ]; then echo "Please compile the client first and move it to $(GOSPELCLIENT). cd resources/mq/client && go build"; exit 1; fi
+
build: clean
@HUGO_TEST=1 hugo --ignoreCache --log=true --logFile=../log/hugo.log --verbose=false 1>/dev/null \
|| ( echo "Failure building the site." && exit 1)
@@ -22,10 +26,10 @@ serve: server
server:
HUGO_TEST=0 hugo server
-deploy: build
+deploy: test build
@if [ -d "/var/www/gospeladlershof.de/gospeladlershof.de/" ]; then \
rsync --delete -avz public/ /var/www/gospeladlershof.de/gospeladlershof.de/ && \
- /usr/local/bin/gospelclient; \
+ $(GOSPELCLIENT); \
else \
rsync --delete -avze ssh public/ online:/var/www/gospeladlershof.de/gospeladlershof.de/; \
fi