diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-26 12:14:48 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-26 12:19:03 +0200 |
commit | 300621ff72be787c5413edf46139b8c45ba0ff45 (patch) | |
tree | 60ffc89565e469fd8ec02bf5948590e5e8072478 /solenv/gbuild/ExternalProject.mk | |
parent | 601fd489995e9fd422d8c0fd47d8433413f95eaf (diff) |
Revert "gbuild: use one pattern rule for creating directories"
It does not work with make 3.82 which prefers pattern rules
with longest match, so wrong rules are chosen in workdir.
This reverts commit bc234b4e1103cf8f79a7526ad80dcd9d0b78b89b.
Diffstat (limited to 'solenv/gbuild/ExternalProject.mk')
-rw-r--r-- | solenv/gbuild/ExternalProject.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/gbuild/ExternalProject.mk b/solenv/gbuild/ExternalProject.mk index b8dc5d4976a8..5731cbf65360 100644 --- a/solenv/gbuild/ExternalProject.mk +++ b/solenv/gbuild/ExternalProject.mk @@ -33,6 +33,12 @@ # directory is work dir, accessible only from recipes via variable # $(EXTERNAL_WORKDIR). +$(dir $(call gb_ExternalProject_get_statedir,%))%/.dir : + $(if $(wildcard $(dir $@)),,mkdir -p $(dir $@)) + +$(dir $(call gb_ExternalProject_get_target,%)).dir : + $(if $(wildcard $(dir $@)),,mkdir -p $(dir $@)) + $(call gb_ExternalProject_get_preparation_target,%) : touch $@ |