blob: 8d4a712c7c6303ae8fbd1c224324762bd341e140 (
plain)
- cssprojectinfiles = $(foreach file,$(if $1,$(shell find $1 -name '*.scss')),$(if $(filter-out _%,$(notdir $(file))),$(file)))
- cssprojectoutfiles = $(patsubst %.scss,%.css,$(call cssprojectinfiles,$1))
- cssprojectcontent = $(call cssprojectoutfiles,$(cssprojects))
- $(cssprojects): $(cssprojectcontent)
- %.css: %.scss
- sassc$(sass_includes:%= --load-path %) --style $(if $(sass_beautify),expanded,compressed)$(if $(no_sass_sourcemap),, --sourcemap) $< $@
- $(if $(sass_beautify),perl -i -pe 's/ /\t/g' $@)
- clean::
- rm -f $(call cssprojectoutfiles,$(cssprojects))
- .PHONY: clean $(cssprojects)
|