Makefile 648 B

1234567891011121314151617181920212223242526272829303132
  1. CSS_DIR = "dokk/static/css/"
  2. STYLUS_DIR = "dokk/static/stylus/"
  3. JAVASCRIPT_DIR = "dokk/static/js/"
  4. all: css minify_js
  5. @echo "\n==== END ====\n"
  6. css:
  7. @echo "\n==== BUILDING CSS FILES ====\n"
  8. stylus --watch \
  9. --compress \
  10. --disable-cache \
  11. --out $(CSS_DIR) \
  12. $(STYLUS_DIR)dokk.styl
  13. minify_js:
  14. @echo "\n==== MINIFYING JS ====\n"
  15. # JavaScript
  16. closure-compiler \
  17. --compilation_level ADVANCED_OPTIMIZATIONS \
  18. --js $(JAVASCRIPT_DIR)dokk.js \
  19. --js_output_file $(JAVASCRIPT_DIR)dokk.min.js
  20. clean:
  21. rm --recursive --force \
  22. $(CSS_DIR)*.css \
  23. $(JAVASCRIPT_DIR)dokk.min.js
  24. .PHONY: all css minify_js clean