[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How-to
From: |
Howard Chu |
Subject: |
RE: How-to |
Date: |
Thu, 5 Apr 2001 15:47:12 -0700 |
> -----Original Message-----
> From: address@hidden [mailto:address@hidden 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
- How-to, John Alvord, 2001/04/05
- Re: How-to, Paul D. Smith, 2001/04/05
- RE: How-to,
Howard Chu <=