custom stuff in build and configure

Maciej (Matchek) Bliziński maciej at opencsw.org
Thu May 8 09:47:25 CEST 2014


On Thu, May 8, 2014 at 8:33 AM, Claudio <claudio at opencsw.org> wrote:
> On 08-05-14 01:27, Maciej (Matchek) Bliziński wrote:
>>
>> If you write something like this in gmake...
>>
>> foo:
>>     cmd1
>>     cmd2
>>
>> ...the environment from cmd1 will not be seen by cmd2, because they
>> are independent (sub)shells started by gmake, I think. Somebody
>> correct me if I'm wrong.
>
>
> What about:
>
> foo:
>
>         cmd1 && cmd2

It should work. For example:

$ echo foo=bar > env.sh
$ . env.sh && echo ${foo}
bar

Maciej


More information about the maintainers mailing list