<div>Cheers Ivan,</div><br><div>I've done something similar, using the extglob pattern pluginFOO/!(tmp)*.cc to choose the source files. I think it's doing the same thing. Thanks for the report and debugging! </div><br><div>Andy</div><br><div><signature id="initial"><div><table cellpadding="0" cellspacing="0"><tbody><tr><td colspan="2"><div style="padding-bottom:15px;"><div><strong>Dr Andy Buckley, Lecturer / Royal Society University Research Fellow</strong></div><div>Particle Physics Experiment Group, University of Glasgow</div></div></td></tr><tr><td style="vertical-align:top;"></td><td><div style="font-size:0.9em;white-space:nowrap;border-left:2px solid gray;margin-left:20px;padding-left:20px;"><div><div></div><div></div></div></div></td></tr></tbody></table></div></signature></div><div class="gmail_quote_attribution">On Jun 21 2018, at 12:46 pm, Ivan Razumov <ivan.razumov@cern.ch> wrote:</div><blockquote><br><div><div>Dear Rivet developers,</div><br><div>sometimes Rivet 2.6.0 build fails with an error like this:</div><br><div>> make[5]: *** No rule to make target `tmp.oFwnz6L.cc', needed by</div><div>`RivetLHCbAnalyses.so'.</div><br><div>We believe that this is caused by "race condition" between Make building</div><div>a list of files needed to build .so file and rivet-buildplugin doing</div><div>it's job:</div><br><div>% grep analyses/Makefile.am -e 'RivetLHCbAnalyses.so'</div><br><div> RivetLHCbAnalyses.so : $(shell ls $(srcdir)/pluginLHCb/*.cc)</div><br><div>% grep bin/rivet-buildplugin -e 'mktemp'</div><br><div> tmpfile="$(mktemp tmp.XXXXXXXX)"</div><div> mv "$tmpfile" "$tmpfile.cc"</div><br><div>One possible solution to this "race condition" is to use find instead of</div><div>ls, like this:</div><br><div>$(shell find $(srcdir)/pluginLHCb -name '*.cc' -not -name 'tmp.*.cc')</div><br><div>Best regards,</div><div>Ivan for the GENSER team</div><br><div>_______________________________________________</div><div>Rivet mailing list</div><div>Rivet@projects.hepforge.org</div><div>https://www.hepforge.org/lists/listinfo/rivet</div></div></blockquote>