[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "make -jN" requires mechanical changes to a Makefile
From: |
Henrik Carlqvist |
Subject: |
Re: "make -jN" requires mechanical changes to a Makefile |
Date: |
Mon, 13 May 2019 07:39:48 +0200 |
On Mon, 13 May 2019 00:05:59 +0200
Bruno Haible <address@hidden> wrote:
> Howard Chu wrote:
> > >> Example with one rule creating 4 files:
> > >>
> > >> all : copy1
> > >>
> > >> copy1: Makefile
> > >> install -c -m 644 Makefile copy1
> > >> install -c -m 644 Makefile copy2
> > >> install -c -m 644 Makefile copy3
> > >> install -c -m 644 Makefile copy4
> > >
> > > I think the "representative" file should be copy4 here, because it's
> > > the one that gets created last.
> >
> > That sort of thing is only true in serial make, you can't rely on it
> > in parallel make.
>
> The sequence of lines of the recipe of a rule gets executed in order,
> even in parallel make, no?
Yes, they will be run in sequence even with parallel make and copy4 might
be a better known target than copy1.
regards Henrik
- Re: "make -jN" requires mechanical changes to a Makefile, (continued)
Re: "make -jN" requires mechanical changes to a Makefile, Bruno Haible, 2019/05/12
- Re: "make -jN" requires mechanical changes to a Makefile, Paul Smith, 2019/05/12
- Re: "make -jN" requires mechanical changes to a Makefile, Bruno Haible, 2019/05/12
- Re: "make -jN" requires mechanical changes to a Makefile, Henrik Carlqvist, 2019/05/12
- Re: "make -jN" requires mechanical changes to a Makefile, Bruno Haible, 2019/05/12
- Re: "make -jN" requires mechanical changes to a Makefile, Howard Chu, 2019/05/12
- Re: "make -jN" requires mechanical changes to a Makefile, Bruno Haible, 2019/05/12
- Re: "make -jN" requires mechanical changes to a Makefile,
Henrik Carlqvist <=
- Re: "make -jN" requires mechanical changes to a Makefile, Edward Welbourne, 2019/05/13