diff options
author | Marian Balakowicz | 2006-09-07 05:05:53 -0500 |
---|---|---|
committer | Marian Balakowicz | 2006-09-07 05:05:53 -0500 |
commit | 4f0645eb7909635a72421de57904ef6531bbd82a (patch) | |
tree | 9b5e583664faa488ebc17907ea666b59d129373d /Makefile | |
parent | 0dab03ba8fb20ede7233f497b6c6db188986e7a8 (diff) | |
download | u-boot-4f0645eb7909635a72421de57904ef6531bbd82a.tar.gz u-boot-4f0645eb7909635a72421de57904ef6531bbd82a.tar.xz u-boot-4f0645eb7909635a72421de57904ef6531bbd82a.zip |
Fix LOG_DIR directory creation error.
Add support for automatic creation of BUILD_DIR directory.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -74,6 +74,11 @@ endif | |||
74 | 74 | ||
75 | ifneq ($(BUILD_DIR),) | 75 | ifneq ($(BUILD_DIR),) |
76 | saved-output := $(BUILD_DIR) | 76 | saved-output := $(BUILD_DIR) |
77 | |||
78 | # Attempt to create a output directory. | ||
79 | $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) | ||
80 | |||
81 | # Verify if it was successful. | ||
77 | BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) | 82 | BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) |
78 | $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) | 83 | $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) |
79 | endif # ifneq ($(BUILD_DIR),) | 84 | endif # ifneq ($(BUILD_DIR),) |