3 ms·
I had a similar need except I didn't which variable I was looking for. I think I found this on stack overflow: .PHONY: variables variables : $
by ksherlock 10y ago
I had a similar need except I didn't which variable I was looking for. I think I found this on stack overflow:
.PHONY: variables
variables :
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
@echo
which prints all variables and their respective values.