From aa589c40415359860b3dc94e751adb77ab5639ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 6 Nov 2020 11:11:23 +0100 Subject: Add watch-rule for scss files. --- static/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/Makefile b/static/Makefile index 12df8c2a..821489bc 100644 --- a/static/Makefile +++ b/static/Makefile @@ -1,11 +1,15 @@ -.PHONY: all clean +.PHONY: all clean watch TARGETS := style.css smallcal.css +WATCH= all: $(TARGETS) +watch: + $(MAKE) WATCH=--watch all + clean: rm $(TARGETS) %.css: %.scss - scss -I. $< $@ + scss $(WATCH) -I. $< $@ -- cgit v1.2.3