[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting environment variable for make dist

From: Bas Vodde
Subject: Re: Setting environment variable for make dist
Date: Sun, 10 May 2015 16:46:00 +0200

Hi Gavin,

Related to why the variable must be set, check this stack overflow article:

The Mac filesystem created a hidden file that causes problems when packaging a 

I guess, autotools should actually handle this by default, but currently it 
doesn’t yet.

Right now, I just run a check. You can see what I’ve done at:
(line 344)

This ensures I don’t forget to do it manually. I haven’t found a way to do it 
automatically yet ;(



> On 10 May 2015, at 4:40 pm, Gavin Smith <address@hidden> wrote:
> On 10 May 2015 at 13:57, Bas Vodde <address@hidden> wrote:
>> I'm trying to change my projects so that it sets the
>> COPYFILE_DISABLE=1 environment variable to influence the make dist target.
> What running program needs to have this environment variable set in
> its environment? Is it the shells that are created by Makefile rules
> when make dist is run?
>> Background: The COPYFILE_DISABLE=1 avoids having a second top-level
>> directory in your package when packaging on MacOSX.
> What programs pay attention to this variable?
>> So far, my attempt was to set the variable in the file and use
>> AC_SUBST on it, but that didn't seem to work.
> This will create a Makefile variable, which is different to an
> environmental variable. That is, a line like "COPYFILE_DISABLE=1" will
> appear in the generated Makefile, and this will be substituted
> elsewhere in the Makefile if the COPYFILE_DISABLE variable is referred
> to. However there is nothing there to change environmental variables.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]