add a recipe to print some session info when calling the makefile

This commit is contained in:
2025-06-15 11:50:34 +02:00
parent 846cf467a3
commit ca9413db67

View File

@@ -87,9 +87,12 @@ DEP := $(OBJ:.o=.d)
COMPILE_COMMANDS := $(DIR_OBJ)/compile_commands.json COMPILE_COMMANDS := $(DIR_OBJ)/compile_commands.json
.PHONY: run compile .PHONY: run compile echo
run: compile_commands $(BIN); $(BIN) run: echo compile_commands $(BIN); $(BIN)
compile: compile_commands $(BIN) compile: echo compile_commands $(BIN)
echo:
$(info $(shell printf "\033[36m")compiling for: $(MARCH), $(KERNEL)$(shell printf "\033[0m"))
$(info $(shell printf "\033[36m")using compiler: $(CC)$(shell printf "\033[0m"))
# some definitions for "default" and assumed compilers, for bulk selection # some definitions for "default" and assumed compilers, for bulk selection
.PHONY: all x86_64-linux-gnu-gcc x86_64-w64-mingw32-gcc .PHONY: all x86_64-linux-gnu-gcc x86_64-w64-mingw32-gcc