chore(makefile): add @ to silence specific print commands
This commit is contained in:
+12
-12
@@ -30,16 +30,16 @@ else
|
||||
endif
|
||||
|
||||
ifndef PROJECT
|
||||
$(error "PROJECT variable needs to be set")
|
||||
@$(error "PROJECT variable needs to be set")
|
||||
endif
|
||||
ifndef PLATFORM
|
||||
$(error "PLATFORM variable needs to be set")
|
||||
@$(error "PLATFORM variable needs to be set")
|
||||
endif
|
||||
ifndef BUILD_DIR
|
||||
$(error "BUILD_DIR variable needs to be set")
|
||||
@$(error "BUILD_DIR variable needs to be set")
|
||||
endif
|
||||
ifndef CONFIG_FILE
|
||||
$(error "CONFIG_FILE variable needs to be set")
|
||||
@$(error "CONFIG_FILE variable needs to be set")
|
||||
endif
|
||||
ifndef SCRIPT_DIR
|
||||
CURRENT_FILE := $(lastword $(MAKEFILE_LIST))
|
||||
@@ -66,15 +66,15 @@ endif
|
||||
PHONY += all
|
||||
ifneq ($(wildcard $(BUILD_LOCK)),)
|
||||
all:
|
||||
$(call print_build_type,$(PLATFORM))
|
||||
@$(call print_build_type,$(PLATFORM))
|
||||
$(MAKE) --no-print-directory build
|
||||
$(call print,Done ($(notdir $(BUILD_DIR))))
|
||||
@$(call print,Done ($(notdir $(BUILD_DIR))))
|
||||
else
|
||||
all:
|
||||
$(call print_build_type,$(PLATFORM))
|
||||
@$(call print_build_type,$(PLATFORM))
|
||||
$(MAKE) --no-print-directory project
|
||||
$(MAKE) --no-print-directory build
|
||||
$(call print,Done ($(notdir $(BUILD_DIR))))
|
||||
@$(call print,Done ($(notdir $(BUILD_DIR))))
|
||||
endif
|
||||
|
||||
project: $(PLATFORM)_project
|
||||
@@ -93,18 +93,18 @@ sdkopen: $(PLATFORM)_sdkopen
|
||||
PHONY += clean
|
||||
ifneq ($(wildcard $(BUILD_LOCK)),)
|
||||
clean:
|
||||
$(call print,Cleaning sdk build uploaded to board)
|
||||
@$(call print,Cleaning sdk build uploaded to board)
|
||||
$(MAKE) --no-print-directory $(PLATFORM)_sdkclean
|
||||
else
|
||||
clean:
|
||||
$(call print,No project found, cleaning dummy files)
|
||||
@$(call print,No project found, cleaning dummy files)
|
||||
$(MAKE) --no-print-directory reset
|
||||
endif
|
||||
|
||||
# Remove the whole build directory
|
||||
PHONY += reset
|
||||
reset: $(PLATFORM)_reset
|
||||
$(call print,[Delete] $(BUILD_DIR))
|
||||
$(call remove_dir,$(BUILD_DIR))
|
||||
@$(call print,[Delete] $(BUILD_DIR))
|
||||
@$(call remove_dir,$(BUILD_DIR))
|
||||
|
||||
.PHONY: $(PHONY)
|
||||
|
||||
Reference in New Issue
Block a user