Return to Snippet

Revision: 22293
at January 7, 2010 20:03 by michaelaskew


Initial Code
echo_% :
	@echo $* = '${$*}'

Initial URL
http://braindumpery.com

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

    > gmake echo_SOURCES
    SOURCES = main.c foo.c

Initial Title
Rule to Dump Any Makefile Variable

Initial Tags
debug

Initial Language
Makefile