meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:makefile:default_variables [2024/03/22 08:40] niziakprogramming:makefile:default_variables [2024/03/22 09:36] (current) niziak
Line 61: Line 61:
 ===== special variables ===== ===== special variables =====
  
-[[http://gnu.ist.utl.pt/software/make/manual/html_node/Special-Variables.html|3.6 Other Special Variables]]+https://www.gnu.org/software/make/manual/html_node/Special-Variables.html|6.14 Other Special Variables]]
  
   * .DEFAULT_GOAL   * .DEFAULT_GOAL
Line 67: Line 67:
   * .VARIABLES - Expands to a list of the names of all global variables defined so far.   * .VARIABLES - Expands to a list of the names of all global variables defined so far.
   * .FEATURES   * .FEATURES
 +  * .INCLUDE_DIRS
  
 +From [[https://stackoverflow.com/questions/7117978/gnu-make-list-the-values-of-all-variables-or-macros-in-a-particular-run|gnu make: list the values of all variables (or "macros") in a particular run]]
 +<code make>
 +dump:
 +    $(foreach v, \
 +        $(shell echo "$(filter-out .VARIABLES,$(.VARIABLES))" | tr ' ' '\n' | sort), \
 +        $(info $(shell printf "%-20s" "$(v)")= $(value $(v))) \
 +    )
 +</code>