mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 11:59:58 +03:00
Separate CC3D bin/hex (opbl/non-opbl) in the clean goals.
This commit is contained in:
parent
7de7ba60d6
commit
af5f29afc9
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -694,6 +694,14 @@ TARGET_OBJS = $(addsuffix .o,$(addprefix $(OBJECT_DIR)/$(TARGET)/,$(basename $(
|
||||||
TARGET_DEPS = $(addsuffix .d,$(addprefix $(OBJECT_DIR)/$(TARGET)/,$(basename $($(TARGET)_SRC))))
|
TARGET_DEPS = $(addsuffix .d,$(addprefix $(OBJECT_DIR)/$(TARGET)/,$(basename $($(TARGET)_SRC))))
|
||||||
TARGET_MAP = $(OBJECT_DIR)/$(FORKNAME)_$(TARGET).map
|
TARGET_MAP = $(OBJECT_DIR)/$(FORKNAME)_$(TARGET).map
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(OPBL),yes)
|
||||||
|
CLEAN_ARTIFACTS := $(TARGET_BIN)
|
||||||
|
else
|
||||||
|
CLEAN_ARTIFACTS := $(TARGET_HEX)
|
||||||
|
endif
|
||||||
|
CLEAN_ARTIFACTS += $(TARGET_ELF) $(TARGET_OBJS) $(TARGET_MAP)
|
||||||
|
|
||||||
# List of buildable ELF files and their object dependencies.
|
# List of buildable ELF files and their object dependencies.
|
||||||
# It would be nice to compute these lists, but that seems to be just beyond make.
|
# It would be nice to compute these lists, but that seems to be just beyond make.
|
||||||
|
|
||||||
|
@ -730,7 +738,7 @@ all: binary
|
||||||
|
|
||||||
## clean : clean up all temporary / machine-generated files
|
## clean : clean up all temporary / machine-generated files
|
||||||
clean:
|
clean:
|
||||||
rm -f $(TARGET_BIN) $(TARGET_HEX) $(TARGET_ELF) $(TARGET_OBJS) $(TARGET_MAP)
|
rm -f $(CLEAN_ARTIFACTS)
|
||||||
rm -rf $(OBJECT_DIR)/$(TARGET)
|
rm -rf $(OBJECT_DIR)/$(TARGET)
|
||||||
cd src/test && $(MAKE) clean || true
|
cd src/test && $(MAKE) clean || true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue