cosin-website/Makefile

23 lines
394 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 22:53:53 +02:00
HUGO_FLAGS = --i18n-warnings
2018-04-29 18:40:29 +02:00
.PHONY: generate server upload clean
2018-04-29 17:11:44 +02:00
generate:
2018-04-29 22:53:53 +02:00
hugo $(HUGO_FLAGS)
2018-04-29 17:11:44 +02:00
2018-04-29 18:40:29 +02:00
server:
2018-04-29 22:53:53 +02:00
hugo $(HUGO_FLAGS) server
2018-04-29 18:40:29 +02:00
2018-04-29 17:11:44 +02:00
upload: generate
2018-06-05 04:31:28 +02:00
rsync -P -rvzc --delete --include=*/fahrplan/ --exclude=fahrplan/ $(OUTPUT_DIR)/ $(SSH_USER)@$(SSH_HOST):$(TARGET_DIR)
2018-04-29 17:11:44 +02:00
clean:
rm -rf $(OUTPUT_DIR)