From d5f61007bc1de4930d2f5aba0d8b56f23fdf8b4a Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 17 Jul 2023 12:04:03 +0900 Subject: [PATCH] core: Add print-* target to rules.mk --- tmk_core/rules.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index cd2c0d8b..004c19c3 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -632,3 +632,9 @@ $(shell mkdir $(OBJDIR) 2>/dev/null) build elf hex eep lss sym coff extcoff \ clean clean_list debug gdb-config show_path \ program teensy dfu flip dfu-ee flip-ee dfu-start + + +# Print out the value of a make variable. +# https://stackoverflow.com/questions/16467718/how-to-print-out-a-variable-in-makefile +print-%: + @echo $* = $($*)