help-make
[Top][All Lists]
Advanced

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

Re: duplicated targets


From: Paul D. Smith
Subject: Re: duplicated targets
Date: Tue, 26 Feb 2002 09:08:39 -0500

%% Maciej Walezak <address@hidden> writes:

  mw> I did as you advised and it works fine.
  mw> But what if I want more complicated command e.g. like this:

  mw> remove:
  mw>   @echo
  mw>   @echo removing ...
  mw>   ar -d $(LIB) $(MEM)

  mw> If I write it in one line separating by semicolons and use '@' at
  mw> the beginning then no command will be echoed and if I omit '@'
  mw> then all commands will be echoed. And neither case is what I want.

You can use define/enddef to create variables containing multiple lines,
which will be treated as if you'd written them out like above.  You may
run into a bug in GNU make 3.79.1 in this area (mishandling "@" chars),
I'm not sure.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



reply via email to

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