diff options
author | Marian Balakowicz <m8@semihalf.com> | 2006-09-07 12:05:53 +0200 |
---|---|---|
committer | Marian Balakowicz <m8@semihalf.com> | 2006-09-07 12:05:53 +0200 |
commit | 4f0645eb7909635a72421de57904ef6531bbd82a (patch) | |
tree | 9b5e583664faa488ebc17907ea666b59d129373d /Makefile | |
parent | 0dab03ba8fb20ede7233f497b6c6db188986e7a8 (diff) |
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 ifneq ($(BUILD_DIR),) saved-output := $(BUILD_DIR) + +# Attempt to create a output directory. +$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) + +# Verify if it was successful. BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) endif # ifneq ($(BUILD_DIR),) |