site.lyte.dev/makefile

8 lines
310 B
Makefile

.PHONY: all default build dev publish publish-prod
build: ; @hugo
public: build
dev: ; @hugo serve --buildDrafts
all: build
clean: ; @rm -r public
publish: public ; @netlify deploy -d public && echo "You can run \`make publish-prod\` when you're ready."
publish-prod: public ; @netlify deploy -d public --prod