From ca9413db67ae4eafc2d2bcd253d1321017a5cd52 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sun, 15 Jun 2025 11:50:34 +0200 Subject: [PATCH] add a recipe to print some session info when calling the makefile --- makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index ffe8072..2d4c9d8 100644 --- a/makefile +++ b/makefile @@ -87,9 +87,12 @@ DEP := $(OBJ:.o=.d) COMPILE_COMMANDS := $(DIR_OBJ)/compile_commands.json -.PHONY: run compile -run: compile_commands $(BIN); $(BIN) -compile: compile_commands $(BIN) +.PHONY: run compile echo +run: echo compile_commands $(BIN); $(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 .PHONY: all x86_64-linux-gnu-gcc x86_64-w64-mingw32-gcc