help-make
[Top][All Lists]
Advanced

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

Re: turning off @


From: Noel Yap
Subject: Re: turning off @
Date: Wed, 19 May 2004 16:43:38 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

I was hoping I wouldn't have to go this route, but it looks like there's no 
other way.  I think I would've had to do this eventually, anyway, since some 
commands, like yours, isn't simply on/off.

Thanks,
Noel

Boris Kolpackov wrote:

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 >$(@)


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



$ gmake --verbose


$ gmake verbose=1


-boris



_______________________________________________
Help-make mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-make





reply via email to

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