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 Typos (from OpenBSD) 1999-11-19 22:29:24 +00:00
lst.lib
Makefile
Makefile.boot
arch.c
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
dir.h
for.c
hash.c wrap #include <sys/cdefs.h>, __RCSID(...) stuff in #ifndef MAKE_BOOTSTRAP 1997-09-28 03:30:58 +00:00
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
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
targ.c
util.c
var.c