summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9e6831f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+styledirs ?= styles
+
+#beautify = yes
+#finalize = yes
+
+css: $(styledirs)
+$(styledirs):
+# sass --update --stop-on-error $(if $(beautify),--style expanded) $@
+ compass compile --sass-dir= --css-dir= --relative-assets$(if $(beautify), --output-style expanded)$(if $(finalize), -e production) $@
+ $(if $(beautify),perl -i -pe 's/ /\t/g' $(shell find $@ -name '*.css'))
+
+.PHONY: css $(styledirs)