Makefile (341B)
1 STYLE_SRC:=$(shell find . -type f -name '*.scss' -not -name '_*.scss') 2 STYLE_DST:=$(patsubst %.scss,%.css,$(STYLE_SRC)) 3 STYLE_INC:=$(shell find . -type f -name '_*.scss') 4 SASS?=yarn sass 5 6 .PHONY: all 7 .DEFAULT_GOAL: all 8 all: 9 10 .PHONY: build 11 styles: $(STYLE_DST) 12 13 %.css: %.scss $(STYLE_INC) 14 ${SASS} --style=compressed --load-path=styles $< $@