chore: make sure theme.css cleanup when build fails
This commit is contained in:
parent
a619c05303
commit
f5bdb17939
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue