summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f2665ec4a7d2565c375a01760e1f49527a320ff7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
MODS = $(shell git submodule | awk '{print $$2}')

build: fmt ${MODS}
	hugo build
	find public -name '*.html' -exec tidy -mqi {} \;

fmt:
	gotmplfmt -w .

publish: build
	rsync -rz --delete public/ samanthony.xyz:/var/www/htdocs/samanthony.xyz/

serve: build
	hugo serve -DEF

clean:
	rm -rf public

${MODS}:
	git submodule update --init --recursive

.PHONY: build fmt publish serve clean