Hello. I would like to indent build messages according to
the make level at which they occur. I am considering something
along the following lines:
#################### /generic.mk ##########################
INDENT_STRING:=<# of spaces equal to $(MAKELEVEL)>
echo_msg:=echo "$(INDENT_STRING)"
#################### sub.mk ###############################
include /generic.mk
all :
$(echo_msg) Building sub
$(MAKE) -f subsub.mk
#################### subsub.mk ############################
include /generic.mk
all :
$(echo_msg) Building subsub
and so on...where each level of make corresponds to another
level of indentation in the echo_msg macro.
Any ideas?
Thanks,
chad
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make