HUGO ?= hugo DEV_SERVE ?= serve --buildDrafts --buildFuture --buildExpired NETLIFY_DEPLOY ?= deploy -d public .PHONY: all all: build .PHONY: build build: ; @${HUGO} .PHONY: public public: build .PHONY: dev dev: ; @${HUGO} ${DEV_SERVE} .PHONY: dev-ext dev-ext: ; @${HUGO} ${DEV_SERVE} --bind 0.0.0.0 .PHONY: clean clean: ; @rm -r public .PHONY: publish publish: public ; @netlify ${NETLIFY_DEPLOY} && echo "Run \`make publish-prod\` when ready." .PHONY: publish-prod publish-prod: public ; @netlify ${NETLIFY_DEPLOY} --prod