Alvaro M, Programming, Technology

All Makefiles Variables

Makefiles can be very complicated. Recently I have found on stackoverflow a way to print out all variables. My favourite variant was this:

$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))

That I find simple and useful.