From 1f8201c939b3391397719aa168d4ffc71206d46a Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 14 Jan 2022 16:07:03 +0000 Subject: [PATCH] Makefile: add print-% special command to print Makefile variables I need to extract the content of SELECTED_FLAGS to know which of the flags actually get built into the emoji font --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 13f1717b0..da1c656ec 100644 --- a/Makefile +++ b/Makefile @@ -241,6 +241,11 @@ clean: rm -f waveflag rm -rf $(BUILD_DIR) +# This prints the value of a Makefile variable: e.g. `make print-SELECTED_FLAGS` +# will print the content of SELECTED_FLAGS. +# Source: https://apprize.best/linux/gnu/3.html +print-%: ; @echo $* = $($*) + .SECONDARY: $(EMOJI_FILES) $(FLAG_FILES) $(RESIZED_FLAG_FILES) $(RENAMED_FLAG_FILES) \ $(ALL_QUANTIZED_FILES) $(ALL_COMPRESSED_FILES)