Date: Wed, 4 Dec 1996 15:57:50 -0600 From: jlemon@americantv.com (Jonathan Lemon) To: hackers@freebsd.org Subject: Exporting environment vars from make? Message-ID: <199612042157.VAA24876@right.PCS>
next in thread | raw e-mail | index | archive | help
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? -- Jonathan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612042157.VAA24876>