server: theme
	xdg-open "http://localhost:1313/"
	hugo version
	hugo -D server

deploy: theme
	hugo
	rsync -va --progress --delete --rsync-path="/usr/bin/openrsync" public/ dante@lambda.cx:/var/www/htdocs/blog.lambda.cx/
	rm -r public

theme:
	git submodule update --init --recursive

update:
	git submodule update --remote --merge

.PHONY: deploy servre theme update