Makefile 630B

1234567891011121314151617181920212223242526272829
  1. src = src
  2. dst = dist
  3. css = ${dst}/static/css
  4. .PHONY: build
  5. build:
  6. DEBUG=false pipenv run python ${src}/site.py build
  7. yui-compressor -o ${css}/base.css ${css}/base.css
  8. yui-compressor -o ${css}/default.css ${css}/default.css
  9. yui-compressor -o ${css}/error.css ${css}/error.css
  10. cat ${css}/base.css ${css}/default.css > ${css}/tmp.css
  11. mv ${css}/tmp.css ${css}/default.css
  12. cat ${css}/base.css ${css}/error.css > ${css}/tmp.css
  13. mv ${css}/tmp.css ${css}/error.css
  14. rm ${css}/base.css
  15. .PHONY: rebuild
  16. rebuild: clean build
  17. .PHONY: clean
  18. clean:
  19. rm -rf ${dst}
  20. .PHONY: run
  21. run:
  22. DEBUG=true pipenv run python ${src}/site.py run