From 66b6f9d1e4443e962469664008c67ad0d1f450bf Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sun, 6 Oct 1996 16:19:08 +0000 Subject: Clarify the rule used to determine the object directory location. --- usr.bin/make/main.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'usr.bin/make') diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 60804ef214df5..db31a2d0e1744 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -498,11 +498,15 @@ main(argc, argv) } /* - * If the MAKEOBJDIR (or by default, the _PATH_OBJDIR) directory - * exists, change into it and build there. (If a .${MACHINE} suffix - * exists, use that directory instead). - * Otherwise check MAKEOBJDIRPREFIX`cwd` (or by default, - * _PATH_OBJDIRPREFIX`cwd`) and build there if it exists. + * The object directory location is determined using the + * following order of preference: + * + * 1. MAKEOBJDIRPREFIX`cwd` + * 2. MAKEOBJDIR + * 3. _PATH_OBJDIR.${MACHINE} + * 4. _PATH_OBJDIR + * 5. _PATH_OBJDIRPREFIX${MACHINE} + * * If all fails, use the current directory to build. * * Once things are initted, -- cgit v1.3