summaryrefslogtreecommitdiff
path: root/solenv/gbuild/gbuild.mk
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-09-22 19:10:13 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-09-26 11:46:51 +0200
commitbc234b4e1103cf8f79a7526ad80dcd9d0b78b89b (patch)
tree75be574c4a39c894cc3dc47b099da9954491693d /solenv/gbuild/gbuild.mk
parent9b65ecc37f8e3cdd81bdb3399c5f72496394df9d (diff)
gbuild: use one pattern rule for creating directories
Change-Id: I0164552ea9f2024eb5c44ad3b2b6181f6a9e3a1e
Diffstat (limited to 'solenv/gbuild/gbuild.mk')
-rw-r--r--solenv/gbuild/gbuild.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index 8334ead0df64..bd1b315ce3db 100644
--- a/solenv/gbuild/gbuild.mk
+++ b/solenv/gbuild/gbuild.mk
@@ -69,6 +69,13 @@ endif
include $(GBUILDDIR)/Output.mk
+# general purpose rules for creating directories
+# the .dir is for make 3.81, which ignores trailing /
+$(OUTDIR)/%/.dir :
+ $(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
+
+$(WORKDIR)/%/.dir :
+ $(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
ifneq ($(strip $(PRODUCT)$(product)),)
gb_PRODUCT := $(true)