Posted By

michaelaskew on 01/07/10


Tagged

debug print dump variable echo


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

michaelaskew


Rule to Dump Any Makefile Variable


 / Published in: Makefile
 

URL: http://braindumpery.com

This rule lets you print the contents of any variable for debugging purposes. Usage:

> gmake echo_SOURCES
SOURCES = main.c foo.c
  1. echo_% :
  2. @echo $* = '${$*}'

Report this snippet  

You need to login to post a comment.