%% Magnus Fromreide <[EMAIL PROTECTED]> writes:

  mf> My current makefile structure is

  mf> Makefile:
  mf> prog: lib
  mf> prog lib:
  mf>   for x in A B ; do $(MAKE) -C $x $@ ; done

  mf> Now I want to make it possible to build this with as much
  mf> paralelism as possible, how should that be done?

There are some notes about this in the GNU make manual.

  mf> One approach is to use .PHONY subdirectories as targets

This is the right approach.

  mf> but that fails since it is all but impossible to specify the
  mf> target that is to be built.

Try $(MAKECMDGOALS).

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