[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parallel make potential problem in bfd/doc
From: |
Dan Nicolaescu |
Subject: |
parallel make potential problem in bfd/doc |
Date: |
Wed, 10 Sep 2014 09:19:08 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Hi,
It looks like the bfd/doc directory might have problems with parallel
make if files need to be updated.
Rules for updating the texi files look like this:
aoutx.texi: chew.c $(srcdir)/../aoutx.h $(srcdir)/doc.str
$(MAKE) $(MKDOC)
./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp
$(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
archive.texi: chew.c $(srcdir)/../archive.c $(srcdir)/doc.str
$(MAKE) $(MKDOC)
./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp
$(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi
say doc.str is new, that will make all the rules for the .texi files run
"$(MAKE) $(MKDOC)" in parallel. This is wasteful to start with.
It's also not impossible that 2 different makes try to write the binary
at the same time...
- parallel make potential problem in bfd/doc,
Dan Nicolaescu <=