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

+1 -1
View File
@@ -35,4 +35,4 @@ flash3:
cd build && $(ESPTOOL) --chip esp32 -p $(PORT) -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x100000 mongoose-esp32-example.bin cd build && $(ESPTOOL) --chip esp32 -p $(PORT) -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x100000 mongoose-esp32-example.bin
clean: clean:
$(DOCKER) rm -rf build sdkconfig test -d build && $(DOCKER) rm -rf build sdkconfig || true
+1 -1
View File
@@ -41,5 +41,5 @@ monitor: build
.PHONY: build .PHONY: build
clean: clean:
$(DOCKER) rm -rf src/build test -d src/build && $(DOCKER) rm -rf src/build || true
@@ -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 $(DOCKER) /opt/ti/ccs/eclipse/eclipse -noSplash -data /workspace -application com.ti.ccstudio.apps.projectBuild -ccs.autoImport -ccs.projects $(NAME) -ccs.configuration Release
clean: 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: DOCKER_ARGS = -it --privileged -v /dev/bus/usb/:/dev/bus/usb -w /workspace
flash: flash: