title: gnu make: list the values of all variables (or "macros") in a particular run
body: <p>How can I list the current value of all variables (also called macros) in a Makefile when running make?</p>
  
  <p>E.g. if this is in the Makefile:</p>
  
  <pre><code>CUR-DIR := $(shell /bin/pwd)
  LOG-DIR := $(CUR-DIR)/make-logs
  </code></pre>
  
  <p>Then I would like it to tell me:</p>
  
  <pre><code>CUR-DIR = /home/johv/src/test
  LOG-DIR = /home/johv/src/test/make-logs
  </code></pre>