Simplified Makefile output notation.

This commit is contained in:
Ulysse Cura 2026-07-20 11:53:29 +02:00
parent 2665ccdbc3
commit 3f7744474a
1 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ build_core: core_setup count_core_build core_end
# Core build directories
core_setup:
@echo "Building $(CORE_OUTPUT)"
@echo "Building $(notdir $(CORE_OUTPUT))"
$(Q)mkdir -p $(dir $(CORE_OBJECTS))
# Count nb of files to build
@ -45,7 +45,7 @@ count_core_build:
$(eval export TOTAL_CORE_FILES := $(shell echo $$(($$(make -n $(CORE_OBJECTS) 2>/dev/null | grep -c "Building") + 1))))
# Link core target
$(BUILD_DIR)/$(CORE_OUTPUT): $(CORE_OBJECTS)
$(CORE_OUTPUT): $(CORE_OBJECTS)
@echo -e "[100%] $(YELLOW)Linking libCore.so$(RESET)"
$(Q)$(CORE_AR) rcs $(CORE_ARFLAGS) $@ $^
@ -57,8 +57,8 @@ $(BUILD_DIR)/$(CORE_DIR)/%.o: $(CORE_DIR)/%.c
$(Q)$(CORE_CC) $(CORE_CFLAGS) $(CORE_INCLUDE_DIRS:%=-I%) -MMD -MP -c $< -o $@
# Print ending message
core_end: $(BUILD_DIR)/$(CORE_OUTPUT)
@echo "Built target $(CORE_OUTPUT)"
core_end: $(CORE_OUTPUT)
@echo "Built target $(notdir $(CORE_OUTPUT))"
# Source files dependencies
-include $(CORE_OBJECTS:.o=.d)