blob: b0d149e6c661a8e56f99fdaa594eed0b12a54be9 (
plain)
- always-make = $(filter -B,$(MAKEFLAGS))
- cssprojectinfiles = $(foreach file,$(if $1,$(shell find $1 -name '*.scss')),$(if $(filter-out _%,$(notdir $(file))),$(file)))
- cssprojectoutfiles = $(patsubst %.scss,%.css,$(call cssprojectinfiles,$1))
- $(cssprojects):
- compass compile $(if $(wildcard $@/config.rb),,--sass-dir= --css-dir= --relative-assets) $(if $(beautify),--output-style expanded) $(if $(finalize)-e production) $(if $(always-make),--force) $@
- $(if $(beautify),perl -i -pe 's/ /\t/g' $(call cssprojectoutfiles,$@))
- clean::
- rm -f $(call cssprojectoutfiles,$(cssprojects))
- rm -rf $(cssprojects:=/.sass-cache)
- .PHONY: clean $(cssprojects)
|