cosin-website/Makefile

21 lines
314 B
Makefile
Raw Normal View History

2018-04-29 17:11:44 +02:00
OUTPUT_DIR = public
SSH_HOST = www.cosin.ch
SSH_USER = root
TARGET_DIR = /var/www/cosin/
2018-04-29 18:40:29 +02:00
.PHONY: generate server upload clean
2018-04-29 17:11:44 +02:00
generate:
hugo
2018-04-29 18:40:29 +02:00
server:
hugo server
2018-04-29 17:11:44 +02:00
upload: generate
2018-04-29 18:40:29 +02:00
rsync -P -rvzc --delete --exclude=fahrplan/ $(OUTPUT_DIR)/ $(SSH_USER)@$(SSH_HOST):$(TARGET_DIR)
2018-04-29 17:11:44 +02:00
clean:
rm -rf $(OUTPUT_DIR)