Date: Fri, 2 Mar 2018 01:53:51 +0000 (UTC) From: "Simon J. Gerraty" <sjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330260 - in head: contrib/bmake contrib/bmake/mk contrib/bmake/unit-tests usr.bin/bmake Message-ID: <201803020153.w221rpD1043143@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sjg Date: Fri Mar 2 01:53:50 2018 New Revision: 330260 URL: https://svnweb.freebsd.org/changeset/base/330260 Log: Update to bmake-201802222 Fixes segfault in Var_Set if val is NULL Don't treat .info as warning with -W Added: head/contrib/bmake/mk/ldorder.mk - copied unchanged from r330259, vendor/NetBSD/bmake/dist/mk/ldorder.mk Modified: head/contrib/bmake/ChangeLog head/contrib/bmake/Makefile.config.in head/contrib/bmake/VERSION head/contrib/bmake/aclocal.m4 head/contrib/bmake/bmake.cat1 head/contrib/bmake/configure head/contrib/bmake/configure.in head/contrib/bmake/job.c head/contrib/bmake/make.h head/contrib/bmake/meta.c head/contrib/bmake/mk/ChangeLog head/contrib/bmake/mk/FILES head/contrib/bmake/mk/auto.obj.mk head/contrib/bmake/mk/dpadd.mk head/contrib/bmake/mk/final.mk head/contrib/bmake/mk/gendirdeps.mk head/contrib/bmake/mk/install-mk head/contrib/bmake/mk/lib.mk head/contrib/bmake/mk/own.mk head/contrib/bmake/mk/prog.mk head/contrib/bmake/mk/sys.mk head/contrib/bmake/mk/sys.vars.mk head/contrib/bmake/os.sh head/contrib/bmake/parse.c head/contrib/bmake/stresep.c head/contrib/bmake/unit-tests/varcmd.exp head/contrib/bmake/unit-tests/varcmd.mk head/contrib/bmake/var.c head/usr.bin/bmake/Makefile.config head/usr.bin/bmake/Makefile.inc head/usr.bin/bmake/config.h Directory Properties: head/contrib/bmake/ (props changed) Modified: head/contrib/bmake/ChangeLog ============================================================================== --- head/contrib/bmake/ChangeLog Thu Mar 1 23:46:02 2018 (r330259) +++ head/contrib/bmake/ChangeLog Fri Mar 2 01:53:50 2018 (r330260) @@ -1,3 +1,44 @@ +2018-02-22 Simon J. Gerraty <sjg@bad.crufty.net> + + * VERSION: 20180222 + Merge with NetBSD make, pick up + o parse.c: avoid calling sysconf for every call to loadfile + +2018-02-18 Simon J. Gerraty <sjg@bad.crufty.net> + + * VERSION: 20180218 + Merge with NetBSD make, pick up + o var.c: Var_Set handle NULL value anytime. + +2018-02-12 Simon J. Gerraty <sjg@bad.crufty.net> + + * VERSION: 20180212 + Merge with NetBSD make, pick up + o parse.c: do not treat .info as warning with -W + +2017-12-07 Simon J. Gerraty <sjg@bad.crufty.net> + + * VERSION: 20171207 + Merge with NetBSD make, pick up + o var.c: Var_Append use Var_Set if var not previously set + so that VAR_CMD is handled correctly. + Add a suitable unit-test. + +2017-11-26 Simon J. Gerraty <sjg@bad.crufty.net> + + * VERSION (_MAKE_VERSION): 20171126 + + * aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__ + since AC_TRY_COMPILE puts input inside main() + which upsets modern compilers. + +2017-11-18 Simon J. Gerraty <sjg@bad.crufty.net> + + * VERSION: 20171118 + Merge with NetBSD make, pick up + o var.c: do not append to variable set on command line + add unit-test to catch this. + 2017-10-28 Simon J. Gerraty <sjg@bad.crufty.net> * VERSION: 20171028 Modified: head/contrib/bmake/Makefile.config.in ============================================================================== --- head/contrib/bmake/Makefile.config.in Thu Mar 1 23:46:02 2018 (r330259) +++ head/contrib/bmake/Makefile.config.in Fri Mar 2 01:53:50 2018 (r330260) @@ -15,7 +15,7 @@ LDFLAGS= @LDFLAGS@ LIBOBJS= @LIBOBJS@ LDADD= @LIBS@ USE_META= @use_meta@ -FILEMON_H= @filemon_h@ +FILEMON_H?= @filemon_h@ BMAKE_PATH_MAX?= @bmake_path_max@ # used if MAXPATHLEN not defined CPPFLAGS+= -DBMAKE_PATH_MAX=${BMAKE_PATH_MAX} Modified: head/contrib/bmake/VERSION ============================================================================== --- head/contrib/bmake/VERSION Thu Mar 1 23:46:02 2018 (r330259) +++ head/contrib/bmake/VERSION Fri Mar 2 01:53:50 2018 (r330260) @@ -1,2 +1,2 @@ # keep this compatible with sh and make -_MAKE_VERSION=20171028 +_MAKE_VERSION=20180222 Modified: head/contrib/bmake/aclocal.m4 ============================================================================== --- head/contrib/bmake/aclocal.m4 Thu Mar 1 23:46:02 2018 (r330259) +++ head/contrib/bmake/aclocal.m4 Fri Mar 2 01:53:50 2018 (r330260) @@ -1,5 +1,5 @@ dnl RCSid: -dnl $Id: aclocal.m4,v 1.5 2003/03/06 21:21:30 sjg Exp $ +dnl $Id: aclocal.m4,v 1.6 2017/11/26 22:39:20 sjg Exp $ dnl dnl @@ -55,16 +55,21 @@ dnl AC_DEFUN(AC_C___ATTRIBUTE__, [ AC_MSG_CHECKING(for __attribute__) AC_CACHE_VAL(ac_cv___attribute__, [ -AC_TRY_COMPILE([ +AC_LINK_IFELSE([ #include <stdlib.h> -], -[ + static void foo(void) __attribute__ ((noreturn)); static void foo(void) { exit(1); +} + +int +main(int argc, char **argv) +{ + foo(); } ], ac_cv___attribute__=yes, Modified: head/contrib/bmake/bmake.cat1 ============================================================================== --- head/contrib/bmake/bmake.cat1 Thu Mar 1 23:46:02 2018 (r330259) +++ head/contrib/bmake/bmake.cat1 Fri Mar 2 01:53:50 2018 (r330260) @@ -1,73 +1,73 @@ -BMAKE(1) NetBSD General Commands Manual BMAKE(1) +BMAKE(1) FreeBSD General Commands Manual BMAKE(1) -NNAAMMEE - bbmmaakkee -- maintain program dependencies +[1mNAME[0m + [1mbmake [22m-- maintain program dependencies -SSYYNNOOPPSSIISS - bbmmaakkee [--BBeeiikkNNnnqqrrssttWWwwXX] [--CC _d_i_r_e_c_t_o_r_y] [--DD _v_a_r_i_a_b_l_e] [--dd _f_l_a_g_s] - [--ff _m_a_k_e_f_i_l_e] [--II _d_i_r_e_c_t_o_r_y] [--JJ _p_r_i_v_a_t_e] [--jj _m_a_x___j_o_b_s] - [--mm _d_i_r_e_c_t_o_r_y] [--TT _f_i_l_e] [--VV _v_a_r_i_a_b_l_e] [--vv _v_a_r_i_a_b_l_e] - [_v_a_r_i_a_b_l_e_=_v_a_l_u_e] [_t_a_r_g_e_t _._._.] +[1mSYNOPSIS[0m + [1mbmake [22m[[1m-BeikNnqrstWwX[22m] [[1m-C [4m[22mdirectory[24m] [[1m-D [4m[22mvariable[24m] [[1m-d [4m[22mflags[24m] + [[1m-f [4m[22mmakefile[24m] [[1m-I [4m[22mdirectory[24m] [[1m-J [4m[22mprivate[24m] [[1m-j [4m[22mmax_jobs[24m] + [[1m-m [4m[22mdirectory[24m] [[1m-T [4m[22mfile[24m] [[1m-V [4m[22mvariable[24m] [[1m-v [4m[22mvariable[24m] + [[4mvariable=value[24m] [[4mtarget[24m [4m...[24m] -DDEESSCCRRIIPPTTIIOONN - bbmmaakkee is a program designed to simplify the maintenance of other pro- +[1mDESCRIPTION[0m + [1mbmake [22mis a program designed to simplify the maintenance of other pro- grams. Its input is a list of specifications as to the files upon which - programs and other files depend. If no --ff _m_a_k_e_f_i_l_e makefile option is - given, bbmmaakkee will try to open `_m_a_k_e_f_i_l_e' then `_M_a_k_e_f_i_l_e' in order to find - the specifications. If the file `_._d_e_p_e_n_d' exists, it is read (see + programs and other files depend. If no [1m-f [4m[22mmakefile[24m makefile option is + given, [1mbmake [22mwill try to open `[4mmakefile[24m' then `[4mMakefile[24m' in order to find + the specifications. If the file `[4m.depend[24m' exists, it is read (see mkdep(1)). This manual page is intended as a reference document only. For a more - thorough description of bbmmaakkee and makefiles, please refer to _P_M_a_k_e _- _A - _T_u_t_o_r_i_a_l. + thorough description of [1mbmake [22mand makefiles, please refer to [4mPMake[24m [4m-[24m [4mA[0m + [4mTutorial[24m. - bbmmaakkee will prepend the contents of the _M_A_K_E_F_L_A_G_S environment variable to + [1mbmake [22mwill prepend the contents of the [4mMAKEFLAGS[24m environment variable to the command line arguments before parsing them. The options are as follows: - --BB Try to be backwards compatible by executing a single shell per + [1m-B [22mTry to be backwards compatible by executing a single shell per command and by executing the commands to make the sources of a dependency line in sequence. - --CC _d_i_r_e_c_t_o_r_y - Change to _d_i_r_e_c_t_o_r_y before reading the makefiles or doing any- - thing else. If multiple --CC options are specified, each is inter- - preted relative to the previous one: --CC _/ --CC _e_t_c is equivalent to - --CC _/_e_t_c. + [1m-C [4m[22mdirectory[0m + Change to [4mdirectory[24m before reading the makefiles or doing any- + thing else. If multiple [1m-C [22moptions are specified, each is inter- + preted relative to the previous one: [1m-C [4m[22m/[24m [1m-C [4m[22metc[24m is equivalent to + [1m-C [4m[22m/etc[24m. - --DD _v_a_r_i_a_b_l_e - Define _v_a_r_i_a_b_l_e to be 1, in the global context. + [1m-D [4m[22mvariable[0m + Define [4mvariable[24m to be 1, in the global context. - --dd _[_-_]_f_l_a_g_s - Turn on debugging, and specify which portions of bbmmaakkee are to + [1m-d [4m[22m[-]flags[0m + Turn on debugging, and specify which portions of [1mbmake [22mare to print debugging information. Unless the flags are preceded by - `-' they are added to the _M_A_K_E_F_L_A_G_S environment variable and will + `-' they are added to the [4mMAKEFLAGS[24m environment variable and will be processed by any child make processes. By default, debugging information is printed to standard error, but this can be changed - using the _F debugging flag. The debugging output is always + using the [4mF[24m debugging flag. The debugging output is always unbuffered; in addition, if debugging is enabled but debugging output is not directed to standard output, then the standard out- - put is line buffered. _F_l_a_g_s is one or more of the following: + put is line buffered. [4mFlags[24m is one or more of the following: - _A Print all possible debugging information; equivalent to + [4mA[24m Print all possible debugging information; equivalent to specifying all of the debugging flags. - _a Print debugging information about archive searching and + [4ma[24m Print debugging information about archive searching and caching. - _C Print debugging information about current working direc- + [4mC[24m Print debugging information about current working direc- tory. - _c Print debugging information about conditional evaluation. + [4mc[24m Print debugging information about conditional evaluation. - _d Print debugging information about directory searching and + [4md[24m Print debugging information about directory searching and caching. - _e Print debugging information about failed commands and + [4me[24m Print debugging information about failed commands and targets. - _F[++]_f_i_l_e_n_a_m_e + [4mF[24m[[1m+[22m][4mfilename[0m Specify where debugging output is written. This must be the last flag, because it consumes the remainder of the argument. If the character immediately after the `F' @@ -80,80 +80,80 @@ DDEESSCCRRIIPPTTIIOONN named file. If the file name ends `.%d' then the `%d' is replaced by the pid. - _f Print debugging information about loop evaluation. + [4mf[24m Print debugging information about loop evaluation. - _g_1 Print the input graph before making anything. + [4mg1[24m Print the input graph before making anything. - _g_2 Print the input graph after making everything, or before + [4mg2[24m Print the input graph after making everything, or before exiting on error. - _g_3 Print the input graph before exiting on error. + [4mg3[24m Print the input graph before exiting on error. - _j Print debugging information about running multiple + [4mj[24m Print debugging information about running multiple shells. - _l Print commands in Makefiles regardless of whether or not + [4ml[24m Print commands in Makefiles regardless of whether or not they are prefixed by `@' or other "quiet" flags. Also known as "loud" behavior. - _M Print debugging information about "meta" mode decisions + [4mM[24m Print debugging information about "meta" mode decisions about targets. - _m Print debugging information about making targets, includ- + [4mm[24m Print debugging information about making targets, includ- ing modification dates. - _n Don't delete the temporary command scripts created when + [4mn[24m Don't delete the temporary command scripts created when running commands. These temporary scripts are created in the directory referred to by the TMPDIR environment vari- - able, or in _/_t_m_p if TMPDIR is unset or set to the empty + able, or in [4m/tmp[24m if TMPDIR is unset or set to the empty string. The temporary scripts are created by mkstemp(3), - and have names of the form _m_a_k_e_X_X_X_X_X_X. _N_O_T_E: This can - create many files in TMPDIR or _/_t_m_p, so use with care. + and have names of the form [4mmakeXXXXXX[24m. [4mNOTE[24m: This can + create many files in TMPDIR or [4m/tmp[24m, so use with care. - _p Print debugging information about makefile parsing. + [4mp[24m Print debugging information about makefile parsing. - _s Print debugging information about suffix-transformation + [4ms[24m Print debugging information about suffix-transformation rules. - _t Print debugging information about target list mainte- + [4mt[24m Print debugging information about target list mainte- nance. - _V Force the --VV option to print raw values of variables, + [4mV[24m Force the [1m-V [22moption to print raw values of variables, overriding the default behavior set via - _._M_A_K_E_._E_X_P_A_N_D___V_A_R_I_A_B_L_E_S. + [4m.MAKE.EXPAND_VARIABLES[24m. - _v Print debugging information about variable assignment. + [4mv[24m Print debugging information about variable assignment. - _x Run shell commands with --xx so the actual commands are + [4mx[24m Run shell commands with [1m-x [22mso the actual commands are printed as they are executed. - --ee Specify that environment variables override macro assignments + [1m-e [22mSpecify that environment variables override macro assignments within makefiles. - --ff _m_a_k_e_f_i_l_e - Specify a makefile to read instead of the default `_m_a_k_e_f_i_l_e'. If - _m_a_k_e_f_i_l_e is `--', standard input is read. Multiple makefiles may + [1m-f [4m[22mmakefile[0m + Specify a makefile to read instead of the default `[4mmakefile[24m'. If + [4mmakefile[24m is `[1m-[22m', standard input is read. Multiple makefiles may be specified, and are read in the order specified. - --II _d_i_r_e_c_t_o_r_y + [1m-I [4m[22mdirectory[0m Specify a directory in which to search for makefiles and included makefiles. The system makefile directory (or directories, see - the --mm option) is automatically included as part of this list. + the [1m-m [22moption) is automatically included as part of this list. - --ii Ignore non-zero exit of shell commands in the makefile. Equiva- - lent to specifying `--' before each command line in the makefile. + [1m-i [22mIgnore non-zero exit of shell commands in the makefile. Equiva- + lent to specifying `[1m-[22m' before each command line in the makefile. - --JJ _p_r_i_v_a_t_e - This option should _n_o_t be specified by the user. + [1m-J [4m[22mprivate[0m + This option should [4mnot[24m be specified by the user. - When the _j option is in use in a recursive build, this option is + When the [4mj[24m option is in use in a recursive build, this option is passed by a make to child makes to allow all the make processes in the build to cooperate to avoid overloading the system. - --jj _m_a_x___j_o_b_s - Specify the maximum number of jobs that bbmmaakkee may have running at - any one time. The value is saved in _._M_A_K_E_._J_O_B_S. Turns compati- - bility mode off, unless the _B flag is also specified. When com- + [1m-j [4m[22mmax_jobs[0m + Specify the maximum number of jobs that [1mbmake [22mmay have running at + any one time. The value is saved in [4m.MAKE.JOBS[24m. Turns compati- + bility mode off, unless the [4mB[24m flag is also specified. When com- patibility mode is off, all commands associated with a target are executed in a single shell invocation as opposed to the tradi- tional one shell invocation per line. This can break traditional @@ -162,90 +162,90 @@ DDEESSCCRRIIPPTTIIOONN It is more efficient to correct the scripts rather than turn backwards compatibility on. - --kk Continue processing after errors are encountered, but only on + [1m-k [22mContinue processing after errors are encountered, but only on those targets that do not depend on the target whose creation caused the error. - --mm _d_i_r_e_c_t_o_r_y + [1m-m [4m[22mdirectory[0m Specify a directory in which to search for sys.mk and makefiles - included via the <_f_i_l_e>-style include statement. The --mm option + included via the <[4mfile[24m>-style include statement. The [1m-m [22moption can be used multiple times to form a search path. This path will override the default system include path: /usr/share/mk. Fur- thermore the system include path will be appended to the search - path used for "_f_i_l_e"-style include statements (see the --II + path used for "[4mfile[24m"-style include statements (see the [1m-I[0m option). - If a file or directory name in the --mm argument (or the + If a file or directory name in the [1m-m [22margument (or the MAKESYSPATH environment variable) starts with the string ".../" - then bbmmaakkee will search for the specified file or directory named + then [1mbmake [22mwill 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 file system. If the search is success- ful, then the resulting directory replaces the ".../" specifica- - tion in the --mm argument. If used, this feature allows bbmmaakkee to + tion in the [1m-m [22margument. If used, this feature allows [1mbmake [22mto easily search in the current source tree for customized sys.mk files (e.g., by using ".../mk/sys.mk" as an argument). - --nn Display the commands that would have been executed, but do not + [1m-n [22mDisplay the commands that would have been executed, but do not actually execute them unless the target depends on the .MAKE spe- cial source (see below). - --NN Display the commands which would have been executed, but do not + [1m-N [22mDisplay the commands which would have been executed, but do not actually execute any of them; useful for debugging top-level makefiles without descending into subdirectories. - --qq Do not execute any commands, but exit 0 if the specified targets + [1m-q [22mDo not execute any commands, but exit 0 if the specified targets are up-to-date and 1, otherwise. - --rr Do not use the built-in rules specified in the system makefile. + [1m-r [22mDo not use the built-in rules specified in the system makefile. - --ss Do not echo any commands as they are executed. Equivalent to - specifying `@@' before each command line in the makefile. + [1m-s [22mDo not echo any commands as they are executed. Equivalent to + specifying `[1m@[22m' before each command line in the makefile. - --TT _t_r_a_c_e_f_i_l_e - When used with the --jj flag, append a trace record to _t_r_a_c_e_f_i_l_e + [1m-T [4m[22mtracefile[0m + When used with the [1m-j [22mflag, append a trace record to [4mtracefile[0m for each job started and completed. - --tt Rather than re-building a target as specified in the makefile, + [1m-t [22mRather than re-building a target as specified in the makefile, create it or update its modification time to make it appear up- to-date. - --VV _v_a_r_i_a_b_l_e - Print the value of _v_a_r_i_a_b_l_e. Do not build any targets. Multiple + [1m-V [4m[22mvariable[0m + Print the value of [4mvariable[24m. Do not build any targets. Multiple instances of this option may be specified; the variables will be printed one per line, with a blank line for each null or unde- fined variable. The value printed is extracted from the global context after all makefiles have been read. By default, the raw variable contents (which may include additional unexpanded vari- - able references) are shown. If _v_a_r_i_a_b_l_e contains a `$' then the + able references) are shown. If [4mvariable[24m contains a `$' then the value will be recursively expanded to its complete resultant text before printing. The expanded value will also be printed if - _._M_A_K_E_._E_X_P_A_N_D___V_A_R_I_A_B_L_E_S is set to true and the --ddVV option has not + [4m.MAKE.EXPAND_VARIABLES[24m is set to true and the [1m-dV [22moption has not been used to override it. Note that loop-local and target-local variables, as well as values taken temporarily by global vari- ables during makefile processing, are not accessible via this - option. The --ddvv debug mode can be used to see these at the cost + option. The [1m-dv [22mdebug mode can be used to see these at the cost of generating substantial extraneous output. - --vv _v_a_r_i_a_b_l_e - Like --VV but the variable is always expanded to its complete + [1m-v [4m[22mvariable[0m + Like [1m-V [22mbut the variable is always expanded to its complete value. - --WW Treat any warnings during makefile parsing as errors. + [1m-W [22mTreat any warnings during makefile parsing as errors. - --ww Print entering and leaving directory messages, pre and post pro- + [1m-w [22mPrint entering and leaving directory messages, pre and post pro- cessing. - --XX Don't export variables passed on the command line to the environ- + [1m-X [22mDon't export variables passed on the command line to the environ- ment individually. Variables passed on the command line are - still exported via the _M_A_K_E_F_L_A_G_S environment variable. This + still exported via the [4mMAKEFLAGS[24m environment variable. This option may be useful on systems which have a small limit on the size of command arguments. - _v_a_r_i_a_b_l_e_=_v_a_l_u_e - Set the value of the variable _v_a_r_i_a_b_l_e to _v_a_l_u_e. Normally, all + [4mvariable=value[0m + Set the value of the variable [4mvariable[24m to [4mvalue[24m. Normally, all values passed on the command line are also exported to sub-makes - in the environment. The --XX flag disables this behavior. Vari- + in the environment. The [1m-X [22mflag disables this behavior. Vari- able assignments should follow options for POSIX compatibility but no ordering is enforced. @@ -257,28 +257,28 @@ DDEESSCCRRIIPPTTIIOONN them with a backslash (`\'). The trailing newline character and initial whitespace on the following line are compressed into a single space. -FFIILLEE DDEEPPEENNDDEENNCCYY SSPPEECCIIFFIICCAATTIIOONNSS +[1mFILE DEPENDENCY SPECIFICATIONS[0m Dependency lines consist of one or more targets, an operator, and zero or more sources. This creates a relationship where the targets ``depend'' on the sources and are usually created from them. The exact relationship between the target and the source is determined by the operator that sep- arates them. The three operators are as follows: - :: A target is considered out-of-date if its modification time is less + [1m: [22mA target is considered out-of-date if its modification time is less than those of any of its sources. Sources for a target accumulate over dependency lines when this operator is used. The target is - removed if bbmmaakkee is interrupted. + removed if [1mbmake [22mis interrupted. - !! Targets are always re-created, but not until all sources have been + [1m! [22mTargets are always re-created, but not until all sources have been examined and re-created as necessary. Sources for a target accumu- late over dependency lines when this operator is used. The target - is removed if bbmmaakkee is interrupted. + is removed if [1mbmake [22mis interrupted. - :::: If no sources are specified, the target is always re-created. Oth- + [1m:: [22mIf no sources are specified, the target is always re-created. Oth- erwise, a target is considered out-of-date if any of its sources has been modified more recently than the target. Sources for a target do not accumulate over dependency lines when this operator - is used. The target will not be removed if bbmmaakkee is interrupted. + is used. The target will not be removed if [1mbmake [22mis interrupted. Targets and sources may contain the shell wildcard values `?', `*', `[]', and `{}'. The values `?', `*', and `[]' may only be used as part of the @@ -287,37 +287,37 @@ FFIILLEE DDEEPPEENNDDEENNCCYY SSPPEEC existing files. Expansion is in directory order, not alphabetically as done in the shell. -SSHHEELLLL CCOOMMMMAANNDDSS +[1mSHELL COMMANDS[0m Each target may have associated with it one or more lines of shell com- mands, normally used to create the target. Each of the lines in this - script _m_u_s_t be preceded by a tab. (For historical reasons, spaces are + script [4mmust[24m be preceded by a tab. (For historical reasons, spaces are not accepted.) While targets can appear in many dependency lines if desired, by default only one of these rules may be followed by a creation - script. If the `::::' operator is used, however, all rules may include + script. If the `[1m::[22m' operator is used, however, all rules may include scripts and the scripts are executed in the order found. Each line is treated as a separate shell command, unless the end of line is escaped with a backslash (`\') in which case that line and the next are combined. If the first characters of the command are any combination - of `@@', `++', or `--', the command is treated specially. A `@@' causes the - command not to be echoed before it is executed. A `++' causes the command - to be executed even when --nn is given. This is similar to the effect of + of `[1m@[22m', `[1m+[22m', or `[1m-[22m', the command is treated specially. A `[1m@[22m' causes the + command not to be echoed before it is executed. A `[1m+[22m' causes the command + to be executed even when [1m-n [22mis given. This is similar to the effect of the .MAKE special source, except that the effect can be limited to a sin- - gle line of a script. A `--' in compatibility mode causes any non-zero + gle line of a script. A `[1m-[22m' in compatibility mode causes any non-zero exit status of the command line to be ignored. - When bbmmaakkee is run in jobs mode with --jj _m_a_x___j_o_b_s, the entire script for + When [1mbmake [22mis run in jobs mode with [1m-j [4m[22mmax_jobs[24m, the entire script for the target is fed to a single instance of the shell. In compatibility (non-jobs) mode, each command is run in a separate process. If the com- mand contains any shell meta characters (`#=|^(){};&<>*?[]:$`\\n') it - will be passed to the shell; otherwise bbmmaakkee will attempt direct execu- - tion. If a line starts with `--' and the shell has ErrCtl enabled then + will be passed to the shell; otherwise [1mbmake [22mwill attempt direct execu- + tion. If a line starts with `[1m-[22m' and the shell has ErrCtl enabled then failure of the command line will be ignored as in compatibility mode. - Otherwise `--' affects the entire job; the script will stop at the first + Otherwise `[1m-[22m' affects the entire job; the script will stop at the first command line that fails, but the target will not be deemed to have failed. - Makefiles should be written so that the mode of bbmmaakkee operation does not + Makefiles should be written so that the mode of [1mbmake [22moperation does not change their behavior. For example, any command which needs to use ``cd'' or ``chdir'' without potentially changing the directory for subse- quent commands should be put in parentheses so it executes in a subshell. @@ -334,35 +334,35 @@ SSHHEELLLL CCOOMMMMAANNDDSS (cd ${.CURDIR} && ${MAKE} $@); \ echo Back in `pwd` - Since bbmmaakkee will chdir(2) to `_._O_B_J_D_I_R' before executing any targets, each + Since [1mbmake [22mwill chdir(2) to `[4m.OBJDIR[24m' before executing any targets, each child process starts with that as its current working directory. -VVAARRIIAABBLLEE AASSSSIIGGNNMMEENNTTSS +[1mVARIABLE ASSIGNMENTS[0m Variables in make are much like variables in the shell, and, by tradi- tion, consist of all upper-case letters. - VVaarriiaabbllee aassssiiggnnmmeenntt mmooddiiffiieerrss + [1mVariable assignment modifiers[0m The five operators that can be used to assign values to variables are as follows: - == Assign the value to the variable. Any previous value is overrid- + [1m= [22mAssign the value to the variable. Any previous value is overrid- den. - ++== Append the value to the current value of the variable. + [1m+= [22mAppend the value to the current value of the variable. - ??== Assign the value to the variable if it is not already defined. + [1m?= [22mAssign the value to the variable if it is not already defined. - ::== Assign with expansion, i.e. expand the value before assigning it + [1m:= [22mAssign with expansion, i.e. expand the value before assigning it to the variable. Normally, expansion is not done until the vari- - able is referenced. _N_O_T_E: References to undefined variables are - _n_o_t expanded. This can cause problems when variable modifiers + able is referenced. [4mNOTE[24m: References to undefined variables are + [4mnot[24m expanded. This can cause problems when variable modifiers are used. - !!== Expand the value and pass it to the shell for execution and + [1m!= [22mExpand the value and pass it to the shell for execution and assign the result to the variable. Any newlines in the result are replaced with spaces. - Any white-space before the assigned _v_a_l_u_e is removed; if the value is + Any white-space before the assigned [4mvalue[24m is removed; if the value is being appended, a single space is inserted between the previous contents of the variable and the appended value. @@ -412,12 +412,12 @@ VVAARRIIAABBLLEE AASSSSIIGGNNMMEENNT ${b} contains ``${j} ${j} ${j}'' which expands to ``3 3 3'' since after the loop completes ${j} contains ``3''. - VVaarriiaabbllee ccllaasssseess + [1mVariable classes[0m The four different classes of variables (in order of increasing prece- dence) are: Environment variables - Variables defined as part of bbmmaakkee's environment. + Variables defined as part of [1mbmake[22m's environment. Global variables Variables defined in the makefile or in included makefiles. @@ -432,91 +432,91 @@ VVAARRIIAABBLLEE AASSSSIIGGNNMMEENNT target to target. It is not currently possible to define new local vari- ables. The seven local variables are as follows: - _._A_L_L_S_R_C The list of all sources for this target; also known as - `_>'. + [4m.ALLSRC[24m The list of all sources for this target; also known as + `[4m>[24m'. - _._A_R_C_H_I_V_E The name of the archive file; also known as `_!'. + [4m.ARCHIVE[24m The name of the archive file; also known as `[4m![24m'. - _._I_M_P_S_R_C In suffix-transformation rules, the name/path of the + [4m.IMPSRC[24m In suffix-transformation rules, the name/path of the source from which the target is to be transformed (the - ``implied'' source); also known as `_<'. It is not + ``implied'' source); also known as `[4m<[24m'. It is not defined in explicit rules. - _._M_E_M_B_E_R The name of the archive member; also known as `_%'. + [4m.MEMBER[24m The name of the archive member; also known as `[4m%[24m'. - _._O_O_D_A_T_E The list of sources for this target that were deemed out- - of-date; also known as `_?'. + [4m.OODATE[24m The list of sources for this target that were deemed out- + of-date; also known as `[4m?[24m'. - _._P_R_E_F_I_X The file prefix of the target, containing only the file + [4m.PREFIX[24m The file prefix of the target, containing only the file portion, no suffix or preceding directory components; - also known as `_*'. The suffix must be one of the known - suffixes declared with ..SSUUFFFFIIXXEESS or it will not be recog- + also known as `[4m*[24m'. The suffix must be one of the known + suffixes declared with [1m.SUFFIXES [22mor it will not be recog- nized. - _._T_A_R_G_E_T The name of the target; also known as `_@'. For compati- - bility with other makes this is an alias for ..AARRCCHHIIVVEE in + [4m.TARGET[24m The name of the target; also known as `[4m@[24m'. For compati- + bility with other makes this is an alias for [1m.ARCHIVE [22min archive member rules. - The shorter forms (`_>', `_!', `_<', `_%', `_?', `_*', and `_@') are permitted + The shorter forms (`[4m>[24m', `[4m![24m', `[4m<[24m', `[4m%[24m', `[4m?[24m', `[4m*[24m', and `[4m@[24m') are permitted for backward compatibility with historical makefiles and legacy POSIX make and are not recommended. Variants of these variables with the punctuation followed immediately by - `D' or `F', e.g. `_$_(_@_D_)', are legacy forms equivalent to using the `:H' + `D' or `F', e.g. `[4m$(@D)[24m', are legacy forms equivalent to using the `:H' and `:T' modifiers. These forms are accepted for compatibility with AT&T System V UNIX makefiles and POSIX but are not recommended. Four of the local variables may be used in sources on dependency lines because they expand to the proper value for each target on the line. - These variables are `_._T_A_R_G_E_T', `_._P_R_E_F_I_X', `_._A_R_C_H_I_V_E', and `_._M_E_M_B_E_R'. + These variables are `[4m.TARGET[24m', `[4m.PREFIX[24m', `[4m.ARCHIVE[24m', and `[4m.MEMBER[24m'. - AAddddiittiioonnaall bbuuiilltt--iinn vvaarriiaabblleess - In addition, bbmmaakkee sets or knows about the following variables: + [1mAdditional built-in variables[0m + In addition, [1mbmake [22msets or knows about the following variables: - _$ A single dollar sign `$', i.e. `$$' expands to a single + [4m$[24m A single dollar sign `$', i.e. `$$' expands to a single dollar sign. - _._A_L_L_T_A_R_G_E_T_S The list of all targets encountered in the Makefile. If + [4m.ALLTARGETS[24m The list of all targets encountered in the Makefile. If evaluated during Makefile parsing, lists only those tar- gets encountered thus far. - _._C_U_R_D_I_R A path to the directory where bbmmaakkee was executed. Refer + [4m.CURDIR[24m A path to the directory where [1mbmake [22mwas executed. Refer to the description of `PWD' for more details. - _._I_N_C_L_U_D_E_D_F_R_O_M_D_I_R + [4m.INCLUDEDFROMDIR[0m The directory of the file this Makefile was included from. - _._I_N_C_L_U_D_E_D_F_R_O_M_F_I_L_E + [4m.INCLUDEDFROMFILE[0m The filename of the file this Makefile was included from. - MAKE The name that bbmmaakkee was executed with (_a_r_g_v_[_0_]). For - compatibility bbmmaakkee also sets _._M_A_K_E with the same value. + MAKE The name that [1mbmake [22mwas executed with ([4margv[0][24m). For + compatibility [1mbmake [22malso sets [4m.MAKE[24m with the same value. The preferred variable to use is the environment variable MAKE because it is more compatible with other versions of - bbmmaakkee and cannot be confused with the special target with + [1mbmake [22mand cannot be confused with the special target with the same name. - _._M_A_K_E_._D_E_P_E_N_D_F_I_L_E - Names the makefile (default `_._d_e_p_e_n_d') from which gener- + [4m.MAKE.DEPENDFILE[0m + Names the makefile (default `[4m.depend[24m') from which gener- ated dependencies are read. - _._M_A_K_E_._E_X_P_A_N_D___V_A_R_I_A_B_L_E_S - A boolean that controls the default behavior of the --VV - option. If true, variable values printed with --VV are + [4m.MAKE.EXPAND_VARIABLES[0m + A boolean that controls the default behavior of the [1m-V[0m + option. If true, variable values printed with [1m-V [22mare fully expanded; if false, the raw variable contents (which may include additional unexpanded variable refer- ences) are shown. - _._M_A_K_E_._E_X_P_O_R_T_E_D The list of variables exported by bbmmaakkee. + [4m.MAKE.EXPORTED[24m The list of variables exported by [1mbmake[22m. - _._M_A_K_E_._J_O_B_S The argument to the --jj option. + [4m.MAKE.JOBS[24m The argument to the [1m-j [22moption. - _._M_A_K_E_._J_O_B_._P_R_E_F_I_X - If bbmmaakkee is run with _j then output for each target is + [4m.MAKE.JOB.PREFIX[0m + If [1mbmake [22mis run with [4mj[24m then output for each target is prefixed with a token `--- target ---' the first part of - which can be controlled via _._M_A_K_E_._J_O_B_._P_R_E_F_I_X. If - _._M_A_K_E_._J_O_B_._P_R_E_F_I_X is empty, no token is printed. + which can be controlled via [4m.MAKE.JOB.PREFIX[24m. If + [4m.MAKE.JOB.PREFIX[24m is empty, no token is printed. For example: .MAKE.JOB.PREFIX=${.newline}---${.MAKE:T}[${.MAKE.PID}] would produce tokens like `---make[1234] target ---' mak- @@ -524,156 +524,156 @@ VVAARRIIAABBLLEE AASSSSIIGGNNMMEENNT achieved. MAKEFLAGS The environment variable `MAKEFLAGS' may contain anything - that may be specified on bbmmaakkee's command line. Anything - specified on bbmmaakkee's command line is appended to the + that may be specified on [1mbmake[22m's command line. Anything + specified on [1mbmake[22m's command line is appended to the `MAKEFLAGS' variable which is then entered into the envi- - ronment for all programs which bbmmaakkee executes. + ronment for all programs which [1mbmake [22mexecutes. - _._M_A_K_E_._L_E_V_E_L The recursion depth of bbmmaakkee. The initial instance of - bbmmaakkee will be 0, and an incremented value is put into the + [4m.MAKE.LEVEL[24m The recursion depth of [1mbmake[22m. The initial instance of + [1mbmake [22mwill be 0, and an incremented value is put into the environment to be seen by the next generation. This allows tests like: .if ${.MAKE.LEVEL} == 0 to protect things which should only be evaluated in the initial - instance of bbmmaakkee. + instance of [1mbmake[22m. - _._M_A_K_E_._M_A_K_E_F_I_L_E___P_R_E_F_E_R_E_N_C_E - The ordered list of makefile names (default `_m_a_k_e_f_i_l_e', - `_M_a_k_e_f_i_l_e') that bbmmaakkee will look for. + [4m.MAKE.MAKEFILE_PREFERENCE[0m + The ordered list of makefile names (default `[4mmakefile[24m', + `[4mMakefile[24m') that [1mbmake [22mwill look for. - _._M_A_K_E_._M_A_K_E_F_I_L_E_S - The list of makefiles read by bbmmaakkee, which is useful for + [4m.MAKE.MAKEFILES[0m + The list of makefiles read by [1mbmake[22m, which is useful for tracking dependencies. Each makefile is recorded only once, regardless of the number of times read. - _._M_A_K_E_._M_O_D_E Processed after reading all makefiles. Can affect the - mode that bbmmaakkee runs in. It can contain a number of key- + [4m.MAKE.MODE[24m Processed after reading all makefiles. Can affect the + mode that [1mbmake [22mruns in. It can contain a number of key- words: - _c_o_m_p_a_t Like --BB, puts bbmmaakkee into "compat" + [4mcompat[24m Like [1m-B[22m, puts [1mbmake [22minto "compat" mode. - _m_e_t_a Puts bbmmaakkee into "meta" mode, where + [4mmeta[24m Puts [1mbmake [22minto "meta" mode, where meta files are created for each tar- get to capture the command run, the output generated and if filemon(4) is available, the system calls which - are of interest to bbmmaakkee. The cap- + are of interest to [1mbmake[22m. The cap- tured output can be very useful when diagnosing errors. - _c_u_r_d_i_r_O_k_= _b_f Normally bbmmaakkee will not create .meta - files in `_._C_U_R_D_I_R'. This can be - overridden by setting _b_f to a value + [4mcurdirOk=[24m [4mbf[24m Normally [1mbmake [22mwill not create .meta + files in `[4m.CURDIR[24m'. This can be + overridden by setting [4mbf[24m to a value which represents True. - _m_i_s_s_i_n_g_-_m_e_t_a_= _b_f If _b_f is True, then a missing .meta + [4mmissing-meta=[24m [4mbf[24m If [4mbf[24m is True, then a missing .meta file makes the target out-of-date. - _m_i_s_s_i_n_g_-_f_i_l_e_m_o_n_= _b_f If _b_f is True, then missing filemon + [4mmissing-filemon=[24m [4mbf[24m If [4mbf[24m is True, then missing filemon data makes the target out-of-date. - _n_o_f_i_l_e_m_o_n Do not use filemon(4). + [4mnofilemon[24m Do not use filemon(4). - _e_n_v For debugging, it can be useful to + [4menv[24m For debugging, it can be useful to include the environment in the .meta file. - _v_e_r_b_o_s_e If in "meta" mode, print a clue + [4mverbose[24m If in "meta" mode, print a clue about the target being built. This is useful if the build is otherwise running silently. The message printed the value of: - _._M_A_K_E_._M_E_T_A_._P_R_E_F_I_X. + [4m.MAKE.META.PREFIX[24m. - _i_g_n_o_r_e_-_c_m_d Some makefiles have commands which + [4mignore-cmd[24m Some makefiles have commands which are simply not stable. This keyword causes them to be ignored for deter- mining whether a target is out of date in "meta" mode. See also - ..NNOOMMEETTAA__CCMMPP. + [1m.NOMETA_CMP[22m. - _s_i_l_e_n_t_= _b_f If _b_f is True, when a .meta file is - created, mark the target ..SSIILLEENNTT. + [4msilent=[24m [4mbf[24m If [4mbf[24m is True, when a .meta file is + created, mark the target [1m.SILENT[22m. - _._M_A_K_E_._M_E_T_A_._B_A_I_L_I_W_I_C_K + [4m.MAKE.META.BAILIWICK[0m In "meta" mode, provides a list of prefixes which match - the directories controlled by bbmmaakkee. If a file that was - generated outside of _._O_B_J_D_I_R but within said bailiwick is + the directories controlled by [1mbmake[22m. If a file that was + generated outside of [4m.OBJDIR[24m but within said bailiwick is missing, the current target is considered out-of-date. - _._M_A_K_E_._M_E_T_A_._C_R_E_A_T_E_D + [4m.MAKE.META.CREATED[0m In "meta" mode, this variable contains a list of all the meta files updated. If not empty, it can be used to - trigger processing of _._M_A_K_E_._M_E_T_A_._F_I_L_E_S. + trigger processing of [4m.MAKE.META.FILES[24m. - _._M_A_K_E_._M_E_T_A_._F_I_L_E_S + [4m.MAKE.META.FILES[0m In "meta" mode, this variable contains a list of all the meta files used (updated or not). This list can be used to process the meta files to extract dependency informa- tion. - _._M_A_K_E_._M_E_T_A_._I_G_N_O_R_E___P_A_T_H_S + [4m.MAKE.META.IGNORE_PATHS[0m Provides a list of path prefixes that should be ignored; because the contents are expected to change over time. - The default list includes: `_/_d_e_v _/_e_t_c _/_p_r_o_c _/_t_m_p _/_v_a_r_/_r_u_n - _/_v_a_r_/_t_m_p' + The default list includes: `[4m/dev[24m [4m/etc[24m [4m/proc[24m [4m/tmp[24m [4m/var/run[0m + [4m/var/tmp[24m' - _._M_A_K_E_._M_E_T_A_._I_G_N_O_R_E___P_A_T_T_E_R_N_S + [4m.MAKE.META.IGNORE_PATTERNS[0m Provides a list of patterns to match against pathnames. Ignore any that match. - _._M_A_K_E_._M_E_T_A_._I_G_N_O_R_E___F_I_L_T_E_R + [4m.MAKE.META.IGNORE_FILTER[0m Provides a list of variable modifiers to apply to each pathname. Ignore if the expansion is an empty string. - _._M_A_K_E_._M_E_T_A_._P_R_E_F_I_X + [4m.MAKE.META.PREFIX[0m Defines the message printed for each meta file updated in "meta verbose" mode. The default value is: Building ${.TARGET:H:tA}/${.TARGET:T} - _._M_A_K_E_O_V_E_R_R_I_D_E_S This variable is used to record the names of variables + [4m.MAKEOVERRIDES[24m This variable is used to record the names of variables assigned to on the command line, so that they may be exported as part of `MAKEFLAGS'. This behavior can be - disabled by assigning an empty value to `_._M_A_K_E_O_V_E_R_R_I_D_E_S' + disabled by assigning an empty value to `[4m.MAKEOVERRIDES[24m' within a makefile. Extra variables can be exported from - a makefile by appending their names to `_._M_A_K_E_O_V_E_R_R_I_D_E_S'. - `MAKEFLAGS' is re-exported whenever `_._M_A_K_E_O_V_E_R_R_I_D_E_S' is + a makefile by appending their names to `[4m.MAKEOVERRIDES[24m'. + `MAKEFLAGS' is re-exported whenever `[4m.MAKEOVERRIDES[24m' is modified. - _._M_A_K_E_._P_A_T_H___F_I_L_E_M_O_N - If bbmmaakkee was built with filemon(4) support, this is set + [4m.MAKE.PATH_FILEMON[0m + If [1mbmake [22mwas built with filemon(4) support, this is set to the path of the device node. This allows makefiles to test for this support. - _._M_A_K_E_._P_I_D The process-id of bbmmaakkee. + [4m.MAKE.PID[24m The process-id of [1mbmake[22m. - _._M_A_K_E_._P_P_I_D The parent process-id of bbmmaakkee. + [4m.MAKE.PPID[24m The parent process-id of [1mbmake[22m. - _._M_A_K_E_._S_A_V_E___D_O_L_L_A_R_S + [4m.MAKE.SAVE_DOLLARS[0m value should be a boolean that controls whether `$$' are preserved when doing `:=' assignments. The default is false, for backwards compatibility. Set to true for com- patability with other makes. If set to false, `$$' becomes `$' per normal evaluation rules. - _M_A_K_E___P_R_I_N_T___V_A_R___O_N___E_R_R_O_R - When bbmmaakkee stops due to an error, it sets `_._E_R_R_O_R___T_A_R_G_E_T' - to the name of the target that failed, `_._E_R_R_O_R___C_M_D' to + [4mMAKE_PRINT_VAR_ON_ERROR[0m + When [1mbmake [22mstops due to an error, it sets `[4m.ERROR_TARGET[24m' + to the name of the target that failed, `[4m.ERROR_CMD[24m' to the commands of the failed target, and in "meta" mode, it - also sets `_._E_R_R_O_R___C_W_D' to the getcwd(3), and - `_._E_R_R_O_R___M_E_T_A___F_I_L_E' to the path of the meta file (if any) + also sets `[4m.ERROR_CWD[24m' to the getcwd(3), and + `[4m.ERROR_META_FILE[24m' to the path of the meta file (if any) describing the failed target. It then prints its name - and the value of `_._C_U_R_D_I_R' as well as the value of any - variables named in `_M_A_K_E___P_R_I_N_T___V_A_R___O_N___E_R_R_O_R'. + and the value of `[4m.CURDIR[24m' as well as the value of any + variables named in `[4mMAKE_PRINT_VAR_ON_ERROR[24m'. - _._n_e_w_l_i_n_e This variable is simply assigned a newline character as - its value. This allows expansions using the ::@@ modifier + [4m.newline[24m This variable is simply assigned a newline character as + its value. This allows expansions using the [1m:@ [22mmodifier to put a newline between iterations of the loop rather than a space. For example, the printing of - `_M_A_K_E___P_R_I_N_T___V_A_R___O_N___E_R_R_O_R' could be done as + `[4mMAKE_PRINT_VAR_ON_ERROR[24m' could be done as ${MAKE_PRINT_VAR_ON_ERROR:@v@$v='${$v}'${.newline}@}. - _._O_B_J_D_I_R A path to the directory where the targets are built. Its + [4m.OBJDIR[24m A path to the directory where the targets are built. Its value is determined by trying to chdir(2) to the follow- ing directories in order and using the first match: @@ -687,11 +687,11 @@ VVAARRIIAABBLLEE AASSSSIIGGNNMMEENNT (Only if `MAKEOBJDIR' is set in the environment or on the command line.) - 3. ${.CURDIR}_/_o_b_j_.${MACHINE} + 3. ${.CURDIR}[4m/obj.[24m${MACHINE} - 4. ${.CURDIR}_/_o_b_j + 4. ${.CURDIR}[4m/obj[0m - 5. _/_u_s_r_/_o_b_j_/${.CURDIR} + 5. [4m/usr/obj/[24m${.CURDIR} 6. ${.CURDIR} @@ -701,43 +701,43 @@ VVAARRIIAABBLLEE AASSSSIIGGNNMMEENNT may be used. This is especially useful with `MAKEOBJDIR'. - `_._O_B_J_D_I_R' may be modified in the makefile via the special - target `..OOBBJJDDIIRR'. In all cases, bbmmaakkee will chdir(2) to - the specified directory if it exists, and set `_._O_B_J_D_I_R' + `[4m.OBJDIR[24m' may be modified in the makefile via the special + target `[1m.OBJDIR[22m'. In all cases, [1mbmake [22mwill chdir(2) to + the specified directory if it exists, and set `[4m.OBJDIR[24m' and `PWD' to that directory before executing any targets. - _._P_A_R_S_E_D_I_R A path to the directory of the current `_M_a_k_e_f_i_l_e' being + [4m.PARSEDIR[24m A path to the directory of the current `[4mMakefile[24m' being parsed. - _._P_A_R_S_E_F_I_L_E The basename of the current `_M_a_k_e_f_i_l_e' being parsed. - This variable and `_._P_A_R_S_E_D_I_R' are both set only while the - `_M_a_k_e_f_i_l_e_s' are being parsed. If you want to retain + [4m.PARSEFILE[24m The basename of the current `[4mMakefile[24m' being parsed. + This variable and `[4m.PARSEDIR[24m' are both set only while the + `[4mMakefiles[24m' are being parsed. If you want to retain their current values, assign them to a variable using - assignment with expansion: (`::=='). + assignment with expansion: (`[1m:=[22m'). - _._P_A_T_H A variable that represents the list of directories that - bbmmaakkee will search for files. The search list should be - updated using the target `_._P_A_T_H' rather than the vari- + [4m.PATH[24m A variable that represents the list of directories that + [1mbmake [22mwill search for files. The search list should be + updated using the target `[4m.PATH[24m' rather than the vari- able. - PWD Alternate path to the current directory. bbmmaakkee normally - sets `_._C_U_R_D_I_R' to the canonical path given by getcwd(3). + PWD Alternate path to the current directory. [1mbmake [22mnormally + sets `[4m.CURDIR[24m' to the canonical path given by getcwd(3). However, if the environment variable `PWD' is set and - gives a path to the current directory, then bbmmaakkee sets - `_._C_U_R_D_I_R' to the value of `PWD' instead. This behavior + gives a path to the current directory, then [1mbmake [22msets + `[4m.CURDIR[24m' to the value of `PWD' instead. This behavior is disabled if `MAKEOBJDIRPREFIX' is set or `MAKEOBJDIR' *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803020153.w221rpD1043143>