.PHONY: all all: build-dev .PHONY: build-dev build-dev: HUGO_BASEURL=https://dev.belanyi.fr hugo -D -F .PHONY: build-prod build-prod: HUGO_ENV=production hugo --minify .PHONY: serve serve: hugo server -D -F deploy: @if [ -n "$$KEY" ]; then eval "$$(ssh-agent)"; echo "$$KEY" | ssh-add -; fi if [ -z "$$USERNAME" ] || [ -z "$$SSH_HOST" ] || [ -z "$$TARGET" ]; then exit 1; fi rsync --progress -avz --delete public/ "$$USERNAME@$$SSH_HOST:$$TARGET" .PHONY: clean clean: $(RM) -r public