2019-03-20 05:56:39 +08:00
|
|
|
LESS := $(shell npm bin)/lessc
|
|
|
|
APP := app.css
|
2019-03-26 22:40:23 +08:00
|
|
|
ICONS := js/lib/icons.js
|
2019-03-20 05:56:39 +08:00
|
|
|
|
|
|
|
all: $(APP)
|
|
|
|
|
2019-03-26 22:40:23 +08:00
|
|
|
icons: $(ICONS)
|
|
|
|
|
|
|
|
$(ICONS): icons/*
|
|
|
|
./svg2js.sh icons > $@
|
|
|
|
|
2019-03-20 05:56:39 +08:00
|
|
|
$(APP): css/*
|
|
|
|
$(LESS) css/app.less > $@
|
2019-03-22 22:35:04 +08:00
|
|
|
|
|
|
|
watch: all
|
|
|
|
while inotifywait -e MODIFY -r css js ; do make $^ ; done
|
2019-03-26 22:40:23 +08:00
|
|
|
|
|
|
|
.PHONY: all watch icons
|