summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/make/main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 60804ef..db31a2d 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,
OpenPOWER on IntegriCloud