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
pull/377/head
Cosimo Lupo 2022-01-14 16:07:03 +00:00
parent c839aba00d
commit 1f8201c939
1 changed files with 5 additions and 0 deletions

View File

@ -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)