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 b828693cb6
commit 3544e03023

View file

@ -1,11 +1,12 @@
all: build
build: theme.css
%.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