Rule to Dump Any Makefile Variable


/ Published in: Makefile
Save to your folder(s)

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

> gmake echo_SOURCES
SOURCES = main.c foo.c


Copy this code and paste it in your HTML
  1. echo_% :
  2. @echo $* = '${$*}'

URL: http://braindumpery.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.