aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-11-06 11:11:23 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-11-06 11:11:23 +0100
commitaa589c40415359860b3dc94e751adb77ab5639ed (patch)
tree3b4dc0944a592f41f99916b8b6edf09eee08bbf2
parentAdd view calendar button on search page. (diff)
downloadcalp-aa589c40415359860b3dc94e751adb77ab5639ed.tar.gz
calp-aa589c40415359860b3dc94e751adb77ab5639ed.tar.xz
Add watch-rule for scss files.
-rw-r--r--static/Makefile8
1 files changed, 6 insertions, 2 deletions
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. $< $@