Hi all,

While building a Buildroot project, I ran into an occasional Bird build failure. In a parallel make environment, nest can try to write proto-build.c to objdir/nest before that directory exists. I think this patch fixes:

--- nest/Makefile.orig    2024-04-08 11:47:50.917918157 +0100
+++ nest/Makefile    2024-04-08 11:47:59.167838713 +0100
@@ -3,7 +3,7 @@
 $(all-daemon)
 $(cf-local)

-$(objdir)/nest/proto-build.c: $(lastword $(MAKEFILE_LIST))
+$(objdir)/nest/proto-build.c: $(lastword $(MAKEFILE_LIST)) $(objdir)/.dir-stamp
     $(E)echo GEN $@
     $(Q)echo "$(patsubst %,void %_build(void); ,$(PROTO_BUILD)) void protos_build_gen(void) { $(patsubst %,  %_build(); ,$(PROTO_BUILD))}" > $@

--
Jim Hague - jim.ha...@acm.org          Never trust a computer you can't lift.

Reply via email to