2020-09-17 13:35:38 -05:00
|
|
|
HUGO ?= hugo
|
|
|
|
DEV_SERVE ?= serve --buildDrafts --buildFuture --buildExpired
|
|
|
|
NETLIFY_DEPLOY ?= deploy -d public
|
|
|
|
|
|
|
|
.PHONY: all
|
2020-07-14 16:51:25 -05:00
|
|
|
all: build
|
2020-09-17 13:35:38 -05:00
|
|
|
|
|
|
|
.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
|
2020-07-14 18:02:25 -05:00
|
|
|
clean: ; @rm -r public
|
2020-09-17 13:35:38 -05:00
|
|
|
|
|
|
|
.PHONY: publish
|
|
|
|
publish: public ; @netlify ${NETLIFY_DEPLOY} && echo "Run \`make publish-prod\` when ready."
|
|
|
|
|
|
|
|
.PHONY: publish-prod
|
|
|
|
publish-prod: public ; @netlify ${NETLIFY_DEPLOY} --prod
|