build.mk: Add dependency for init_libdep_file on directory

This should ensure that the directory is created before trying to
create a file within it.

This hopefully fixes errors like the following when using parallel
builds:

checking library dependencies...
/bin/bash: line 19: var/libdeps: No such file or directory
make[5]: *** [init_libdep_file] Error 1
This commit is contained in:
Torsten Hilbrich 2012-12-03 09:20:07 +01:00 committed by Norman Feske
parent f081733f4b
commit 6b33757154
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ init_progress_log:
@echo "# Library build progress log - generated by dep_prg.mk and dep_lib.mk" >> $(LIB_PROGRESS_LOG)
@echo "#" >> $(LIB_PROGRESS_LOG)
.PHONY: init_libdep_file
.PHONY: init_libdep_file $(dir $(LIB_DEP_FILE))
init_libdep_file:
@echo "checking library dependencies..."
@(echo "#"; \