Subject: Re: environment, where to put ?
To: emanuel stiebler <>
From: Luke Mewburn <>
List: current-users
Date: 11/20/2003 15:32:37
On Wed, Nov 19, 2003 at 09:25:34AM -0700, emanuel stiebler wrote:
  | Hi all,
  | I usually put all my variables (DESTDIR, BSDOBJDIR,TOOLDIR) in my .cshrc 
  | startup.
  | Is there a better location for those ?
  | Any of the, or ... ?
  | Just asking if anything, or a preference changed ...

The only variables I set in my environment are
	MAKEOBJDIRPREFIX	(doesn't work in mk.conf anyway)
	MACHINE			(for convenience)
	TOOLDIR			(not really necessary)
(I have a shell alias which sets MAKEOBJDIRPREFIX & MACHINE based on
an argument, so I have separate obj trees per MACHINE build)

I set the following in mk.conf:
	OBJMACHINE= provides reasonable defaults for DESTDIR, RELEASEDIR (etc),
and there's absolutely no need to set BSDOBJDIR if using

In short, "whatever works".

Note that you can't set MAKEOBJDIR or MAKEOBJDIRPREFIX in mk.conf,
only in the environment.