summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-09-03 16:28:41 +0200
committerJonas Smedegaard <dr@jones.dk>2012-09-03 16:28:41 +0200
commit31f7bfeed768d73ceb326a3eed454a7a4bbc9af3 (patch)
tree3f10a2cab8335aa0ec34ef907e58e96dc65ca485
parentd807725423a202905e4b342c929b6c354f0be403 (diff)
Initial Makefile: css target.HEADmaster
-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)