diff options
author | David Tardon <dtardon@redhat.com> | 2013-04-24 08:53:26 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-04-24 08:56:04 +0200 |
commit | 80fb8b775c34080b983648a2b596e17ba58850b6 (patch) | |
tree | c0e682637055ede58a426a5ee2a52beff460e3b6 /solenv/gbuild/LinkTarget.mk | |
parent | 7e404210fc76b58d81e6f5a7468ac03ca53dd2e7 (diff) |
make sure the dir exists
I am hitting this problem with libcppunit.so.exports. It happens because
libcppunit.so is not built by LinkTarget, so nothing has created
$(WORKDIR)/LinkTarget/Library/ yet.
Change-Id: Ibdde83c746f02110aab113491a2bf37bf2d417eb
Diffstat (limited to 'solenv/gbuild/LinkTarget.mk')
-rwxr-xr-x | solenv/gbuild/LinkTarget.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index 8cad4b28f3e0..60747e283aa2 100755 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -449,7 +449,7 @@ endef # Put this pattern rule here so it overrides the one below. # (this is rather ugly: because of % the functions cannot be used) $(call gb_LinkTarget_get_target,Library/%.exports) : $(gb_Library_OUTDIRLOCATION)/% - $(if $(wildcard $@),true,touch $@) + $(if $(wildcard $@),true,mkdir -p $(dir $@) && touch $@) $(call gb_LinkTarget_get_target,%) : $(call gb_LinkTarget_get_headers_target,%) $(gb_Helper_MISCDUMMY) $(if $(filter $*,$(foreach lib,$(gb_MERGEDLIBS) $(gb_URELIBS),$(call gb_Library_get_linktargetname,$(lib)))),\ |