Just wanted to pass along this simple method of embedding debug statements in your rules.
The problem is that you don't want non-zero status causing make to exit, such as would happen when $(debug) is false, with:
test:
@$(debug) && echo hi

# Makefile
.PHONY: test
ifeq ($(debug),true)
nodebug:=false
else
nodebug:=true
endif

test:
@$(nodebug) || echo hi
#eof

[greg@p3 junk]$ debug=true;make
hi
[greg@p3 junk]$ debug=false;make
[greg@p3 junk]$

- Greg Keraunen
http://www.xmake.org
http://www.xmlmake.com



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to