1 files changed, 5 insertions(+), 2 deletions(-)

M Makefile
M Makefile +5 -2
@@ 34,9 34,12 @@ clean:
 
 HOST=henry@mail.precheur.org
 REMOTE_PATH=/var/www/htdocs/${DOMAIN}/scratchpad
+REPO_PATH=$$HOME/go/src/hg.sr.ht/~henryprecheur/scratchpad
 
-release: scratchpad style.css
-	scp -C scratchpad style.css ${HOST}:${REMOTE_PATH}
+release: style.css
+	scp -C style.css ${HOST}:${REMOTE_PATH}
+	ssh -A ${HOST} 'cd ${REPO_PATH}; hg pull --update'
+	ssh ${HOST} 'cd ${REPO_PATH}; glide install && go build && cp ./scratchpad ${REMOTE_PATH}'
 	ssh ${HOST} 'cd ${REMOTE_PATH}; ./scratchpad < log'
 
 scratchpad: glide