From: Thomas De Schampheleire Date: Tue, 14 Jul 2015 11:44:08 +0200 Subject: [Buildroot] [PATCH 1/1] Makefile: create $(BUILD_DIR) before attempting to touch .root Message-ID: <1436867048-6333-1-git-send-email-patrickdepinguin@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net From: Thomas De Schampheleire The target $(BUILD_DIR)/.root does not have a direct dependency on $(BUILD_DIR), meaning that cases could exist where the target is executed without $(BUILD_DIR) being present. Instead of hoping on a specific order, and instead of adding new make dependencies, just make sure the directory is created. Signed-off-by: Thomas De Schampheleire --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8eb8c6d..ee65417 100644 --- a/Makefile +++ b/Makefile @@ -471,7 +471,7 @@ RSYNC_VCS_EXCLUSIONS = \ --exclude CVS $(BUILD_DIR)/.root: - mkdir -p $(TARGET_DIR) + mkdir -p $(TARGET_DIR) $(BUILD_DIR) rsync -a --ignore-times $(RSYNC_VCS_EXCLUSIONS) \ --chmod=u=rwX,go=rX --exclude .empty --exclude '*~' \ $(TARGET_SKELETON)/ $(TARGET_DIR)/ -- 1.9.5