Date: Wed, 4 Dec 1996 17:14:17 -0500 (EST) From: Chuck Robey <chuckr@glue.umd.edu> To: Jonathan Lemon <jlemon@americantv.com> Cc: hackers@freebsd.org Subject: Re: Exporting environment vars from make? Message-ID: <Pine.OSF.3.95.961204171348.15862A-100000@skipper.eng.umd.edu> In-Reply-To: <199612042157.VAA24876@right.PCS>
next in thread | previous in thread | raw e-mail | index | archive | help
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! ----------------------------+-----------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.961204171348.15862A-100000>