summaryrefslogtreecommitdiff
path: root/include.mk
blob: 48d2778dfc7a67096d0f9f4d48aa8e73a8dc0227 (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. sass --update --stop-on-error $(if $(beautify),--style expanded) $@
  5. $(if $(beautify),perl -i -pe 's/ /\t/g' $(call cssprojectoutfiles,$@))
  6. clean::
  7. rm -f $(call cssprojectoutfiles,$(cssprojects))
  8. rm -rf .sass-cache
  9. .PHONY: clean $(cssprojects)