From owner-freebsd-ports Fri Aug 9 10:49:15 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA26878 for ports-outgoing; Fri, 9 Aug 1996 10:49:15 -0700 (PDT) Received: from po1.glue.umd.edu (po1.glue.umd.edu [129.2.128.44]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA26860 for ; Fri, 9 Aug 1996 10:49:12 -0700 (PDT) Received: from gilligan.eng.umd.edu (gilligan.eng.umd.edu [129.2.103.21]) by po1.glue.umd.edu (8.7.5/8.7.3) with ESMTP id NAA03875; Fri, 9 Aug 1996 13:49:10 -0400 (EDT) Received: from localhost (chuckr@localhost) by gilligan.eng.umd.edu (8.7.5/8.7.3) with SMTP id NAA09833; Fri, 9 Aug 1996 13:49:09 -0400 (EDT) X-Authentication-Warning: gilligan.eng.umd.edu: chuckr owned process doing -bs Date: Fri, 9 Aug 1996 13:49:09 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@gilligan.eng.umd.edu To: James FitzGibbon cc: ports@freebsd.org Subject: Re: dumpb question about make In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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! ----------------------------+-----------------------------------------------