cosin-website/Makefile
2018-04-29 17:11:44 +02:00

17 lines
309 B
Makefile

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)