4 ms·
Ahh. Got you. And easy fix again. Add `$(SRC)` to the pattern rule. css/%.css : $(SRC) scss/%.scss sass $<:$@ css/%.css.map : $(SRC) scss/%.sc
by oso2k 9y ago
Ahh. Got you. And easy fix again. Add `$(SRC)` to the pattern rule.
css/%.css : $(SRC) scss/%.scss
sass $<:$@
css/%.css.map : $(SRC) scss/%.scss
@touch $@
- Too 9y agoNow you will get correct results. But now if you change just one file, you will always rebuild everything, even files that don't import the changed file. Maybe not a big deal for SASS as you usually don't have mega LOCs of SASS and compiling is fairly quick. Just want to highlight that make isn't always as simple as it looks at second glance.