From 2b569e37e1b0bb0a1c2cf0fba63782716febe431 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 20 Jun 2017 14:05:39 +0200 Subject: [PATCH] depot: fix Makefile target build_bin_archive When building with multiple jobs, the 'Makefile' rule may be executed before any of its sibling rules, which implicitly create the target directory. In this case, the attempt to create the symlink for 'Makefile' fails and the 'build_bin_archive' aborts. Analogously to the sibling rules, this fix creates the target directory as a side effect of the 'Makefile' rule. --- tool/depot/mk/build_bin_archive | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/depot/mk/build_bin_archive b/tool/depot/mk/build_bin_archive index f18b360e9b..4e0eeee41d 100755 --- a/tool/depot/mk/build_bin_archive +++ b/tool/depot/mk/build_bin_archive @@ -171,6 +171,7 @@ $(TOOLS_CONF): $(VERBOSE)cp $(GENODE_DIR)/repos/base/etc/tools.conf $@ $(BUILD_MK): + $(VERBOSE)mkdir -p $(dir $@) $(VERBOSE)ln -sf $(GENODE_DIR)/tool/builddir/build.mk $@ $(BUILD_CONF) $(SPECS_CONF) $(TOOLS_CONF) $(BUILD_MK): wiped_build_dir