diff --git a/Makefile.rules b/Makefile.rules index 52a61109d6e..06ffe005da7 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1765,3 +1765,11 @@ printvars:: $(Echo) "SubDirs : " '$(SubDirs)' $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)' $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)' + +### +# Debugging + +# General debugging rule, use 'make print-XXX' to print the +# definition, value and origin of XXX. +print-%: + $(error PRINT: $(value $*) = "$($*)" (from $(origin $*)))