From 3f7744474a73c4d3dbf4ffa0764536699b78bdb5 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Mon, 20 Jul 2026 11:53:29 +0200 Subject: [PATCH] Simplified Makefile output notation. --- src/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6e27ff4..8c5b848 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)