You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
532 B

  1. HUGO ?= hugo
  2. DEV_SERVE ?= serve --buildDrafts --buildFuture --buildExpired
  3. NETLIFY_DEPLOY ?= deploy -d public
  4. .PHONY: all
  5. all: build
  6. .PHONY: build
  7. build: ; @${HUGO}
  8. .PHONY: public
  9. public: build
  10. .PHONY: dev
  11. dev: ; @${HUGO} ${DEV_SERVE}
  12. .PHONY: dev-ext
  13. dev-ext: ; @${HUGO} ${DEV_SERVE} --bind 0.0.0.0
  14. .PHONY: clean
  15. clean: ; @rm -r public
  16. .PHONY: publish
  17. publish: public ; @netlify ${NETLIFY_DEPLOY} && echo "Run \`make publish-prod\` when ready."
  18. .PHONY: publish-prod
  19. publish-prod: public ; @netlify ${NETLIFY_DEPLOY} --prod