summaryrefslogtreecommitdiff
path: root/include.mk
blob: 42ecf35527343f0a79450d60c7d434ec9510cb26 (plain)
  1. cssprojectinfiles = $(foreach file,$(if $1,$(shell find $1 -name '*.scss')),$(if $(filter-out _%,$(notdir $(file))),$(file)))
  2. cssprojectoutfiles = $(patsubst %.scss,%.css,$(call cssprojectinfiles,$1))
  3. $(cssprojects):
  4. compass compile $(if $(wildcard $@/config.rb),,--sass-dir= --css-dir= --relative-assets) $(if $(beautify),--output-style expanded) $(if $(always-make),--force) $@
  5. $(if $(beautify),perl -i -pe 's/ /\t/g' $(call cssprojectoutfiles,$@))
  6. clean::
  7. rm -f $(call cssprojectoutfiles,$(cssprojects))
  8. rm -rf $(cssprojects:=/.sass-cache)
  9. .PHONY: clean $(cssprojects)