aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1996-10-06 16:19:08 +0000
committerSteve Price <steve@FreeBSD.org>1996-10-06 16:19:08 +0000
commit66b6f9d1e4443e962469664008c67ad0d1f450bf (patch)
tree7544f99ee329646927ead5aa1e97a17546e6a36f /usr.bin/make
parentf793c4ba5cf495188e1271f92c15711cde0601e7 (diff)
downloadsrc-66b6f9d1e4443e962469664008c67ad0d1f450bf.tar.gz
src-66b6f9d1e4443e962469664008c67ad0d1f450bf.zip
Clarify the rule used to determine the object
directory location.
Notes
Notes: svn path=/head/; revision=18759
Diffstat (limited to 'usr.bin/make')
-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 60804ef214df..db31a2d0e174 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,