diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,13 +1,15 @@ +MODS = themes/aoidh static/resume + build: static/resume.png hugo build publish: build rsync -rz --delete public/ samanthony.xyz:/var/www/htdocs/samanthony.xyz/ - ipfs add -r public \ - | tail -n1 | awk '{print $$2}' \ - | xargs -I{} ssh samanthony.xyz "IPFS_PATH=/var/kubo ipfs pin add -r {}" + $(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: +serve: build hugo serve -DEF clean: @@ -15,3 +17,7 @@ clean: static/resume.png: static/resume.pdf gs -dNOPAUSE -dBATCH -sDEVICE=png16m -r300 -sOutputFile=$@ $< + +${MODS}: + git submodule init + git submodule update --recursive |