Date: Fri, 9 Aug 1996 13:49:09 -0400 (EDT) From: Chuck Robey <chuckr@glue.umd.edu> To: James FitzGibbon <james@nexis.net> Cc: ports@freebsd.org Subject: Re: dumpb question about make Message-ID: <Pine.OSF.3.95.960809134718.9825B-100000@gilligan.eng.umd.edu> In-Reply-To: <Pine.BSI.3.94.960809093232.4598A-100000@bdd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Aug 1996, James FitzGibbon wrote: > > Can anyone provide some help on overriding makefile variables with > environment variables ? > > I have a port I'm working on that has RESTRICTED set to yes, but the > machineI'm building it on (for various reason) has NO_RESTRICTED set to > "yes". I've tried setting NO_RESTRICTED to "no" in my environment and > then using make -e, but the way the ports makefile works, it just checks > for the definition of NO_RESTRUCTED, not if it equals "yes": > > .if (defined(RESTRICTED) && defined(NO_RESTRICTED)) > IGNORE=YES > .endif > > Is there some way to remove a variable from the make envronment based upon > a trigger in my shell environment. The highest priority is always anything entered on the command line, so do make var=VALUE, and it will override anything. > > The only other way I can think of handling this is to have bsd.port.mk > check agains NO_RESUTRCTED equalling "yes", but this seems to go against > the way that the makefile is written. > > -- > j. > > ---------------------------------------------------------------------------- > | James FitzGibbon james@nexis.net | > | Integrator, The Nexis Group Voice/Fax : 416 410-0100 | > ---------------------------------------------------------------------------- > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.960809134718.9825B-100000>