summaryrefslogtreecommitdiff
path: root/Makefile
blob: 838b7298f0a28e2eedbe2923c7b10c96bb1b336e (plain)
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
#!/usr/bin/make -f

.PHONY: help init build deploy clean serve

BLOG_REMOTE=rootleo:/srv/www/leomurca.xyz

help:
	$(info make init|deploy|build|clean|serve)

init:
	echo "Making $@"; \

build: clean
	echo "Making $@"
	hugo --minify

deploy: build
	echo "Making $@"
	rsync -rLtvz public/ $(BLOG_REMOTE)

clean:
	echo "Making $@"
	rm -rf public/

serve:
	python -m http.server --directory public