summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: ebcd1ae6e56e23e58f600d836e09e2cb2b6d3160 (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
MODS = themes/aoidh static/resume

build: static/resume.png
	hugo build

publish: build
	rsync -rz --delete public/ samanthony.xyz:/var/www/htdocs/samanthony.xyz/
	$(eval CID := $(shell ipfs add -r public | tail -n1 | awk '{print $$2}')) \
	ssh m900 "IPFS_PATH=/var/kubo ipfs pin add -r ${CID}"
	ipfs name publish --key=www.samanthony.xyz ${CID}

serve: build
	hugo serve -DEF

clean:
	rm -rf public

static/resume.png: static/resume.pdf
	gs -dNOPAUSE -dBATCH -sDEVICE=png16m -r300 -sOutputFile=$@ $<

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