From 3544e03023a78c2aa952fadcbb1839d2825dcec2 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Thu, 15 Apr 2021 15:42:27 +0200 Subject: [PATCH] chore: make sure theme.css cleanup when build fails --- .marp/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.marp/Makefile b/.marp/Makefile index ac5522e..c87d09c 100644 --- a/.marp/Makefile +++ b/.marp/Makefile @@ -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