No Description

Makefile 428B

12345678910111213141516171819202122232425
  1. dst = output
  2. css = ${dst}/assets/css
  3. js = ${dst}/assets/js
  4. .PHONY: build
  5. build:
  6. pipenv run nikola build --strict -n 2
  7. cd ${css} && yui-compressor -o '.css$$:.css' all.css all-nocdn.css
  8. cd ${js} && yui-compressor -o '.js$$:.js' all.js all-nocdn.js
  9. .PHONY: rebuild
  10. rebuild: clean build
  11. .PHONY: clean
  12. clean:
  13. pipenv run nikola clean
  14. .PHONY: distclean
  15. distclean:
  16. rm -rf ${dst}
  17. .PHONY: run
  18. run:
  19. pipenv run nikola serve -b