summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/include.mk b/include.mk
index 58be65d..42ecf35 100644
--- a/include.mk
+++ b/include.mk
@@ -1,14 +1,12 @@
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):
- compass compile --sass-dir= --css-dir= $(compasscfgfile:%=-c %) $(if $(beautify),--output-style expanded) --relative-assets $(call cssprojectoutfiles,$@)
+ compass compile $(if $(wildcard $@/config.rb),,--sass-dir= --css-dir= --relative-assets) $(if $(beautify),--output-style expanded) $(if $(always-make),--force) $@
$(if $(beautify),perl -i -pe 's/ /\t/g' $(call cssprojectoutfiles,$@))
clean::
rm -f $(call cssprojectoutfiles,$(cssprojects))
- rm -rf .sass-cache
+ rm -rf $(cssprojects:=/.sass-cache)
.PHONY: clean $(cssprojects)