%% "Love-Jensen, John" <[EMAIL PROTECTED]> writes:

  lj> 4) additional support for .PHONY types of actions (or triggers) via simpler
  lj> syntax
  lj>   on 'clean' { rm foo.o; }
  lj>   on 'clean' { rm bar.o; }
  lj>   (ignore my stupid pseudo syntax)

  lj>   ...as an alternative to...
  lj>   clean : rm_foo.o
  lj>   clean : rm_bar.o
  lj>   rm_foo.o :
  lj>           rm foo.o
  lj>   rm_bar.o :
  lj>           rm bar.o

You can already do this kind of thing; just use double-colon rules:

  clean::
        rm foo.o

  clean::
        rm bar.o

Is not an error, and both will be executed.  You can have as many
different "clean::" commands as you like.

-- 
-------------------------------------------------------------------------------
 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

Reply via email to