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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user