diff options
author | obrien <obrien@FreeBSD.org> | 2010-01-04 18:57:22 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2010-01-04 18:57:22 +0000 |
commit | d2744b88e92689da349b5de750666f235ea9a4ce (patch) | |
tree | a3e67a307d511e8bb94e2cef9388c3b1c989d519 /usr.bin/make/make.1 | |
parent | f86eec131ecd8165dffb9b3c544d58e63f18a772 (diff) | |
download | FreeBSD-src-d2744b88e92689da349b5de750666f235ea9a4ce.zip FreeBSD-src-d2744b88e92689da349b5de750666f235ea9a4ce.tar.gz |
Add ability to search up the directory hierarchy for the system directory.
Do by specifying ".../" with '-m' or MAKESYSPATH (new) environment variable.
Reviewed by: <sjg@NetBSD.org>
Obtained from: NetBSD (+ embellishment by me, sent back to NetBSD)
Diffstat (limited to 'usr.bin/make/make.1')
-rw-r--r-- | usr.bin/make/make.1 | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1 index a4e837c..2c478a3 100644 --- a/usr.bin/make/make.1 +++ b/usr.bin/make/make.1 @@ -240,6 +240,36 @@ The system include path will always be appended to the search path used for "..."-style inclusions and makefile searches (see the .Fl I option). +.Pp +If a file or directory name in the +.Fl m +argument (or the +.Ev MAKESYSPATH +environment variable) starts with the string +.Qq \&.../ +then +.Nm +will search for the specified file or directory named in the remaining part +of the argument string. +The search starts with the current directory of the Makefile and then works +upward towards the root of the filesystem. +If the search is successful, +then the resulting directory replaces the +.Qq \&.../ +specification in the +.Fl m +argument. +If used, this feature allows +.Nm +to easily search in the current source tree for customized sys.mk files +(e.g. by using +.Qq \&.../mk/sys.mk +as an argument). +Note that a +.Fl C +that are earlier on the command line affect where +.Fl m Qq \&.../ +searches. .It Fl n Display the commands that would have been executed, but do not actually execute them. @@ -1665,8 +1695,9 @@ utility uses the following environment variables, if they exist: .Ev MAKE , .Ev MAKEFLAGS , .Ev MAKEOBJDIR , +.Ev MAKEOBJDIRPREFIX , and -.Ev MAKEOBJDIRPREFIX . +.Ev MAKESYSPATH . .Sh FILES .Bl -tag -width /usr/share/doc/psd/12.make -compact .It Pa .depend |