cosin-website/Makefile

23 lines
401 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
2018-09-01 17:18:25 +02:00
TARGET_DIR = /srv/www/www.cosin.ch/
2018-04-29 17:11:44 +02:00
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)