22 lines
401 B
Makefile
22 lines
401 B
Makefile
OUTPUT_DIR = public
|
|
|
|
SSH_HOST = www.cosin.ch
|
|
SSH_USER = root
|
|
TARGET_DIR = /srv/www/www.cosin.ch/
|
|
|
|
HUGO_FLAGS = --i18n-warnings
|
|
|
|
.PHONY: generate server upload clean
|
|
|
|
|
|
generate:
|
|
hugo $(HUGO_FLAGS)
|
|
|
|
server:
|
|
hugo $(HUGO_FLAGS) server
|
|
|
|
upload: generate
|
|
rsync -P -rvzc --delete --include=*/fahrplan/ --exclude=fahrplan/ $(OUTPUT_DIR)/ $(SSH_USER)@$(SSH_HOST):$(TARGET_DIR)
|
|
|
|
clean:
|
|
rm -rf $(OUTPUT_DIR)
|