make clean: invoke docker only when there is something to clean

This commit is contained in:
cpq committed 2023-01-21 07:44:50 +00:00
1 parent c7cb16cafa
commit 6f096333d3
3 files changed
+3 -3

No files matched your search

@@ -9,7 +9,7 @@ build: | $(NAME)
$(DOCKER) /opt/ti/ccs/eclipse/eclipse -noSplash -data /workspace -application com.ti.ccstudio.apps.projectBuild -ccs.autoImport -ccs.projects $(NAME) -ccs.configuration Release
clean:
$(DOCKER) rm -rf /workspace/$(NAME)
test -d $(NAME) && $(DOCKER) rm -rf /workspace/$(NAME) || true
flash: DOCKER_ARGS = -it --privileged -v /dev/bus/usb/:/dev/bus/usb -w /workspace
flash: