> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> John Alvord
>
> I've been working to rework some makefiles to they work correctly
> under parallel execution conditions.
>
> all: a b c
>
> a:
>
> b:
>
> c:
>
> Lets say "a" is a rule which creates some directories which are used
> by "b" and "c". How can I make sure that "b" and "c" are postponed
> until "a" completes?
>
> john alvord
You just answered your own question: "b" & "c" depend on "a", so make "a"
a dependency for "b" & "c":
all: a b c
a:
b: a
c: a
For more tip's on parallelizing makefiles, see my paper "GNU & You, Building
a Better World"
published in the Proceedings of the Ninth Annual Sun Users Group Conference,
December 1991.
(The title is a play on "make world" which I had been repeatedly been doing
while compiling X11, and getting really really sick of imake. I completely
ripped imake out of the X11 source tree and replaced everything with
parallel gmake rules.)
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make