From owner-freebsd-ports Fri Aug 9 06:41:32 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA12288 for ports-outgoing; Fri, 9 Aug 1996 06:41:32 -0700 (PDT) Received: from bdd.net (bdd.net [207.61.119.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA12280 for ; Fri, 9 Aug 1996 06:41:28 -0700 (PDT) Received: from localhost (james@localhost) by bdd.net (8.7.5/8.7.3) with SMTP id JAA04626 for ; Fri, 9 Aug 1996 09:41:19 -0400 (EDT) Date: Fri, 9 Aug 1996 09:41:19 -0400 (EDT) From: James FitzGibbon To: ports@freebsd.org Subject: dumpb question about make Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 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 | ----------------------------------------------------------------------------