chore: make sure theme.css cleanup when build fails

This commit is contained in:
Glenn Y. Rolland 2021-04-15 15:42:27 +02:00
parent a619c05303
commit f5bdb17939

View file

@ -1,11 +1,12 @@
all: build all: build
build: theme.css build: theme.css
%.css: %.scss %.css: %.scss
cd .. && npx node-sass --output-style compressed .marp/$< > .marp/$@ cd .. \
&& npx node-sass --output-style compressed .marp/$< > .marp/$@ \
|| ( rm -f .marp/$@ && exit 1 )
.PHONY: build .PHONY: build