23 lines
488 B
Makefile
23 lines
488 B
Makefile
|
|
||
|
MIXINS = $(shell find src/scss -name "_*.scss")
|
||
|
SCSS = $(shell find src/scss -name "*.scss" -not -name "_*")
|
||
|
CSS = $(patsubst src/scss/%.scss,src/public/css/%.css,$(SCSS))
|
||
|
|
||
|
.PHONY: all css dir clean
|
||
|
|
||
|
css: dir $(CSS)
|
||
|
|
||
|
dir:
|
||
|
@mkdir -p src/public/css
|
||
|
|
||
|
clean:
|
||
|
@printf "\033[31m RM \033[0m%s\n" src/public/css
|
||
|
@rm -f src/public/css/*.css
|
||
|
|
||
|
all: clean css
|
||
|
|
||
|
$(CSS): src/public/css/%.css : src/scss/%.scss $(MIXINS)
|
||
|
@printf "\033[33m SCSS \033[0m%s\n" $<
|
||
|
@sassc --style compressed $< $@
|
||
|
|