Skip to content

Commit

Permalink
Makefile: add print-% special command to print Makefile variables
Browse files Browse the repository at this point in the history
I need to extract the content of SELECTED_FLAGS to know which of the flags actually get built into the emoji font
  • Loading branch information
anthrotype committed Jan 14, 2022
1 parent c839aba commit 1f8201c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1f8201c

Please sign in to comment.