[Top][All Lists]

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

Re: turning off @

From: Boris Kolpackov
Subject: Re: turning off @
Date: Wed, 19 May 2004 20:04:46 +0000 (UTC)
User-agent: nn/6.6.5+RFC1522

address@hidden (Noel Yap) writes:

> I have many files that are
> generated and I care about the commands only when debugging.

In my build system I have $(call message) function that accepts
two arguments: first is what to print, second is what to execute:

%.o : %.cxx
        $(call message,c++ $<,g++ -c $< -o $@)

But that's not all. There is also a variable called `verbose' which,
when defined, makes `message' print what it's actually executing. Very
handy when debugging.

> target:
>       @complicated-command-to-create-target >$(@)

        $(call message,,complicated-command-to-create-target >$(@))

> $ gmake --verbose

$ gmake verbose=1


reply via email to

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