site_fursona_refs/sass/Makefile
2020-01-04 19:33:57 -03:00

20 lines
548 B
Makefile

SASSS := $(shell find . -type f | grep -E "\.sass$$" | cut -c 3- | rev | cut -c 6- | rev | sed -e "s/$$/.css/" | tee styles.txt)
sasss: $(SASSS)
@echo -ne
sass-rs:
CARGO_HOME=root RUSTUP_HOME=root rustup default nightly
CARGO_HOME=root RUSTUP_HOME=root cargo install --root root sass-rs
mv root/bin/sass-rs .
rm -rf root
%.css: %.sass sass-rs _material-colors.scss
./sass-rs --sass < $< > $@
%.sass:
@touch $@
_material-colors.scss:
wget https://raw.githubusercontent.com/funkybunch/SASS-Material-Palette/master/_material-colors.scss