blob: c335802b321007ed78e3f4e30b3b0e2061ded5dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
.POSIX:
REMOTE := root@rgoncalves.se
REMOTE_DIR := /var/www/htdocs/rgoncalves.se
OUTPUT_DIR := ./out
TEMPORARY_DIR := ./tmp
BIN_DIR := ../ssg
PATH := $(PATH):../ssg
.PHONY: all \
site \
clean
site: clean
$(BIN_DIR)/ssg
$(BIN_DIR)/rssg
preview: site
python3 -m http.server --directory $(OUTPUT_DIR) --bind 127.0.0.1
clean:
- rm -r $(OUTPUT_DIR) $(TEMPORARY_DIR)
deploy: site
rsync -e ssh -avz --delete $(OUTPUT_DIR)/ $(REMOTE):$(REMOTE_DIR)
ssh $(REMOTE) chown -R www:www $(REMOTE_DIR)
|