From eff74fdc9d3bd30f61c52bd8f1a8e948ed331fd3 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Fri, 25 Jul 2025 11:35:41 -0300 Subject: [PATCH] Zephyr: only clean if there's a build --- tutorials/zephyr/device-dashboard/Makefile | 2 +- tutorials/zephyr/http-client/Makefile | 2 +- tutorials/zephyr/http-server/Makefile | 2 +- tutorials/zephyr/mqtt-aws-client/Makefile | 2 +- tutorials/zephyr/websocket-server/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tutorials/zephyr/device-dashboard/Makefile b/tutorials/zephyr/device-dashboard/Makefile index e7cbbb35..95c9bb9f 100644 --- a/tutorials/zephyr/device-dashboard/Makefile +++ b/tutorials/zephyr/device-dashboard/Makefile @@ -26,7 +26,7 @@ run: $(DOCKER) west build -t run clean: - -$(DOCKER) west build -t clean + -test -d $(CURDIR)/build && $(DOCKER) west build -t clean pristine: -$(DOCKER) west build -t pristine diff --git a/tutorials/zephyr/http-client/Makefile b/tutorials/zephyr/http-client/Makefile index e5aa7fff..e5571523 100644 --- a/tutorials/zephyr/http-client/Makefile +++ b/tutorials/zephyr/http-client/Makefile @@ -24,7 +24,7 @@ run: $(DOCKER) west build -t run clean: - -$(DOCKER) west build -t clean + -test -d $(CURDIR)/build && $(DOCKER) west build -t clean pristine: -$(DOCKER) west build -t pristine diff --git a/tutorials/zephyr/http-server/Makefile b/tutorials/zephyr/http-server/Makefile index e5aa7fff..e5571523 100644 --- a/tutorials/zephyr/http-server/Makefile +++ b/tutorials/zephyr/http-server/Makefile @@ -24,7 +24,7 @@ run: $(DOCKER) west build -t run clean: - -$(DOCKER) west build -t clean + -test -d $(CURDIR)/build && $(DOCKER) west build -t clean pristine: -$(DOCKER) west build -t pristine diff --git a/tutorials/zephyr/mqtt-aws-client/Makefile b/tutorials/zephyr/mqtt-aws-client/Makefile index e5aa7fff..e5571523 100644 --- a/tutorials/zephyr/mqtt-aws-client/Makefile +++ b/tutorials/zephyr/mqtt-aws-client/Makefile @@ -24,7 +24,7 @@ run: $(DOCKER) west build -t run clean: - -$(DOCKER) west build -t clean + -test -d $(CURDIR)/build && $(DOCKER) west build -t clean pristine: -$(DOCKER) west build -t pristine diff --git a/tutorials/zephyr/websocket-server/Makefile b/tutorials/zephyr/websocket-server/Makefile index e5aa7fff..e5571523 100644 --- a/tutorials/zephyr/websocket-server/Makefile +++ b/tutorials/zephyr/websocket-server/Makefile @@ -24,7 +24,7 @@ run: $(DOCKER) west build -t run clean: - -$(DOCKER) west build -t clean + -test -d $(CURDIR)/build && $(DOCKER) west build -t clean pristine: -$(DOCKER) west build -t pristine