Skip to content
Snippets Groups Projects
Commit 48807ff4 authored by Michael Whittaker's avatar Michael Whittaker
Browse files

Added debugging rule to Makefile.

Added a debugging Makefile rule stolen from [1]. With this rule, you can
run make print-<VAR> to print out the contents of <VAR>. For example,

        make print-OBJS
        make print-PROTOOBJS
        make print-BINS

[1]: https://blog.melski.net/2010/11/30/makefile-hacks-print-the-value-of-any-variable/
parent c56a1c7d
No related branches found
No related tags found
1 merge request!2Added debugging rule to Makefile.
......@@ -237,6 +237,12 @@ clean:
$(call trace,RM,binaries,rm -f $(BINS) $(TEST_BINS))
$(call trace,RM,objects,rm -rf .obj)
#
# Debugging
#
print-%:
@echo '$*=$($*)'
##################################################################
# Targets
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment