diff --git a/src/Makefile b/src/Makefile index 05f032e..71e5bac 100644 --- a/src/Makefile +++ b/src/Makefile @@ -99,12 +99,8 @@ $(TARGET): include/version.h $(OBJ) clean: host_clean $(Q)echo " CLEAN" -ifeq ($(OS), Windows_NT) - -$(Q)$(shell del *.o, *.d, blackmagic*, $(HOSTFILES)) -else -$(Q)$(RM) *.o *.d *~ blackmagic $(HOSTFILES) -$(Q)$(RM) platforms/*/*.o platforms/*/*.d mapfile include/version.h -endif all_platforms: $(Q)set -e ;\ @@ -130,9 +126,5 @@ command.c: include/version.h include/version.h: FORCE $(Q)echo " GIT include/version.h" -ifeq ($(OS), Windows_NT) - $(Q)echo #define FIRMWARE_VERSION "$(shell git describe --always --dirty)" > $@ -else $(Q)echo "#define FIRMWARE_VERSION \"$(shell git describe --always --dirty)\"" > $@ -endif -include *.d diff --git a/src/platforms/native/Makefile.inc b/src/platforms/native/Makefile.inc index 1518bed..d8d552b 100644 --- a/src/platforms/native/Makefile.inc +++ b/src/platforms/native/Makefile.inc @@ -34,8 +34,4 @@ blackmagic_dfu: usbdfu.o dfucore.o dfu_f1.o $(Q)$(CC) $^ -o $@ $(LDFLAGS_BOOT) host_clean: -ifeq ($(OS), Windows_NT) - -$(Q)$(shell del blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex) -else -$(Q)$(RM) blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex -endif