From d9c9a0466daaf46f38a0a5bb946d9fde7298a6a1 Mon Sep 17 00:00:00 2001 From: Raoul Date: Sun, 29 Apr 2018 17:11:44 +0200 Subject: [PATCH] Add Makefile for website deployment --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3a0a4df --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +OUTPUT_DIR = public + +SSH_HOST = www.cosin.ch +SSH_USER = root +TARGET_DIR = /var/www/cosin/ + +.PHONY: generate upload clean + + +generate: + hugo + +upload: generate + rsync --rsh=ssh -P -rvzc --cvs-exclude --delete --exclude=fahrplan/ $(OUTPUT_DIR)/ $(SSH_USER)@$(SSH_HOST):$(TARGET_DIR) + +clean: + rm -rf $(OUTPUT_DIR)