Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Le Sat, 13 Oct 2012 04:51:26 +0200, Norbert Thiebaud <nthiebaud@gmail.com> a écrit:

On Fri, Oct 12, 2012 at 6:45 PM, Mat M <matm@gmx.fr> wrote:
Is the construct legal or is there an issue here ?
If it is legal, I'd love to have an explanation, because I had no great
success when googling.

http://www.openoffice.org/tools/dmake/dmake_4.3.html

Oh,  I assumed it was GNU make stuff.

$(subst,pat,replacement data)
    Will search for pat in data and will replace any occurrence of pat
with the replacement string. The expansion

        $(subst,.o,.c $(OBJECTS))

    is equivalent to:

        $(OBJECTS:s/.o/.c/)

Syntax is different from gmake, so...

Thank you Norbert

So, now I took back the code from settings.mk around line 554
COMMON_OUTDIR:=$(OUTPATH)

LOCAL_OUT:=$(OUT)
LOCAL_OUT_FOR_BUILD:=$(OUT_FOR_BUILD)
LOCAL_COMMON_OUT:=$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(OUT))
.EXPORT : LOCAL_OUT LOCAL_COMMON_OUT

here LOCAL_COMMON_OUT:=$(OUT) is enough or am I missing another thing ?

PS: Sorry for single-psting you Norbert, it was too late in the night.
--
Mat M

Context


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.