Zernit/docs/Makefile

23 lines
419 B
Makefile
Raw Permalink Normal View History

2020-02-06 06:37:28 +01:00
SRC = $(wildcard lib/*/*.js)
HTML = $(wildcard lib/*/*.html)
TEMPLATES = $(HTML:.html=.js)
LESS = $(wildcard lib/*/*.less)
CSS = $(LESS:.less=.css)
build: components $(SRC) $(TEMPLATES) $(CSS)
@component build --verbose --out . --name assets
components: component.json
@component install
%.js: %.html
@component convert $<
%.css: %.less
@lessc $< $@
clean:
rm -fr build components $(TEMPLATES)
.PHONY: clean