Makefile 419 B

12345678910111213141516171819202122
  1. SRC = $(wildcard lib/*/*.js)
  2. HTML = $(wildcard lib/*/*.html)
  3. TEMPLATES = $(HTML:.html=.js)
  4. LESS = $(wildcard lib/*/*.less)
  5. CSS = $(LESS:.less=.css)
  6. build: components $(SRC) $(TEMPLATES) $(CSS)
  7. @component build --verbose --out . --name assets
  8. components: component.json
  9. @component install
  10. %.js: %.html
  11. @component convert $<
  12. %.css: %.less
  13. @lessc $< $@
  14. clean:
  15. rm -fr build components $(TEMPLATES)
  16. .PHONY: clean