[Top][All Lists]

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

Re: Making in subdirectories

From: Paul D. Smith
Subject: Re: Making in subdirectories
Date: Mon, 19 Feb 2001 10:48:13 -0500

%% Magnus Fromreide <address@hidden> 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.


 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "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]