bug-make
[Top][All Lists]
Advanced

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

Re: gmake-4.2.1 ignores assignment of ARCH on FreeBSD


From: thutt
Subject: Re: gmake-4.2.1 ignores assignment of ARCH on FreeBSD
Date: Wed, 27 Dec 2017 07:26:17 -0800

Yuri writes:
 > On 12/26/17 19:38, Paul Smith wrote:
 > > If the BSD Ports framework is setting
 > > some variables "as if" they were provided on the command line,
 > 
 > 
 > But there is no such thing as "providing something as if on the command 
 > line".
 > 

 Paul just explained that there is a way to make a variable seem like
 it's set on the command line, when in fact it's not.

 Here's a simple Makefile:

   install:
          @echo $(alpha)
          @echo $(origin alpha)


 From the shell:

   export MAKEFLAGS="alpha=not-set-on-command-bline"
   make

     not-set-on-command-bline
     command line

 It's not a normal way of using Make, but it does deserve to be
 examined.

-- 
Festivus time!



reply via email to

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