Hello
I have a GNU make question, actually:
How this should be read ?
$(dir $(call gb_AutoInstallLibs_get_target,%)).dir :
$(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
What I understand:
the $(call retrieves the variable content and pass the list of files in
the current module directory as arguments. The first one is kept (from
TargetLocations.mk, which says gb_AutoInstallLibs_get_target =
$(WORKDIR)/AutoInstallLibs/$(1) )
We append a ".dir" to be sur to have a filename to give to $(dir, which
will go up one level.
$@ will be the result of $(dir (something like $WORKDIR/AutoInstallLibs/ ?)
wildcard will test if the parent $WORKDIR exists, else we mkdir.
I know it seems silly to test $WORKDIR, so presumably I miss something in
the $(call part, but I don't see what.
Thanks for the input
Best regards
--
Mat M
Context
- Gbuild explanation · Mat M
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.