summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
Diffstat (limited to 'include.mk')
-rw-r--r--include.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/include.mk b/include.mk
index 48d2778..58be65d 100644
--- a/include.mk
+++ b/include.mk
@@ -1,8 +1,10 @@
cssprojectinfiles = $(foreach file,$(if $1,$(shell find $1 -name '*.scss')),$(if $(filter-out _%,$(notdir $(file))),$(file)))
cssprojectoutfiles = $(patsubst %.scss,%.css,$(call cssprojectinfiles,$1))
+compasscfgfile = $(wildcard config/config.rb)
+
$(cssprojects):
- sass --update --stop-on-error $(if $(beautify),--style expanded) $@
+ compass compile --sass-dir= --css-dir= $(compasscfgfile:%=-c %) $(if $(beautify),--output-style expanded) --relative-assets $(call cssprojectoutfiles,$@)
$(if $(beautify),perl -i -pe 's/ /\t/g' $(call cssprojectoutfiles,$@))
clean::