summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1d4f18322edd0c4317c03967c86c2b7fb49437ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

# rgoncalves.se website deployment

REMOTE_LOGIN := root@dc0
REMOTE_DIR := /var/www/htdocs/rgoncalves.se

build:
	-@zola build

deploy:
	rsync -r public/ $(REMOTE_LOGIN):$(REMOTE_DIR)
	ssh $(REMOTE_LOGIN) "chown -R www:www $(REMOTE_DIR)"

clean:
	-@rm -rf public

all: build deploy clean

.PHONY: all build deploy
remember that computers suck.