help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU make puzzle


From: Chad Loder
Subject: GNU make puzzle
Date: Mon, 22 Jan 2001 23:58:41 -0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]