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

Karr, David david.karr@cacheflow.com
Thu Jun 28 08:44:00 GMT 2001


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/



More information about the Cygwin mailing list