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 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
Makefile Back out part of previous, only the parse.c mod was intended. 1999-08-04 16:44:07 +00:00
Makefile.boot Uh... should have been ${MACHINE} not hard coded... Duh! 1999-04-03 04:50:16 +00:00
arch.c Non-existent libs are always out of date. 2000-02-15 04:41:45 +00:00
bit.h
buf.c Nuke Buf_{G,Ung}etByte{,s}(), since they aren't used, and make BufExpand do 1999-09-15 04:16:31 +00:00
buf.h Nuke Buf_{G,Ung}etByte{,s}(), since they aren't used, and make BufExpand do 1999-09-15 04:16:31 +00:00
compat.c Changes to make MAKEOBJDIRPREFIX useful. 2000-04-20 11:23:25 +00:00
cond.c Fix conditional variable expression parsing (reported by cgd) 1998-09-18 20:35:11 +00:00
config.h Define USE_PGRP so that we send signals to our job's process group instead 1999-05-03 12:01:14 +00:00
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 PR/5210: Hauke Fath: make core dumps with .SHELL 1998-03-26 19:20:36 +00:00
list.h
lst.h sprite.h is private to make, so #include it with "sprite.h", 1999-07-29 19:45:32 +00:00
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 Rework how :: dependencies are handled. 1999-09-15 10:47:37 +00:00
parse.c Some minor cleanup of :: tests. 1999-09-16 00:54:14 +00:00
pathnames.h Allow system path to be overriden in the Makefile 1998-12-19 17:26:12 +00:00
sprite.h
str.c - full prototypes 1998-11-06 23:31:09 +00:00
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 Some minor cleanup of :: tests. 1999-09-16 00:54:14 +00:00
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