chore: make sure theme.css cleanup when build fails
This commit is contained in:
parent
b828693cb6
commit
3544e03023
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