From owner-freebsd-hackers Wed Dec 4 14:14:26 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.8.3/8.7.3) id OAA18842 for hackers-outgoing; Wed, 4 Dec 1996 14:14:26 -0800 (PST) Received: from po2.glue.umd.edu (po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA18837 for ; Wed, 4 Dec 1996 14:14:22 -0800 (PST) Received: from skipper.eng.umd.edu (skipper.eng.umd.edu [129.2.103.24]) by po2.glue.umd.edu (8.8.3/8.7.3) with ESMTP id RAA05434; Wed, 4 Dec 1996 17:14:19 -0500 (EST) Received: from localhost (chuckr@localhost) by skipper.eng.umd.edu (8.8.3/8.7.3) with SMTP id RAA15509; Wed, 4 Dec 1996 17:14:18 -0500 (EST) X-Authentication-Warning: skipper.eng.umd.edu: chuckr owned process doing -bs Date: Wed, 4 Dec 1996 17:14:17 -0500 (EST) From: Chuck Robey X-Sender: chuckr@skipper.eng.umd.edu To: Jonathan Lemon cc: hackers@freebsd.org Subject: Re: Exporting environment vars from make? In-Reply-To: <199612042157.VAA24876@right.PCS> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 4 Dec 1996, Jonathan Lemon wrote: > > I have a couple of tools that change their behavior depending on the > setting of various environment variables, and would like to place the > makefiles in control of these tools. > > However, there doesn't seem to be any way to export arbitrary variables > from a makefile, short of putting an 'export' line in every command, which > seems kind of klunky. (Putting .MAKEFLAGS in the makefile doesn't count - > it doesn't allow overrides from the command line) > > Is there any reason why there isn't an .EXPORT: directive in bmake, to > allow exporting arbitrary variables? You can control the environment of tools via the env command, do man env. > -- > Jonathan > ----------------------------+----------------------------------------------- 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 picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------