%% Maciej Walezak <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>          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

_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to