fix make dependencies in less

This commit is contained in:
Carlos Galindo 2020-12-26 10:07:01 +01:00
parent fb3130b12b
commit fbc0e9c2a7

View file

@ -1,7 +1,7 @@
.PHONY=static all clean .PHONY=static all clean
ALL_STATIC := $(patsubst res/static/%,public/%,$(wildcard res/static/*)) ALL_STATIC := $(patsubst res/static/%,public/%,$(wildcard res/static/*))
ALL_LESS := $(patsubst res/less/%.less,public/%.css,$(wildcard res/less/*.less)) ALL_LESS := public/main.css public/index.css public/song.css
ALL_TEMPLATES := $(wildcard res/templates/*.html) ALL_TEMPLATES := $(wildcard res/templates/*.html)
PY_SRC := $(wildcard src/**.py) PY_SRC := $(wildcard src/**.py)
@ -20,7 +20,13 @@ public/audios: audios public
rm -f public/audios rm -f public/audios
ln -s ../audios public/audios ln -s ../audios public/audios
public/%.css: res/less/%.less public/main.css: res/less/main.less res/less/colors.less
lessc $< $@
public/index.css: res/less/index.less res/less/colors.less
lessc $< $@
public/song.css: res/less/song.less res/less/colors.less
lessc $< $@ lessc $< $@
public/%: res/static/% public/%: res/static/%