help-make
[Top][All Lists]
Advanced

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

Re: GNU make puzzle


From: Fergus Henderson
Subject: Re: GNU make puzzle
Date: Wed, 24 Jan 2001 00:30:36 +1100

On 22-Jan-2001, Chad Loder <address@hidden> wrote:
> 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)"

How about just the following?

        empty = 
        INDENT_STRING := $(empty)$(INDENT_STRING) $(empty)
        export INDENT_STRING

At each recursive invocation, it will append one space
to INDENT_STRING.

-- 
Fergus Henderson <address@hidden>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.



reply via email to

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