diff options
| author | Max | 2017-01-27 18:10:56 +0100 |
|---|---|---|
| committer | Max | 2017-01-27 18:10:56 +0100 |
| commit | 3f9c89e259e48b0b687b1d72fe164516054635f4 (patch) | |
| tree | 525fc6f8c4b82d6351999d3f0e6b491c7e904d6c | |
| parent | c9d9af96c5d4f380c82b46c075b552264ee65b4c (diff) | |
| download | gospeladlershof.de-3f9c89e259e48b0b687b1d72fe164516054635f4.tar.gz | |
Kommentiert eine Abhängigkeit im Makefile.
| -rw-r--r-- | gospeladlershof.de/Makefile | 8 |
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 |
