cosin-website/Makefile

20 lines
314 B
Makefile

OUTPUT_DIR = public
SSH_HOST = www.cosin.ch
SSH_USER = root
TARGET_DIR = /var/www/cosin/
.PHONY: generate server upload clean
generate:
hugo
server:
hugo server
upload: generate
rsync -P -rvzc --delete --exclude=fahrplan/ $(OUTPUT_DIR)/ $(SSH_USER)@$(SSH_HOST):$(TARGET_DIR)
clean:
rm -rf $(OUTPUT_DIR)