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:
Norman Feske 2017-06-20 14:05:39 +02:00
parent 4c8bfceec4
commit 2b569e37e1
1 changed files with 1 additions and 0 deletions

View File

@ -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