From 6cbdfb2a20a93dd1f15ef764bdfe5d81f2701480 Mon Sep 17 00:00:00 2001 From: charitybell Date: Sat, 25 Mar 2023 18:55:38 -0700 Subject: [PATCH] Fix gbdk-lib-install-ports target dependencies The gbdk-lib-install-ports has an unwritten dependency on the gbdk-lib-build target. the gbdk-lib-install-ports target fails if built before the gbdk-lib-build target. In a non-parallelized build, these two targets are built in the right order and the build works fine. In a parallelized build, a race condition causes the targets to build in the wrong order. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 99816fe5..10916fe5 100644 --- a/Makefile +++ b/Makefile @@ -220,7 +220,7 @@ gbdk-lib-install: gbdk-lib-install-platforms gbdk-lib-install-prepare: @rm -rf $(BUILDDIR)/lib -gbdk-lib-install-ports: +gbdk-lib-install-ports: gbdk-lib-build @for port in $(PORTS); do \ echo Installing lib for port: $$port; \ mkdir -p $(BUILDDIR)/lib/$$port/; \