Make: How to force a particular build order when using "-jN"

Noel L Yap yap_noel@jpmorgan.com
Thu Jun 28 10:59:00 GMT 2001


I wouldn't think so.

The way to control order would be:

all: foo

foo: bar
     touch $@

bar:
     touch $@

then bar would get built before foo.

Noel


|--------+------------------------>
|        |                        |
|        |          david.karr@cac|
|        |          heflow.com    |
|        |                        |
|        |          06/28/01 11:45|
|        |          AM            |
|        |                        |
|--------+------------------------>
  >----------------------------------------------------------------------------|
  |                                                                            |
  |       To:     cygwin@cygwin.com                                            |
  |       cc:     (bcc: Noel L Yap)                                            |
  |       Subject:     Make: How to force a particular build order when using  |
  |       "-jN"                                                                |
  >----------------------------------------------------------------------------|






When in the presence of "make -jN", and with the following example, I
believe that the order of building "foo" and "bar" is indeterminate.

-------------
all: foo bar

foo:
     touch foo

bar:
     touch bar
-------------

However, is it the case that with this next example, that the order CAN be
determined, and that "foo" would be built before "bar", even in the presence
of "make -jN"?

-------------
all:: foo
all:: bar

foo:
     touch foo

bar:
     touch bar
-------------

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list