aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: fcd376ce3bd21b00802c7317a9a9abf0b9af28c2 (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
27
28
.POSIX:

BIN := ./bin
SRC := ./src
OUT := ./out
TMP := ./tmp
REMOTE := root@dc0
REMOTE_DIR := /var/www/htdocs/rgoncalves.se
BASE_URL = https://rgoncalves.se

.PHONY: all \
	website \
	clean

all: clean website

local: clean
	BASE_URL=$$PWD/$(OUT) $(BIN)/ssg

website: clean
	BASE_URL=$(BASE_URL) $(BIN)/ssg

deploy: website
	rsync -e ssh -avz --delete $(OUT)/ $(REMOTE):$(REMOTE_DIR)
	ssh $(REMOTE) chown -R www:www $(REMOTE_DIR)

clean:
	- rm -r $(OUT) $(TMP)/*
remember that computers suck.