Follow-up Comment #14, bug #15919 (project make):

(comment by J. David Bryan, original submitter)

The patch from Icarus Sperry does fix the original problem.  However, it
appears to introduce a new one.

I have taken the original make-3.81 sources and added the patch to produce
"make-381p".  Then, with this makefile:

%.c : %.b
        cp $< $@

%.b : %.a
        cp $< $@

all : 1.c 2.c

...executing this command in an otherwise empty directory:

$ touch 1.a 2.a && make-381p -j 2

...produces this output:

cp 1.a 1.b
cp 2.a 2.b
cp 1.b 1.c
cp 2.a 2.b  [ <-- NOTE ]
cp 2.b 2.c
rm 1.b 2.b

...whereas the stock make-3.81 with the same command produces:

cp 1.a 1.b
cp 2.a 2.b
cp 1.b 1.c
cp 2.b 2.c
rm 1.b 2.b

Note that the patched version copies 2.a to 2.b twice.  Running the patched
version with "-j 1" produces the correct behavior.

I've confirmed this on sparc-sun-solaris2.9 as well as the x86 Win32
version.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?15919>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to