summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/diff/diff.1
diff options
context:
space:
mode:
authorsjg <sjg@NetBSD.org>2000-04-20 11:23:25 +0000
committersjg <sjg@NetBSD.org>2000-04-20 11:23:25 +0000
commit0828d668af919d5b97faa21c2d772e2f6f298e9a (patch)
tree4e191409e81668834adbd2c3d1d76d95d6de56f2 /gnu/usr.bin/diff/diff.1
parent405a7540e7d6d3f2305d4e83b49eb42ca4ac9d62 (diff)
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.
Diffstat (limited to 'gnu/usr.bin/diff/diff.1')
0 files changed, 0 insertions, 0 deletions