From fbc0e9c2a7b9d46585177dc16bdc8940e34eeade Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Sat, 26 Dec 2020 10:07:01 +0100 Subject: [PATCH] fix make dependencies in less --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7c3713f..ab9c7d7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY=static all clean 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) PY_SRC := $(wildcard src/**.py) @@ -20,7 +20,13 @@ public/audios: audios public rm -f 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 $< $@ public/%: res/static/%