summaryrefslogtreecommitdiff
path: root/include.mk
blob: 8d4a712c7c6303ae8fbd1c224324762bd341e140 (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. cssprojectcontent = $(call cssprojectoutfiles,$(cssprojects))
  4. $(cssprojects): $(cssprojectcontent)
  5. %.css: %.scss
  6. sassc$(sass_includes:%= --load-path %) --style $(if $(sass_beautify),expanded,compressed)$(if $(no_sass_sourcemap),, --sourcemap) $< $@
  7. $(if $(sass_beautify),perl -i -pe 's/ /\t/g' $@)
  8. clean::
  9. rm -f $(call cssprojectoutfiles,$(cssprojects))
  10. .PHONY: clean $(cssprojects)