Posted By

michaelaskew on 01/07/10


debug print dump variable echo

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Rule to Dump Any Makefile Variable

 / Published in: Makefile


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.