From 31354266186aadfcde45603e006ef308108c4c04 Mon Sep 17 00:00:00 2001 From: Luca Chiricozzi Date: Thu, 8 Jan 2015 17:33:04 +0100 Subject: [PATCH] Added a Makefile for SCSS --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2c09c15 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +SCSSDIR ?= scss +CSSDIR = static/css + +sass: + @for i in $$(ls $(SCSSDIR)); do \ + out="$(CSSDIR)/$${i%.*}.css"; \ + sass "$(SCSSDIR)/$$i" "$$out"; \ + sed -i '$$d' "$$out"; \ + rm "$$out.map"; \ + done + @echo 'SCSS files compiled' + +