3 ms·
Speaking of debugging, I found this handy: print-%: ; @echo '$(subst ','\'',$*=$($*))' include Makefile Save somewhere, eg as ~/Makefile.debug, then when
by Wicher 5y ago
Speaking of debugging, I found this handy:
print-%: ; @echo '$(subst ','\'',$*=$($*))'
include Makefile
Save somewhere, eg as ~/Makefile.debug, then when you want to know the evaluated value of some variable or task in some Makefile, you prefix it with print- — for example, LOCALES:
make -f ~/Makefile.debug print-LOCALES
It'll print the evaluated LOCALES of the Makefile in the directory you run this in.
- BeefWellington 5y agoThis is amazing. Thank you for the tip!
- gjvc 5y agoVery useful, will give it a shot. Thank you. :-)