NetBSD/usr.bin/make
sjg 0828d668af Changes to make MAKEOBJDIRPREFIX useful.
Firstly, we ignore getenv("PWD") if MAKEOBJDIRPREFIX is set so that we always
get the same value for .CURDIR regardless of how make was invoked.

Second, when executing a command we check if it is ${.MAKE} or ${.MAKE:T}
without a preceeding chdir, if so we insert a chdir(${.CURDIR}) so that
the Makefile will be found by the child make.  Note that this behaviour is
dissabled if MAKEOBJDIRPREFIX is not set or if NOCHECKMAKECHDIR is set.
See the comments in main.c for more detail.

With these two changes, one can successfully build usr/src using MAKEOBJDIRPREFIX
allowing the src to be mounted from a CD-ROM.
2000-04-20 11:23:25 +00:00
..
PSD.doc
lst.lib Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
Makefile
Makefile.boot
arch.c Non-existent libs are always out of date. 2000-02-15 04:41:45 +00:00
bit.h
buf.c
buf.h
compat.c Changes to make MAKEOBJDIRPREFIX useful. 2000-04-20 11:23:25 +00:00
cond.c
config.h
dir.c Don't core-dump when the current working directory is not readable 2000-04-16 23:24:04 +00:00
dir.h
for.c Buf_GetAll() takes an int *, not a size_t *. 2000-04-18 03:46:41 +00:00
hash.c
hash.h
job.c Changes to make MAKEOBJDIRPREFIX useful. 2000-04-20 11:23:25 +00:00
job.h
list.h
lst.h
main.c Changes to make MAKEOBJDIRPREFIX useful. 2000-04-20 11:23:25 +00:00
make.1 PR/9899: David A. Holland: multi-variable .for constructs in make 2000-04-16 22:08:06 +00:00
make.c Fixed the oodate test to include the check of gn->cmtime == 0 without 2000-02-29 22:00:02 +00:00
make.h Changes to make MAKEOBJDIRPREFIX useful. 2000-04-20 11:23:25 +00:00
nonints.h
parse.c
pathnames.h
sprite.h
str.c
suff.c Don't apply suffix rules for .PHONY targets. (gmake doesn't do this either.) 2000-01-22 19:28:11 +00:00
targ.c
util.c Add a few little changes needed to get this to compile on IRIX 6.4. 2000-01-06 22:23:20 +00:00
var.c Don't type && when you mean || (pointed out by David Holland) 2000-04-17 14:59:02 +00:00