From d5525ed6c217023ff706d70613b2fade4a9587bf Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 5 Apr 2015 11:42:48 +0300 Subject: Makefile: add a force build rule, force --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index daf5bf01..085134f7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,19 @@ +CSS=res/client/css +ROOT_SCSS=$(CSS)/style.scss +TARGET=$(CSS)/style.css +SCSS=$(ROOT_SCSS) $(wildcard $(CSS)/by-view/*.scss) $(wildcard $(CSS)/partials/*.scss) $(wildcard $(CSS)/modules/*.scss) $(wildcard $(CSS)/vendor/*.scss) + %.css: %.scss sass $< $@ -CSS=res/client/css -SCSS=$(CSS)/style.scss $(wildcard $(CSS)/by-view/*.scss) $(wildcard $(CSS)/partials/*.scss) $(wildcard $(CSS)/modules/*.scss) $(wildcard $(CSS)/vendor/*.scss) +all: css + +css: $(TARGET) + +force: touch css + +touch: + touch $(ROOT_SCSS) + $(CSS)/style.css: $(SCSS) -- cgit v1.3.1