automake
[Top][All Lists]
Advanced

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

Re: Setting environment variable for make dist


From: Gavin Smith
Subject: Re: Setting environment variable for make dist
Date: Sun, 10 May 2015 15:40:23 +0100

On 10 May 2015 at 13:57, Bas Vodde <address@hidden> wrote:
> I'm trying to change my projects configure.ac 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 configure.ac 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]