xref: /freebsd/contrib/bmake/ChangeLog (revision 1d3f2ddc32fc37e4835aa5a51eabc8696c1e8114)
1*1d3f2ddcSSimon J. Gerraty2022-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
2*1d3f2ddcSSimon J. Gerraty
3*1d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220330
4*1d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
5*1d3f2ddcSSimon J. Gerraty	o var.c: fix spacing, and a typo in a test
6*1d3f2ddcSSimon J. Gerraty
7*1d3f2ddcSSimon J. Gerraty2022-03-26  Simon J Gerraty  <sjg@beast.crufty.net>
8*1d3f2ddcSSimon J. Gerraty
9*1d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220326
10*1d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
11*1d3f2ddcSSimon J. Gerraty	o parse.c: try to include 'posix.mk' the first time
12*1d3f2ddcSSimon J. Gerraty	.POSIX: is encountered, to allow for beter POSIX compliance.
13*1d3f2ddcSSimon J. Gerraty	o var.c: make debug logs more readable
14*1d3f2ddcSSimon J. Gerraty	prefer 'long long' over 'long' on 32-bit C99 platforms
15*1d3f2ddcSSimon J. Gerraty	fix crash on .undef of an environment variable
16*1d3f2ddcSSimon J. Gerraty
17*1d3f2ddcSSimon J. Gerraty2022-03-03  Simon J Gerraty  <sjg@beast.crufty.net>
18*1d3f2ddcSSimon J. Gerraty
19*1d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220303
20*1d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
21*1d3f2ddcSSimon J. Gerraty	o tell meta mode unit tests not to expect filemon
22*1d3f2ddcSSimon J. Gerraty	o cond.c: make debug logging for comparisons less technical
23*1d3f2ddcSSimon J. Gerraty	o lst.c: fix mem leak in Lst_Remove
24*1d3f2ddcSSimon J. Gerraty	o str.c: make code for string matching syntactically more consistent
25*1d3f2ddcSSimon J. Gerraty	o var.c: simplify ParseModifier_Match
26*1d3f2ddcSSimon J. Gerraty
27*1d3f2ddcSSimon J. Gerraty2022-02-14  Simon J Gerraty  <sjg@beast.crufty.net>
28*1d3f2ddcSSimon J. Gerraty
29*1d3f2ddcSSimon J. Gerraty	* unit-tests/Makefile: control MAKESYSPATH for deptgt-phony
30*1d3f2ddcSSimon J. Gerraty
31*1d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220214
32*1d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
33*1d3f2ddcSSimon J. Gerraty	o cond.c: simplify control flow in CondParser_Comparison
34*1d3f2ddcSSimon J. Gerraty	o job.c: fix echoing of command with '-' in silent target in jobs mode
35*1d3f2ddcSSimon J. Gerraty	o main.c: prefix the warning about read-only .OBJDIR with a colon
36*1d3f2ddcSSimon J. Gerraty	o parse.c: remove redundant conditions
37*1d3f2ddcSSimon J. Gerraty	o var.c: simplify control flow in ModifyWord_SysVSubst
38*1d3f2ddcSSimon J. Gerraty
39a6f0e10bSSimon J. Gerraty2022-02-08  Simon J Gerraty  <sjg@beast.crufty.net>
40a6f0e10bSSimon J. Gerraty
41a6f0e10bSSimon J. Gerraty	* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
42a6f0e10bSSimon J. Gerraty	is any chance we have dash as .SHELL
43a6f0e10bSSimon J. Gerraty
44a6f0e10bSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220208
45a6f0e10bSSimon J. Gerraty	Merge with NetBSD make, pick up
46a6f0e10bSSimon J. Gerraty	o more unit tests
47a6f0e10bSSimon J. Gerraty	o meta.c: use a variable to hold command line to be filtered
48a6f0e10bSSimon J. Gerraty	to avoid any side effects from content of command line.
49a6f0e10bSSimon J. Gerraty
509f45a3c8SSimon J. Gerraty2022-02-04  Simon J Gerraty  <sjg@beast.crufty.net>
519f45a3c8SSimon J. Gerraty
529f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220204
539f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
549f45a3c8SSimon J. Gerraty	o use unsigned consistently for line numbers, avoid the need for %z
559f45a3c8SSimon J. Gerraty	o parse.c: do not step off end of input in Parse_IsVar
569f45a3c8SSimon J. Gerraty	when checking for target local variable assignments
579f45a3c8SSimon J. Gerraty
589f45a3c8SSimon J. Gerraty2022-02-02  Simon J Gerraty  <sjg@beast.crufty.net>
599f45a3c8SSimon J. Gerraty
609f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220202
619f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
629f45a3c8SSimon J. Gerraty	o remove redundant declaration of HashIter_Init
639f45a3c8SSimon J. Gerraty	o make DEBUG0 simpler
649f45a3c8SSimon J. Gerraty
659f45a3c8SSimon J. Gerraty2022-01-30  Simon J Gerraty  <sjg@beast.crufty.net>
669f45a3c8SSimon J. Gerraty
679f45a3c8SSimon J. Gerraty	* cast gn->lineno to avoid %z
689f45a3c8SSimon J. Gerraty
699f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220130
709f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
719f45a3c8SSimon J. Gerraty	o more unit tests
729f45a3c8SSimon J. Gerraty	o make GNode lineno unsigned to please lint
739f45a3c8SSimon J. Gerraty	o print location of recursive variable references in commands
749f45a3c8SSimon J. Gerraty	o print "stack trace" (makefile includes) on fatal errors
759f45a3c8SSimon J. Gerraty	o make.1: refine documentation for target local assignments
769f45a3c8SSimon J. Gerraty
779f45a3c8SSimon J. Gerraty2022-01-28  Simon J Gerraty  <sjg@beast.crufty.net>
789f45a3c8SSimon J. Gerraty
799f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220128
809f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
819f45a3c8SSimon J. Gerraty	o inline functions called only once
829f45a3c8SSimon J. Gerraty	o for.c: clean up AddEscape for building the body of a .for loop
839f45a3c8SSimon J. Gerraty	o hash.c: merge duplicate code for finding an entry in a hash table
849f45a3c8SSimon J. Gerraty	replace HashEntry_KeyEquals with strncmp
859f45a3c8SSimon J. Gerraty	o make.1: document quirks of target local variable assignments.
869f45a3c8SSimon J. Gerraty	o parse.c: cleanup white-space
879f45a3c8SSimon J. Gerraty
889f45a3c8SSimon J. Gerraty2022-01-26  Simon J Gerraty  <sjg@beast.crufty.net>
899f45a3c8SSimon J. Gerraty
909f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220126
919f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
929f45a3c8SSimon J. Gerraty	o allow setting target local variables
939f45a3c8SSimon J. Gerraty	o more unit tests
949f45a3c8SSimon J. Gerraty	o add missing newline after "cannot continue" message
959f45a3c8SSimon J. Gerraty	o meta.c: clean up eat_dots
969f45a3c8SSimon J. Gerraty	o parse.c: fix filename in warning about duplicate script
979f45a3c8SSimon J. Gerraty	o var.c: when expanding nested variables, check simple things first
989f45a3c8SSimon J. Gerraty
999f45a3c8SSimon J. Gerraty2022-01-16  Simon J Gerraty  <sjg@beast.crufty.net>
1009f45a3c8SSimon J. Gerraty
1019f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220116
1029f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
1039f45a3c8SSimon J. Gerraty	o fix for unit-tests/varname-makeflags on non-BSD systems
1049f45a3c8SSimon J. Gerraty	o use Var_Exists rather than Var_Value where appropriate
1059f45a3c8SSimon J. Gerraty	o remove unnecessary functions for expanding variable names
1069f45a3c8SSimon J. Gerraty	o cond.c: inline EvalBare
1079f45a3c8SSimon J. Gerraty	o main.c: lint cleanup
1089f45a3c8SSimon J. Gerraty	o parse.c: condense code in Parse_IsVar
1099f45a3c8SSimon J. Gerraty	use islower for parsing directives (none have upper case)
1109f45a3c8SSimon J. Gerraty
1119f45a3c8SSimon J. Gerraty2022-01-12  Simon J Gerraty  <sjg@beast.crufty.net>
1129f45a3c8SSimon J. Gerraty
1139f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220112
1149f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
1159f45a3c8SSimon J. Gerraty	o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before
1169f45a3c8SSimon J. Gerraty	comparion, rarely needed but useful when it is.
1179f45a3c8SSimon J. Gerraty
1189f45a3c8SSimon J. Gerraty2022-01-10  Simon J Gerraty  <sjg@beast.crufty.net>
1199f45a3c8SSimon J. Gerraty
1209f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220110
1219f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
1229f45a3c8SSimon J. Gerraty	o inline Buf_Clear
1239f45a3c8SSimon J. Gerraty	o remove redundant braces
1249f45a3c8SSimon J. Gerraty	o rename and inline Targ_Precious
1259f45a3c8SSimon J. Gerraty	o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf
1269f45a3c8SSimon J. Gerraty	o for.c: clean up handling of .for loops
1279f45a3c8SSimon J. Gerraty	fix reported line numbers of continuation lines
1289f45a3c8SSimon J. Gerraty	add details about .for loop variables to stack traces
1299f45a3c8SSimon J. Gerraty	o job.c: reduce code for initializing error handling in shell
1309f45a3c8SSimon J. Gerraty	o main.c: in Cmd_Exec, return error message instead of format string
1319f45a3c8SSimon J. Gerraty	have as few statements as possible between va_start and va_end
1329f45a3c8SSimon J. Gerraty	add debug logging for capturing the output of external commands
1339f45a3c8SSimon J. Gerraty	o make.c: use consistent variable names for varargs
1349f45a3c8SSimon J. Gerraty	o make_malloc.c: remove duplicate code from bmake_strdup
1359f45a3c8SSimon J. Gerraty	o parse.c: add missing printflike annotations
1369f45a3c8SSimon J. Gerraty	remove redundant lines from stack traces
1379f45a3c8SSimon J. Gerraty	fix stack traces in -dp mode
1389f45a3c8SSimon J. Gerraty	reduce confusing code in ParseForLoop
1399f45a3c8SSimon J. Gerraty	fix line number in debug log after returning from a file
1409f45a3c8SSimon J. Gerraty	rename IFile and its fields to match their actual content
1419f45a3c8SSimon J. Gerraty	clean up ParseDependencySources
1429f45a3c8SSimon J. Gerraty	o var.c: shorten ApplyModifier_Assign
1439f45a3c8SSimon J. Gerraty	rename is_shell_metachar, fix character conversion warning
1449f45a3c8SSimon J. Gerraty	merge calls to ApplyModifier_Time
1459f45a3c8SSimon J. Gerraty	merge duplicate code for modifiers 'gmtime' and 'localtime'
1469f45a3c8SSimon J. Gerraty
1479f45a3c8SSimon J. Gerraty2022-01-04  Simon J Gerraty  <sjg@beast.crufty.net>
1489f45a3c8SSimon J. Gerraty
1499f45a3c8SSimon J. Gerraty	* parse.c: loadfile restore extra byte in buffer.
1509f45a3c8SSimon J. Gerraty
1519f45a3c8SSimon J. Gerraty2022-01-01  Simon J Gerraty  <sjg@beast.crufty.net>
1529f45a3c8SSimon J. Gerraty
1539f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220101
1549f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
1559f45a3c8SSimon J. Gerraty	o more unit-tests
1569f45a3c8SSimon J. Gerraty	o remove unnecessary words from command line options in CmdOpts
1579f45a3c8SSimon J. Gerraty	o rename eunlink to unlink_file
1589f45a3c8SSimon J. Gerraty	o cond.c: make ParseWord in condition parser simpler
1599f45a3c8SSimon J. Gerraty	internally return false for irrelevant leaves in conditions
1609f45a3c8SSimon J. Gerraty	replace table for function lookup in conditions with simple code
1619f45a3c8SSimon J. Gerraty	merge duplicate types CondEvalResult and CondResult
1629f45a3c8SSimon J. Gerraty	o for.c: clean up handling of .for loops and .include directives
1639f45a3c8SSimon J. Gerraty	o main.c: constify cached_realpath
1649f45a3c8SSimon J. Gerraty	clean up Cmd_Exec
1659f45a3c8SSimon J. Gerraty	o parse.c: sync API documentation
1669f45a3c8SSimon J. Gerraty	fix error message when reading more than 1 GB from stdin
1679f45a3c8SSimon J. Gerraty	clean up parsing of makefiles
1689f45a3c8SSimon J. Gerraty	fix line number in error message about open conditionals
1699f45a3c8SSimon J. Gerraty	unexport types VarAssignOp and VarAssign
1709f45a3c8SSimon J. Gerraty	clean up function names
1719f45a3c8SSimon J. Gerraty	remove redundant parameters in dependency parsing functions
1729f45a3c8SSimon J. Gerraty	reduce scope of the list of wildcard target names
1739f45a3c8SSimon J. Gerraty	extract OP_NOTARGET into separate function
1749f45a3c8SSimon J. Gerraty	clean up variable names for parsing dependency lines
1759f45a3c8SSimon J. Gerraty	make debug logging a bit more human-friendly
1769f45a3c8SSimon J. Gerraty	o var.c: condense code in ApplyModifier_Assign
1779f45a3c8SSimon J. Gerraty
1789f45a3c8SSimon J. Gerraty2021-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
1799f45a3c8SSimon J. Gerraty
1809f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211221
1819f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
1829f45a3c8SSimon J. Gerraty	o more unit-tests
1839f45a3c8SSimon J. Gerraty	o style cleanup
1849f45a3c8SSimon J. Gerraty	o in CLEANUP mode, free interned strings at the very end
1859f45a3c8SSimon J. Gerraty	o fix memory leak for filenames in .for loops
1869f45a3c8SSimon J. Gerraty	o buf.c: avoid memory leak
1879f45a3c8SSimon J. Gerraty	o cond.c: condense CondParser_ComparisonOp
1889f45a3c8SSimon J. Gerraty	o hash.c: change return type of HashTable_Set to void
1899f45a3c8SSimon J. Gerraty	o job.c: change return type of Compat_RunCommand from int to bool
1909f45a3c8SSimon J. Gerraty	o main.c: remove bmake_free
1919f45a3c8SSimon J. Gerraty	o parse.c: condense repetetive code in ParseDirective
1929f45a3c8SSimon J. Gerraty	remove dead code for handling traditional include directives
1939f45a3c8SSimon J. Gerraty	clean up parsing of variable assignments
1949f45a3c8SSimon J. Gerraty	remove unreachable code for parsing the dependency operator
1959f45a3c8SSimon J. Gerraty	clean up loading of files
1969f45a3c8SSimon J. Gerraty	fix memory leak in IncludeFile
1979f45a3c8SSimon J. Gerraty	o var.c: fix memory leak when parsing a variable name
1989f45a3c8SSimon J. Gerraty	fix memory leak from ${.SUFFIXES}
1999f45a3c8SSimon J. Gerraty	reduce memory allocation in modifier ':?' and ':C'
2009f45a3c8SSimon J. Gerraty	condense RegexReplace for the modifier ':C' and avoid strlen
2019f45a3c8SSimon J. Gerraty	merge duplicate code for memory handling in Var_Parse
2029f45a3c8SSimon J. Gerraty	distinguish between short-lived and environment variables
2039f45a3c8SSimon J. Gerraty	rename VarFreeEnv to VarFreeShortLived
2049f45a3c8SSimon J. Gerraty
20512904384SSimon J. Gerraty2021-12-15  Simon J Gerraty  <sjg@beast.crufty.net>
20612904384SSimon J. Gerraty
20712904384SSimon J. Gerraty	* cond.c: fix mem leak in CondParser_Leaf
20812904384SSimon J. Gerraty
20912904384SSimon J. Gerraty2021-12-12  Simon J Gerraty  <sjg@beast.crufty.net>
21012904384SSimon J. Gerraty
21112904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211212
21212904384SSimon J. Gerraty	Merge with NetBSD make, pick up
21312904384SSimon J. Gerraty	o rename Parse_SetInput to Parse_PushInput
21412904384SSimon J. Gerraty	o remove remove period from end of error messages and warnings
21512904384SSimon J. Gerraty	to be more consistent
21612904384SSimon J. Gerraty	o arch.c: use simpler memory management for parsing archive members
21712904384SSimon J. Gerraty	o cond.c: rework and reduce recursion
21812904384SSimon J. Gerraty	o for.c: rename some functions to better reflect purpose
21912904384SSimon J. Gerraty	o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string.
22012904384SSimon J. Gerraty	o var.c: in parse errors, mark whitespace more clearly
22112904384SSimon J. Gerraty	inline ParseEmptyArg into CondParser_FuncCallEmpty
22212904384SSimon J. Gerraty	minimize calls to LazyBuf_Get in ParseVarnameLong
22312904384SSimon J. Gerraty	treat .SUFFIXES as a read-only variable
22412904384SSimon J. Gerraty
22512904384SSimon J. Gerraty2021-12-07  Simon J Gerraty  <sjg@beast.crufty.net>
22612904384SSimon J. Gerraty
22712904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211207
22812904384SSimon J. Gerraty	Merge with NetBSD make, pick up
22912904384SSimon J. Gerraty	o inline HashIter_Init
23012904384SSimon J. Gerraty	o parse.c: inline common subexpression in ParseRawLine
23112904384SSimon J. Gerraty	o var.c: merge branches for modifiers ':D' and ':U'
23212904384SSimon J. Gerraty	extract common code into Expr_Words
23312904384SSimon J. Gerraty	extract common code into Expr_Str
23412904384SSimon J. Gerraty	move low-level implementation details out of Var_Parse
23512904384SSimon J. Gerraty
23612904384SSimon J. Gerraty2021-12-06  Simon J Gerraty  <sjg@beast.crufty.net>
23712904384SSimon J. Gerraty
23812904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211206
23912904384SSimon J. Gerraty	Merge with NetBSD make, pick up
24012904384SSimon J. Gerraty	o add unit-tests/varmod-loop-delete
24112904384SSimon J. Gerraty	o for.c: inline Str_Words - reduce memory allocation
24212904384SSimon J. Gerraty	o parse.c: do not try to expand fixed variable names
24312904384SSimon J. Gerraty	only allocate the name of an included file if necessary
24412904384SSimon J. Gerraty	clean up ParseInclude
24512904384SSimon J. Gerraty	o var.c: fix use-after-free in modifier ':@'
24612904384SSimon J. Gerraty	save a memory allocation in each modifier ':O' and ':u'
24712904384SSimon J. Gerraty	save a memory allocation in the modifier ':[...]'
24812904384SSimon J. Gerraty	in UnexportVars, replace Str_Words with Substring_Words to
24912904384SSimon J. Gerraty	reduce allocations and copying.
25012904384SSimon J. Gerraty
25112904384SSimon J. Gerraty2021-12-04  Simon J Gerraty  <sjg@beast.crufty.net>
25212904384SSimon J. Gerraty
25312904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211204
25412904384SSimon J. Gerraty	Merge with NetBSD make, pick up
25512904384SSimon J. Gerraty	o flesh out a number of tests
25612904384SSimon J. Gerraty	o replace enums with bitfields, this simplifies a lot of code.
25712904384SSimon J. Gerraty	o var.c: refactor ParseModifierPartSubst
25812904384SSimon J. Gerraty
25912904384SSimon J. Gerraty2021-10-24  Simon J Gerraty  <sjg@beast.crufty.net>
26012904384SSimon J. Gerraty
26112904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211024
26212904384SSimon J. Gerraty	Merge with NetBSD make, pick up
26312904384SSimon J. Gerraty	o Punt on write errors - ENOSPC etc.
26412904384SSimon J. Gerraty
26512904384SSimon J. Gerraty2021-10-22  Simon J Gerraty  <sjg@beast.crufty.net>
26612904384SSimon J. Gerraty
26712904384SSimon J. Gerraty	* configure.in: use_defshell, set both DEFSHELL_INDEX
26812904384SSimon J. Gerraty	and defshell_path if appropriate.
26912904384SSimon J. Gerraty	This makes it easier to use say the KSH specification with
27012904384SSimon J. Gerraty	and alternate path for the shell.
27112904384SSimon J. Gerraty
27212904384SSimon J. Gerraty	* configure.in compat.c: for SCO we need to force UseShell
27312904384SSimon J. Gerraty
27412904384SSimon J. Gerraty	* configure.in: SCO /bin/sh is not usable, provide a list of
27512904384SSimon J. Gerraty	alternatives for use as .SHELL.
27612904384SSimon J. Gerraty	We still have to mark some tests as broken, plus more if we end up
27712904384SSimon J. Gerraty	with ksh as .SHELL.
27812904384SSimon J. Gerraty	Issue a warning about skipped tests.
27912904384SSimon J. Gerraty
28012904384SSimon J. Gerraty	* boot-strap: leave TOOL_DIFF to configure
28112904384SSimon J. Gerraty
28212904384SSimon J. Gerraty	* configure.in: on SCO native cc is not usable,
28312904384SSimon J. Gerraty	gcc is to be found in /usr/gnu/bin
28412904384SSimon J. Gerraty	and while ancient is at least able to compile bmake.
28512904384SSimon J. Gerraty	Thus we add /usr/gnu/bin to PATH if it exists, and later
28612904384SSimon J. Gerraty	check if $CC would have been found via $PATH.
28712904384SSimon J. Gerraty	If not we set CC to the full path of $CC.
28812904384SSimon J. Gerraty	Also gnu diff is known to support -u, so if it exists use it.
28912904384SSimon J. Gerraty
29012904384SSimon J. Gerraty	* configure.in: move getopt to AC_REPLACE_FUNCS
29112904384SSimon J. Gerraty	also add AC_C_INLINE - in an attempt to compile using
29212904384SSimon J. Gerraty	native cc on SCO.
29312904384SSimon J. Gerraty
29412904384SSimon J. Gerraty	* configure.in: check for stresep as well as strsep, since we
29512904384SSimon J. Gerraty	define the later to the former if necessary, and if we have to
29612904384SSimon J. Gerraty	provide stresep we also need to provide a prototype.
29712904384SSimon J. Gerraty
29812904384SSimon J. Gerraty	* configure.in: we no longer need to worry about
29912904384SSimon J. Gerraty	sys/cdefs.h providing __RCSID which simplifies things quite a bit.
30012904384SSimon J. Gerraty
30112904384SSimon J. Gerraty	* make.h: make sure we have __RCSID
30212904384SSimon J. Gerraty
30312904384SSimon J. Gerraty	* unit-tests/Makefile.config.in: add TOOL_DIFF so configure
30412904384SSimon J. Gerraty	can control it.
30512904384SSimon J. Gerraty
30612904384SSimon J. Gerraty2021-10-20  Simon J Gerraty  <sjg@beast.crufty.net>
30712904384SSimon J. Gerraty
30812904384SSimon J. Gerraty	* VERSION: 20211020
30912904384SSimon J. Gerraty	Merge with NetBSD make, pick up
31012904384SSimon J. Gerraty	o confirm sync of unit-tests
31112904384SSimon J. Gerraty
31212904384SSimon J. Gerraty2021-10-18  Simon J Gerraty  <sjg@beast.crufty.net>
31312904384SSimon J. Gerraty
31412904384SSimon J. Gerraty	* configure.in: check if timezone Europe/Berlin is supported
31512904384SSimon J. Gerraty	if not try UTC-1
31612904384SSimon J. Gerraty	* configure.in: if .OBJDIR is $srcdir/obj we need to create a
31712904384SSimon J. Gerraty	symlink unit-tests -> ../unit-tests/obj so that
31812904384SSimon J. Gerraty	unit-tests/Makefile.config is put in the right place.
31912904384SSimon J. Gerraty	* refine filtering of .OBJDIR in unit-tests
32012904384SSimon J. Gerraty
32112904384SSimon J. Gerraty2021-10-16  Simon J Gerraty  <sjg@beast.crufty.net>
32212904384SSimon J. Gerraty
32312904384SSimon J. Gerraty	* Fix unit-tests on Minix 3.2.0
32412904384SSimon J. Gerraty	o job.c: do not punt if read of token pipe fails for EAGAIN.
32512904384SSimon J. Gerraty	On Minix at least, we are not ready to read the childExitJob pipe
32612904384SSimon J. Gerraty	when poll says we are.
32712904384SSimon J. Gerraty	There should actually be no reason for this pipe to be
32812904384SSimon J. Gerraty	non-blocking, but while that works fine on {Net,Free}BSD it
32912904384SSimon J. Gerraty	breaks another test case on Minix.
33012904384SSimon J. Gerraty	o unit-tests/Makefile: deal with variants of error messages
33112904384SSimon J. Gerraty	  and use of obj as .OBJDIR
33212904384SSimon J. Gerraty
33312904384SSimon J. Gerraty2021-10-14  Simon J Gerraty  <sjg@beast.crufty.net>
33412904384SSimon J. Gerraty
33512904384SSimon J. Gerraty	* configure.in: add sigaction to AC_REPLACE_FUNCS
33612904384SSimon J. Gerraty	we also need to check for sigaddset etc just for the benefit of
33712904384SSimon J. Gerraty	sigact.c
33812904384SSimon J. Gerraty
33912904384SSimon J. Gerraty	* Add sigact.c as sigaction.c so this "just works".
34012904384SSimon J. Gerraty	This should have been done back when bmake_signal started using
34112904384SSimon J. Gerraty	sigaction (I only just noticed that sigact.c wasn't here ;-)
34212904384SSimon J. Gerraty	Note: I no longer have access to any system where this would matter.
34312904384SSimon J. Gerraty
34412904384SSimon J. Gerraty2021-10-13  Simon J Gerraty  <sjg@beast.crufty.net>
34512904384SSimon J. Gerraty
34612904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211011
34712904384SSimon J. Gerraty
34812904384SSimon J. Gerraty	* Makefile: cleanup a little
34912904384SSimon J. Gerraty
35012904384SSimon J. Gerraty	* configure.in: check for sigsetmask
35112904384SSimon J. Gerraty
35212904384SSimon J. Gerraty2021-10-01  Simon J Gerraty  <sjg@beast.crufty.net>
35312904384SSimon J. Gerraty
35412904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211001
35512904384SSimon J. Gerraty	Merge with NetBSD make, pick up
35612904384SSimon J. Gerraty	o reduce locations reducing text size
35712904384SSimon J. Gerraty	o remove unnecessary const
35812904384SSimon J. Gerraty	o cond.c: fix lint warning on i386
35912904384SSimon J. Gerraty	do not allow unquoted 'left == right' after modifier ':?'
36012904384SSimon J. Gerraty	o hash.c: fix build for DEBUG_HASH_LOOKUP
36112904384SSimon J. Gerraty	o var.c: fix memory leak in error case of the ':?' modifier
36212904384SSimon J. Gerraty
36312904384SSimon J. Gerraty2021-09-11  Simon J Gerraty  <sjg@beast.crufty.net>
36412904384SSimon J. Gerraty
36512904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210911
36612904384SSimon J. Gerraty	Merge with NetBSD make, pick up
36712904384SSimon J. Gerraty	o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval
36812904384SSimon J. Gerraty
36912904384SSimon J. Gerraty2021-09-08  Simon J Gerraty  <sjg@beast.crufty.net>
37012904384SSimon J. Gerraty
37112904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210906
37212904384SSimon J. Gerraty	Merge with NetBSD make, pick up
37312904384SSimon J. Gerraty	o more unit tests
37412904384SSimon J. Gerraty	o lint cleanup
37512904384SSimon J. Gerraty	o rename some functions to better fit purpose
37612904384SSimon J. Gerraty	o for.c: cleanup - remove unnecessary optimization
37712904384SSimon J. Gerraty	  fix embedded newlines
37812904384SSimon J. Gerraty	o parse.c: correct case for CVS/RCS
37912904384SSimon J. Gerraty
38012904384SSimon J. Gerraty2021-08-11  Simon J Gerraty  <sjg@beast.crufty.net>
38112904384SSimon J. Gerraty
38212904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210808
38312904384SSimon J. Gerraty	Merge with NetBSD make, pick up
38412904384SSimon J. Gerraty	o var.c: remove redundant initialization in ApplyModifier_Order
38512904384SSimon J. Gerraty
38612904384SSimon J. Gerraty	* mk/options.mk: issue warning for incorrect usage
38712904384SSimon J. Gerraty
38812904384SSimon J. Gerraty2021-08-03  Simon J Gerraty  <sjg@beast.crufty.net>
38912904384SSimon J. Gerraty
39012904384SSimon J. Gerraty	* var.c: use long for :On if we don't have a 64bit int type
39112904384SSimon J. Gerraty
39212904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210803
39312904384SSimon J. Gerraty	Merge with NetBSD make, pick up
39412904384SSimon J. Gerraty	o rework varmod-order tests to avoid qsort instability
39512904384SSimon J. Gerraty	o make.1: clarify :On entry
39612904384SSimon J. Gerraty
39712904384SSimon J. Gerraty2021-07-31  Simon J Gerraty  <sjg@beast.crufty.net>
39812904384SSimon J. Gerraty
39912904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210731
40012904384SSimon J. Gerraty	Merge with NetBSD make, pick up
40112904384SSimon J. Gerraty	o fix some lint issues
40212904384SSimon J. Gerraty	o more unit tests
40312904384SSimon J. Gerraty	o var.c: rework of ApplyModifier_Order
40412904384SSimon J. Gerraty
40512904384SSimon J. Gerraty2021-07-30  Simon J Gerraty  <sjg@beast.crufty.net>
40612904384SSimon J. Gerraty
40712904384SSimon J. Gerraty	* util.c: add strto*l if HAVE_STRTO*L not defined
40812904384SSimon J. Gerraty
40912904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210730
41012904384SSimon J. Gerraty	Merge with NetBSD make, pick up
41112904384SSimon J. Gerraty	o var.c: add :On and :Orn for numeric sort
41212904384SSimon J. Gerraty	  disabled if no 64bit type available.
41312904384SSimon J. Gerraty	o _strtol.h: to implement strto*l functions
41412904384SSimon J. Gerraty
41512904384SSimon J. Gerraty2021-07-04  Simon J Gerraty  <sjg@beast.crufty.net>
41612904384SSimon J. Gerraty
41712904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210704
41812904384SSimon J. Gerraty	Merge with NetBSD make, pick up
41912904384SSimon J. Gerraty	o unit-tests: fix some tests to be more portable
42012904384SSimon J. Gerraty	- job-output-null not all shells do the same number of write calls
42112904384SSimon J. Gerraty	- objdir-writable if TMPDIR is set; /tmp may not be usable
42212904384SSimon J. Gerraty
42312904384SSimon J. Gerraty2021-07-01  Simon J Gerraty  <sjg@beast.crufty.net>
42412904384SSimon J. Gerraty
42512904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210701
42612904384SSimon J. Gerraty	Merge with NetBSD make, pick up
42712904384SSimon J. Gerraty	o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped;
42812904384SSimon J. Gerraty	some tests just cannot work in some environments.
42912904384SSimon J. Gerraty	o buf.c: simpler upper bound for length in Buf_AddInt
43012904384SSimon J. Gerraty	o cond.c: fix grammar in error message for malformed conditional
43112904384SSimon J. Gerraty	o for.c: prevent newline injection (from ${.newline}) in .for loops
43212904384SSimon J. Gerraty	o var.c: use more practical data type in RegexReplace
43312904384SSimon J. Gerraty	(avoid need for %zu)
43412904384SSimon J. Gerraty	extract RegexReplace from ModifyWord_SubstRegex
43512904384SSimon J. Gerraty
436b0c40a00SSimon J. Gerraty2021-06-21  Simon J Gerraty  <sjg@beast.crufty.net>
437b0c40a00SSimon J. Gerraty
438b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210621
439b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
440b0c40a00SSimon J. Gerraty	o var.c: only report error for unmatched regex subexpression
441b0c40a00SSimon J. Gerraty	when linting (-dL) since we cannot tell when an unmatched
442b0c40a00SSimon J. Gerraty	subexpression is an expected result.
443b0c40a00SSimon J. Gerraty	o move unmatched regex subexpression tests to
444b0c40a00SSimon J. Gerraty	varmod-subst-regex.mk and enable strict (lint) mode
445b0c40a00SSimon J. Gerraty
446b0c40a00SSimon J. Gerraty2021-06-16  Simon J Gerraty  <sjg@beast.crufty.net>
447b0c40a00SSimon J. Gerraty
448b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210616
449b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
450b0c40a00SSimon J. Gerraty	o more unit tests
451b0c40a00SSimon J. Gerraty	o cond.c: rename If_Eval to EvalBare
452b0c40a00SSimon J. Gerraty	improve function names for parsing conditions
453b0c40a00SSimon J. Gerraty	o job.c: fix error handling of targets that cannot be made
454b0c40a00SSimon J. Gerraty	o var.c: uncompress code in ApplyModifier_Unique
455b0c40a00SSimon J. Gerraty
456b0c40a00SSimon J. Gerraty2021-05-18  Simon J Gerraty  <sjg@beast.crufty.net>
457b0c40a00SSimon J. Gerraty
458b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210518
459b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
460b0c40a00SSimon J. Gerraty	o fix unit-tests/opt-chdir to cope with /nonexistent existing.
461b0c40a00SSimon J. Gerraty	o job.c: Print -de error information when running multiple jobs
462b0c40a00SSimon J. Gerraty
463b0c40a00SSimon J. Gerraty2021-04-20  Simon J Gerraty  <sjg@beast.crufty.net>
464b0c40a00SSimon J. Gerraty
465b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210420
466b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
467b0c40a00SSimon J. Gerraty	o use C99 bool type
468b0c40a00SSimon J. Gerraty	o convert VarEvalFlags back into an enum
469b0c40a00SSimon J. Gerraty	o cond.c: do not complain when skipping the condition 'no >= 10'
470b0c40a00SSimon J. Gerraty	o hash.c: avoid allocating memory for simple variable names
471b0c40a00SSimon J. Gerraty	o job.c: use distinct wording for writing to the shell commands file
472b0c40a00SSimon J. Gerraty	remove type name for the abort status in job handling
473b0c40a00SSimon J. Gerraty	rename PrintOutput to PrintFilteredOutput to avoid confusion
474b0c40a00SSimon J. Gerraty	o main.c: avoid double slash in name of temporary directory
475b0c40a00SSimon J. Gerraty	o var.c: use straight quotes for error 'Bad conditional expression'
476b0c40a00SSimon J. Gerraty	reduce memory allocations in the modifiers ':D' and ':U'
477b0c40a00SSimon J. Gerraty	rename members of ModifyWord_LoopArgs
478b0c40a00SSimon J. Gerraty	clean up pattern flags for the modifiers ':S' and ':C'
479b0c40a00SSimon J. Gerraty	reduce memory allocation and strlen calls in modifier ':from=to'
480b0c40a00SSimon J. Gerraty	in the ':Q' modifier, only allocate memory if necessary
481b0c40a00SSimon J. Gerraty	improve performance for LazyBuf
482b0c40a00SSimon J. Gerraty	remove redundant parameter from ParseVarnameLong
483b0c40a00SSimon J. Gerraty	migrate ParseModifierPart to use Substring
484b0c40a00SSimon J. Gerraty	avoid unnecessary calls to strlen when evaluating modifiers
485b0c40a00SSimon J. Gerraty	migrate ModifyWord functions to use Substring
486b0c40a00SSimon J. Gerraty	migrate handling of the modifier ':S,from,to,' to Substring
487b0c40a00SSimon J. Gerraty	reduce debug logging and memory allocation for ${:U...}
488b0c40a00SSimon J. Gerraty	reduce verbosity of the -dv debug logging for standard cases
489b0c40a00SSimon J. Gerraty	clean up debug logging for ':M' and ':N'
490b0c40a00SSimon J. Gerraty	disallow '$' in the variable name of the modifier ':@'
491b0c40a00SSimon J. Gerraty	simplify access to the name of an expression during evaluation
492b0c40a00SSimon J. Gerraty
493b0c40a00SSimon J. Gerraty2021-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
494b0c40a00SSimon J. Gerraty
495b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210330
496b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
497b0c40a00SSimon J. Gerraty	o replace enum bit-field with struct bit-field for VarEvalFlags
498b0c40a00SSimon J. Gerraty	o rename VARE_NONE to VARE_PARSE_ONLY
499b0c40a00SSimon J. Gerraty	o var.c: rename ApplyModifiersState to ModChain
500b0c40a00SSimon J. Gerraty	fix double varname expansion in the variable modifier '::='
501b0c40a00SSimon J. Gerraty	change debug log for variable evaluation flags to lowercase
502b0c40a00SSimon J. Gerraty
503b0c40a00SSimon J. Gerraty2021-03-14  Simon J Gerraty  <sjg@beast.crufty.net>
504b0c40a00SSimon J. Gerraty
505b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210314
506b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
507b0c40a00SSimon J. Gerraty	o var.c: avoid evaluating many modifiers in parse only mode
508b0c40a00SSimon J. Gerraty	in strict mode (-dL) many variable references are parsed twice,
509b0c40a00SSimon J. Gerraty	the first time just to report parse errors early, so we want to
510b0c40a00SSimon J. Gerraty	avoid side effects and wasted effort to the extent possible.
511b0c40a00SSimon J. Gerraty
512b0c40a00SSimon J. Gerraty2021-02-26  Simon J Gerraty  <sjg@beast.crufty.net>
513b0c40a00SSimon J. Gerraty
514b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210226
515b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
516b0c40a00SSimon J. Gerraty	o remove freestanding freeIt variables
517b0c40a00SSimon J. Gerraty	link via FStr
518b0c40a00SSimon J. Gerraty	o var.c: restructure code in ParseVarname to target human readers
519b0c40a00SSimon J. Gerraty	improve error message for;
520b0c40a00SSimon J. Gerraty	  bad modifier in variable expression
521b0c40a00SSimon J. Gerraty	  unclosed modifier
522b0c40a00SSimon J. Gerraty	  unknown modifier
523b0c40a00SSimon J. Gerraty	remove redundant parameter of ApplySingleModifier
524b0c40a00SSimon J. Gerraty	explain non-obvious code around indirect variable modifiers
525b0c40a00SSimon J. Gerraty	quote ':S' in error message about missing delimiter
526b0c40a00SSimon J. Gerraty	extract ParseModifier_Match into separate function
527b0c40a00SSimon J. Gerraty	add context information to error message about ':range' modifier
528b0c40a00SSimon J. Gerraty	add quotes around variable name in an error message
529b0c40a00SSimon J. Gerraty	reorder code in ModifyWords
530b0c40a00SSimon J. Gerraty	use more common parameter order for VarSelectWords
531b0c40a00SSimon J. Gerraty	make ModifyWord_Subst a little easier to understand
532b0c40a00SSimon J. Gerraty	do not expand variable name from the command line twice
533b0c40a00SSimon J. Gerraty	extract ExistsInCmdline from Var_SetWithFlags
534b0c40a00SSimon J. Gerraty	save a hash map lookup when defining a cmdline variable
535b0c40a00SSimon J. Gerraty	clean up VarAdd, Var_Delete, Var_ReexportVars
536b0c40a00SSimon J. Gerraty	use bit-shift expressions for VarFlags constants
537b0c40a00SSimon J. Gerraty	rename constants for VarFlags
538b0c40a00SSimon J. Gerraty	rename ExprDefined constants for debug logging
539b0c40a00SSimon J. Gerraty	rename ExprStatus to ExprDefined
540b0c40a00SSimon J. Gerraty	split parameters for evaluating variable expressions
541b0c40a00SSimon J. Gerraty	reduce redundant code around ModifyWords
542b0c40a00SSimon J. Gerraty	print error about failed shell command before overwriting variable
543b0c40a00SSimon J. Gerraty	clean up ValidShortVarname, ParseVarnameShort
544b0c40a00SSimon J. Gerraty	rename VarExprStatus to ExprStatus
545b0c40a00SSimon J. Gerraty	add functions for assigning the value of an expression
546b0c40a00SSimon J. Gerraty	rename ApplyModifiersState_Define to Expr_Define
547b0c40a00SSimon J. Gerraty	condense the code for parsing :S and :C modifiers
548b0c40a00SSimon J. Gerraty
549dba7b0efSSimon J. Gerraty2021-02-06  Simon J Gerraty  <sjg@beast.crufty.net>
550dba7b0efSSimon J. Gerraty
551dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210206
552dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
553dba7b0efSSimon J. Gerraty	o unit-tests: use private TMPDIR to avoid errors from other users
554dba7b0efSSimon J. Gerraty
555dba7b0efSSimon J. Gerraty2021-02-05  Simon J Gerraty  <sjg@beast.crufty.net>
556dba7b0efSSimon J. Gerraty
557dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210205
558dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
559dba7b0efSSimon J. Gerraty	o avoid strdup in mkTempFile
560dba7b0efSSimon J. Gerraty	o always use vfork
561dba7b0efSSimon J. Gerraty	o rename context and ctxt to scope
562dba7b0efSSimon J. Gerraty	o rename some VAR constants to SCOPE
563dba7b0efSSimon J. Gerraty	o Var_ functions, move the scope to the front
564dba7b0efSSimon J. Gerraty	o use shortcut functions Global_Set and Global_Append
565dba7b0efSSimon J. Gerraty	o add shortcut Global_Delete for deleting a global variable
566dba7b0efSSimon J. Gerraty	o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete
567dba7b0efSSimon J. Gerraty	o compat.c: when exiting due to an error, print graph information
568dba7b0efSSimon J. Gerraty	o enum.c: remove overengineered Enum_ValueToString
569dba7b0efSSimon J. Gerraty	o make.c: remove unused INTERNAL flag
570dba7b0efSSimon J. Gerraty	remove unused return type of MakeBuildParent
571dba7b0efSSimon J. Gerraty	o parse.c: replace parse error "Need an operator" with better message
572dba7b0efSSimon J. Gerraty	o var.c: improve documentation about variable scopes
573dba7b0efSSimon J. Gerraty	rename Var_ValueDirect to GNode_ValueDirect
574dba7b0efSSimon J. Gerraty	rename old Var_SetWithFlags to Var_SetExpandWithFlags
575dba7b0efSSimon J. Gerraty	merge SetVar into Var_SetWithFlags
576dba7b0efSSimon J. Gerraty	split Var_Exists into plain Var_Exists and Var_ExistsExpand
577dba7b0efSSimon J. Gerraty	split Var_Append into Var_Append and Var_AppendExpand
578dba7b0efSSimon J. Gerraty	replace enum bit-set with bit-field
579dba7b0efSSimon J. Gerraty	o unit-tests/var-op-shell: use kill rather than kill -14
580dba7b0efSSimon J. Gerraty	which broke on darwin with recent update.
581dba7b0efSSimon J. Gerraty
582dba7b0efSSimon J. Gerraty2021-02-01  Simon J Gerraty  <sjg@beast.crufty.net>
583dba7b0efSSimon J. Gerraty
584dba7b0efSSimon J. Gerraty	* configure.in: check for sig_atomic_t and define it as 'int'
585dba7b0efSSimon J. Gerraty	if missing.
586dba7b0efSSimon J. Gerraty
587dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210201
588dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
589dba7b0efSSimon J. Gerraty	o use sig_atomic_t for caught_sigchld
590dba7b0efSSimon J. Gerraty
591dba7b0efSSimon J. Gerraty2021-01-30  Simon J Gerraty  <sjg@beast.crufty.net>
592dba7b0efSSimon J. Gerraty
593dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210130
594dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
595dba7b0efSSimon J. Gerraty	o more unit tests
596dba7b0efSSimon J. Gerraty	o convert SearchPath to struct
597dba7b0efSSimon J. Gerraty	o split Buf_Destroy into Buf_Done and Buf_DoneData
598dba7b0efSSimon J. Gerraty	o for.c: split For_Eval into separate functions
599dba7b0efSSimon J. Gerraty	rename struct For to struct ForLoop
600dba7b0efSSimon J. Gerraty	o job.c: do not create empty shell files in jobs mode
601dba7b0efSSimon J. Gerraty	rename JobOpenTmpFile to JobWriteShellCommands
602dba7b0efSSimon J. Gerraty	reduce unnecessary calls to waitpid
603dba7b0efSSimon J. Gerraty	o parse.c: in -dp mode, print stack trace with each diagnostic
604dba7b0efSSimon J. Gerraty
605dba7b0efSSimon J. Gerraty2021-01-23  Simon J Gerraty  <sjg@beast.crufty.net>
606dba7b0efSSimon J. Gerraty
607dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210123
608dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
609dba7b0efSSimon J. Gerraty	o rename Dir_Expand to SearchPath_Expand
610dba7b0efSSimon J. Gerraty	o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags
611dba7b0efSSimon J. Gerraty	o cond.c: fix debug output for comparison operators in conditionals
612dba7b0efSSimon J. Gerraty	o dir.c: split Dir_FindFile into separate functions
613dba7b0efSSimon J. Gerraty
614dba7b0efSSimon J. Gerraty2021-01-20  Simon J Gerraty  <sjg@beast.crufty.net>
615dba7b0efSSimon J. Gerraty
616dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210120
617dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
618dba7b0efSSimon J. Gerraty	o fix some more lint nits
619dba7b0efSSimon J. Gerraty	o refine some unit tests for portability
620dba7b0efSSimon J. Gerraty	o cond.c: rework parsing
621dba7b0efSSimon J. Gerraty
62206b9b3e0SSimon J. Gerraty2021-01-10  Simon J Gerraty  <sjg@beast.crufty.net>
62306b9b3e0SSimon J. Gerraty
62406b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210110
62506b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
62606b9b3e0SSimon J. Gerraty	o fix lint warnings
62706b9b3e0SSimon J. Gerraty	o consistently use boolean expressions in conditions
62806b9b3e0SSimon J. Gerraty
62906b9b3e0SSimon J. Gerraty2021-01-08  Simon J Gerraty  <sjg@beast.crufty.net>
63006b9b3e0SSimon J. Gerraty
63106b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210108
63206b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
63306b9b3e0SSimon J. Gerraty	o job.c: back to polling token pipe if we want a token
63406b9b3e0SSimon J. Gerraty	o main.c: always print 'stopped in' on first call
63506b9b3e0SSimon J. Gerraty	The execption is if we bail because of an abort token
63606b9b3e0SSimon J. Gerraty	in which case just exit 6.
63706b9b3e0SSimon J. Gerraty
63806b9b3e0SSimon J. Gerraty2021-01-01  Simon J Gerraty  <sjg@beast.crufty.net>
63906b9b3e0SSimon J. Gerraty
64006b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210101
64106b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
64206b9b3e0SSimon J. Gerraty	o Happy New Year!
64306b9b3e0SSimon J. Gerraty	o rename CmdOpts.lint to strict
64406b9b3e0SSimon J. Gerraty	o exit 2 on technical errors
64506b9b3e0SSimon J. Gerraty	o replace pointers in controlling conditions with booleans
64606b9b3e0SSimon J. Gerraty	o replace global preserveUndefined with VARE_KEEP_UNDEF
64706b9b3e0SSimon J. Gerraty	o compat.c: re-export variables from the actual make process
64806b9b3e0SSimon J. Gerraty	if using vfork this is the effect anyway
64906b9b3e0SSimon J. Gerraty	o cond.c: clean up VarParseResult constants
65006b9b3e0SSimon J. Gerraty	o for.c: fix undefined behavior in SubstVarLong
65106b9b3e0SSimon J. Gerraty	make control flow in SubstVarLong of .for loops more obvious
65206b9b3e0SSimon J. Gerraty	clean up SubstVarShort in .for loops
65306b9b3e0SSimon J. Gerraty	extract ForSubstBody from ForReadMore
65406b9b3e0SSimon J. Gerraty	clean up ForReadMore
65506b9b3e0SSimon J. Gerraty	simplify termination condition for .for loop
65606b9b3e0SSimon J. Gerraty	add error handling for .for loop items
65706b9b3e0SSimon J. Gerraty	job.c: re-export variables from the actual make process
65806b9b3e0SSimon J. Gerraty	parse.c: remove mmap for loading files, only allow files < 1 GiB
65906b9b3e0SSimon J. Gerraty	fix edge case in := with undefined in variable name
66006b9b3e0SSimon J. Gerraty	skip variable expansion in ParseDependencyTargetWord
66106b9b3e0SSimon J. Gerraty	var.c: split ExportVar into separate functions
66206b9b3e0SSimon J. Gerraty	clean up code in extracted ExportVar functions
66306b9b3e0SSimon J. Gerraty	remove dead code from ApplyModifiersIndirect
66406b9b3e0SSimon J. Gerraty	split Var_Subst into easily understandable functions
66506b9b3e0SSimon J. Gerraty	clean up VarParseResult constants
66606b9b3e0SSimon J. Gerraty
66706b9b3e0SSimon J. Gerraty2020-12-25  Simon J Gerraty  <sjg@beast.crufty.net>
66806b9b3e0SSimon J. Gerraty
66906b9b3e0SSimon J. Gerraty	* main.c: use .MAKE.DEPENDFILE as set by makefiles
67006b9b3e0SSimon J. Gerraty
67106b9b3e0SSimon J. Gerraty2020-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
67206b9b3e0SSimon J. Gerraty
67306b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201222
67406b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
67506b9b3e0SSimon J. Gerraty	o make DEBUG macro return boolean
67606b9b3e0SSimon J. Gerraty	o parse.c: fix assertion failure for files without trailing newline
67706b9b3e0SSimon J. Gerraty	o var.c: allow .undef to undefine multiple variables at once
67806b9b3e0SSimon J. Gerraty	remove excess newline from parse errors
67906b9b3e0SSimon J. Gerraty
68006b9b3e0SSimon J. Gerraty2020-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
68106b9b3e0SSimon J. Gerraty
68206b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201221
68306b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
68406b9b3e0SSimon J. Gerraty	o some unit-test updates
68506b9b3e0SSimon J. Gerraty
68606b9b3e0SSimon J. Gerraty2020-12-20  Simon J Gerraty  <sjg@beast.crufty.net>
68706b9b3e0SSimon J. Gerraty
68806b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201220
68906b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
69006b9b3e0SSimon J. Gerraty	o more unit tests
69106b9b3e0SSimon J. Gerraty	o return FStr from Var_Parse and Var_Value
69206b9b3e0SSimon J. Gerraty	o spell nonexistent consistently
69306b9b3e0SSimon J. Gerraty	o add str_basename to reduce duplicate code
69406b9b3e0SSimon J. Gerraty	o compat.c: fix .ERROR_TARGET in compat -k mode
69506b9b3e0SSimon J. Gerraty	extract InitSignals from Compat_Run
69606b9b3e0SSimon J. Gerraty	extract UseShell from Compat_RunCommand
69706b9b3e0SSimon J. Gerraty	o cond.c: error out if an '.endif' or '.else' contain extraneous text
69806b9b3e0SSimon J. Gerraty	o for.c: rename ForIterate to ForReadMore
69906b9b3e0SSimon J. Gerraty	o hash.c: clean up hash function for HashTable
70006b9b3e0SSimon J. Gerraty	o lst.c: rename Vector.priv_cap to cap
70106b9b3e0SSimon J. Gerraty	o main.c: remove constant parameter from MakeMode
70206b9b3e0SSimon J. Gerraty	o make.c: use symbolic time for 0 in Make_Recheck
70306b9b3e0SSimon J. Gerraty	extract MakeChildren from MakeStartJobs
70406b9b3e0SSimon J. Gerraty	o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar
70506b9b3e0SSimon J. Gerraty	fix error message for .info/.warning/.error without argument
70606b9b3e0SSimon J. Gerraty	extract Var_Undef from ParseDirective
70706b9b3e0SSimon J. Gerraty	extract ParseSkippedBranches, ParseForLoop from ParseReadLine
70806b9b3e0SSimon J. Gerraty	rename mode constants for ParseGetLine to be more expressive
70906b9b3e0SSimon J. Gerraty	reduce debugging details in Parse_SetInput
71006b9b3e0SSimon J. Gerraty	fix line numbers in .for loops
71106b9b3e0SSimon J. Gerraty	split ParseGetLine into separate functions
71206b9b3e0SSimon J. Gerraty	fix garbled output for failed shell command
71306b9b3e0SSimon J. Gerraty	var.c: remove redundant assignment in ApplyModifier_SysV
71406b9b3e0SSimon J. Gerraty	error out on unknown variable modifiers at parse time
71506b9b3e0SSimon J. Gerraty	remove wrong error message for indirect modifier in lint mode
71606b9b3e0SSimon J. Gerraty	extract ApplySingleModifier from ApplyModifiers
71706b9b3e0SSimon J. Gerraty	use FStr for memory management in Var_SetWithFlags
71806b9b3e0SSimon J. Gerraty	extract SetVar from Var_SetWithFlags
71906b9b3e0SSimon J. Gerraty	use FStr in VarNew
72006b9b3e0SSimon J. Gerraty	extract string functions from ApplyModifier_To
72106b9b3e0SSimon J. Gerraty	error out if .undef has not exactly 1 argument
72206b9b3e0SSimon J. Gerraty	extract Var_DeleteVar from Var_Delete
72306b9b3e0SSimon J. Gerraty	extract Var_Undef from ParseDirective
72406b9b3e0SSimon J. Gerraty	clean up memory management for expanding variable expressions
72506b9b3e0SSimon J. Gerraty
72606b9b3e0SSimon J. Gerraty2020-12-12  Simon J Gerraty  <sjg@beast.crufty.net>
72706b9b3e0SSimon J. Gerraty
72806b9b3e0SSimon J. Gerraty	* avoid %zu
72906b9b3e0SSimon J. Gerraty
73006b9b3e0SSimon J. Gerraty	* lst.c: avoid anonymous union
73106b9b3e0SSimon J. Gerraty
73206b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201212
73306b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
73406b9b3e0SSimon J. Gerraty	o more unit tests
73506b9b3e0SSimon J. Gerraty	o inline Targ_Ignore and Targ_Silent
73606b9b3e0SSimon J. Gerraty	o split JobFlags into separate fields
73706b9b3e0SSimon J. Gerraty	o remove const from function parameters (left overs from refactoring)
73806b9b3e0SSimon J. Gerraty	o eliminate boolean argument of Var_Export
73906b9b3e0SSimon J. Gerraty	o make API of Buf_Init simpler
74006b9b3e0SSimon J. Gerraty	o rename ParseRunOptions to ParseCommandFlags
74106b9b3e0SSimon J. Gerraty	o replace *line with line[0]
74206b9b3e0SSimon J. Gerraty	o compat.c: fix wrong exit status for multiple failed main targets
74306b9b3e0SSimon J. Gerraty	refactor Compat_Run to show the error condition more clearly
74406b9b3e0SSimon J. Gerraty	don't make .END if the main targets already failed (-k mode)
74506b9b3e0SSimon J. Gerraty	fix exit status in -k mode if a dependency fails
74606b9b3e0SSimon J. Gerraty	o for.c: clean up Buf_AddEscaped in .for loops
74706b9b3e0SSimon J. Gerraty	o job.c: extract ShellWriter_ErrOn from JobPrintCommand
74806b9b3e0SSimon J. Gerraty	make Job_Touch simpler
74906b9b3e0SSimon J. Gerraty	refactor JobFinish
75006b9b3e0SSimon J. Gerraty	rename Shell.exitFlag to errFlag
75106b9b3e0SSimon J. Gerraty	move Job.xtraced to ShellWriter
75206b9b3e0SSimon J. Gerraty	make printing of shell commands independent from the job
75306b9b3e0SSimon J. Gerraty	rename shell flags in struct Shell
75406b9b3e0SSimon J. Gerraty	extract JobOpenTmpFile from JobStart
75506b9b3e0SSimon J. Gerraty	rename RunFlags to CommandFlags
75606b9b3e0SSimon J. Gerraty	split various Job.* into separate fields
75706b9b3e0SSimon J. Gerraty	rename commandShell to shell
75806b9b3e0SSimon J. Gerraty	extract InitShellNameAndPath from Shell_Init
75906b9b3e0SSimon J. Gerraty	replace signal handling macros with local functions
76006b9b3e0SSimon J. Gerraty	replace macro MESSAGE with local function
76106b9b3e0SSimon J. Gerraty	parse.c: error out on null bytes in makefiles
76206b9b3e0SSimon J. Gerraty	error out on misspelled directives
76306b9b3e0SSimon J. Gerraty	rename IFile.nextbuf to readMore
76406b9b3e0SSimon J. Gerraty	fix undefined behavior in ParseEOF
76506b9b3e0SSimon J. Gerraty	str.c: remove redundant call to strlen in Str_Words
76606b9b3e0SSimon J. Gerraty	var.c: error out on misspelled .unexport-env
76706b9b3e0SSimon J. Gerraty	error out on misspelled .export directives
76806b9b3e0SSimon J. Gerraty	extract ExportVars from Var_Export
76906b9b3e0SSimon J. Gerraty	extract ExportVarsExpand from Var_Export
77006b9b3e0SSimon J. Gerraty	eliminate boolean argument of Var_Export
77106b9b3e0SSimon J. Gerraty	fix undefined behavior when exporting ${:U }
77206b9b3e0SSimon J. Gerraty	rename Var_ExportVars to Var_ReexportVars
77306b9b3e0SSimon J. Gerraty	rename Var_Export1 to ExportVar
77406b9b3e0SSimon J. Gerraty
77506b9b3e0SSimon J. Gerraty2020-12-06  Simon J Gerraty  <sjg@beast.crufty.net>
77606b9b3e0SSimon J. Gerraty
77706b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201206
77806b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
77906b9b3e0SSimon J. Gerraty	o more unit tests
78006b9b3e0SSimon J. Gerraty	o inline macros for debug logging
78106b9b3e0SSimon J. Gerraty	o use consistent variable names for list nodes
78206b9b3e0SSimon J. Gerraty	o define constants for enum zero-values
78306b9b3e0SSimon J. Gerraty	o dir.c: use fixed format for debug output of the directory cache
78406b9b3e0SSimon J. Gerraty	remove Dir_InitDir
78506b9b3e0SSimon J. Gerraty	o lst.c: inline Lst_Enqueue, Vector_Done
78606b9b3e0SSimon J. Gerraty	o meta.c: remove unused parameter from meta_needed
78706b9b3e0SSimon J. Gerraty	o parse.c: rename parse functions
78806b9b3e0SSimon J. Gerraty	o suff.c: extract ExpandChildrenRegular from ExpandChildren
78906b9b3e0SSimon J. Gerraty	o targ.c: don't concatenate identifiers in Targ_PrintType
79006b9b3e0SSimon J. Gerraty	o var.c: remove comment decoration
79106b9b3e0SSimon J. Gerraty	extract UnexportVars from Var_UnExport
79206b9b3e0SSimon J. Gerraty	extract GetVarnamesToUnexport from Var_UnExport
79306b9b3e0SSimon J. Gerraty	extract UnexportEnv from Var_UnExport
79406b9b3e0SSimon J. Gerraty	extract UnexportVar from Var_UnExport
79506b9b3e0SSimon J. Gerraty	move CleanEnv to UnexportVars
79606b9b3e0SSimon J. Gerraty	replace pointer comparisons with enum
79706b9b3e0SSimon J. Gerraty	add FStr to var.c to make memory handling simpler
79806b9b3e0SSimon J. Gerraty	use FStr in Var_UnExport
79906b9b3e0SSimon J. Gerraty	move type definitions in var.c to the top
80006b9b3e0SSimon J. Gerraty	extract FreeEnvVar from Var_Parse
80106b9b3e0SSimon J. Gerraty	extract ShuffleStrings from ApplyModifier_Order
80206b9b3e0SSimon J. Gerraty
80306b9b3e0SSimon J. Gerraty2020-11-30  Simon J Gerraty  <sjg@beast.crufty.net>
80406b9b3e0SSimon J. Gerraty
80506b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201130
80606b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
80706b9b3e0SSimon J. Gerraty	o add unit tests for META MODE
80806b9b3e0SSimon J. Gerraty	o reduce memory allocation for dirSearchPath, GNode.parents,
80906b9b3e0SSimon J. Gerraty	GNode.children, OpenDirs
81006b9b3e0SSimon J. Gerraty	o reduce pointer indirection for GNode.cohorts and
81106b9b3e0SSimon J. Gerraty	GNode.implicitParents
81206b9b3e0SSimon J. Gerraty	o remove pointer indirection from GNode.commands
81306b9b3e0SSimon J. Gerraty	o inline Lst_ForEachUntil in meta mode
81406b9b3e0SSimon J. Gerraty	o dir.c: fix memory leak for lstat cache in -DCLEANUP mode
81506b9b3e0SSimon J. Gerraty	clean up memory management for CachedDirs
81606b9b3e0SSimon J. Gerraty	fix the reference count of dotLast going negative
81706b9b3e0SSimon J. Gerraty	add debug logging for OpenDirs_Done
81806b9b3e0SSimon J. Gerraty	extract CacheNewDir from Dir_AddDir
81906b9b3e0SSimon J. Gerraty	add debug logging for reference counting of CachedDir
82006b9b3e0SSimon J. Gerraty	rename some Dir functions to SearchPath
82106b9b3e0SSimon J. Gerraty	o job.c: rename some global variables
82206b9b3e0SSimon J. Gerraty	o main.c: reduce memory allocation in ReadBuiltinRules
82306b9b3e0SSimon J. Gerraty	reduce memory allocation in CmdOpts.create, CmdOpts.variables,
82406b9b3e0SSimon J. Gerraty	CmdOpts.makefiles
82506b9b3e0SSimon J. Gerraty	Add .MAKE.UID and .MAKE.GID
82606b9b3e0SSimon J. Gerraty	o make.c: reduce memory allocation for/in toBeMade,
82706b9b3e0SSimon J. Gerraty	Make_ProcessWait, Make_ExpandUse
82806b9b3e0SSimon J. Gerraty	o meta.c: reduce memory allocation in meta_oodate
82906b9b3e0SSimon J. Gerraty	o parse.c: reduce memory allocations for parsing dependencies and
83006b9b3e0SSimon J. Gerraty	targets
83106b9b3e0SSimon J. Gerraty	o suff.c: reduce memory allocation in suffix handling
83206b9b3e0SSimon J. Gerraty
83306b9b3e0SSimon J. Gerraty2020-11-24  Simon J Gerraty  <sjg@beast.crufty.net>
83406b9b3e0SSimon J. Gerraty
83506b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201124
83606b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
83706b9b3e0SSimon J. Gerraty	o .MAKE.{UID,GID} represent uid and gid running make.
83806b9b3e0SSimon J. Gerraty	o fix error handling for .BEGIN and .END dependency in -k mode
83906b9b3e0SSimon J. Gerraty	o fix missing "Stop." after failed .END node in -k mode
84006b9b3e0SSimon J. Gerraty	o use properly typed comparisons in boolean contexts
84106b9b3e0SSimon J. Gerraty	o replace a few HashTable_CreateEntry with HashTable_Set
84206b9b3e0SSimon J. Gerraty	o add HashSet type
84306b9b3e0SSimon J. Gerraty	o compat.c: split Compat_Make into smaller functions
84406b9b3e0SSimon J. Gerraty	extract DebugFailedTarget from Compat_RunCommand
84506b9b3e0SSimon J. Gerraty	o dir.c: refactor Dir_UpdateMTime
84606b9b3e0SSimon J. Gerraty	migrate CachedDir.files from HashTable to HashSet
84706b9b3e0SSimon J. Gerraty	o make.c: add high-level API for GNode.made
84806b9b3e0SSimon J. Gerraty
84906b9b3e0SSimon J. Gerraty2020-11-22  Simon J Gerraty  <sjg@beast.crufty.net>
85006b9b3e0SSimon J. Gerraty
85106b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201122
85206b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
85306b9b3e0SSimon J. Gerraty	o rename GNode.context to vars
85406b9b3e0SSimon J. Gerraty	o suff.c: cleanup and refactor
85506b9b3e0SSimon J. Gerraty	rename some functions and vars to better reflect usage
85606b9b3e0SSimon J. Gerraty	add high-level API for CandidateSearcher
85706b9b3e0SSimon J. Gerraty	o targ.c: add more debug logging for suffix handling
85806b9b3e0SSimon J. Gerraty	o more unit tests
85906b9b3e0SSimon J. Gerraty	o add debug logging for setting and resetting the main target
86006b9b3e0SSimon J. Gerraty
861e2eeea75SSimon J. Gerraty2020-11-17  Simon J Gerraty  <sjg@beast.crufty.net>
862e2eeea75SSimon J. Gerraty
863e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201117
864e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
86506b9b3e0SSimon J. Gerraty	o fix some unit-tests when .SHELL is dash
866e2eeea75SSimon J. Gerraty	o rename Targ_NewGN to GNode_New
867e2eeea75SSimon J. Gerraty	o make some GNode functions const
868e2eeea75SSimon J. Gerraty	o main.c: call Targ_Init before Var_Init
869e2eeea75SSimon J. Gerraty	cleanup PrintOnError, getTmpdir and ParseBoolean
870e2eeea75SSimon J. Gerraty	o var.c: fix error message of failed :!cmd! modifier
871e2eeea75SSimon J. Gerraty
872e2eeea75SSimon J. Gerraty2020-11-14  Simon J Gerraty  <sjg@beast.crufty.net>
873e2eeea75SSimon J. Gerraty
874e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201114
875e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
876e2eeea75SSimon J. Gerraty	o replace a few HashTable_CreateEntry with HashTable_Set
877e2eeea75SSimon J. Gerraty	o clean up cached_stats
878e2eeea75SSimon J. Gerraty	o rename DEFAULT to defaultNode
879e2eeea75SSimon J. Gerraty	o remove redundant struct make_stat
880e2eeea75SSimon J. Gerraty	o cond.c: in lint mode, check for ".else <cond>"
881e2eeea75SSimon J. Gerraty	use bitset for IfState
882e2eeea75SSimon J. Gerraty	replace large switch with if-else in Cond_EvalLine
883e2eeea75SSimon J. Gerraty	o job.c: clean up JobExec, JobStart, JobDoOutput
884e2eeea75SSimon J. Gerraty	use stderr for error message about failed touch
885e2eeea75SSimon J. Gerraty	clean up Job_Touch
886e2eeea75SSimon J. Gerraty	replace macro DBPRINTF with JobPrintln
887e2eeea75SSimon J. Gerraty	rename JobState to JobStatus
888e2eeea75SSimon J. Gerraty	main.c: switch cache for realpath from GNode to HashTable
889e2eeea75SSimon J. Gerraty	clean up Fatal
890e2eeea75SSimon J. Gerraty	clean up InitDefSysIncPath
891e2eeea75SSimon J. Gerraty	use progname instead of hard-coded 'make' in warning
892e2eeea75SSimon J. Gerraty	rename Main_SetVarObjdir to SetVarObjdir
893e2eeea75SSimon J. Gerraty	make.1: document the -S option
894e2eeea75SSimon J. Gerraty	make.c: fix debug output for GNode details
895e2eeea75SSimon J. Gerraty	use symbolic names in debug output of GNodes
896e2eeea75SSimon J. Gerraty
897e2eeea75SSimon J. Gerraty2020-11-12  Simon J Gerraty  <sjg@beast.crufty.net>
898e2eeea75SSimon J. Gerraty
899e2eeea75SSimon J. Gerraty	* configure.in: fix --with-force-machine-arch
900e2eeea75SSimon J. Gerraty
901e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201112
902e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
903e2eeea75SSimon J. Gerraty	o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
904e2eeea75SSimon J. Gerraty	checks in InitObjdir.  Explicit .OBJDIR target always allows
905e2eeea75SSimon J. Gerraty	read-only directory.
906e2eeea75SSimon J. Gerraty	o cond.c: clean up Cond_EvalLine
907e2eeea75SSimon J. Gerraty
908e2eeea75SSimon J. Gerraty2020-11-11  Simon J Gerraty  <sjg@beast.crufty.net>
909e2eeea75SSimon J. Gerraty
910e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201111
911e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
912e2eeea75SSimon J. Gerraty	o more unit-tests
913e2eeea75SSimon J. Gerraty	o style cleanup
914e2eeea75SSimon J. Gerraty	remove redundant parentheses from sizeof operator
915e2eeea75SSimon J. Gerraty	replace character literal 0 with '\0'.
916e2eeea75SSimon J. Gerraty	replace pointer literal 0 with NULL.
917e2eeea75SSimon J. Gerraty	remove redundant parentheses.
918e2eeea75SSimon J. Gerraty	replace (expr & mask) == 0 with !(expr & mask).
919e2eeea75SSimon J. Gerraty	use strict typing in conditions of the form !var
920e2eeea75SSimon J. Gerraty	o rename Make_OODate to GNode_IsOODate
921e2eeea75SSimon J. Gerraty	o rename Make_TimeStamp to GNode_UpdateYoungestChild
922e2eeea75SSimon J. Gerraty	o rename Var_Set_with_flags to Var_SetWithFlags
923e2eeea75SSimon J. Gerraty	o rename dieQuietly to shouldDieQuietly
924e2eeea75SSimon J. Gerraty	o buf.c: make API of Buf_Init simpler
925e2eeea75SSimon J. Gerraty	o compat.c: clean up Compat_Make, Compat_RunCommand,
926e2eeea75SSimon J. Gerraty	CompatDeleteTarget and CompatInterrupt
927e2eeea75SSimon J. Gerraty	o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|'
928e2eeea75SSimon J. Gerraty	clean up CondParser_Comparison
929e2eeea75SSimon J. Gerraty	o main.c: rename getBoolean and s2Boolean
930e2eeea75SSimon J. Gerraty	rename MAKEFILE_PREFERENCE for consistency
931e2eeea75SSimon J. Gerraty	o parse.c: replace strstr in ParseMaybeSubMake with optimized code
932e2eeea75SSimon J. Gerraty	o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR
933e2eeea75SSimon J. Gerraty	replace emptyString with allocated empty string
934e2eeea75SSimon J. Gerraty	error out on unclosed expressions after the colon
935e2eeea75SSimon J. Gerraty
936956e45f6SSimon J. Gerraty2020-11-01  Simon J Gerraty  <sjg@beast.crufty.net>
937956e45f6SSimon J. Gerraty
938956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201101
939956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
940956e45f6SSimon J. Gerraty	o negate NoExecute to GNode_ShouldExecute
941956e45f6SSimon J. Gerraty	o job.c: rename JobMatchShell to FindShellByName
942956e45f6SSimon J. Gerraty	extract EscapeShellDblQuot from JobPrintCommand
943956e45f6SSimon J. Gerraty	extract ParseRunOptions from JobPrintCommand
944956e45f6SSimon J. Gerraty	o var.c: extract ApplyModifiersIndirect from ApplyModifiers
945956e45f6SSimon J. Gerraty	treat malformed :range, :ts and :[...] as errors
946956e45f6SSimon J. Gerraty	add tests for the variable modifiers :[words] and :range
947956e45f6SSimon J. Gerraty
948956e45f6SSimon J. Gerraty2020-10-31  Simon J Gerraty  <sjg@beast.crufty.net>
949956e45f6SSimon J. Gerraty
950956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201031
951956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
952956e45f6SSimon J. Gerraty	o format #include directives consistently
953956e45f6SSimon J. Gerraty	o do not look up local variables like .TARGET anywhere else
954956e45f6SSimon J. Gerraty	o main.c: Main_SetObjdir is first called for curdir which may be
955956e45f6SSimon J. Gerraty	readonly
956956e45f6SSimon J. Gerraty	reduce the scope where recursive expressions are detected
957956e45f6SSimon J. Gerraty	remove redundant :tl from getBoolean
958956e45f6SSimon J. Gerraty	clean up mkTempFile
959956e45f6SSimon J. Gerraty	o meta.c: simplify memory allocation in meta_create and meta_oodate
960956e45f6SSimon J. Gerraty	o parse.c: extract loadedfile_mmap from loadfile
961956e45f6SSimon J. Gerraty	o trace.c: document possible undefined behavior with .CURDIR
962956e45f6SSimon J. Gerraty	o var.c: make parsing of the :gmtime and :localtime modifiers stricter
963956e45f6SSimon J. Gerraty	rename ismeta to is_shell_metachar
964956e45f6SSimon J. Gerraty	remove debug logging for the :Q variable modifier
965956e45f6SSimon J. Gerraty	rename VarIsDynamic to VarnameIsDynamic
966956e45f6SSimon J. Gerraty	use consistent parameter order in varname parsing functions
967956e45f6SSimon J. Gerraty	extract ParseVarnameLong from Var_Parse
968956e45f6SSimon J. Gerraty	extract ParseVarnameShort from Var_Parse
969956e45f6SSimon J. Gerraty	fix type of ParseModifierPart parameter delim
970956e45f6SSimon J. Gerraty	extract IsEscapedModifierPart from ParseModifierPart
971956e45f6SSimon J. Gerraty	clean up ModifyWords
972956e45f6SSimon J. Gerraty	add test for combining the :@ and :? variable modifiers
973956e45f6SSimon J. Gerraty
974956e45f6SSimon J. Gerraty2020-10-30  Simon J Gerraty  <sjg@beast.crufty.net>
975956e45f6SSimon J. Gerraty
976956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201030
977956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
978956e45f6SSimon J. Gerraty	o change char * to void * in Var_Value
979956e45f6SSimon J. Gerraty	o make iterating over HashTable simpler
980956e45f6SSimon J. Gerraty	o rename VAR_CMD to VAR_CMDLINE
981956e45f6SSimon J. Gerraty	o cond.c: clean up is_separator
982956e45f6SSimon J. Gerraty	fix parse error in string literal in conditional
983956e45f6SSimon J. Gerraty	o main.c: do not use objdir that is not writable
984956e45f6SSimon J. Gerraty	in lint mode, exit with error status on errors
985956e45f6SSimon J. Gerraty	o  parse.c: clean up StrContainsWord
986956e45f6SSimon J. Gerraty	fix out-of-bounds pointer in ParseTrackInput
987956e45f6SSimon J. Gerraty	o var.c: rename Str_SYSVMatch and its parameters
988956e45f6SSimon J. Gerraty	remove unsatisfiable conditions in Var_Set_with_flags
989956e45f6SSimon J. Gerraty	document where the variable name is expanded
990956e45f6SSimon J. Gerraty	fix documentation for VARP_SUB_ONE
991956e45f6SSimon J. Gerraty	rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME
992956e45f6SSimon J. Gerraty	document VAR_READONLY
993956e45f6SSimon J. Gerraty	prevent appending to read-only variables
994956e45f6SSimon J. Gerraty	extract MayExport from Var_Export1
995956e45f6SSimon J. Gerraty	remove redundant evaluations in VarFind
996956e45f6SSimon J. Gerraty	replace VarFindFlags with a simple Boolean
997956e45f6SSimon J. Gerraty	rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE
998956e45f6SSimon J. Gerraty
999956e45f6SSimon J. Gerraty2020-10-28  Simon J Gerraty  <sjg@beast.crufty.net>
1000956e45f6SSimon J. Gerraty
1001956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201028
1002956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1003956e45f6SSimon J. Gerraty	o rename defIncPath to defSysIncPath
1004956e45f6SSimon J. Gerraty	o initialize all CmdOpts fields
1005956e45f6SSimon J. Gerraty	o lst.c: inline Vector_Get
1006956e45f6SSimon J. Gerraty	o main.c: refactor main extract
1007956e45f6SSimon J. Gerraty	InitMaxJobs,InitObjdir,InitVarMake,InitRandom,
1008956e45f6SSimon J. Gerraty	ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules,
1009956e45f6SSimon J. Gerraty	InitDefIncPath,CmdOpts_Init,UnlimitFiles
1010956e45f6SSimon J. Gerraty	o parse.c: merge curFile into includes
1011956e45f6SSimon J. Gerraty	rename predecessor to order_pred
1012956e45f6SSimon J. Gerraty	sort ParseSpecial alphabetically
1013956e45f6SSimon J. Gerraty	remove unused, undocumented .NOEXPORT
1014956e45f6SSimon J. Gerraty	rename ParseSpecial enum values consistently
1015956e45f6SSimon J. Gerraty	rename some fields of struct IFile
1016956e45f6SSimon J. Gerraty
1017956e45f6SSimon J. Gerraty2020-10-26  Simon J Gerraty  <sjg@beast.crufty.net>
1018956e45f6SSimon J. Gerraty
1019956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201026
1020956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1021956e45f6SSimon J. Gerraty	o group the command line options and arguments into a struct
1022956e45f6SSimon J. Gerraty	o rename GNode.cmgn to youngestChild
1023956e45f6SSimon J. Gerraty	o rename hash functions to identify the type name
1024956e45f6SSimon J. Gerraty	o negate OP_NOP and rename it to GNode_IsTarget
1025956e45f6SSimon J. Gerraty	o add GNode_Path to access the path of a GNode
1026956e45f6SSimon J. Gerraty	o remove macros MIN and MAX
1027956e45f6SSimon J. Gerraty	o remove unused Lst_Find and Lst_FindFrom
1028956e45f6SSimon J. Gerraty	o arch.c: and make Arch_FindLib simpler
1029956e45f6SSimon J. Gerraty	clean up code layout
1030956e45f6SSimon J. Gerraty	make Arch_ParseArchive simpler
1031956e45f6SSimon J. Gerraty	o cond.c: inline CondFindStrMatch into FuncMake
1032956e45f6SSimon J. Gerraty	o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath
1033956e45f6SSimon J. Gerraty	omit trailing space in debug output for expanding file patterns
1034956e45f6SSimon J. Gerraty	refactor DirMatchFiles
1035956e45f6SSimon J. Gerraty	document that the SearchPath of Dir_FindFile may be NULL
1036956e45f6SSimon J. Gerraty	remove UNCONST from Dir_Expand
1037956e45f6SSimon J. Gerraty	inline DirFindName
1038956e45f6SSimon J. Gerraty	o for.c: clean up code for handling .for loops
1039956e45f6SSimon J. Gerraty	o hash.c: print hash in debug log with fixed width
1040956e45f6SSimon J. Gerraty	clean up hash table functions
1041956e45f6SSimon J. Gerraty	reduce amount of string hashing
1042956e45f6SSimon J. Gerraty	o job.c: refactor JobDeleteTarget
1043956e45f6SSimon J. Gerraty	use proper enum constants for aborting
1044956e45f6SSimon J. Gerraty	convert result of JobStart from macros to enum
1045956e45f6SSimon J. Gerraty	convert abort reason macros to enum
1046956e45f6SSimon J. Gerraty	rework Job_CheckCommands to reduce indentation
1047956e45f6SSimon J. Gerraty	rename Shell fields
1048956e45f6SSimon J. Gerraty	add field names in declaration of DEFSHELL_CUSTOM
1049956e45f6SSimon J. Gerraty	convert JobState and JobFlags to enum types
1050956e45f6SSimon J. Gerraty	move handling of the "..." command to JobPrintCommands
1051956e45f6SSimon J. Gerraty	o lst.c: clean up
1052956e45f6SSimon J. Gerraty	refactor LstNodeNew
1053956e45f6SSimon J. Gerraty	remove Lst_Open, Lst_Next, Lst_Close
1054956e45f6SSimon J. Gerraty	remove code for circular lists from Lst_Next
1055956e45f6SSimon J. Gerraty	o main.c: do not attempt to read .MAKE.DEPENFILE if set to
1056956e45f6SSimon J. Gerraty	/dev/null or anything starting with "no"
1057956e45f6SSimon J. Gerraty	convert macros for debug flags into enum
1058956e45f6SSimon J. Gerraty	o make.c: inline Lst_Copy in Make_ExpandUse
1059956e45f6SSimon J. Gerraty	o meta.c: inline Lst_Find in meta_oodate
1060956e45f6SSimon J. Gerraty	make Lst_RemoveIf simpler in meta_oodate
1061956e45f6SSimon J. Gerraty	o parse.c: convert error level for Parse_Error to an enum
1062956e45f6SSimon J. Gerraty	o suff.c: properly terminate debug output with newline
1063956e45f6SSimon J. Gerraty	add more details to DEBUG_SRC log
1064956e45f6SSimon J. Gerraty	replace Dir_CopyDir with Dir_CopyDirSearchPath
1065956e45f6SSimon J. Gerraty	don't modify GNode name while rebuilding the suffix graph
1066956e45f6SSimon J. Gerraty	o var.c: reduce duplicate code in VarFind
1067956e45f6SSimon J. Gerraty
1068956e45f6SSimon J. Gerraty2020-10-22  Simon J Gerraty  <sjg@beast.crufty.net>
1069956e45f6SSimon J. Gerraty
1070956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201022
1071956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1072956e45f6SSimon J. Gerraty	o more refactoring and simplification to reduce code size
1073956e45f6SSimon J. Gerraty	o var.c: extract CanonicalVarname from VarFind
1074956e45f6SSimon J. Gerraty	o make.c: extract UpdateImplicitParentsVars from Make_Update
1075956e45f6SSimon J. Gerraty	o main.c: extract PrintVar from doPrintVars
1076956e45f6SSimon J. Gerraty	extract HandlePWD from main
1077956e45f6SSimon J. Gerraty	o lst.c: inline simple Lst getters
1078956e45f6SSimon J. Gerraty	remove unused Lst_ForEach
1079956e45f6SSimon J. Gerraty	o job.c: move struct Shell from job.h to job.c
1080956e45f6SSimon J. Gerraty	o more unit tests
1081956e45f6SSimon J. Gerraty
1082956e45f6SSimon J. Gerraty2020-10-19  Simon J Gerraty  <sjg@beast.crufty.net>
1083956e45f6SSimon J. Gerraty
1084956e45f6SSimon J. Gerraty	* configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT
1085956e45f6SSimon J. Gerraty
1086956e45f6SSimon J. Gerraty2020-10-18  Simon J Gerraty  <sjg@beast.crufty.net>
1087956e45f6SSimon J. Gerraty
1088956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201018
1089956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1090956e45f6SSimon J. Gerraty	o remove USE_IOVEC
1091956e45f6SSimon J. Gerraty	o rename some Hash_* apis to Hash*
1092956e45f6SSimon J. Gerraty	o replace execError with execDie
1093956e45f6SSimon J. Gerraty	o rename Lst_Init to Lst_New
1094956e45f6SSimon J. Gerraty	o add tags to enum types
1095956e45f6SSimon J. Gerraty	o rename Stack to Vector
1096956e45f6SSimon J. Gerraty	o parse.c: more refactoring
1097956e45f6SSimon J. Gerraty	o unit-tests: make some tests use line buffered stdout
1098956e45f6SSimon J. Gerraty	o unit-tests/Makefile: in meta mode do not make all tests depend on
1099956e45f6SSimon J. Gerraty	Makefile, it isn't necessary.
1100956e45f6SSimon J. Gerraty
1101956e45f6SSimon J. Gerraty2020-10-10  Simon J Gerraty  <sjg@beast.crufty.net>
1102956e45f6SSimon J. Gerraty
1103956e45f6SSimon J. Gerraty	* main.c: check for CTL_HW being defined.
1104956e45f6SSimon J. Gerraty	* unit-tests/Makefile: ensure export tests output are POSIX compliant
1105956e45f6SSimon J. Gerraty	disable opt-debug-jobs test until it works on ubuntu
1106956e45f6SSimon J. Gerraty
1107956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201010
1108956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1109956e45f6SSimon J. Gerraty	o dir.c: remove pathname limit for Dir_FindHereOrAbove
1110956e45f6SSimon J. Gerraty	o hash.c: replace strcpy with memcpy in Hash_CreateEntry
1111956e45f6SSimon J. Gerraty	o main.c: extract init_machine and init_machine_arch from main
1112956e45f6SSimon J. Gerraty	allow to disable debug logging options
1113956e45f6SSimon J. Gerraty	o parse.c: enable format string truncation warnings
1114956e45f6SSimon J. Gerraty	extract parsing of sources from ParseDoDependency
1115956e45f6SSimon J. Gerraty	split ParseDoSrc into smaller functions
1116956e45f6SSimon J. Gerraty	hide implementation details from Parse_DoVar
1117956e45f6SSimon J. Gerraty	clean up parsing of variable assignments
1118956e45f6SSimon J. Gerraty	split Parse_DoVar into manageable pieces
1119956e45f6SSimon J. Gerraty	don't modify the given line during Parse_DoVar
1120956e45f6SSimon J. Gerraty	fix out-of-bounds memory access in Parse_DoVar
1121956e45f6SSimon J. Gerraty	fix parsing of the :sh assignment modifier
1122956e45f6SSimon J. Gerraty	o var.c: rework memory allocation for the name of variables
1123956e45f6SSimon J. Gerraty	extract ApplyModifier_Literal into separate function
1124956e45f6SSimon J. Gerraty	in lint mode, reject modifiers without delimiter
1125956e45f6SSimon J. Gerraty	do not export variable names starting with '-'
1126956e45f6SSimon J. Gerraty	o fix double-free bug in -DCLEANUP mode
1127956e45f6SSimon J. Gerraty	o more cleanup to enable higher warnings level
1128956e45f6SSimon J. Gerraty	o more unit tests
1129956e45f6SSimon J. Gerraty
1130956e45f6SSimon J. Gerraty2020-10-02  Simon J Gerraty  <sjg@beast.crufty.net>
1131956e45f6SSimon J. Gerraty
1132956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201002
1133956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1134956e45f6SSimon J. Gerraty	o dir.c: use hash table for looking up open directories by name
1135956e45f6SSimon J. Gerraty	o main.c: clean up option handling
1136956e45f6SSimon J. Gerraty	o parse.c: add missing const for Parse_AddIncludeDir
1137956e45f6SSimon J. Gerraty	o var.c: ApplyModifier_To, update pp in each branch
1138956e45f6SSimon J. Gerraty	o remove redundant function prototypes
1139956e45f6SSimon J. Gerraty	o more unit tests
1140956e45f6SSimon J. Gerraty
1141956e45f6SSimon J. Gerraty2020-10-01  Simon J Gerraty  <sjg@beast.crufty.net>
1142956e45f6SSimon J. Gerraty
1143956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201001
1144956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1145956e45f6SSimon J. Gerraty	o compat.c: comment about "..."
1146956e45f6SSimon J. Gerraty
1147956e45f6SSimon J. Gerraty2020-09-30  Simon J Gerraty  <sjg@beast.crufty.net>
1148956e45f6SSimon J. Gerraty
1149956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200930
1150956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1151956e45f6SSimon J. Gerraty	o job.c: split Job.jobPipe into 2 separate fields
1152956e45f6SSimon J. Gerraty	replace Lst_Open with direct iteration
1153956e45f6SSimon J. Gerraty	o lst.c: remove redundant assertions
1154956e45f6SSimon J. Gerraty	o targ.c: replace Lst_Open with direct iteration
1155956e45f6SSimon J. Gerraty	o var.c: fix bug in evaluation of indirect variable modifiers
1156956e45f6SSimon J. Gerraty	extract ApplyModifier_Quote into separate function
1157956e45f6SSimon J. Gerraty	o make debug logging simpler
1158956e45f6SSimon J. Gerraty
1159956e45f6SSimon J. Gerraty2020-09-27  Simon J Gerraty  <sjg@beast.crufty.net>
1160956e45f6SSimon J. Gerraty
1161956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200927
1162956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1163956e45f6SSimon J. Gerraty	o parse.c: ensure parse errors result in 'stopped in' message.
1164956e45f6SSimon J. Gerraty	o compat.c: make parameter of Compat_RunCommand const
1165956e45f6SSimon J. Gerraty	o main.c: extract InitVarTarget from main
1166956e45f6SSimon J. Gerraty	o parse.c: rename ParseFinishLine to FinishDependencyGroup
1167956e45f6SSimon J. Gerraty	refactor ParseDoDependency
1168956e45f6SSimon J. Gerraty	o var.c: Var_Subst no longer returns string result
1169956e45f6SSimon J. Gerraty	rename Var_ParsePP back to Var_Parse
1170956e45f6SSimon J. Gerraty	in lint mode, improve error handling for undefined variables
1171956e45f6SSimon J. Gerraty	extract ParseVarname from Var_Parse
1172956e45f6SSimon J. Gerraty	o rename Lst_ForEach to Lst_ForEachUntil
1173956e45f6SSimon J. Gerraty	o inline Lst_ForEachUntil in several cases
1174956e45f6SSimon J. Gerraty	o clean up API for finding and creating GNodes
1175956e45f6SSimon J. Gerraty	o fix assertion failure in -j mode with .END node
1176956e45f6SSimon J. Gerraty	o inline and remove LstNode_Prev and LstNode_Next
1177956e45f6SSimon J. Gerraty	o use fine-grained type names for lists and their nodes
1178956e45f6SSimon J. Gerraty	o more unit tests
1179956e45f6SSimon J. Gerraty
1180956e45f6SSimon J. Gerraty2020-09-11  Simon J Gerraty  <sjg@beast.crufty.net>
1181956e45f6SSimon J. Gerraty
1182956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200911
1183956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1184956e45f6SSimon J. Gerraty	o cond.c: split EvalComparison into smaller functions
1185956e45f6SSimon J. Gerraty	reorder parameters of condition parsing functions
1186956e45f6SSimon J. Gerraty	reduce code size in CondParser_Eval
1187956e45f6SSimon J. Gerraty	rename CondGetString to CondParser_String
1188956e45f6SSimon J. Gerraty	add CondLexer_SkipWhitespace
1189956e45f6SSimon J. Gerraty	group the condition parsing state into a struct
1190956e45f6SSimon J. Gerraty	in CondGetString, replace repeated Buf_Add with Buf_AddStr
1191956e45f6SSimon J. Gerraty	o migrate Var_Parse to Var_ParsePP
1192956e45f6SSimon J. Gerraty	o add wrappers around ctype.h functions
1193956e45f6SSimon J. Gerraty	o lst.c: use a stack instead of a list for the nested include path
1194956e45f6SSimon J. Gerraty	o more unit tests
1195956e45f6SSimon J. Gerraty
1196956e45f6SSimon J. Gerraty2020-09-04  Simon J Gerraty  <sjg@beast.crufty.net>
1197956e45f6SSimon J. Gerraty
1198956e45f6SSimon J. Gerraty	* make-bootstrap.sh.in: adjust object list
1199956e45f6SSimon J. Gerraty
12002c3632d1SSimon J. Gerraty2020-09-02  Simon J Gerraty  <sjg@beast.crufty.net>
12012c3632d1SSimon J. Gerraty
12022c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200902
12032c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12042c3632d1SSimon J. Gerraty	o use make_stat to ensure no confusion over valid fields
12052c3632d1SSimon J. Gerraty	returned by cached_stat
12062c3632d1SSimon J. Gerraty	o var.c: make VarQuote const-correct
12072c3632d1SSimon J. Gerraty	o add unit tests for .for
12082c3632d1SSimon J. Gerraty
12092c3632d1SSimon J. Gerraty2020-09-01  Simon J Gerraty  <sjg@beast.crufty.net>
12102c3632d1SSimon J. Gerraty
12112c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200901
12122c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12132c3632d1SSimon J. Gerraty	o rename Hash_Table fields
12142c3632d1SSimon J. Gerraty	o make data types in Dir_HasWildcards more precise
12152c3632d1SSimon J. Gerraty
12162c3632d1SSimon J. Gerraty2020-08-31  Simon J Gerraty  <sjg@beast.crufty.net>
12172c3632d1SSimon J. Gerraty
12182c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200831
12192c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12202c3632d1SSimon J. Gerraty	o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds
12212c3632d1SSimon J. Gerraty	o lst.c: Lst_Open renable assert that list isn't open
12222c3632d1SSimon J. Gerraty	o unit test for .TARGET dependent flags
12232c3632d1SSimon J. Gerraty	o var.c: fix aliasing bug in VarUniq
12242c3632d1SSimon J. Gerraty	o more unit tests for :u
12252c3632d1SSimon J. Gerraty
12262c3632d1SSimon J. Gerraty2020-08-30  Simon J Gerraty  <sjg@beast.crufty.net>
12272c3632d1SSimon J. Gerraty
12282c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200830
12292c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12302c3632d1SSimon J. Gerraty	o allow for strict type checking for Boolean
12312c3632d1SSimon J. Gerraty	o Var_Parse never returns NULL
12322c3632d1SSimon J. Gerraty	o Var_Subst never returns NULL
12332c3632d1SSimon J. Gerraty	o Lst_Find now takes boolean match function
12342c3632d1SSimon J. Gerraty	o rename Lst_Memeber to Lst_FindDatum
12352c3632d1SSimon J. Gerraty	o rename LstNode functions to match their type
12362c3632d1SSimon J. Gerraty	o rename GNode.iParents to implicitParents
12372c3632d1SSimon J. Gerraty	o fix assertion failure for .SUFFIXES in archives
12382c3632d1SSimon J. Gerraty	o compat.c: clean up documentation for CompatInterrupt and Compat_Run
12392c3632d1SSimon J. Gerraty	remove unreachable code from CompatRunCommand
12402c3632d1SSimon J. Gerraty	o main.c: simplify getBoolean
12412c3632d1SSimon J. Gerraty	o stc.c: replace brk_string with simpler Str_Words
12422c3632d1SSimon J. Gerraty	o suff.c: add debug macros
12432c3632d1SSimon J. Gerraty
12442c3632d1SSimon J. Gerraty2020-08-28  Simon J Gerraty  <sjg@beast.crufty.net>
12452c3632d1SSimon J. Gerraty
12462c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200828
12472c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12482c3632d1SSimon J. Gerraty	o lst.c: inline LstIsValid and LstNodeIsValid
12492c3632d1SSimon J. Gerraty	o remove trailing S from Lst function names after migration complete
12502c3632d1SSimon J. Gerraty	o more comment cleanup/clarification
12512c3632d1SSimon J. Gerraty	o suff.c: clean up suffix handling
12522c3632d1SSimon J. Gerraty	o more unit tests
12532c3632d1SSimon J. Gerraty
12542c3632d1SSimon J. Gerraty2020-08-26  Simon J Gerraty  <sjg@beast.crufty.net>
12552c3632d1SSimon J. Gerraty
12562c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200826
12572c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12582c3632d1SSimon J. Gerraty	o enum.c: distinguish between bitsets containing flags and
12592c3632d1SSimon J. Gerraty	ordinary enums
12602c3632d1SSimon J. Gerraty	o var.c: fix error message for ::!= modifier with shell error
12612c3632d1SSimon J. Gerraty	o fix bugs in -DCLEANUP mode
12622c3632d1SSimon J. Gerraty
12632c3632d1SSimon J. Gerraty2020-08-24  Simon J Gerraty  <sjg@beast.crufty.net>
12642c3632d1SSimon J. Gerraty
12652c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200824
12662c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12672c3632d1SSimon J. Gerraty	o in debug mode, print GNode details in symbols
12682c3632d1SSimon J. Gerraty
12692c3632d1SSimon J. Gerraty2020-08-23  Simon J Gerraty  <sjg@beast.crufty.net>
12702c3632d1SSimon J. Gerraty
12712c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200823
12722c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12732c3632d1SSimon J. Gerraty	o lst.c: more asserts,
12742c3632d1SSimon J. Gerraty	make args to Lst_Find match others.
12752c3632d1SSimon J. Gerraty	o var.c: pass flags to VarAdd
12762c3632d1SSimon J. Gerraty	o arch.c: use Buffer
12772c3632d1SSimon J. Gerraty	o str.c: brk_string return size_t for nwords
12782c3632d1SSimon J. Gerraty	o more unit tests
12792c3632d1SSimon J. Gerraty
12802c3632d1SSimon J. Gerraty2020-08-22  Simon J Gerraty  <sjg@beast.crufty.net>
12812c3632d1SSimon J. Gerraty
12822c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION):
12832c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12842c3632d1SSimon J. Gerraty	o var.c: support for read-only variables eg .SHELL
12852c3632d1SSimon J. Gerraty	being the shell used to run scripts.
12862c3632d1SSimon J. Gerraty	o lst.c: more simplification
12872c3632d1SSimon J. Gerraty	o more documentation and style cleanup
12882c3632d1SSimon J. Gerraty	o more unit tests
12892c3632d1SSimon J. Gerraty	o ensure unit-test/Makefile is run by TEST_MAKE
12902c3632d1SSimon J. Gerraty	o reduce duplication of header inclusion
12912c3632d1SSimon J. Gerraty
12922c3632d1SSimon J. Gerraty2020-08-21  Simon J Gerraty  <sjg@beast.crufty.net>
12932c3632d1SSimon J. Gerraty
12942c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200821
12952c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
12962c3632d1SSimon J. Gerraty	o lst.c: revert invalid assertion - but document it
12972c3632d1SSimon J. Gerraty	o dir.c: split Dir_Init into two functions
12982c3632d1SSimon J. Gerraty
12992c3632d1SSimon J. Gerraty2020-08-20  Simon J Gerraty  <sjg@beast.crufty.net>
13002c3632d1SSimon J. Gerraty
13012c3632d1SSimon J. Gerraty	* lst.c: needs inttypes.h on Linux
13022c3632d1SSimon J. Gerraty
13032c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200820
13042c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13052c3632d1SSimon J. Gerraty	o make.1: clarify some passages
13062c3632d1SSimon J. Gerraty	o var.c: more cleanup, clarify comments
13072c3632d1SSimon J. Gerraty	o make_malloc.c: remove unreachable code
13082c3632d1SSimon J. Gerraty	o cond.c: make CondGetString easier to debug
13092c3632d1SSimon J. Gerraty	o simplify list usage
13102c3632d1SSimon J. Gerraty	o unit-tests: more
13112c3632d1SSimon J. Gerraty
13122c3632d1SSimon J. Gerraty2020-08-16  Simon J Gerraty  <sjg@beast.crufty.net>
13132c3632d1SSimon J. Gerraty
13142c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200816
13152c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13162c3632d1SSimon J. Gerraty	o refactor unit-tests to be more fine grained
13172c3632d1SSimon J. Gerraty	  not all tests moved yet
13182c3632d1SSimon J. Gerraty
13192c3632d1SSimon J. Gerraty2020-08-14  Simon J Gerraty  <sjg@beast.crufty.net>
13202c3632d1SSimon J. Gerraty
13212c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200814
13222c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13232c3632d1SSimon J. Gerraty	o more str_concat variants
13242c3632d1SSimon J. Gerraty	o more enums for flags
13252c3632d1SSimon J. Gerraty	o var.c: cleanup for higher warnings level
13262c3632d1SSimon J. Gerraty
13272c3632d1SSimon J. Gerraty2020-08-10  Simon J Gerraty  <sjg@beast.crufty.net>
13282c3632d1SSimon J. Gerraty
13292c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200810
13302c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13312c3632d1SSimon J. Gerraty	o more unit tests
13322c3632d1SSimon J. Gerraty	o general comment and style cleanup
13332c3632d1SSimon J. Gerraty
13342c3632d1SSimon J. Gerraty2020-08-08  Simon J Gerraty  <sjg@beast.crufty.net>
13352c3632d1SSimon J. Gerraty
13362c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200808
13372c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13382c3632d1SSimon J. Gerraty	o enum.[ch]: streamline, enums for use in flags and debug output
13392c3632d1SSimon J. Gerraty	o cond.c: cleanup
13402c3632d1SSimon J. Gerraty	o var.c: reduce duplicate code for modifiers
13412c3632d1SSimon J. Gerraty	debug logging for Var_Parse
13422c3632d1SSimon J. Gerraty	more detailed debug output
13432c3632d1SSimon J. Gerraty	o more unit tests
13442c3632d1SSimon J. Gerraty
13452c3632d1SSimon J. Gerraty2020-08-06  Simon J Gerraty  <sjg@beast.crufty.net>
13462c3632d1SSimon J. Gerraty
13472c3632d1SSimon J. Gerraty	* unit-tests/Makefile: -r for recursive and include Makefile.inc
13482c3632d1SSimon J. Gerraty	so I can run tests in meta mode
13492c3632d1SSimon J. Gerraty	supress extra noise if in meta mode
13502c3632d1SSimon J. Gerraty
13512c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200806
13522c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13532c3632d1SSimon J. Gerraty	o parse.c: remove VARE_WANTRES for LINT
13542c3632d1SSimon J. Gerraty	we just want to check parsing (for now).
13552c3632d1SSimon J. Gerraty
13562c3632d1SSimon J. Gerraty2020-08-05  Simon J Gerraty  <sjg@beast.crufty.net>
13572c3632d1SSimon J. Gerraty
13582c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200805
13592c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13602c3632d1SSimon J. Gerraty	o make.1: Rework the description of dependence operators
13612c3632d1SSimon J. Gerraty
13622c3632d1SSimon J. Gerraty2020-08-03  Simon J Gerraty  <sjg@beast.crufty.net>
13632c3632d1SSimon J. Gerraty
13642c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200803
13652c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13662c3632d1SSimon J. Gerraty	o revert some C99 usage, for max portability
13672c3632d1SSimon J. Gerraty	o unit-tests/lint
13682c3632d1SSimon J. Gerraty
13692c3632d1SSimon J. Gerraty2020-08-02  Simon J Gerraty  <sjg@beast.crufty.net>
13702c3632d1SSimon J. Gerraty
13712c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200802
13722c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13732c3632d1SSimon J. Gerraty	o more unit tests
13742c3632d1SSimon J. Gerraty
13752c3632d1SSimon J. Gerraty2020-08-01  Simon J Gerraty  <sjg@beast.crufty.net>
13762c3632d1SSimon J. Gerraty
13772c3632d1SSimon J. Gerraty	* Remove NetBSD specific plumbing from unit-tests/Makefile
13782c3632d1SSimon J. Gerraty
13792c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200801
13802c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13812c3632d1SSimon J. Gerraty	o make Var_Value return const
13822c3632d1SSimon J. Gerraty	o size_t for buf sizes
13832c3632d1SSimon J. Gerraty	o optimize some buffer operations - avoid strlen
13842c3632d1SSimon J. Gerraty
13852c3632d1SSimon J. Gerraty2020-07-31  Simon J Gerraty  <sjg@beast.crufty.net>
13862c3632d1SSimon J. Gerraty
13872c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200731
13882c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
13892c3632d1SSimon J. Gerraty	o var.c: fix undefinded behavior for incomplete :t modifier
13902c3632d1SSimon J. Gerraty	  fixes unit-test/moderrs on Ubuntu
13912c3632d1SSimon J. Gerraty	o parse.c: When parsing variable assignments other than :=
13922c3632d1SSimon J. Gerraty	  if DEBUG(LINT) test substition of value, so we get a file and
13932c3632d1SSimon J. Gerraty	  line number in the resulting error.
13942c3632d1SSimon J. Gerraty	o dir.c: fix parsing of nested braces in dependency lines
13952c3632d1SSimon J. Gerraty	  add unit-tests
13962c3632d1SSimon J. Gerraty
13972c3632d1SSimon J. Gerraty2020-07-30  Simon J Gerraty  <sjg@beast.crufty.net>
13982c3632d1SSimon J. Gerraty
13992c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200730
14002c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14012c3632d1SSimon J. Gerraty	o var.c: minor cleanup
14022c3632d1SSimon J. Gerraty	o unit-tests: more tests to improve code coverage
14032c3632d1SSimon J. Gerraty
14042c3632d1SSimon J. Gerraty2020-07-28  Simon J Gerraty  <sjg@beast.crufty.net>
14052c3632d1SSimon J. Gerraty
14062c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200728
14072c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14082c3632d1SSimon J. Gerraty	o var.c: more optimizations
14092c3632d1SSimon J. Gerraty
14102c3632d1SSimon J. Gerraty2020-07-26  Simon J Gerraty  <sjg@beast.crufty.net>
14112c3632d1SSimon J. Gerraty
14122c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200726
14132c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14142c3632d1SSimon J. Gerraty	o collapse lsd.lib into lst.c - reduce code size and allow inlining
14152c3632d1SSimon J. Gerraty	o lots of function comment updates
14162c3632d1SSimon J. Gerraty	o var.c: more optimizations
14172c3632d1SSimon J. Gerraty	o make return of Var_Parse const
14182c3632d1SSimon J. Gerraty
14192c3632d1SSimon J. Gerraty2020-07-20  Simon J Gerraty  <sjg@beast.crufty.net>
14202c3632d1SSimon J. Gerraty
14212c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200720
14222c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14232c3632d1SSimon J. Gerraty	o DEBUG_HASH report stats at end and tone down the noise
14242c3632d1SSimon J. Gerraty	o var.c: each flag type gets its own prefix.
14252c3632d1SSimon J. Gerraty	move SysV string matching to var.c
14262c3632d1SSimon J. Gerraty	make ampersand in ${VAR:from=to&} an ordinary character
14272c3632d1SSimon J. Gerraty	cleanup and simplify implementation of modifiers
14282c3632d1SSimon J. Gerraty	o make.1: move documentation for assignment modifiers
14292c3632d1SSimon J. Gerraty
14302c3632d1SSimon J. Gerraty2020-07-18  Simon J Gerraty  <sjg@beast.crufty.net>
14312c3632d1SSimon J. Gerraty
14322c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200718
14332c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14342c3632d1SSimon J. Gerraty	o DEBUG_HASH to see how well the hash tables are working
14352c3632d1SSimon J. Gerraty
14362c3632d1SSimon J. Gerraty2020-07-11  Simon J Gerraty  <sjg@beast.crufty.net>
14372c3632d1SSimon J. Gerraty
14382c3632d1SSimon J. Gerraty	* bsd.after-import.mk: make sure we update unit-tests/Makefile
14392c3632d1SSimon J. Gerraty
14403841c287SSimon J. Gerraty2020-07-10  Simon J Gerraty  <sjg@beast.crufty.net>
14413841c287SSimon J. Gerraty
14423841c287SSimon J. Gerraty	* configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC
14433841c287SSimon J. Gerraty
14443841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200710
14453841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
14463841c287SSimon J. Gerraty	o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall
14473841c287SSimon J. Gerraty	o meta.c: target flagged .META is out-of-date if meta file missing
14483841c287SSimon J. Gerraty
14493841c287SSimon J. Gerraty2020-07-09  Simon J Gerraty  <sjg@beast.crufty.net>
14503841c287SSimon J. Gerraty
14513841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200709
14523841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
14533841c287SSimon J. Gerraty	o cond.c: fix for compare_expression when doEval=0
14543841c287SSimon J. Gerraty	o unit-tests/Makefile: rework
14553841c287SSimon J. Gerraty	o filemon/filemon_dev.c: ensure filemon fd is closed on exec.
14563841c287SSimon J. Gerraty
14573841c287SSimon J. Gerraty2020-07-04  Simon J Gerraty  <sjg@beast.crufty.net>
14583841c287SSimon J. Gerraty
14593841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200704
14603841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
14613841c287SSimon J. Gerraty	(most of this by rillig@)
14623841c287SSimon J. Gerraty	o lots of style and white-space cleanup
14633841c287SSimon J. Gerraty	o lots more unit tests for variable modifiers
14643841c287SSimon J. Gerraty	o simplified description of some functions
14653841c287SSimon J. Gerraty	o str.c: refactor Str_Match
14663841c287SSimon J. Gerraty	o var.c: debugging output for :@
14673841c287SSimon J. Gerraty	  constify VarModify parameter
14683841c287SSimon J. Gerraty	  fix :hash modifier on 16-bit platforms
14693841c287SSimon J. Gerraty	  remove unnecessary forward declarations
14703841c287SSimon J. Gerraty	  refactor ApplyModifier_SysV to have less indentation
14713841c287SSimon J. Gerraty	  simplify code for :E and :R
14723841c287SSimon J. Gerraty	  clean up code for :H and :T
14733841c287SSimon J. Gerraty	  refactor ApplyModifiers
14743841c287SSimon J. Gerraty
14753841c287SSimon J. Gerraty	* var.c: we need stdint.h on some platforms to get uint32_t
14763841c287SSimon J. Gerraty	* unit-test/Makefile: we need to supress the specific error
14773841c287SSimon J. Gerraty	for RE substitution error in modmisc, since it varies accross
14783841c287SSimon J. Gerraty	different OS.
14793841c287SSimon J. Gerraty
14803841c287SSimon J. Gerraty2020-07-02  Simon J Gerraty  <sjg@beast.crufty.net>
14813841c287SSimon J. Gerraty
14823841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200702
14833841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
14843841c287SSimon J. Gerraty	o var.c: more improvements to avoiding unnecessary evaluation
14853841c287SSimon J. Gerraty	use enums for flags
14863841c287SSimon J. Gerraty	o remove flags arg to Var_Set which outside of var.c is always 0
14873841c287SSimon J. Gerraty
14883841c287SSimon J. Gerraty2020-07-01  Simon J Gerraty  <sjg@beast.crufty.net>
14893841c287SSimon J. Gerraty
14903841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200701
14913841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
14923841c287SSimon J. Gerraty	o var.c: with change to cond.c; ensure that nested variables
14933841c287SSimon J. Gerraty	within a variable name are expanded.
14943841c287SSimon J. Gerraty	o unit-tests/varmisc.mk: test for nested varname
14953841c287SSimon J. Gerraty
14963841c287SSimon J. Gerraty2020-06-29  Simon J Gerraty  <sjg@beast.crufty.net>
14973841c287SSimon J. Gerraty
14983841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200629
14993841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
15003841c287SSimon J. Gerraty	o cond.c: do not eval unnecessary terms of conditionals.
15013841c287SSimon J. Gerraty
15023841c287SSimon J. Gerraty2020-06-25  Simon J Gerraty  <sjg@beast.crufty.net>
15033841c287SSimon J. Gerraty
15043841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200625
15053841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
15063841c287SSimon J. Gerraty	o meta.c: report error if lseek in filemon_read fails
15073841c287SSimon J. Gerraty
15083841c287SSimon J. Gerraty2020-06-22  Simon J Gerraty  <sjg@beast.crufty.net>
15093841c287SSimon J. Gerraty
15103841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200622
15113841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
15123841c287SSimon J. Gerraty	o dieQuietly: ignore OP_SUBMAKE as too aggressive
15133841c287SSimon J. Gerraty
15143841c287SSimon J. Gerraty2020-06-19  Simon J Gerraty  <sjg@beast.crufty.net>
15153841c287SSimon J. Gerraty
15163841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200619
15173841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
15183841c287SSimon J. Gerraty	o str.c: performance improvement for Str_Match for multiple '*'
15193841c287SSimon J. Gerraty	o dieQuietly: supress the failure output from make
15203841c287SSimon J. Gerraty	when failing node is a sub-make or a sibling failed.
15213841c287SSimon J. Gerraty	This cuts down greatly on unhelpful noise at the end of
15223841c287SSimon J. Gerraty	build log.  Disabled by -dj or .MAKE.DIE_QUIETLY=no
15233841c287SSimon J. Gerraty
15243841c287SSimon J. Gerraty2020-06-10  Simon J Gerraty  <sjg@beast.crufty.net>
15253841c287SSimon J. Gerraty
15263841c287SSimon J. Gerraty	* FILES: add LICENSE to appease some packagers.
15273841c287SSimon J. Gerraty	This is an attempt to fairly represent the license on almost
15283841c287SSimon J. Gerraty	200 files, which are almost all BSD-3-Clause
15293841c287SSimon J. Gerraty	The few exceptions being more liberal.
15303841c287SSimon J. Gerraty
15313841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200610
15323841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
15333841c287SSimon J. Gerraty	o unit test for :Or
15343841c287SSimon J. Gerraty
1535ef0b2538SSimon J. Gerraty2020-06-06  Simon J Gerraty  <sjg@beast.crufty.net>
1536ef0b2538SSimon J. Gerraty
1537ef0b2538SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200606
1538ef0b2538SSimon J. Gerraty	Merge with NetBSD make, pick up
1539ef0b2538SSimon J. Gerraty	o make.1: cleanup
1540ef0b2538SSimon J. Gerraty
1541ef0b2538SSimon J. Gerraty	* Makefile: fix depends for main.o which broke MAKE_VERSION
1542ef0b2538SSimon J. Gerraty
1543ef0b2538SSimon J. Gerraty2020-06-05  Simon J Gerraty  <sjg@beast.crufty.net>
1544ef0b2538SSimon J. Gerraty
1545ef0b2538SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200605
1546ef0b2538SSimon J. Gerraty	Merge with NetBSD make, pick up
1547ef0b2538SSimon J. Gerraty	o dir.c: cached_stats - don't confuse stat and lstat results.
1548ef0b2538SSimon J. Gerraty	o var.c: add :Or for reverse sort.
1549ef0b2538SSimon J. Gerraty
1550ef0b2538SSimon J. Gerraty2020-05-24  Simon J Gerraty  <sjg@beast.crufty.net>
1551ef0b2538SSimon J. Gerraty
1552ef0b2538SSimon J. Gerraty	* configure.in: add AC_PROG_CC_C99 for mipspro compiler
1553ef0b2538SSimon J. Gerraty	also if --with-filemon= specifies path to filemon.h
1554ef0b2538SSimon J. Gerraty	set use_filemon=dev
1555ef0b2538SSimon J. Gerraty	* dirname.c: remove include of namespace.h
1556ef0b2538SSimon J. Gerraty
155749caa483SSimon J. Gerraty2020-05-17  Simon J Gerraty  <sjg@beast.crufty.net>
155849caa483SSimon J. Gerraty
155949caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200517
156049caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
156149caa483SSimon J. Gerraty	o modified dollar tests to avoid shell dependencies
156249caa483SSimon J. Gerraty	o new tests for .INCLUDEFROM
156349caa483SSimon J. Gerraty
156449caa483SSimon J. Gerraty2020-05-16  Simon J Gerraty  <sjg@beast.crufty.net>
156549caa483SSimon J. Gerraty
156649caa483SSimon J. Gerraty	* unit-tests/dollar.mk: tweak  '1 dollar literal' test
156749caa483SSimon J. Gerraty	to not depend so much on shell behavior
156849caa483SSimon J. Gerraty
156949caa483SSimon J. Gerraty2020-05-10  Simon J Gerraty  <sjg@beast.crufty.net>
157049caa483SSimon J. Gerraty
157149caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200510
157249caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
157349caa483SSimon J. Gerraty	o unit test for dollar handling
157449caa483SSimon J. Gerraty
157549caa483SSimon J. Gerraty2020-05-06  Simon J Gerraty  <sjg@beast.crufty.net>
157649caa483SSimon J. Gerraty
157749caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200506
157849caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
157949caa483SSimon J. Gerraty	o str.c: empty string does not match % pattern
158049caa483SSimon J. Gerraty	  plus unit-test changes
158149caa483SSimon J. Gerraty
158249caa483SSimon J. Gerraty2020-05-04  Simon J Gerraty  <sjg@beast.crufty.net>
158349caa483SSimon J. Gerraty
158449caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200504
158549caa483SSimon J. Gerraty	May the 4th be with you
158649caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
158749caa483SSimon J. Gerraty	o var.c: import handling of old sysV style modifier using '%'
158849caa483SSimon J. Gerraty	o str.c: refactor brk_string
158949caa483SSimon J. Gerraty	o unit-tests: add test case for lazy conditions
159049caa483SSimon J. Gerraty
159149caa483SSimon J. Gerraty2020-04-18  Simon J Gerraty  <sjg@beast.crufty.net>
159249caa483SSimon J. Gerraty
159349caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200418
159449caa483SSimon J. Gerraty
159549caa483SSimon J. Gerraty	* configure.in: use_makefile=no for cygwin et al.
159649caa483SSimon J. Gerraty	case insensitive filesystems just don't work if both
159749caa483SSimon J. Gerraty	makefile and Makefile exist.
159849caa483SSimon J. Gerraty	NOTE: bmake does not support cygwin and likely never will,
159949caa483SSimon J. Gerraty	but if brave souls want to try it - help them out.
160049caa483SSimon J. Gerraty
160149caa483SSimon J. Gerraty2020-04-02  Simon J Gerraty  <sjg@beast.crufty.net>
160249caa483SSimon J. Gerraty
160349caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200402
160449caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
160549caa483SSimon J. Gerraty	o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD
160649caa483SSimon J. Gerraty	  a blank command is perfectly valid.
160749caa483SSimon J. Gerraty
160849caa483SSimon J. Gerraty2020-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
160949caa483SSimon J. Gerraty
161049caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200330
161149caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
161249caa483SSimon J. Gerraty	o make.h: extern debug_file
161349caa483SSimon J. Gerraty
161449caa483SSimon J. Gerraty2020-03-18  Simon J Gerraty  <sjg@beast.crufty.net>
161549caa483SSimon J. Gerraty
161649caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200318
161749caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
161849caa483SSimon J. Gerraty	o meta.c: meta_oodate, check for corrupted meta file
161949caa483SSimon J. Gerraty	  earlier and more often.
162049caa483SSimon J. Gerraty
162149caa483SSimon J. Gerraty2020-02-20  Simon J Gerraty  <sjg@beast.crufty.net>
162249caa483SSimon J. Gerraty
162349caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200220
162449caa483SSimon J. Gerraty
162549caa483SSimon J. Gerraty2020-02-19  Simon J Gerraty  <sjg@beast.crufty.net>
162649caa483SSimon J. Gerraty
162749caa483SSimon J. Gerraty	* boot-strap: unset MAKEFLAGS
162849caa483SSimon J. Gerraty
162949caa483SSimon J. Gerraty2020-02-12  Simon J Gerraty  <sjg@beast.crufty.net>
163049caa483SSimon J. Gerraty
163149caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200212
163249caa483SSimon J. Gerraty	* meta.c: meta_compat_parent check for USE_FILEMON
163349caa483SSimon J. Gerraty	  patch from Soeren Tempel
163449caa483SSimon J. Gerraty
163549caa483SSimon J. Gerraty2020-02-05  Simon J Gerraty  <sjg@beast.crufty.net>
163649caa483SSimon J. Gerraty
163749caa483SSimon J. Gerraty	* VERSION: 20200205
163849caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
163949caa483SSimon J. Gerraty	o meta.c: fix compat mode, need to call meta_job_output()
164049caa483SSimon J. Gerraty	o job.c: extra fds for meta mode not needed if using filemon_dev
164149caa483SSimon J. Gerraty
164249caa483SSimon J. Gerraty2020-01-22  Simon J Gerraty  <sjg@beast.crufty.net>
164349caa483SSimon J. Gerraty
164449caa483SSimon J. Gerraty	* VERSION: 20200122
164549caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
164649caa483SSimon J. Gerraty	o meta.c: avoid passing NULL to filemon_*() when meta_needed()
164749caa483SSimon J. Gerraty	  returns FALSE.
164849caa483SSimon J. Gerraty
164949caa483SSimon J. Gerraty2020-01-21  Simon J Gerraty  <sjg@beast.crufty.net>
165049caa483SSimon J. Gerraty
165149caa483SSimon J. Gerraty	* VERSION: 20200121
165249caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
165349caa483SSimon J. Gerraty	o filemon/filemon_{dev,ktrace}.c: allow selection of
165449caa483SSimon J. Gerraty	  filemon implementation.  filemon_dev.c uses the kernel module
165549caa483SSimon J. Gerraty	  while filemon_ktrace.c leverages the fktrace api available in
165649caa483SSimon J. Gerraty	  NetBSD.  filemon_ktrace.c can hopefully form the basis for
165749caa483SSimon J. Gerraty	  adding support for other tracing mechanisms such as strace on
165849caa483SSimon J. Gerraty	  Linux.
165949caa483SSimon J. Gerraty	o meta.c: when target is out-of-date per normal make rules
166049caa483SSimon J. Gerraty	  record value of .OODATE in meta file.
166149caa483SSimon J. Gerraty
166249caa483SSimon J. Gerraty2019-09-26  Simon J Gerraty  <sjg@beast.crufty.net>
166349caa483SSimon J. Gerraty
166449caa483SSimon J. Gerraty	* VERSION: 20190926
166549caa483SSimon J. Gerraty	  Merge with NetBSD make, pick up
166649caa483SSimon J. Gerraty	  o parse.c: don't pass NULL to realpath(3)
166749caa483SSimon J. Gerraty	    some versions cannot handle it.
166849caa483SSimon J. Gerraty
166949caa483SSimon J. Gerraty2019-04-09  Simon J Gerraty  <sjg@beast.crufty.net>
167049caa483SSimon J. Gerraty
167149caa483SSimon J. Gerraty	* VERSION: 20190409
167249caa483SSimon J. Gerraty	  Merge with NetBSD make, pick up
167349caa483SSimon J. Gerraty	  o parse.c: ParseDoDependency: free paths rather than assert
167449caa483SSimon J. Gerraty
167549caa483SSimon J. Gerraty2018-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
167649caa483SSimon J. Gerraty
167749caa483SSimon J. Gerraty	* VERSION: 20181222
167849caa483SSimon J. Gerraty
167949caa483SSimon J. Gerraty	* configure.in: add --without-makefile to avoid generating
168049caa483SSimon J. Gerraty	  makefile and make-bootstrap.sh
168149caa483SSimon J. Gerraty
168249caa483SSimon J. Gerraty	* include Makefile.inc if it exists
168349caa483SSimon J. Gerraty
168449caa483SSimon J. Gerraty	* Use Makefile and Makefile.config.in in unit-tests
168549caa483SSimon J. Gerraty	  so we can use just: make obj && make && make test
168649caa483SSimon J. Gerraty	  when bmake is already available.
168749caa483SSimon J. Gerraty	  We add --without-makefile to CONFIGURE_ARGS in this case.
168849caa483SSimon J. Gerraty
168949caa483SSimon J. Gerraty	* tweak bsd.after-import.mk (captures Makefile.config etc
169049caa483SSimon J. Gerraty	  after import to FreeBSD for example) to cope with all the above.
169149caa483SSimon J. Gerraty
1692dfd669abSSimon J. Gerraty2018-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
1693dfd669abSSimon J. Gerraty
1694dfd669abSSimon J. Gerraty	* VERSION: 20181221
1695dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1696dfd669abSSimon J. Gerraty	  o parse.c: ParseVErrorInternal use .PARSEDIR
1697dfd669abSSimon J. Gerraty	    and apply if relative, and then use .PARSEFILE
1698dfd669abSSimon J. Gerraty	    for consistent result.
1699dfd669abSSimon J. Gerraty
1700dfd669abSSimon J. Gerraty2018-12-20  Simon J Gerraty  <sjg@beast.crufty.net>
1701dfd669abSSimon J. Gerraty
1702dfd669abSSimon J. Gerraty	* VERSION: 20181220
1703dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1704dfd669abSSimon J. Gerraty	  o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR
1705dfd669abSSimon J. Gerraty	    is relative
1706dfd669abSSimon J. Gerraty	  o var.c: avoid SEGFAULT in .unexport-env
1707dfd669abSSimon J. Gerraty	    when MAKELEVEL is not set
1708dfd669abSSimon J. Gerraty
1709dfd669abSSimon J. Gerraty2018-12-16  Simon J Gerraty  <sjg@beast.crufty.net>
1710dfd669abSSimon J. Gerraty
1711dfd669abSSimon J. Gerraty	* VERSION: 20181216
1712dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1713dfd669abSSimon J. Gerraty	  o fix for unit-tests/varquote.mk on Debian
1714dfd669abSSimon J. Gerraty
17152eae894cSSimon J. Gerraty2018-09-21  Simon J. Gerraty  <sjg@bad.crufty.net>
17162eae894cSSimon J. Gerraty
17172eae894cSSimon J. Gerraty	* VERSION: 20180919
17182eae894cSSimon J. Gerraty	  Merge with NetBSD make, pick up
17192eae894cSSimon J. Gerraty	  o var.c: add :q
17202eae894cSSimon J. Gerraty	  o dir.c: cleanup caching of stats
17212eae894cSSimon J. Gerraty
17222eae894cSSimon J. Gerraty2018-09-21  Simon J Gerraty  <sjg@beast.crufty.net>
17232eae894cSSimon J. Gerraty
17242eae894cSSimon J. Gerraty	* Makefile.config.in: use += where it makes sense.
17252eae894cSSimon J. Gerraty
1726494f7191SSimon J. Gerraty2018-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
1727494f7191SSimon J. Gerraty
1728494f7191SSimon J. Gerraty	* VERSION: 20180512
1729494f7191SSimon J. Gerraty	  Merge with NetBSD make, pick up
1730494f7191SSimon J. Gerraty	  o job.c: skip polling job token pipe
1731494f7191SSimon J. Gerraty
1732494f7191SSimon J. Gerraty2018-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1733494f7191SSimon J. Gerraty
1734494f7191SSimon J. Gerraty	* VERSION: 20180405
1735494f7191SSimon J. Gerraty	  Merge with NetBSD make, pick up
1736494f7191SSimon J. Gerraty	  o parse.c: be more cautious about detecting depenency line
1737494f7191SSimon J. Gerraty	    rather than sysV style include.
1738494f7191SSimon J. Gerraty
173950d2e745SSimon J. Gerraty2018-02-22  Simon J. Gerraty  <sjg@bad.crufty.net>
174050d2e745SSimon J. Gerraty
174150d2e745SSimon J. Gerraty	* VERSION: 20180222
174250d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
174350d2e745SSimon J. Gerraty	  o parse.c: avoid calling sysconf for every call to loadfile
174450d2e745SSimon J. Gerraty
174550d2e745SSimon J. Gerraty2018-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
174650d2e745SSimon J. Gerraty
174750d2e745SSimon J. Gerraty	* VERSION: 20180218
174850d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
174950d2e745SSimon J. Gerraty	  o var.c: Var_Set handle NULL value anytime.
175050d2e745SSimon J. Gerraty
175150d2e745SSimon J. Gerraty2018-02-12  Simon J. Gerraty  <sjg@bad.crufty.net>
175250d2e745SSimon J. Gerraty
175350d2e745SSimon J. Gerraty	* VERSION: 20180212
175450d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
175550d2e745SSimon J. Gerraty	  o parse.c: do not treat .info as warning with -W
175650d2e745SSimon J. Gerraty
175750d2e745SSimon J. Gerraty2017-12-07  Simon J. Gerraty  <sjg@bad.crufty.net>
175850d2e745SSimon J. Gerraty
175950d2e745SSimon J. Gerraty	* VERSION: 20171207
176050d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
176150d2e745SSimon J. Gerraty	  o var.c: Var_Append use Var_Set if var not previously set
176250d2e745SSimon J. Gerraty	    so that VAR_CMD is handled correctly.
176350d2e745SSimon J. Gerraty	    Add a suitable unit-test.
176450d2e745SSimon J. Gerraty
176550d2e745SSimon J. Gerraty2017-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
176650d2e745SSimon J. Gerraty
176750d2e745SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20171126
176850d2e745SSimon J. Gerraty
176950d2e745SSimon J. Gerraty	* aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__
177050d2e745SSimon J. Gerraty	  since AC_TRY_COMPILE puts input inside main()
177150d2e745SSimon J. Gerraty	  which upsets modern compilers.
177250d2e745SSimon J. Gerraty
177350d2e745SSimon J. Gerraty2017-11-18  Simon J. Gerraty  <sjg@bad.crufty.net>
177450d2e745SSimon J. Gerraty
177550d2e745SSimon J. Gerraty	* VERSION: 20171118
177650d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
177750d2e745SSimon J. Gerraty	  o var.c: do not append to variable set on command line
177850d2e745SSimon J. Gerraty	    add unit-test to catch this.
177950d2e745SSimon J. Gerraty
1780e22fef7dSSimon J. Gerraty2017-10-28  Simon J. Gerraty  <sjg@bad.crufty.net>
1781e22fef7dSSimon J. Gerraty
1782e22fef7dSSimon J. Gerraty	* VERSION: 20171028
1783e22fef7dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1784e22fef7dSSimon J. Gerraty	  o main.c: ignore empty MAKEOBJDIR
1785e22fef7dSSimon J. Gerraty
1786e22fef7dSSimon J. Gerraty	* Makefile.config.in:
1787e22fef7dSSimon J. Gerraty	  make @prefix@ @machine*@ and @default_sys_path@ defaults.
1788e22fef7dSSimon J. Gerraty
1789e22fef7dSSimon J. Gerraty2017-10-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1790e22fef7dSSimon J. Gerraty
1791e22fef7dSSimon J. Gerraty	* VERSION: 20171005
1792e22fef7dSSimon J. Gerraty
1793e22fef7dSSimon J. Gerraty	* unit-tests/dotwait.mk: redirect stderr through pipe for more
1794e22fef7dSSimon J. Gerraty	  consistent result on some platforms.
1795e22fef7dSSimon J. Gerraty
1796e22fef7dSSimon J. Gerraty2017-08-13  Simon J. Gerraty  <sjg@bad.crufty.net>
1797e22fef7dSSimon J. Gerraty
1798e22fef7dSSimon J. Gerraty	* machine.sh: entry for AIX
1799e22fef7dSSimon J. Gerraty
1800e22fef7dSSimon J. Gerraty2017-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
1801e22fef7dSSimon J. Gerraty
1802e22fef7dSSimon J. Gerraty	* VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION
1803e22fef7dSSimon J. Gerraty	  to a file that can be included by configure as well as make.
1804e22fef7dSSimon J. Gerraty	  This allows configure to set set _MAKE_VERSION in make-bootstrap.sh
1805e22fef7dSSimon J. Gerraty
1806e22fef7dSSimon J. Gerraty2017-08-10  Simon J. Gerraty  <sjg@bad.crufty.net>
1807e22fef7dSSimon J. Gerraty
1808e22fef7dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170810
1809e22fef7dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1810e22fef7dSSimon J. Gerraty	  o meta.c: if target is in subdir we only need subdir name in
1811e22fef7dSSimon J. Gerraty	    meta_name.
1812e22fef7dSSimon J. Gerraty
1813c7019bf7SSimon J. Gerraty2017-07-20  Simon J. Gerraty  <sjg@bad.crufty.net>
1814c7019bf7SSimon J. Gerraty
1815c7019bf7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170720
1816c7019bf7SSimon J. Gerraty	  Merge with NetBSD make, pick up
1817c7019bf7SSimon J. Gerraty	  o compat.c: pass SIGINT etc onto child and wait for it to exit
1818c7019bf7SSimon J. Gerraty	    before we self-terminate.
1819c7019bf7SSimon J. Gerraty
18208695518cSSimon J. Gerraty2017-07-11  Simon J. Gerraty  <sjg@bad.crufty.net>
18218695518cSSimon J. Gerraty
18228695518cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170711
18238695518cSSimon J. Gerraty	  forgot to update after merge on 20170708 ;-)
18248695518cSSimon J. Gerraty	  o main.c: refactor to reduce size of main function.
18258695518cSSimon J. Gerraty	    add -v option to always fully expand values.
18268695518cSSimon J. Gerraty	  o meta.c: ensure command output in meta file has ending newline
18278695518cSSimon J. Gerraty	    even when filemon not being used.
18288695518cSSimon J. Gerraty	    When matching ${.MAKE.META.IGNORE_PATTERNS} do not use
18298695518cSSimon J. Gerraty	    pathname via ':L' since any ':' in pathname breaks that.
18308695518cSSimon J. Gerraty	    Instead set a '${.p.}' to pathname in the target context and
18318695518cSSimon J. Gerraty	    use that.
18328695518cSSimon J. Gerraty
1833cac6fd11SSimon J. Gerraty2017-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
1834cac6fd11SSimon J. Gerraty
1835cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170510
1836cac6fd11SSimon J. Gerraty	  Merge with NetBSD make, pick up
1837cac6fd11SSimon J. Gerraty	  o main.c: Main_SetObjdir: ensure buf2 is in scope
1838cac6fd11SSimon J. Gerraty
1839cac6fd11SSimon J. Gerraty2017-05-08  Simon J. Gerraty  <sjg@bad.crufty.net>
1840cac6fd11SSimon J. Gerraty
1841cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170505
1842cac6fd11SSimon J. Gerraty	  see mk/ChangeLog
1843cac6fd11SSimon J. Gerraty
1844cac6fd11SSimon J. Gerraty2017-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1845cac6fd11SSimon J. Gerraty
1846cac6fd11SSimon J. Gerraty	* parse.c: not everyone has stdint.h
1847cac6fd11SSimon J. Gerraty
1848cac6fd11SSimon J. Gerraty2017-05-01  Simon J. Gerraty  <sjg@bad.crufty.net>
1849cac6fd11SSimon J. Gerraty
1850cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170501
1851cac6fd11SSimon J. Gerraty	  see mk/ChangeLog
1852cac6fd11SSimon J. Gerraty
1853cac6fd11SSimon J. Gerraty2017-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
1854cac6fd11SSimon J. Gerraty
1855cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170421
1856cac6fd11SSimon J. Gerraty	  Merge with NetBSD make, pick up
1857cac6fd11SSimon J. Gerraty	  o str.c: Str_Match: fix closure tests for [^] and add unit-test.
1858cac6fd11SSimon J. Gerraty
1859e1cee40dSSimon J. Gerraty2017-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
1860e1cee40dSSimon J. Gerraty
1861e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170420
1862e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1863e1cee40dSSimon J. Gerraty	  o main.c: only use -C arg "as is" if it contains no
1864e1cee40dSSimon J. Gerraty	    relative component.
1865e1cee40dSSimon J. Gerraty
1866e1cee40dSSimon J. Gerraty2017-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
1867e1cee40dSSimon J. Gerraty
1868e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170418
1869e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1870e1cee40dSSimon J. Gerraty	  o main.c: fix Main_SetObjdir() for relative paths (eg obj).
1871e1cee40dSSimon J. Gerraty
1872e1cee40dSSimon J. Gerraty2017-04-17  Simon J. Gerraty  <sjg@bad.crufty.net>
1873e1cee40dSSimon J. Gerraty
1874e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170417
1875e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1876e1cee40dSSimon J. Gerraty	  o fixes a number of coverity complaints
1877e1cee40dSSimon J. Gerraty	    - check return value of fseek, fcntl
1878e1cee40dSSimon J. Gerraty	    - plug memory leak in Dir_FindFile, Var_LoopExpand,
1879e1cee40dSSimon J. Gerraty	      JobPrintCommand, ParseTraditionalInclude
1880e1cee40dSSimon J. Gerraty	    - use bmake_malloc() where NULL is not tollerated
1881e1cee40dSSimon J. Gerraty	    - use MAKE_ATTR_UNUSED rather that kludges like
1882e1cee40dSSimon J. Gerraty	      return(unused ? 0 : 0)
1883e1cee40dSSimon J. Gerraty	    - use purge_cached_realpaths() rather than abuse cached_realpath()
1884e1cee40dSSimon J. Gerraty
1885b46b9039SSimon J. Gerraty2017-04-13  Simon J. Gerraty  <sjg@bad.crufty.net>
1886b46b9039SSimon J. Gerraty
1887b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170413
1888b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
1889b46b9039SSimon J. Gerraty	  o main.c: when setting .OBJDIR ignore '$' in paths.
1890b46b9039SSimon J. Gerraty
1891b46b9039SSimon J. Gerraty	* job.c: use MALLOC_OPTIONS to set malloc_options.
1892b46b9039SSimon J. Gerraty
1893b46b9039SSimon J. Gerraty2017-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
1894b46b9039SSimon J. Gerraty
1895b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170411
1896b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
1897b46b9039SSimon J. Gerraty	  o str.c: Str_Match: allow [^a-z] to behave as expected.
1898b46b9039SSimon J. Gerraty
1899b46b9039SSimon J. Gerraty2017-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
1900b46b9039SSimon J. Gerraty
1901b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170326
1902b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
1903b46b9039SSimon J. Gerraty	  o main.c: purge relative paths from realpath cache when .OBJDIR
1904b46b9039SSimon J. Gerraty	    is changed.
1905b46b9039SSimon J. Gerraty
1906b46b9039SSimon J. Gerraty2017-03-11  Simon J. Gerraty  <sjg@bad.crufty.net>
1907b46b9039SSimon J. Gerraty
1908b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170311
1909b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
1910b46b9039SSimon J. Gerraty          o main.c: only use -C arg "as is" if it starts with '/'.
1911b46b9039SSimon J. Gerraty
19121ce939a7SSimon J. Gerraty2017-03-01  Simon J. Gerraty  <sjg@bad.crufty.net>
19131ce939a7SSimon J. Gerraty
19141ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170301
19151ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
1916b46b9039SSimon J. Gerraty	  o main.c: use -C arg "as is" rather than getcwd()
19171ce939a7SSimon J. Gerraty	    if they identify the same directory.
19181ce939a7SSimon J. Gerraty	  o parse.c: ensure loadfile buffer is \n terminated in non-mmap case
19191ce939a7SSimon J. Gerraty
19201ce939a7SSimon J. Gerraty2017-02-01  Simon J. Gerraty  <sjg@bad.crufty.net>
19211ce939a7SSimon J. Gerraty
19221ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170201
19231ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
19241ce939a7SSimon J. Gerraty	  o var.c: allow :_=var and avoid use of special context.
19251ce939a7SSimon J. Gerraty
19261ce939a7SSimon J. Gerraty2017-01-30  Simon J. Gerraty  <sjg@bad.crufty.net>
19271ce939a7SSimon J. Gerraty
19281ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170130
19291ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
19301ce939a7SSimon J. Gerraty	  o var.c: add :range and :_
19311ce939a7SSimon J. Gerraty	  o main.c: partially initialize Dir_* before MainParseArgs()
19321ce939a7SSimon J. Gerraty	    can be called.
19331ce939a7SSimon J. Gerraty	    If -V, skip Main_ExportMAKEFLAGS()
19341ce939a7SSimon J. Gerraty
19351ce939a7SSimon J. Gerraty2017-01-14  Simon J. Gerraty  <sjg@bad.crufty.net>
19361ce939a7SSimon J. Gerraty
19371ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170114
19381ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
19391ce939a7SSimon J. Gerraty	  o var.c: allow specifying the utc value used by :{gm,local}time
19401ce939a7SSimon J. Gerraty
194145447996SSimon J. Gerraty2016-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
194245447996SSimon J. Gerraty
194345447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161212
194445447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
194545447996SSimon J. Gerraty          o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too.
194645447996SSimon J. Gerraty
194745447996SSimon J. Gerraty2016-12-09  Simon J. Gerraty  <sjg@bad.crufty.net>
194845447996SSimon J. Gerraty
194945447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161209
195045447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
195145447996SSimon J. Gerraty	  o main.c: cleanup setting of .OBJDIR
195245447996SSimon J. Gerraty	  o parse.c: avoid coredump from (var)=val
195345447996SSimon J. Gerraty
195445447996SSimon J. Gerraty2016-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
195545447996SSimon J. Gerraty
195645447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161126
195745447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
195845447996SSimon J. Gerraty	  o make.c: Make_OODate: report src node name if path not set
195945447996SSimon J. Gerraty
196045447996SSimon J. Gerraty2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
196145447996SSimon J. Gerraty
196245447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160926
196345447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
196445447996SSimon J. Gerraty	  o support for .DELETE_ON_ERROR: (remove targets that fail)
196545447996SSimon J. Gerraty
196645447996SSimon J. Gerraty2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
196745447996SSimon J. Gerraty
196845447996SSimon J. Gerraty	* Makefile MAN: tweak .Dt to match ${PROG}
196945447996SSimon J. Gerraty
197095e3ed2cSSimon J. Gerraty2016-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
197195e3ed2cSSimon J. Gerraty
197295e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160818
197395e3ed2cSSimon J. Gerraty	  its a neater number; pick up whitespace fixes to man page.
197495e3ed2cSSimon J. Gerraty
197595e3ed2cSSimon J. Gerraty2016-08-17  Simon J. Gerraty  <sjg@bad.crufty.net>
197695e3ed2cSSimon J. Gerraty
197795e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160817
197895e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
197995e3ed2cSSimon J. Gerraty	  o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore()
198095e3ed2cSSimon J. Gerraty	    so we can call it before adding entries to missingFiles.
198195e3ed2cSSimon J. Gerraty	    Thus we do not track files we have been told to ignore.
198295e3ed2cSSimon J. Gerraty
198395e3ed2cSSimon J. Gerraty2016-08-15  Simon J. Gerraty  <sjg@bad.crufty.net>
198495e3ed2cSSimon J. Gerraty
198595e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160815
198695e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
198795e3ed2cSSimon J. Gerraty	  o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to
198895e3ed2cSSimon J. Gerraty	    pathnames, and skip if the expansion is empty.
198995e3ed2cSSimon J. Gerraty	    Useful for dirdeps.mk when checking DIRDEPS_CACHE.
199095e3ed2cSSimon J. Gerraty
199195e3ed2cSSimon J. Gerraty2016-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
199295e3ed2cSSimon J. Gerraty
199395e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160812
199495e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
199595e3ed2cSSimon J. Gerraty	  o meta.c: remove all missingFiles entries that match a deleted
199695e3ed2cSSimon J. Gerraty	    dir.
199795e3ed2cSSimon J. Gerraty	  o main.c: set .ERROR_CMD if possible.
199895e3ed2cSSimon J. Gerraty
199939ac7ef4SSimon J. Gerraty2016-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
200039ac7ef4SSimon J. Gerraty
200139ac7ef4SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160606
200239ac7ef4SSimon J. Gerraty	  Merge with NetBSD make, pick up
200339ac7ef4SSimon J. Gerraty	  o dir.c: extend mtimes cache to others via cached_stat()
200439ac7ef4SSimon J. Gerraty
2005b778b302SSimon J. Gerraty2016-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
2006b778b302SSimon J. Gerraty
2007b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160604
2008b778b302SSimon J. Gerraty	  Merge with NetBSD make, pick up
2009b778b302SSimon J. Gerraty	  o meta.c: missing filemon data is only relevant if we read a
2010b778b302SSimon J. Gerraty	    meta file.
2011b778b302SSimon J. Gerraty	    Also do not return oodate for a missing metafile if gn->path
2012b778b302SSimon J. Gerraty	    points to .CURDIR
2013b778b302SSimon J. Gerraty
2014b778b302SSimon J. Gerraty2016-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
2015b778b302SSimon J. Gerraty
2016b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160602
2017b778b302SSimon J. Gerraty	  Merge with NetBSD make, pick up
2018b778b302SSimon J. Gerraty	  o cached_realpath(): avoid hitting filesystem more than necessary.
2019b778b302SSimon J. Gerraty	  o meta.c: refactor need_meta decision, add knobs for
2020b778b302SSimon J. Gerraty	    missing meta file and filemon data wrt out-of-datedness.
2021b778b302SSimon J. Gerraty
2022b778b302SSimon J. Gerraty2016-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
2023b778b302SSimon J. Gerraty
2024b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160528
2025b778b302SSimon J. Gerraty
2026b778b302SSimon J. Gerraty	* boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION
2027b778b302SSimon J. Gerraty
2028e48f47ddSSimon J. Gerraty2016-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
2029e48f47ddSSimon J. Gerraty
2030e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160512
2031e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2032e48f47ddSSimon J. Gerraty	  o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS
2033e48f47ddSSimon J. Gerraty	    this is useful for gcov builds.
2034e48f47ddSSimon J. Gerraty	  o propagate errors from filemon(4).
2035e48f47ddSSimon J. Gerraty
2036e48f47ddSSimon J. Gerraty2016-05-09  Simon J. Gerraty  <sjg@bad.crufty.net>
2037e48f47ddSSimon J. Gerraty
2038e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160509
2039e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2040e48f47ddSSimon J. Gerraty	  o remove use of non-standard types u_int etc.
2041e48f47ddSSimon J. Gerraty	  o meta.c: apply realpath() before matching against metaIgnorePaths
2042e48f47ddSSimon J. Gerraty
2043e48f47ddSSimon J. Gerraty2016-04-04  Simon J. Gerraty  <sjg@bad.crufty.net>
2044e48f47ddSSimon J. Gerraty
2045e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160404
2046e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2047e48f47ddSSimon J. Gerraty	  o allow makefile to set .MAKE.JOBS
2048e48f47ddSSimon J. Gerraty
2049e48f47ddSSimon J. Gerraty	* Makefile (PROG_NAME): use ${_MAKE_VERSION}
2050e48f47ddSSimon J. Gerraty
20513bebe729SSimon J. Gerraty2016-03-15  Simon J. Gerraty  <sjg@bad.crufty.net>
20523bebe729SSimon J. Gerraty
20533bebe729SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160315
20543bebe729SSimon J. Gerraty	  Merge with NetBSD make, pick up
20553bebe729SSimon J. Gerraty	  o fix handling of archive members
20563bebe729SSimon J. Gerraty
20573bebe729SSimon J. Gerraty2016-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
20583bebe729SSimon J. Gerraty
20593bebe729SSimon J. Gerraty	* Makefile (_MAKE_VERSION): rename variable to avoid interference
20603bebe729SSimon J. Gerraty	  with checks for ${MAKE_VERSION}
20613bebe729SSimon J. Gerraty
20623bebe729SSimon J. Gerraty2016-03-10  Simon J. Gerraty  <sjg@bad.crufty.net>
20633bebe729SSimon J. Gerraty
20643bebe729SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160310
20653bebe729SSimon J. Gerraty	  Merge with NetBSD make, pick up
20663bebe729SSimon J. Gerraty	  o meta.c: treat missing Read file same as Write, incase we Delete it.
20673bebe729SSimon J. Gerraty
2068be19d90bSSimon J. Gerraty2016-03-07  Simon J. Gerraty  <sjg@bad.crufty.net>
2069be19d90bSSimon J. Gerraty
2070be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160307
2071be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2072be19d90bSSimon J. Gerraty	  o var.c: fix :ts\nnn to be octal by default.
2073be19d90bSSimon J. Gerraty	  o meta.c: meta_finish() to cleanup memory.
2074be19d90bSSimon J. Gerraty
2075be19d90bSSimon J. Gerraty2016-02-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2076be19d90bSSimon J. Gerraty
2077be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160226
2078be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2079be19d90bSSimon J. Gerraty	  o meta.c: allow meta file for makeDepend if makefiles want it.
2080be19d90bSSimon J. Gerraty
2081be19d90bSSimon J. Gerraty2016-02-19  Simon J. Gerraty  <sjg@bad.crufty.net>
2082be19d90bSSimon J. Gerraty
2083be19d90bSSimon J. Gerraty	* var.c: default .MAKE.SAVE_DOLLARS to FALSE
2084be19d90bSSimon J. Gerraty	  for backwards compatability.
2085be19d90bSSimon J. Gerraty
2086be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160220
2087be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2088be19d90bSSimon J. Gerraty	  o var.c: add knob to control handling of '$$' in :=
2089be19d90bSSimon J. Gerraty
2090be19d90bSSimon J. Gerraty2016-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
2091be19d90bSSimon J. Gerraty
2092be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160218
2093be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2094be19d90bSSimon J. Gerraty	  o var.c: add .export-literal allows us to fix sys.clean-env.mk
2095be19d90bSSimon J. Gerraty	    post the changes to Var_Subst.
2096be19d90bSSimon J. Gerraty	    Var_Subst now takes flags, and does not consume '$$' in :=
2097be19d90bSSimon J. Gerraty
2098be19d90bSSimon J. Gerraty2016-02-17  Simon J. Gerraty  <sjg@bad.crufty.net>
2099be19d90bSSimon J. Gerraty
2100be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160217
2101be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2102be19d90bSSimon J. Gerraty	  o var.c: preserve '$$' in :=
2103be19d90bSSimon J. Gerraty	  o parse.c: add .dinclude for handling included
2104be19d90bSSimon J. Gerraty	    makefile like .depend
2105be19d90bSSimon J. Gerraty
21066e050540SSimon J. Gerraty2015-12-20  Simon J. Gerraty  <sjg@bad.crufty.net>
21076e050540SSimon J. Gerraty
21086e050540SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151220
21096e050540SSimon J. Gerraty	  Merge with NetBSD make, pick up
21106e050540SSimon J. Gerraty	  o suff.c: re-initialize suffNull when clearing suffixes.
21116e050540SSimon J. Gerraty
2112ac3446e9SSimon J. Gerraty2015-12-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2113ac3446e9SSimon J. Gerraty
2114ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151201
2115ac3446e9SSimon J. Gerraty	  Merge with NetBSD make, pick up
2116ac3446e9SSimon J. Gerraty	  o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
2117ac3446e9SSimon J. Gerraty	  o meta.c: meta_oodate: use lstat(2) for checking link target
2118ac3446e9SSimon J. Gerraty	    in case it is a symlink.
2119ac3446e9SSimon J. Gerraty	  o var.c: avoid calling brk_string and Var_Export1 with empty
2120ac3446e9SSimon J. Gerraty	    strings.
2121ac3446e9SSimon J. Gerraty
2122ac3446e9SSimon J. Gerraty2015-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2123ac3446e9SSimon J. Gerraty
2124ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151126
2125ac3446e9SSimon J. Gerraty	  Merge with NetBSD make, pick up
2126ac3446e9SSimon J. Gerraty	  o parse.c: ParseTrackInput don't access beyond
2127ac3446e9SSimon J. Gerraty	    end of old value.
2128ac3446e9SSimon J. Gerraty
2129ac3446e9SSimon J. Gerraty2015-10-22  Simon J. Gerraty  <sjg@bad.crufty.net>
2130ac3446e9SSimon J. Gerraty
2131ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151022
2132ac3446e9SSimon J. Gerraty
2133ac3446e9SSimon J. Gerraty	* Add support for BSD/OS which lacks inttypes.h
2134ac3446e9SSimon J. Gerraty	  and really needs sys/param.h for sys/sysctl.h
2135ac3446e9SSimon J. Gerraty	  also 'type' is not a shell builtin.
2136ac3446e9SSimon J. Gerraty
2137ac3446e9SSimon J. Gerraty	* var.c: eliminate uint32_t and need for inttypes.h
2138ac3446e9SSimon J. Gerraty
2139ac3446e9SSimon J. Gerraty	* main.c: PrintOnError flush stdout before run .ERROR
2140ac3446e9SSimon J. Gerraty
2141ac3446e9SSimon J. Gerraty	* parse.c: cope with _SC_PAGESIZE not being defined.
2142ac3446e9SSimon J. Gerraty
2143ac3446e9SSimon J. Gerraty
21444c620fe5SSimon J. Gerraty2015-10-20  Simon J. Gerraty  <sjg@bad.crufty.net>
21454c620fe5SSimon J. Gerraty
21464c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151020
21474c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
21484c620fe5SSimon J. Gerraty	  o var.c: fix uninitialized var
21494c620fe5SSimon J. Gerraty
21504c620fe5SSimon J. Gerraty2015-10-12  Simon J. Gerraty  <sjg@bad.crufty.net>
21514c620fe5SSimon J. Gerraty
21524c620fe5SSimon J. Gerraty	* var.c: the conditional expressions used with ':?' can be
21534c620fe5SSimon J. Gerraty	expensive, if already discarding do not evaluate or expand
21544c620fe5SSimon J. Gerraty	anything.
21554c620fe5SSimon J. Gerraty
21564c620fe5SSimon J. Gerraty2015-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
21574c620fe5SSimon J. Gerraty
21584c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151010
21594c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
21604c620fe5SSimon J. Gerraty	  o Add Boolean wantit flag to Var_Subst and Var_Parse
21614c620fe5SSimon J. Gerraty	    when FALSE we know we are discarding the result and can
21624c620fe5SSimon J. Gerraty	    skip operations like Cmd_Exec.
21634c620fe5SSimon J. Gerraty
21644c620fe5SSimon J. Gerraty2015-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
21654c620fe5SSimon J. Gerraty
21664c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151009
21674c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
21684c620fe5SSimon J. Gerraty	  o var.c: don't check for NULL before free()
21694c620fe5SSimon J. Gerraty	  o meta.c: meta_oodate, do not hard code ignore of makeDependfile
21704c620fe5SSimon J. Gerraty
21714c620fe5SSimon J. Gerraty2015-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
21724c620fe5SSimon J. Gerraty
21734c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150910
21744c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
21754c620fe5SSimon J. Gerraty	  o main.c: with -w print Enter/Leaving messages for objdir too
21764c620fe5SSimon J. Gerraty	    if necessary.
21774c620fe5SSimon J. Gerraty	  o centralize shell metachar handling
21784c620fe5SSimon J. Gerraty
21794c620fe5SSimon J. Gerraty	* FILES: add metachar.[ch]
21804c620fe5SSimon J. Gerraty
2181128a4105SSimon J. Gerraty2015-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
2182128a4105SSimon J. Gerraty
2183128a4105SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150606
2184128a4105SSimon J. Gerraty	  Merge with NetBSD make, pick up
2185128a4105SSimon J. Gerraty	  o make.1: document .OBJDIR target
2186128a4105SSimon J. Gerraty
218728a6bc81SSimon J. Gerraty2015-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
218828a6bc81SSimon J. Gerraty
218928a6bc81SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150505
219028a6bc81SSimon J. Gerraty	  Merge with NetBSD make, pick up
219128a6bc81SSimon J. Gerraty	  o cond.c: be strict about lhs of comparison when evaluating .if
219228a6bc81SSimon J. Gerraty	    but less so when called from variable expansion.
219328a6bc81SSimon J. Gerraty	  o unit-tests/cond2.mk: test various error conditions
219428a6bc81SSimon J. Gerraty
219528a6bc81SSimon J. Gerraty2015-05-04  Simon J. Gerraty  <sjg@bad.crufty.net>
219628a6bc81SSimon J. Gerraty
219728a6bc81SSimon J. Gerraty	* machine.sh (MACHINE): Add Bitrig
219828a6bc81SSimon J. Gerraty	  patch from joerg@netbsd.org
219928a6bc81SSimon J. Gerraty
2200db29cad8SSimon J. Gerraty2015-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
2201db29cad8SSimon J. Gerraty
2202db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150418
2203db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2204db29cad8SSimon J. Gerraty	  o job.c: use memmove() rather than memcpy()
2205db29cad8SSimon J. Gerraty
2206db29cad8SSimon J. Gerraty	* unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL
2207db29cad8SSimon J. Gerraty	  case, so skip it.
2208db29cad8SSimon J. Gerraty
2209db29cad8SSimon J. Gerraty2015-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2210db29cad8SSimon J. Gerraty
2211db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150411
2212db29cad8SSimon J. Gerraty	  bump version - only mk/ changes.
2213db29cad8SSimon J. Gerraty
2214db29cad8SSimon J. Gerraty2015-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
2215db29cad8SSimon J. Gerraty
2216db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150410
2217db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2218db29cad8SSimon J. Gerraty	  o document different handling of '-' in jobs mode vs compat
2219db29cad8SSimon J. Gerraty	  o fix jobs mode so that '-' only applies to whole job
2220db29cad8SSimon J. Gerraty	    when shell lacks hasErrCtl
2221db29cad8SSimon J. Gerraty	  o meta.c: use separate vars to track lcwd and latestdir (read)
2222db29cad8SSimon J. Gerraty	    per process
2223db29cad8SSimon J. Gerraty
2224db29cad8SSimon J. Gerraty2015-04-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2225db29cad8SSimon J. Gerraty
2226db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150401
2227db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2228db29cad8SSimon J. Gerraty	  o meta.c: close meta file in child
2229db29cad8SSimon J. Gerraty
2230db29cad8SSimon J. Gerraty	* Makefile: use BINDIR.bmake if set.
2231db29cad8SSimon J. Gerraty	  Same for MANDIR and SHAREDIR
2232db29cad8SSimon J. Gerraty	  Handy for testing release candidates
2233db29cad8SSimon J. Gerraty	  in various environments.
2234db29cad8SSimon J. Gerraty
2235db29cad8SSimon J. Gerraty2015-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2236db29cad8SSimon J. Gerraty
2237db29cad8SSimon J. Gerraty	* move initialization of savederr to block where it is used
2238db29cad8SSimon J. Gerraty	  to avoid spurious warning from gcc5
2239db29cad8SSimon J. Gerraty
2240db29cad8SSimon J. Gerraty2014-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2241db29cad8SSimon J. Gerraty
2242db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20141111
2243db29cad8SSimon J. Gerraty	  just a cooler number
2244db29cad8SSimon J. Gerraty
2245db29cad8SSimon J. Gerraty2014-11-05  Simon J. Gerraty  <sjg@bad.crufty.net>
2246db29cad8SSimon J. Gerraty
2247db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20141105
2248db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2249db29cad8SSimon J. Gerraty	  o revert major overhaul of suffix handling
2250db29cad8SSimon J. Gerraty	    and POSIX compliance - too much breakage
2251db29cad8SSimon J. Gerraty	    and impossible to make backwards compatible.
2252db29cad8SSimon J. Gerraty	  o we still have the new unit test structure which is ok.
2253db29cad8SSimon J. Gerraty	  o meta.c ensure "-- filemon" is at start of line.
2254db29cad8SSimon J. Gerraty
2255db29cad8SSimon J. Gerraty2014-09-17  Simon J. Gerraty  <sjg@bad.crufty.net>
2256db29cad8SSimon J. Gerraty
2257db29cad8SSimon J. Gerraty	* configure.in: test that result of getconf PATH_MAX is numeric
2258db29cad8SSimon J. Gerraty	  and discard if not.  Apparently needed for Hurd.
2259db29cad8SSimon J. Gerraty
2260db29cad8SSimon J. Gerraty2014-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
2261db29cad8SSimon J. Gerraty
2262db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140830
2263db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2264db29cad8SSimon J. Gerraty	  o major overhaul of suffix handling
2265db29cad8SSimon J. Gerraty	  o improved POSIX compliance
2266db29cad8SSimon J. Gerraty	  o overhauled unit-tests
2267db29cad8SSimon J. Gerraty
22685bcb7424SSimon J. Gerraty2014-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
22695bcb7424SSimon J. Gerraty
22705bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140620
22715bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
2272db29cad8SSimon J. Gerraty	  o var.c return varNoError rather than var_Error for ::= modifiers.
22735bcb7424SSimon J. Gerraty
22745bcb7424SSimon J. Gerraty2014-05-22  Simon J. Gerraty  <sjg@bad.crufty.net>
22755bcb7424SSimon J. Gerraty
22765bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140522
22775bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
22785bcb7424SSimon J. Gerraty	  o var.c detect some parse errors.
22795bcb7424SSimon J. Gerraty
22805bcb7424SSimon J. Gerraty2014-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
22815bcb7424SSimon J. Gerraty
22825bcb7424SSimon J. Gerraty	* Fix spelling errors - patch from Pedro Giffuni
22835bcb7424SSimon J. Gerraty
22845bcb7424SSimon J. Gerraty2014-02-14  Simon J. Gerraty  <sjg@bad.crufty.net>
22855bcb7424SSimon J. Gerraty
22865bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140214
22875bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
22885bcb7424SSimon J. Gerraty	  o .INCLUDEFROM*
22895bcb7424SSimon J. Gerraty	  o use Var_Value to get MAKEOBJDIR[PREFIX]
22905bcb7424SSimon J. Gerraty	  o reduced realloc'ign in brk_string.
22915bcb7424SSimon J. Gerraty	* configure.in: add a check for compiler supporting __func__
22925bcb7424SSimon J. Gerraty
22930dede8b0SSimon J. Gerraty2014-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
22940dede8b0SSimon J. Gerraty
22950dede8b0SSimon J. Gerraty	* boot-strap: ignore mksrc=none
22960dede8b0SSimon J. Gerraty
22970dede8b0SSimon J. Gerraty2014-01-02  Simon J. Gerraty  <sjg@bad.crufty.net>
22980dede8b0SSimon J. Gerraty
22990dede8b0SSimon J. Gerraty	* Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk
23000dede8b0SSimon J. Gerraty
23010dede8b0SSimon J. Gerraty2014-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
23020dede8b0SSimon J. Gerraty
23030dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140101
23040dede8b0SSimon J. Gerraty	* configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024)
23050dede8b0SSimon J. Gerraty	* Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max
23060dede8b0SSimon J. Gerraty	* make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for
23070dede8b0SSimon J. Gerraty	  Hurd)
23080dede8b0SSimon J. Gerraty	* configure.in: Add AC_PREREQ and check for
23090dede8b0SSimon J. Gerraty	  sysctl; patch from Andrew Shadura andrewsh at debian.org
23100dede8b0SSimon J. Gerraty
23110dede8b0SSimon J. Gerraty2013-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
23120dede8b0SSimon J. Gerraty
23130dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20131010
23140dede8b0SSimon J. Gerraty	* lose the const from arg to systcl to avoid problems on older BSDs.
23150dede8b0SSimon J. Gerraty
23160dede8b0SSimon J. Gerraty2013-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
23170dede8b0SSimon J. Gerraty
23180dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20131001
23190dede8b0SSimon J. Gerraty	  Merge with NetBSD make, pick up
23200dede8b0SSimon J. Gerraty	  o main.c: for NATIVE build sysctl to get MACHINE_ARCH from
23210dede8b0SSimon J. Gerraty	    hw.machine_arch if necessary.
23220dede8b0SSimon J. Gerraty	  o meta.c: meta_oodate - need to look at src of Link and target
23230dede8b0SSimon J. Gerraty	    of Move as well.
23240dede8b0SSimon J. Gerraty	* main.c: check that CTL_HW and HW_MACHINE_ARCH exist.
23250dede8b0SSimon J. Gerraty	  provide __arraycount() if needed.
23260dede8b0SSimon J. Gerraty
23271bbe5942SSimon J. Gerraty2013-09-04  Simon J. Gerraty  <sjg@bad.crufty.net>
23281bbe5942SSimon J. Gerraty
23291bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130904
23301bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
23311bbe5942SSimon J. Gerraty	  o Add VAR_INTERNAL context, so that internal setting of
23321bbe5942SSimon J. Gerraty	    MAKEFILE does not override value set by makefiles.
23331bbe5942SSimon J. Gerraty
23341bbe5942SSimon J. Gerraty2013-09-02  Simon J. Gerraty  <sjg@bad.crufty.net>
23351bbe5942SSimon J. Gerraty
23361bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130902
23371bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
23381bbe5942SSimon J. Gerraty	  o CompatRunCommand: only apply shellErrFlag when errCheck is true
23391bbe5942SSimon J. Gerraty
23401bbe5942SSimon J. Gerraty2013-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
23411bbe5942SSimon J. Gerraty
23421bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130828
23431bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
23441bbe5942SSimon J. Gerraty	  o Fix VAR :sh = syntax from Will Andrews at freebsd.org
23451bbe5942SSimon J. Gerraty	  o Call Job_SetPrefix() from Job_Init() so makefiles have
23461bbe5942SSimon J. Gerraty	    opportunity to set .MAKE.JOB.PREFIX
23471bbe5942SSimon J. Gerraty
234851ee2c1cSSimon J. Gerraty2013-07-30  Simon J. Gerraty  <sjg@bad.crufty.net>
234951ee2c1cSSimon J. Gerraty
235051ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130730
235151ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
235251ee2c1cSSimon J. Gerraty	  o Allow suppression of --- job -- tokens by setting
235351ee2c1cSSimon J. Gerraty	    .MAKE.JOB.PREFIX empty.
235451ee2c1cSSimon J. Gerraty
235551ee2c1cSSimon J. Gerraty2013-07-16  Simon J. Gerraty  <sjg@bad.crufty.net>
235651ee2c1cSSimon J. Gerraty
235751ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130716
235851ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
23595bcb7424SSimon J. Gerraty	  o number of gmake compatibility tweaks
236051ee2c1cSSimon J. Gerraty	    -w for gmake style entering/leaving messages
236151ee2c1cSSimon J. Gerraty	    if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc.
236251ee2c1cSSimon J. Gerraty	    handle MAKEFLAGS containing only letters.
236351ee2c1cSSimon J. Gerraty	  o when overriding a GLOBAL variable on the command line,
236451ee2c1cSSimon J. Gerraty	    delete it from GLOBAL context so -V doesn't show the wrong
236551ee2c1cSSimon J. Gerraty	    value.
236651ee2c1cSSimon J. Gerraty
236751ee2c1cSSimon J. Gerraty2013-07-06  Simon J. Gerraty  <sjg@bad.crufty.net>
236851ee2c1cSSimon J. Gerraty
236951ee2c1cSSimon J. Gerraty	* configure.in: We don't need MAKE_LEVEL_SAFE anymore.
237051ee2c1cSSimon J. Gerraty
237151ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130706
237251ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
237351ee2c1cSSimon J. Gerraty	  o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is
237451ee2c1cSSimon J. Gerraty	    true so that CompatRunCommand() can use it, to ensure
237551ee2c1cSSimon J. Gerraty	    consistent behavior with jobs mode.
237651ee2c1cSSimon J. Gerraty	  o use MAKE_LEVEL_ENV to define the variable to propagate
237751ee2c1cSSimon J. Gerraty	    .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake).
237851ee2c1cSSimon J. Gerraty	  o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of
237951ee2c1cSSimon J. Gerraty	    paths to ignore.
238051ee2c1cSSimon J. Gerraty
238174d2e02bSSimon J. Gerraty2013-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
238274d2e02bSSimon J. Gerraty
238374d2e02bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130604
238474d2e02bSSimon J. Gerraty	  Merge with NetBSD make, pick up
238574d2e02bSSimon J. Gerraty	  o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's
238674d2e02bSSimon J. Gerraty	    to avoid leaking descriptors.
238774d2e02bSSimon J. Gerraty
238874d2e02bSSimon J. Gerraty2013-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
238974d2e02bSSimon J. Gerraty
239074d2e02bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130528
239174d2e02bSSimon J. Gerraty	  Merge with NetBSD make, pick up
239274d2e02bSSimon J. Gerraty	  o var.c: cleanup some left-overs in VarHash()
239374d2e02bSSimon J. Gerraty
239452d86256SSimon J. Gerraty2013-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
239552d86256SSimon J. Gerraty
239652d86256SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130520
239752d86256SSimon J. Gerraty	  generate manifest from component FILES rather than have to
239852d86256SSimon J. Gerraty	  update FILES when mk/FILES changes.
239952d86256SSimon J. Gerraty
240052d86256SSimon J. Gerraty2013-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
240152d86256SSimon J. Gerraty
240252d86256SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130518
240352d86256SSimon J. Gerraty	  Merge with NetBSD make, pick up
240452d86256SSimon J. Gerraty	  o suff.c: don't skip all processsing for .PHONY targets
240552d86256SSimon J. Gerraty	    else wildcard srcs do not get expanded.
240652d86256SSimon J. Gerraty	  o var.c: expand name of variable to delete if necessary.
240752d86256SSimon J. Gerraty
24081748de26SSimon J. Gerraty2013-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
24091748de26SSimon J. Gerraty
24101748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130330
24111748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
24121748de26SSimon J. Gerraty	  o meta.c: refine the handling of .OODATE in commands.
24131748de26SSimon J. Gerraty	    Rather than suppress command comparison for the entire script
24141748de26SSimon J. Gerraty	    as though .NOMETA_CMP had been used, only suppress it for the
24151748de26SSimon J. Gerraty	    one command line.
24161748de26SSimon J. Gerraty	    This allows something like ${.OODATE:M.NOMETA_CMP} to be used to
24171748de26SSimon J. Gerraty	    suppress comparison of a command without otherwise affecting it.
24181748de26SSimon J. Gerraty	  o make.1: document that
24191748de26SSimon J. Gerraty
24201748de26SSimon J. Gerraty2013-03-22  Simon J. Gerraty  <sjg@bad.crufty.net>
24211748de26SSimon J. Gerraty
24221748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130321
24231748de26SSimon J. Gerraty	  yes, not quite right but its a cooler number.
24241748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
24251748de26SSimon J. Gerraty	  o parse.c: fix ParseGmakeExport to be portable
24261748de26SSimon J. Gerraty	    and add a unit-test.
24271748de26SSimon J. Gerraty	* meta.c: call meta_init() before makefiles are read and if built
24281748de26SSimon J. Gerraty	  with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON
24291748de26SSimon J. Gerraty	  this let's makefiles test for support.
24301748de26SSimon J. Gerraty	  Call meta_mode_init() to process .MAKE.MODE.
24311748de26SSimon J. Gerraty
24321748de26SSimon J. Gerraty2013-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
24331748de26SSimon J. Gerraty
24341748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130305
24351748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
24361748de26SSimon J. Gerraty	  o run .STALE: target when a dependency from .depend is missing.
24371748de26SSimon J. Gerraty	  o job.c: add Job_RunTarget() for the above and .BEGIN
24381748de26SSimon J. Gerraty
24391748de26SSimon J. Gerraty2013-03-03  Simon J. Gerraty  <sjg@bad.crufty.net>
24401748de26SSimon J. Gerraty
24411748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130303
24421748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
24431748de26SSimon J. Gerraty	  o main.c: set .MAKE.OS to utsname.sysname
24441748de26SSimon J. Gerraty	  o job.c: more checks for read and poll errors
24451748de26SSimon J. Gerraty	  o var.c: lose VarChangeCase() saves 4% time
24461748de26SSimon J. Gerraty
24471748de26SSimon J. Gerraty2013-03-02  Simon J. Gerraty  <sjg@bad.crufty.net>
24481748de26SSimon J. Gerraty
24491748de26SSimon J. Gerraty	* boot-strap: remove MAKEOBJDIRPREFIX from environment since we
24501748de26SSimon J. Gerraty	  want to use MAKEOBJDIR
24511748de26SSimon J. Gerraty
24523cbdda60SSimon J. Gerraty2013-01-27  Simon J. Gerraty  <sjg@bad.crufty.net>
24533cbdda60SSimon J. Gerraty
24543cbdda60SSimon J. Gerraty	* Merge with NetBSD make, pick up
24553cbdda60SSimon J. Gerraty	  o make.1: more info on how shell commands are handled.
24563cbdda60SSimon J. Gerraty	  o job.c,main.c: detect write errors to job pipes.
24573cbdda60SSimon J. Gerraty
24583cbdda60SSimon J. Gerraty2013-01-25  Simon J. Gerraty  <sjg@bad.crufty.net>
24593cbdda60SSimon J. Gerraty
24603cbdda60SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130123
24613cbdda60SSimon J. Gerraty	  Merge with NetBSD make, pick up
24623cbdda60SSimon J. Gerraty	  o meta.c: if script uses .OODATE and meta_oodate() decides
24633cbdda60SSimon J. Gerraty	    rebuild is needed, .OODATE will be empty - set it to .ALLSRC.
24643cbdda60SSimon J. Gerraty	  o var.c: in debug output indicate which variabale modifiers
24653cbdda60SSimon J. Gerraty	    apply to.
24663cbdda60SSimon J. Gerraty	  o remove Check_Cwd logic the makefiles have been fixed.
24673cbdda60SSimon J. Gerraty
24683cbdda60SSimon J. Gerraty2012-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
24693cbdda60SSimon J. Gerraty
24703cbdda60SSimon J. Gerraty	* makefile.in: add a simple makefile for folk who insist on
24713cbdda60SSimon J. Gerraty	  ./configure; make; make install
24723cbdda60SSimon J. Gerraty	  it just runs boot-strap
24733cbdda60SSimon J. Gerraty	* include mk/* to accommodate the above
24743cbdda60SSimon J. Gerraty	* boot-strap:  re-work to accommodate the above
24753cbdda60SSimon J. Gerraty	  mksrc defaults to $Mydir/mk
24763cbdda60SSimon J. Gerraty	  allow op={configure,build,install,clean,all}
24773cbdda60SSimon J. Gerraty	  add options to facilitate install
24783cbdda60SSimon J. Gerraty	* Makefile.config.in: just the bits set by configure
24793cbdda60SSimon J. Gerraty	* Makefile: bump version to 20121212
24803cbdda60SSimon J. Gerraty	  abandon Makefile.in (NetBSD Makefile)
24813cbdda60SSimon J. Gerraty	  leverage mk/* instead
24823cbdda60SSimon J. Gerraty	* configure.in: ensure srcdir is absolute
24833cbdda60SSimon J. Gerraty
248459a02420SSimon J. Gerraty2012-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
248559a02420SSimon J. Gerraty
248659a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121111
248759a02420SSimon J. Gerraty	  fix generation of bmake.cat1
248859a02420SSimon J. Gerraty
248959a02420SSimon J. Gerraty2012-11-09  Simon J. Gerraty  <sjg@bad.crufty.net>
249059a02420SSimon J. Gerraty
249159a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121109
249259a02420SSimon J. Gerraty	  Merge with NetBSD make, pick up
249359a02420SSimon J. Gerraty	  o make.c: MakeBuildChild: return 0 so search continues if a
249459a02420SSimon J. Gerraty	    .ORDER dependency is detected.
249559a02420SSimon J. Gerraty	  o unit-tests/order: test the above
249659a02420SSimon J. Gerraty
249759a02420SSimon J. Gerraty2012-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
249859a02420SSimon J. Gerraty
249959a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121102
250059a02420SSimon J. Gerraty	  Merge with NetBSD make, pick up
250159a02420SSimon J. Gerraty	  o cond.c: allow cond_state[] to grow.
250259a02420SSimon J. Gerraty	    In meta mode with a very large tree, we can hit the limit
250359a02420SSimon J. Gerraty	    while processing dirdeps.
250459a02420SSimon J. Gerraty
250559a02420SSimon J. Gerraty2012-10-25  Simon J. Gerraty  <sjg@bad.crufty.net>
250659a02420SSimon J. Gerraty
250759a02420SSimon J. Gerraty	* Makefile.in: we need to use ${srcdir} not ${.CURDIR}
250859a02420SSimon J. Gerraty
250993036677SSimon J. Gerraty2012-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
251093036677SSimon J. Gerraty
251193036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121010
251293036677SSimon J. Gerraty	  o protect syntax that only bmake parses correctly.
251393036677SSimon J. Gerraty	  o remove auto setting of FORCE_MACHINE, use configure's
251493036677SSimon J. Gerraty	    --with-force-machine=whatever if that is desired.
251593036677SSimon J. Gerraty
251693036677SSimon J. Gerraty2012-10-08  Simon J. Gerraty  <sjg@bad.crufty.net>
251793036677SSimon J. Gerraty
251893036677SSimon J. Gerraty	* Makefile.in: do not lose history from make.1 when generating bmake.1
251993036677SSimon J. Gerraty
252093036677SSimon J. Gerraty2012-10-07  Simon J. Gerraty  <sjg@bad.crufty.net>
252193036677SSimon J. Gerraty
252293036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121007
252393036677SSimon J. Gerraty	  Merge with NetBSD make, pick up
252493036677SSimon J. Gerraty	  o compat.c: ignore empty commands - same as jobs mode.
252593036677SSimon J. Gerraty	  o make.1: document meta chars that cause use of shell
252693036677SSimon J. Gerraty
252793036677SSimon J. Gerraty2012-09-11  Simon J. Gerraty  <sjg@bad.crufty.net>
252893036677SSimon J. Gerraty
252993036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): bump version to 20120911
253093036677SSimon J. Gerraty	* bsd.after-import.mk: include Makefile.inc early and allow it to
253193036677SSimon J. Gerraty	  override PROG
253293036677SSimon J. Gerraty
25333955d011SMarcel Moolenaar2012-08-31  Simon J. Gerraty  <sjg@bad.crufty.net>
25343955d011SMarcel Moolenaar
25353955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120831
25363955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
25373955d011SMarcel Moolenaar	  o cast sizeof() to int for comparison
25383955d011SMarcel Moolenaar	  o minor make.1 tweak
25393955d011SMarcel Moolenaar
25403955d011SMarcel Moolenaar2012-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
25413955d011SMarcel Moolenaar
25423955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120830
25433955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
25443955d011SMarcel Moolenaar	  o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V
25453955d011SMarcel Moolenaar	  o debug flag -dV causes -V to show raw value regardless.
25463955d011SMarcel Moolenaar
25473955d011SMarcel Moolenaar2012-07-05  Simon J. Gerraty  <sjg@bad.crufty.net>
25483955d011SMarcel Moolenaar
25493955d011SMarcel Moolenaar	* bsd.after-import.mk (after-import): ensure unit-tests/Makefile
25503955d011SMarcel Moolenaar	  gets SRCTOP set.
25513955d011SMarcel Moolenaar
25523955d011SMarcel Moolenaar2012-07-04  Simon J. Gerraty  <sjg@bad.crufty.net>
25533955d011SMarcel Moolenaar
25543955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120704
25553955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
25563955d011SMarcel Moolenaar	  o Job_ParseShell should call Shell_Init if it has been
25573955d011SMarcel Moolenaar	    previously called.
25583955d011SMarcel Moolenaar	* Makefile.in: set USE_META based on configure result.
25593955d011SMarcel Moolenaar	  also .PARSEDIR is safer indicator of bmake.
25603955d011SMarcel Moolenaar
25613955d011SMarcel Moolenaar2012-06-26  Simon J. Gerraty  <sjg@bad.crufty.net>
25623955d011SMarcel Moolenaar
25633955d011SMarcel Moolenaar	* Makefile.in: bump version to 20120626
25643955d011SMarcel Moolenaar	  ensure CPPFLAGS is in CFLAGS
25653955d011SMarcel Moolenaar	* meta.c: avoid nested externs
25663955d011SMarcel Moolenaar	* bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target
25673955d011SMarcel Moolenaar
25683955d011SMarcel Moolenaar2012-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
25693955d011SMarcel Moolenaar
25703955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120620
25713955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
25723955d011SMarcel Moolenaar	  o make_malloc.c: avoid including make_malloc.h again
25733955d011SMarcel Moolenaar
25743955d011SMarcel Moolenaar	* Makefile.in: avoid bmake only syntax or protect with
25753955d011SMarcel Moolenaar	  .if defined(.MAKE.LEVEL)
25763955d011SMarcel Moolenaar	* bsd.after-import.mk: replace .-include with .sinclude
25773955d011SMarcel Moolenaar	  ensure? SRCTOP gets a value
25783955d011SMarcel Moolenaar	* configure.in: look for filemon.h in /usr/include/dev/filemon first.
25793955d011SMarcel Moolenaar
25803955d011SMarcel Moolenaar2012-06-19  Simon J. Gerraty  <sjg@bad.crufty.net>
25813955d011SMarcel Moolenaar
25823955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120612
25833955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
25843955d011SMarcel Moolenaar	  o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler
25853955d011SMarcel Moolenaar	    for greater portability.
25863955d011SMarcel Moolenaar	  o unit-tests/forloop: check that .for works as expected wrt
25873955d011SMarcel Moolenaar	    number of times and with "quoted strings".
25883955d011SMarcel Moolenaar
25893955d011SMarcel Moolenaar2012-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
25903955d011SMarcel Moolenaar
25913955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120606
25923955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
25933955d011SMarcel Moolenaar	  o compat.c: use kill(2) rather than raise(3).
25943955d011SMarcel Moolenaar	* configure.in: look for sys/dev/filemon
25953955d011SMarcel Moolenaar	* bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile
25963955d011SMarcel Moolenaar	  and pass BOOTSTRAP_XTRAS to boot-strap.
25973955d011SMarcel Moolenaar
25983955d011SMarcel Moolenaar2012-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
25993955d011SMarcel Moolenaar
26003955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120604
26013955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26023955d011SMarcel Moolenaar	  o util.c and var.c share same var for tracking if environ
26033955d011SMarcel Moolenaar	    has been reallocated.
26043955d011SMarcel Moolenaar	  o util.c provide getenv with setenv.
26053955d011SMarcel Moolenaar	* Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL
26063955d011SMarcel Moolenaar	  when the shell actively strips .MAKE.* from the environment.
26073955d011SMarcel Moolenaar	  We still refer to the variable always as .MAKE.LEVEL
26083955d011SMarcel Moolenaar	* util.c fix bug in findenv() was finding prefix of name.
26093955d011SMarcel Moolenaar	* compat.c: re-raising SIGINT etc after running .INTERRUPT
26103955d011SMarcel Moolenaar	  results in more reliable termination of all activity on many
26113955d011SMarcel Moolenaar	  platforms.
26123955d011SMarcel Moolenaar
26133955d011SMarcel Moolenaar2012-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
26143955d011SMarcel Moolenaar
26153955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120602
26163955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26173955d011SMarcel Moolenaar	  o for.c: handle quoted items in .for list
26183955d011SMarcel Moolenaar
26193955d011SMarcel Moolenaar2012-05-30  Simon J. Gerraty  <sjg@bad.crufty.net>
26203955d011SMarcel Moolenaar
26213955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120530
26223955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26233955d011SMarcel Moolenaar	  o compat.c: ignore empty command.
26243955d011SMarcel Moolenaar
26253955d011SMarcel Moolenaar2012-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
26263955d011SMarcel Moolenaar
26273955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120524
26283955d011SMarcel Moolenaar	* FILES: add bsd.after-import.mk:
26293955d011SMarcel Moolenaar	  A simple means of integrating bmake into a BSD build system.
26303955d011SMarcel Moolenaar
26313955d011SMarcel Moolenaar2012-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
26323955d011SMarcel Moolenaar
26333955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120520
26343955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26353955d011SMarcel Moolenaar	  o increased limit for nested conditionals.
26363955d011SMarcel Moolenaar
26373955d011SMarcel Moolenaar2012-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
26383955d011SMarcel Moolenaar
26393955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120518
26403955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26413955d011SMarcel Moolenaar	  o use _exit(2) in signal hanlder
26423955d011SMarcel Moolenaar	  o Don't use the [dir] cache when building nodes that might have
26433955d011SMarcel Moolenaar	    changed since the last exec.
26443955d011SMarcel Moolenaar	  o Avoid nested extern declaration warnings.
26453955d011SMarcel Moolenaar
26463955d011SMarcel Moolenaar2012-04-27  Simon J. Gerraty  <sjg@bad.crufty.net>
26473955d011SMarcel Moolenaar
26483955d011SMarcel Moolenaar	* meta.c (fgetLine): avoid %z - not portable.
26493955d011SMarcel Moolenaar	* parse.c: Since we moved include of sys/mman.h
26503955d011SMarcel Moolenaar	  and def's of MAP_COPY etc. we got dups from a merge.
26513955d011SMarcel Moolenaar
26523955d011SMarcel Moolenaar2012-04-24  Simon J. Gerraty  <sjg@bad.crufty.net>
26533955d011SMarcel Moolenaar
26543955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120420
26553955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26563955d011SMarcel Moolenaar	  o restore duplicate supression in .MAKE.MAKEFILES
26573955d011SMarcel Moolenaar	    runtime saving can be significant.
26583955d011SMarcel Moolenaar	  o Var_Subst() uses Buf_DestroyCompact() to reduce memory
26593955d011SMarcel Moolenaar	    consumption up to 20%.
26603955d011SMarcel Moolenaar
26613955d011SMarcel Moolenaar2012-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
26623955d011SMarcel Moolenaar
26633955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120420
26643955d011SMarcel Moolenaar          Merge with NetBSD make, pick up
26653955d011SMarcel Moolenaar	  o remove duplicate supression in .MAKE.MAKEFILES
26663955d011SMarcel Moolenaar	  o improved dir cache behavior
26673955d011SMarcel Moolenaar	  o gmake'ish export command
26683955d011SMarcel Moolenaar
26693955d011SMarcel Moolenaar2012-03-25  Simon J. Gerraty  <sjg@bad.crufty.net>
26703955d011SMarcel Moolenaar
26713955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120325
26723955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26733955d011SMarcel Moolenaar	  o fix parsing of :[#] in conditionals.
26743955d011SMarcel Moolenaar
26753955d011SMarcel Moolenaar2012-02-10  Simon J. Gerraty  <sjg@bad.crufty.net>
26763955d011SMarcel Moolenaar
26773955d011SMarcel Moolenaar	* Makefile.in: replace use of .Nx in bmake.1 with NetBSD
26783955d011SMarcel Moolenaar	  since some systems cannot cope with .Nx <version>
26793955d011SMarcel Moolenaar
26803955d011SMarcel Moolenaar2011-11-14  Simon J. Gerraty  <sjg@bad.crufty.net>
26813955d011SMarcel Moolenaar
26823955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20111111
26833955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26843955d011SMarcel Moolenaar	  o debug output for .PARSEDIR and .PARSEFILE
26853955d011SMarcel Moolenaar
26863955d011SMarcel Moolenaar2011-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
26873955d011SMarcel Moolenaar
26883955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION):  bump version to 20111010
26893955d011SMarcel Moolenaar
26903955d011SMarcel Moolenaar2011-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
26913955d011SMarcel Moolenaar
26923955d011SMarcel Moolenaar	* boot-strap: check for an expected file in the dirs we look for.
26933955d011SMarcel Moolenaar	* make-bootstrap.sh: pass on LDSTATIC
26943955d011SMarcel Moolenaar
26953955d011SMarcel Moolenaar2011-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
26963955d011SMarcel Moolenaar
26973955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20111001
26983955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
26993955d011SMarcel Moolenaar	  o ensure .PREFIX is set for .PHONY
27003955d011SMarcel Moolenaar	    and .TARGET set for .PHONY run via .END
27013955d011SMarcel Moolenaar	  o __dead used consistently
27023955d011SMarcel Moolenaar
27033955d011SMarcel Moolenaar2011-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
27043955d011SMarcel Moolenaar
27053955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): 20110909 is a better number ;-)
27063955d011SMarcel Moolenaar
27073955d011SMarcel Moolenaar2011-09-05  Simon J. Gerraty  <sjg@bad.crufty.net>
27083955d011SMarcel Moolenaar
27093955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110905
27103955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27113955d011SMarcel Moolenaar	  o meta_oodate: ignore makeDependfile
27123955d011SMarcel Moolenaar
27133955d011SMarcel Moolenaar2011-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
27143955d011SMarcel Moolenaar
27153955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110828
27163955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27173955d011SMarcel Moolenaar	  o silent=yes in .MAKE.MODE causes meta mode to mark targets
27183955d011SMarcel Moolenaar	    as SILENT if a .meta file is created
27193955d011SMarcel Moolenaar
27203955d011SMarcel Moolenaar2011-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
27213955d011SMarcel Moolenaar
27223955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110818
27233955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27243955d011SMarcel Moolenaar	  o in meta mode, if target flagged .META a missing .meta file
27253955d011SMarcel Moolenaar	    means target is out-of-date
27263955d011SMarcel Moolenaar	  o fixes for gcc 4.5 warnings
27273955d011SMarcel Moolenaar	  o simplify job printing code
27283955d011SMarcel Moolenaar
27293955d011SMarcel Moolenaar2011-08-09  Simon J. Gerraty  <sjg@bad.crufty.net>
27303955d011SMarcel Moolenaar
27313955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110808
27323955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27333955d011SMarcel Moolenaar	  o do not touch OP_SPECIAL targets when doing make -t
27343955d011SMarcel Moolenaar
27353955d011SMarcel Moolenaar2011-06-22  Simon J. Gerraty  <sjg@bad.crufty.net>
27363955d011SMarcel Moolenaar
27373955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110622
27383955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27393955d011SMarcel Moolenaar	  o meta_oodate detect corrupted .meta file and declare oodate.
27403955d011SMarcel Moolenaar	* configure.in: add check for setsid
27413955d011SMarcel Moolenaar
27423955d011SMarcel Moolenaar2011-06-07  Simon J. Gerraty  <sjg@bad.crufty.net>
27433955d011SMarcel Moolenaar
27443955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
27453955d011SMarcel Moolenaar	  o unit-tests/modts now works on MirBSD
27463955d011SMarcel Moolenaar
27473955d011SMarcel Moolenaar2011-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
27483955d011SMarcel Moolenaar
27493955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110606
27503955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27513955d011SMarcel Moolenaar	  o ApplyModifiers: when we parse a variable which is not
27523955d011SMarcel Moolenaar	    the entire modifier string, or not followed by ':', do not
27533955d011SMarcel Moolenaar	    consider it as containing modifiers.
27543955d011SMarcel Moolenaar	  o loadfile: ensure newline at end of mapped file.
27553955d011SMarcel Moolenaar
27563955d011SMarcel Moolenaar2011-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
27573955d011SMarcel Moolenaar
27583955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110505
27593955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27603955d011SMarcel Moolenaar	  o .MAKE.META.BAILIWICK - list of prefixes which define the scope
27613955d011SMarcel Moolenaar	    of make's control.  In meta mode, any generated file within
27623955d011SMarcel Moolenaar	    said bailiwick, which  is found to be missing, causes current
27633955d011SMarcel Moolenaar	    target to be out-of-date.
27643955d011SMarcel Moolenaar
27653955d011SMarcel Moolenaar2011-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
27663955d011SMarcel Moolenaar
27673955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110411
27683955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27693955d011SMarcel Moolenaar	  o when long modifiers fail to match, check sysV style.
27703955d011SMarcel Moolenaar	    - add a test case
27713955d011SMarcel Moolenaar
27723955d011SMarcel Moolenaar2011-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
27733955d011SMarcel Moolenaar
27743955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110410
27753955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27763955d011SMarcel Moolenaar	  o :hash - cheap 32bit hash of value
27773955d011SMarcel Moolenaar	  o :localtime, :gmtime - use value as format string for strftime.
27783955d011SMarcel Moolenaar
27793955d011SMarcel Moolenaar2011-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
27803955d011SMarcel Moolenaar
27813955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110330
27823955d011SMarcel Moolenaar	  mostly because its a cooler version.
27833955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27843955d011SMarcel Moolenaar	  o NetBSD tags for meta.[ch]
27853955d011SMarcel Moolenaar	  o job.c call meta_job_finish() after meta_job_error().
27863955d011SMarcel Moolenaar	  o meta_job_error() should call meta_job_finish() to ensure
27873955d011SMarcel Moolenaar	    .meta file is closed, and safe to copy - if .ERROR target wants.
27883955d011SMarcel Moolenaar	   meta_job_finish() is safe to call repeatedly.
27893955d011SMarcel Moolenaar
27903955d011SMarcel Moolenaar2011-03-29  Simon J. Gerraty  <sjg@bad.crufty.net>
27913955d011SMarcel Moolenaar
27923955d011SMarcel Moolenaar	* unit-tests/modts: use printf if it is a builtin,
27933955d011SMarcel Moolenaar	  to save us from MirBSD
27943955d011SMarcel Moolenaar
27953955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110329
27963955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27973955d011SMarcel Moolenaar	  o fix for use after free() in CondDoExists().
27983955d011SMarcel Moolenaar	  o meta_oodate() report extra commands and return earlier.
27993955d011SMarcel Moolenaar
28003955d011SMarcel Moolenaar2011-03-27  Simon J. Gerraty  <sjg@bad.crufty.net>
28013955d011SMarcel Moolenaar
28023955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110327
28033955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28043955d011SMarcel Moolenaar	  o meta.c, if .MAKE.MODE contains curdirOk=yes
28053955d011SMarcel Moolenaar	    allow creating .meta files in .CURDIR
28063955d011SMarcel Moolenaar	* boot-strap (TOOL_DIFF): aparently at least on linux distro
28073955d011SMarcel Moolenaar	  formats the output of 'type' differently - so eat any "()"
28083955d011SMarcel Moolenaar
28093955d011SMarcel Moolenaar2011-03-06  Simon J. Gerraty  <sjg@bad.crufty.net>
28103955d011SMarcel Moolenaar
28113955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110306
28123955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28133955d011SMarcel Moolenaar	  o meta.c, only do getcwd() once
28143955d011SMarcel Moolenaar
28153955d011SMarcel Moolenaar2011-03-05  Simon J. Gerraty  <sjg@bad.crufty.net>
28163955d011SMarcel Moolenaar
28173955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110305
28183955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28193955d011SMarcel Moolenaar	  o correct sysV substitution handling of empty lhs and variable
28203955d011SMarcel Moolenaar	  o correct exists() check for dir with trailing /
28213955d011SMarcel Moolenaar	  o correct handling of modifiers for non-existant variables
28223955d011SMarcel Moolenaar	    during evaluation of conditionals.
28233955d011SMarcel Moolenaar	  o ensure MAP_FILE is defined.
28243955d011SMarcel Moolenaar	  o meta.c use curdir[] now exported by main.c
28253955d011SMarcel Moolenaar
28263955d011SMarcel Moolenaar2011-02-25  Simon J. Gerraty  <sjg@bad.crufty.net>
28273955d011SMarcel Moolenaar
28283955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110225
28293955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28303955d011SMarcel Moolenaar	  o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after
28313955d011SMarcel Moolenaar	    makefiles have been read.
28323955d011SMarcel Moolenaar	  o fix example of :? modifier in man page.
28333955d011SMarcel Moolenaar
28343955d011SMarcel Moolenaar2011-02-13  Simon J. Gerraty  <sjg@bad.crufty.net>
28353955d011SMarcel Moolenaar
28363955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110214
28373955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28383955d011SMarcel Moolenaar	  o meta.c handle realpath() failing when generating meta file
28393955d011SMarcel Moolenaar	    name.
28403955d011SMarcel Moolenaar
28413955d011SMarcel Moolenaar	* sigcompat.c: convert to ansi so we can use higher warning levels.
28423955d011SMarcel Moolenaar
28433955d011SMarcel Moolenaar
28443955d011SMarcel Moolenaar2011-02-07  Simon J. Gerraty  <sjg@bad.crufty.net>
28453955d011SMarcel Moolenaar
28463955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110207
28473955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28483955d011SMarcel Moolenaar	  o fix for bug in meta mode.
28493955d011SMarcel Moolenaar
28503955d011SMarcel Moolenaar2011-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
28513955d011SMarcel Moolenaar
28523955d011SMarcel Moolenaar	* parse.c: SunOS 5.8 at least does not have MAP_FILE
28533955d011SMarcel Moolenaar
28543955d011SMarcel Moolenaar2011-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
28553955d011SMarcel Moolenaar
28563955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110101
28573955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28583955d011SMarcel Moolenaar	  o use mmap(2) if available, for reading makefiles
28593955d011SMarcel Moolenaar
28603955d011SMarcel Moolenaar2010-12-15  Simon J. Gerraty  <sjg@bad.crufty.net>
28613955d011SMarcel Moolenaar
28623955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101215
28633955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28643955d011SMarcel Moolenaar	  o ensure meta_job_error() does not report a previous .meta file
28653955d011SMarcel Moolenaar	    as being culprit.
28663955d011SMarcel Moolenaar
28673955d011SMarcel Moolenaar2010-12-10  Simon J. Gerraty  <sjg@bad.crufty.net>
28683955d011SMarcel Moolenaar
28693955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101210
28703955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28713955d011SMarcel Moolenaar	  o meta_oodate: track cwd per process, and only consider target
28723955d011SMarcel Moolenaar	    out-of-date if missing file is outside make's CWD.
28733955d011SMarcel Moolenaar	    Ignore files in /tmp/ etc.
28743955d011SMarcel Moolenaar	  o to ensure unit-tests results match, need to control LC_ALL
28753955d011SMarcel Moolenaar	    as well as LANG.
28763955d011SMarcel Moolenaar	  o fix for parsing bug in var.c
28773955d011SMarcel Moolenaar
28783955d011SMarcel Moolenaar2010-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
28793955d011SMarcel Moolenaar
28803955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101126
28813955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28823955d011SMarcel Moolenaar	  o if stale dependency is an IMPSRC, search via .PATH
28833955d011SMarcel Moolenaar	  o meta_oodate: if a referenced file is missing, target is
28843955d011SMarcel Moolenaar	    out-of-date.
28853955d011SMarcel Moolenaar	  o meta_oodate: if a target uses .OODATE in its commands,
28863955d011SMarcel Moolenaar	    it (.OODATE) needs to be recomputed.
28873955d011SMarcel Moolenaar	  o keep a pointer to youngest child node, rather than just its
28883955d011SMarcel Moolenaar	    mtime.
28893955d011SMarcel Moolenaar
28903955d011SMarcel Moolenaar2010-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
28913955d011SMarcel Moolenaar
28923955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101101
28933955d011SMarcel Moolenaar
28943955d011SMarcel Moolenaar2010-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
28953955d011SMarcel Moolenaar
28963955d011SMarcel Moolenaar	* machine.sh: like os.sh,
28973955d011SMarcel Moolenaar	allow for uname -p producing useless drivel
28983955d011SMarcel Moolenaar
28993955d011SMarcel Moolenaar2010-09-13  Simon J. Gerraty  <sjg@bad.crufty.net>
29003955d011SMarcel Moolenaar
29013955d011SMarcel Moolenaar	* boot-strap: document configure knobs for meta and filemon.
29023955d011SMarcel Moolenaar
29033955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100911
29043955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29053955d011SMarcel Moolenaar	  o meta.c - meta mode
29063955d011SMarcel Moolenaar
29073955d011SMarcel Moolenaar	* make-bootstrap.sh.in: handle meta.c
29083955d011SMarcel Moolenaar	* configure.in: add knobs for use_meta and filemon_h
29093955d011SMarcel Moolenaar	  also, look for dirname, str[e]sep and strlcpy
29103955d011SMarcel Moolenaar	* util.c: add simple err[x] and warn[x]
29113955d011SMarcel Moolenaar
29123955d011SMarcel Moolenaar2010-08-08  Simon J. Gerraty  <sjg@bad.crufty.net>
29133955d011SMarcel Moolenaar
29143955d011SMarcel Moolenaar	* boot-strap (TOOL_DIFF): set this to ensure tests use
29153955d011SMarcel Moolenaar	  the same version of diff that configure tested
29163955d011SMarcel Moolenaar
29173955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100808
29183955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29193955d011SMarcel Moolenaar	  o in jobs mode, when we discover we cannot make something,
29203955d011SMarcel Moolenaar	    call PrintOnError before exit.
29213955d011SMarcel Moolenaar
29223955d011SMarcel Moolenaar2010-08-06  Simon J. Gerraty  <sjg@bad.crufty.net>
29233955d011SMarcel Moolenaar
29243955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100806
29253955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29263955d011SMarcel Moolenaar	  o formatting fixes for ignored errors
29273955d011SMarcel Moolenaar	  o ensure jobs are cleaned up regardless of where wait() was called.
29283955d011SMarcel Moolenaar
29293955d011SMarcel Moolenaar2010-06-28  Simon J. Gerraty  <sjg@bad.crufty.net>
29303955d011SMarcel Moolenaar
29313955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100618
29323955d011SMarcel Moolenaar	* os.sh (MACHINE_ARCH): watch out for drivel from uname -p
29333955d011SMarcel Moolenaar
29343955d011SMarcel Moolenaar2010-06-16  Simon J. Gerraty  <sjg@bad.crufty.net>
29353955d011SMarcel Moolenaar
29363955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100616
29373955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29383955d011SMarcel Moolenaar	  o man page update
29393955d011SMarcel Moolenaar	  o call PrintOnError from JobFinish when we detect an error we
29403955d011SMarcel Moolenaar	    are not ignoring.
29413955d011SMarcel Moolenaar
29423955d011SMarcel Moolenaar2010-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
29433955d011SMarcel Moolenaar
29443955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100606
29453955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29463955d011SMarcel Moolenaar	  o man page update
29473955d011SMarcel Moolenaar
29483955d011SMarcel Moolenaar2010-06-05  Simon J. Gerraty  <sjg@bad.crufty.net>
29493955d011SMarcel Moolenaar
29503955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100605
29513955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29523955d011SMarcel Moolenaar	  o use bmake_signal() which is a wrapper around sigaction()
29533955d011SMarcel Moolenaar	    in place of signal()
29543955d011SMarcel Moolenaar	  o add .export-env to allow exporting variables to environment
29553955d011SMarcel Moolenaar	    without tracking (so no re-export when the internal value is
29563955d011SMarcel Moolenaar	    changed).
29573955d011SMarcel Moolenaar
29583955d011SMarcel Moolenaar2010-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
29593955d011SMarcel Moolenaar
29603955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100524
29613955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29623955d011SMarcel Moolenaar	  o fix for .info et al being greedy.
29633955d011SMarcel Moolenaar
29643955d011SMarcel Moolenaar2010-05-23  Simon J. Gerraty  <sjg@bad.crufty.net>
29653955d011SMarcel Moolenaar
29663955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100520
29673955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29683955d011SMarcel Moolenaar	  o back to using realpath on argv[0]
29693955d011SMarcel Moolenaar	    but only if contains '/' and does not start with '/'.
29703955d011SMarcel Moolenaar
29713955d011SMarcel Moolenaar2010-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
29723955d011SMarcel Moolenaar
29733955d011SMarcel Moolenaar	* boot-strap: use absolute path for bmake when running tests.
29743955d011SMarcel Moolenaar
29753955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION):  bump version to 20100510
29763955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29773955d011SMarcel Moolenaar	  o revert use of realpath on argv[0]
29783955d011SMarcel Moolenaar	    too many corner cases.
29793955d011SMarcel Moolenaar	  o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target.
29803955d011SMarcel Moolenaar
29813955d011SMarcel Moolenaar2010-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
29823955d011SMarcel Moolenaar
29833955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100505
29843955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29853955d011SMarcel Moolenaar	  o fix for missed SIGCHLD when compiled with SunPRO
29863955d011SMarcel Moolenaar	    actually for bmake, defining FORCE_POSIX_SIGNALS would have
29873955d011SMarcel Moolenaar	    done the job.
29883955d011SMarcel Moolenaar
29893955d011SMarcel Moolenaar2010-04-30  Simon J. Gerraty  <sjg@bad.crufty.net>
29903955d011SMarcel Moolenaar
29913955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100430
29923955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29933955d011SMarcel Moolenaar	  o fflush stdout before writing to stdout
29943955d011SMarcel Moolenaar
29953955d011SMarcel Moolenaar2010-04-23  Simon J. Gerraty  <sjg@bad.crufty.net>
29963955d011SMarcel Moolenaar
29973955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100423
29983955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29993955d011SMarcel Moolenaar	  o updated unit tests for Haiku (this time for sure).
30003955d011SMarcel Moolenaar	* boot-strap: based on patch from joerg
30013955d011SMarcel Moolenaar	  honor --with-default-sys-path better.
30023955d011SMarcel Moolenaar	* boot-strap: remove mention of --with-prefix-sys-path
30033955d011SMarcel Moolenaar
30043955d011SMarcel Moolenaar2010-04-22  Simon J. Gerraty  <sjg@bad.crufty.net>
30053955d011SMarcel Moolenaar
30063955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100422
30073955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
30083955d011SMarcel Moolenaar	  o fix for vfork() on Darwin.
30093955d011SMarcel Moolenaar	  o fix for bogus $TMPDIR.
30103955d011SMarcel Moolenaar	  o set .MAKE.MODE=compat for -B
30113955d011SMarcel Moolenaar	  o set .MAKE.JOBS=max_jobs for -j max_jobs
30123955d011SMarcel Moolenaar	  o allow unit-tests to run without any *.mk
30133955d011SMarcel Moolenaar	  o unit-tests/modmisc be more conservative in dirs presumed to exist.
30143955d011SMarcel Moolenaar	* boot-strap: ignore /usr/share/mk except on NetBSD.
30153955d011SMarcel Moolenaar	* unit-tests/Makefile.in: set LANG=C when running unit-tests to
30163955d011SMarcel Moolenaar	  ensure sort(1) behaves as expected.
30173955d011SMarcel Moolenaar
30183955d011SMarcel Moolenaar2010-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
30193955d011SMarcel Moolenaar
30203955d011SMarcel Moolenaar	* boot-strap: add FindHereOrAbove so we can use -m .../mk
30213955d011SMarcel Moolenaar
30223955d011SMarcel Moolenaar2010-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
30233955d011SMarcel Moolenaar
30243955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100420
30253955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
30263955d011SMarcel Moolenaar	  o fix for variable realpath() behavior.
30273955d011SMarcel Moolenaar	    we have to stat(2) the result to be sure.
30283955d011SMarcel Moolenaar	  o fix for .export (all) when nested vars use :sh
30293955d011SMarcel Moolenaar
30303955d011SMarcel Moolenaar2010-04-14  Simon J. Gerraty  <sjg@bad.crufty.net>
30313955d011SMarcel Moolenaar
30323955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100414
30333955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
30343955d011SMarcel Moolenaar	  o use realpath to resolve argv[0] (for .MAKE) if needed.
30353955d011SMarcel Moolenaar	  o add realpath from libc.
30363955d011SMarcel Moolenaar	  o add :tA to resolve variable via realpath(3) if possible.
30373955d011SMarcel Moolenaar
30383955d011SMarcel Moolenaar2010-04-08  Simon J. Gerraty  <sjg@bad.crufty.net>
30393955d011SMarcel Moolenaar
30403955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100408
30413955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
30423955d011SMarcel Moolenaar	  o unit tests for .ERROR, .error
30433955d011SMarcel Moolenaar	  o fix for .ERROR to ensure it cannot be default target.
30443955d011SMarcel Moolenaar
30453955d011SMarcel Moolenaar2010-04-06  Simon J. Gerraty  <sjg@bad.crufty.net>
30463955d011SMarcel Moolenaar
30473955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100406
30483955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
30493955d011SMarcel Moolenaar	  o fix for compat mode "Error code" going to debug_file.
30503955d011SMarcel Moolenaar	  o fix for .ALLSRC being populated twice.
30513955d011SMarcel Moolenaar	  o support for .info, .warning and .error directives
30523955d011SMarcel Moolenaar	  o .MAKE.MODE to control make's operational mode
30533955d011SMarcel Moolenaar	  o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile
30543955d011SMarcel Moolenaar	    name(s).
30553955d011SMarcel Moolenaar	  o .MAKE.DEPENDFILE to control the name of the depend file
30563955d011SMarcel Moolenaar	  o .ERROR target - run on failure.
30573955d011SMarcel Moolenaar
30583955d011SMarcel Moolenaar2010-03-18  Simon J. Gerraty  <sjg@bad.crufty.net>
30593955d011SMarcel Moolenaar
30603955d011SMarcel Moolenaar	* make-bootstrap.sh.in: extract MAKE_VERSION from Makefile
30613955d011SMarcel Moolenaar
30623955d011SMarcel Moolenaar	* os.sh,arch.c: patch for Haiku from joerg at netbsd
30633955d011SMarcel Moolenaar
30643955d011SMarcel Moolenaar2010-03-17  Simon J. Gerraty  <sjg@bad.crufty.net>
30653955d011SMarcel Moolenaar
30663955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100222
30673955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
30683955d011SMarcel Moolenaar	  o better error msg for .for with mutiple inter vars
30693955d011SMarcel Moolenaar
30703955d011SMarcel Moolenaar	* boot-strap:
30713955d011SMarcel Moolenaar	  o use make-bootstrap.sh from joerg at netbsd
30723955d011SMarcel Moolenaar	    to avoid the need for a native make when bootstrapping.
30733955d011SMarcel Moolenaar	  o add "" everywhere ;-)
30743955d011SMarcel Moolenaar	  o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1
30753955d011SMarcel Moolenaar	    otherwise the pre-formated version.
30763955d011SMarcel Moolenaar
30773955d011SMarcel Moolenaar2010-01-04  Simon J. Gerraty  <sjg@bad.crufty.net>
30783955d011SMarcel Moolenaar
30793955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100102
30803955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
30813955d011SMarcel Moolenaar	  o fix for -m .../
30823955d011SMarcel Moolenaar
30833955d011SMarcel Moolenaar2009-11-18  Simon J. Gerraty  <sjg@void.crufty.net>
30843955d011SMarcel Moolenaar
30853955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20091118
30863955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
30873955d011SMarcel Moolenaar	  o .unexport
30883955d011SMarcel Moolenaar	  o report lines that start with '.' and should have ':'
30893955d011SMarcel Moolenaar	    (catch typo's of .el*if).
30903955d011SMarcel Moolenaar
30913955d011SMarcel Moolenaar2009-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
30923955d011SMarcel Moolenaar
30933955d011SMarcel Moolenaar	* configure.in: Ensure that srcdir and mksrc are absolute paths.
30943955d011SMarcel Moolenaar
30953955d011SMarcel Moolenaar2009-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
30963955d011SMarcel Moolenaar
30973955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): fix version to 20091007
30983955d011SMarcel Moolenaar
30993955d011SMarcel Moolenaar2009-10-07  Simon J. Gerraty  <sjg@void.crufty.net>
31003955d011SMarcel Moolenaar
31013955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 200910007
31023955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
31033955d011SMarcel Moolenaar	  o fix for parsing of :S;...;...; applied to .for loop iterator
31043955d011SMarcel Moolenaar	    appearing in a dependency line.
31053955d011SMarcel Moolenaar
31063955d011SMarcel Moolenaar2009-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
31073955d011SMarcel Moolenaar
31083955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090909
31093955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
31103955d011SMarcel Moolenaar	  o fix for -C, .CURDIR and .OBJDIR
31113955d011SMarcel Moolenaar	* boot-strap:
31123955d011SMarcel Moolenaar	  o allow share_dir to be set independent of prefix.
31133955d011SMarcel Moolenaar	  o select default share_dir better when prefix ends in $HOST_TARGET
31143955d011SMarcel Moolenaar	  o if FORCE_BSD_MK etc were set, include them in the suggested
31153955d011SMarcel Moolenaar	    install-mk command.
31163955d011SMarcel Moolenaar
31173955d011SMarcel Moolenaar2009-09-08  Simon J. Gerraty  <sjg@void.crufty.net>
31183955d011SMarcel Moolenaar
31193955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090908
31203955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
31213955d011SMarcel Moolenaar	  o .MAKE.LEVEL for recursion tracking
31223955d011SMarcel Moolenaar	  o fix for :M scanning \:
31233955d011SMarcel Moolenaar
31243955d011SMarcel Moolenaar2009-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
31253955d011SMarcel Moolenaar
31263955d011SMarcel Moolenaar	* configure.in: Don't -D__EXTENSIONS__ if
31273955d011SMarcel Moolenaar	AC_USE_SYSTEM_EXTENSIONS says "no".
31283955d011SMarcel Moolenaar
31293955d011SMarcel Moolenaar2009-08-26  Simon J. Gerraty  <sjg@void.crufty.net>
31303955d011SMarcel Moolenaar
31313955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090826
31323955d011SMarcel Moolenaar	Simplify MAKE_VERSION to just the bare date.
31333955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
31343955d011SMarcel Moolenaar	  o -C directory support.
31353955d011SMarcel Moolenaar	  o support for SIGINFO
31363955d011SMarcel Moolenaar	  o use $TMPDIR for temp files.
31373955d011SMarcel Moolenaar	  o child of vfork should be careful about modifying parent's state.
31383955d011SMarcel Moolenaar
31393955d011SMarcel Moolenaar
31403955d011SMarcel Moolenaar2009-03-26  Simon J. Gerraty  <sjg@void.crufty.net>
31413955d011SMarcel Moolenaar
31423955d011SMarcel Moolenaar	* Appy some patches for MiNT from David Brownlee
31433955d011SMarcel Moolenaar
31443955d011SMarcel Moolenaar2009-02-26  Simon J. Gerraty  <sjg@void.crufty.net>
31453955d011SMarcel Moolenaar
31463955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20090222
31473955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
31483955d011SMarcel Moolenaar	  o Possible null pointer de-ref in Var_Set.
31493955d011SMarcel Moolenaar
31503955d011SMarcel Moolenaar2009-02-08  Simon J. Gerraty  <sjg@void.crufty.net>
31513955d011SMarcel Moolenaar
31523955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20090204
31533955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
31543955d011SMarcel Moolenaar	  o bmake_malloc et al moved to their own .c
31553955d011SMarcel Moolenaar	  o Count both () and {} when looking for the end of a :M pattern
31563955d011SMarcel Moolenaar	  o Change 'Buffer' so that it is the actual struct, not a pointer to it.
31573955d011SMarcel Moolenaar	  o strlist.c - functions for processing extendable arrays of pointers to strings.
31583955d011SMarcel Moolenaar	  o ClientData replaced with void *, so const void * can be used.
31593955d011SMarcel Moolenaar	  o New debug flag C for DEBUG_CWD
31603955d011SMarcel Moolenaar
31613955d011SMarcel Moolenaar2008-11-11  Simon J. Gerraty  <sjg@void.crufty.net>
31623955d011SMarcel Moolenaar
31633955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081111
31643955d011SMarcel Moolenaar	  Apply patch from Joerg Sonnenberge to
31653955d011SMarcel Moolenaar	  configure.in:
31663955d011SMarcel Moolenaar	  o remove some redundant checks
31673955d011SMarcel Moolenaar	  o check for emlloc etc only in libutil and require the whole family.
31683955d011SMarcel Moolenaar	  util.c:
31693955d011SMarcel Moolenaar	  o remove [v]asprintf which is no longer used.
31703955d011SMarcel Moolenaar
31713955d011SMarcel Moolenaar2008-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
31723955d011SMarcel Moolenaar
31733955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081101
31743955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
31753955d011SMarcel Moolenaar	  o util.c: avoid use of putenv() - christos
31763955d011SMarcel Moolenaar
31773955d011SMarcel Moolenaar2008-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
31783955d011SMarcel Moolenaar
31793955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081030
31803955d011SMarcel Moolenaar	  pick up man page tweaks.
31813955d011SMarcel Moolenaar
31823955d011SMarcel Moolenaar2008-10-29  Simon J. Gerraty  <sjg@void.crufty.net>
31833955d011SMarcel Moolenaar
31843955d011SMarcel Moolenaar	* Makefile.in: move processing of LIBOBJS to after is definition!
31853955d011SMarcel Moolenaar	  thus we'll have getenv.c in SRCS only if needed.
31863955d011SMarcel Moolenaar
31873955d011SMarcel Moolenaar	* make.1: add examples of how to use :?
31883955d011SMarcel Moolenaar
31893955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081029
31903955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
31913955d011SMarcel Moolenaar	  o fix for .END processing with -j
31923955d011SMarcel Moolenaar	  o segfault from Parse_Error when no makefile is open
31933955d011SMarcel Moolenaar	  o handle numeric expressions in any variable expansion
31943955d011SMarcel Moolenaar	  o debug output now defaults to stderr, -dF to change it - apb
31953955d011SMarcel Moolenaar	  o make now uses bmake_malloc etc so that it can build natively
31963955d011SMarcel Moolenaar	    on A/UX - wasn't an issue for bmake, but we want to keep in sync.
31973955d011SMarcel Moolenaar
31983955d011SMarcel Moolenaar2008-09-27  Simon J. Gerraty  <sjg@void.crufty.net>
31993955d011SMarcel Moolenaar
32003955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080808
32013955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32023955d011SMarcel Moolenaar	  o fix for PR/38840: Pierre Pronchery: make crashes while parsing
32033955d011SMarcel Moolenaar	    long lines in Makefiles
32043955d011SMarcel Moolenaar	  o optimizations for VarQuote by joerg
32053955d011SMarcel Moolenaar	  o fix for PR/38756: dominik: make dumps core on invalid makefile
32063955d011SMarcel Moolenaar
32073955d011SMarcel Moolenaar2008-05-15  Simon J. Gerraty  <sjg@void.crufty.net>
32083955d011SMarcel Moolenaar
32093955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080515
32103955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32113955d011SMarcel Moolenaar	  o fix skip setting vars in VAR_GLOBAL context, to handle
32123955d011SMarcel Moolenaar	    cases where VAR_CMD is used for other than command line vars.
32133955d011SMarcel Moolenaar
32143955d011SMarcel Moolenaar2008-05-14  Simon J. Gerraty  <sjg@void.crufty.net>
32153955d011SMarcel Moolenaar
32163955d011SMarcel Moolenaar	* boot-strap (make_version): we may need to look in
32173955d011SMarcel Moolenaar	$prefix/share/mk for sys.mk
32183955d011SMarcel Moolenaar
32193955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080514
32203955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32213955d011SMarcel Moolenaar	  o skip setting vars in VAR_GLOBAL context, when already set in
32223955d011SMarcel Moolenaar	  VAR_CMD which takes precedence.
32233955d011SMarcel Moolenaar
32243955d011SMarcel Moolenaar2008-03-30  Simon J. Gerraty  <sjg@void.crufty.net>
32253955d011SMarcel Moolenaar
32263955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump version to 20080330
32273955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32283955d011SMarcel Moolenaar	  o fix for ?= when LHS contains variable reference.
32293955d011SMarcel Moolenaar
32303955d011SMarcel Moolenaar2008-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
32313955d011SMarcel Moolenaar
32323955d011SMarcel Moolenaar	* merge some patches from NetBSD pkgsrc.
32333955d011SMarcel Moolenaar
32343955d011SMarcel Moolenaar	* makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
32353955d011SMarcel Moolenaar	the MAKSYSPATH used during bootstrap.
32363955d011SMarcel Moolenaar
32373955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080215
32383955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32393955d011SMarcel Moolenaar	  o warn if non-space chars follow 'empty' in a conditional.
32403955d011SMarcel Moolenaar
32413955d011SMarcel Moolenaar2008-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
32423955d011SMarcel Moolenaar
32433955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080118
32443955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32453955d011SMarcel Moolenaar	  o consider dependencies read from .depend as optional - dsl
32463955d011SMarcel Moolenaar	  o remember when buffer for reading makefile grows - dsl
32473955d011SMarcel Moolenaar	  o add -dl (aka LOUD) - David O'Brien
32483955d011SMarcel Moolenaar
32493955d011SMarcel Moolenaar2007-10-22  Simon J. Gerraty  <sjg@void.crufty.net>
32503955d011SMarcel Moolenaar
32513955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071022
32523955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32533955d011SMarcel Moolenaar	  o Allow .PATH<suffix> to be used for .include ""
32543955d011SMarcel Moolenaar
32553955d011SMarcel Moolenaar	* boot-strap: source default settings from .bmake-boot-strap.rc
32563955d011SMarcel Moolenaar
32573955d011SMarcel Moolenaar2007-10-16  Simon J. Gerraty  <sjg@void.crufty.net>
32583955d011SMarcel Moolenaar
32593955d011SMarcel Moolenaar	* Makefile.in: fix maninstall on various systems
32603955d011SMarcel Moolenaar	  provided that our man.mk is used.
32613955d011SMarcel Moolenaar	  For non-BSD systems we install the preformatted page
32623955d011SMarcel Moolenaar	  into $MANDIR/cat1
32633955d011SMarcel Moolenaar
32643955d011SMarcel Moolenaar2007-10-15  Simon J. Gerraty  <sjg@void.crufty.net>
32653955d011SMarcel Moolenaar
32663955d011SMarcel Moolenaar	* boot-strap: make bmake.1 too, so maninstall works.
32673955d011SMarcel Moolenaar
32683955d011SMarcel Moolenaar2007-10-14  Simon J. Gerraty  <sjg@void.crufty.net>
32693955d011SMarcel Moolenaar
32703955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071014
32713955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32723955d011SMarcel Moolenaar	  o revamped handling of defshell - configure no longer needs to
32733955d011SMarcel Moolenaar	    know the content of the shells array - apb
32743955d011SMarcel Moolenaar	  o stop Var_Subst modifying its input - apb
32753955d011SMarcel Moolenaar	  o avoid calling ParseTrackInput too often - dsl
32763955d011SMarcel Moolenaar
32773955d011SMarcel Moolenaar2007-10-11  Simon J. Gerraty  <sjg@void.crufty.net>
32783955d011SMarcel Moolenaar
32793955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071011
32803955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32813955d011SMarcel Moolenaar	  o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.
32823955d011SMarcel Moolenaar
32833955d011SMarcel Moolenaar	* sigcompat.c: some tweaks for HP-UX 11.x based on
32843955d011SMarcel Moolenaar	  patch from Tobias Nygren
32853955d011SMarcel Moolenaar
32863955d011SMarcel Moolenaar	* configure.in: update handling of --with-defshell to match
32873955d011SMarcel Moolenaar	  new make behavior.  --with-defshell=/usr/xpg4/bin/sh
32883955d011SMarcel Moolenaar	  will now do what one might hope - provided the chosen shell
32893955d011SMarcel Moolenaar	  behaves enough like sh.
32903955d011SMarcel Moolenaar
32913955d011SMarcel Moolenaar2007-10-08  Simon J. Gerraty  <sjg@void.crufty.net>
32923955d011SMarcel Moolenaar
32933955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20071008
32943955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
32953955d011SMarcel Moolenaar	  o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
32963955d011SMarcel Moolenaar	  o .export/.MAKE.EXPORTED - export of variables - sjg
32973955d011SMarcel Moolenaar	  o .MAKE.MAKEFILES - track all makefiles read - sjg
32983955d011SMarcel Moolenaar	  o performance improvements - dsl
32993955d011SMarcel Moolenaar	  o revamp parallel job scheduling - dsl
33003955d011SMarcel Moolenaar
33013955d011SMarcel Moolenaar2006-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
33023955d011SMarcel Moolenaar
33033955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060728
33043955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33053955d011SMarcel Moolenaar	  o extra debug info during variable and cond processing - sjg
33063955d011SMarcel Moolenaar	  o shell definition now covers newline - rillig
33073955d011SMarcel Moolenaar	  o minor mem leak in PrintOnError - sjg
33083955d011SMarcel Moolenaar
33093955d011SMarcel Moolenaar2006-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
33103955d011SMarcel Moolenaar
33113955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump to 20060511
33123955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33133955d011SMarcel Moolenaar	  o more memory leaks - coverity
33143955d011SMarcel Moolenaar	  o possible overflow in ArchFindMember - coverity
33153955d011SMarcel Moolenaar	  o extract variable modifier code out of Var_Parse()
33163955d011SMarcel Moolenaar	    so it can be called recursively - sjg
33173955d011SMarcel Moolenaar	  o unit-tests/moderrs - sjg
33183955d011SMarcel Moolenaar
33193955d011SMarcel Moolenaar2006-04-12  Simon J. Gerraty  <sjg@void.crufty.net>
33203955d011SMarcel Moolenaar
33213955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060412
33223955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33233955d011SMarcel Moolenaar	  o fixes for some memory leaks - coverity
33243955d011SMarcel Moolenaar	  o only read first sys.mk etc when searching sysIncPath - sjg
33253955d011SMarcel Moolenaar
33263955d011SMarcel Moolenaar	* main.c (ReadMakefile): remove hack for __INTERIX that prevented
33273955d011SMarcel Moolenaar	setting ${MAKEFILE} - OBATA Akio
33283955d011SMarcel Moolenaar
33293955d011SMarcel Moolenaar2006-03-18  Simon J. Gerraty  <sjg@void.crufty.net>
33303955d011SMarcel Moolenaar
33313955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060318
33323955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33333955d011SMarcel Moolenaar	  o cleanup of job.c to remove remote handling, distcc is more
33343955d011SMarcel Moolenaar	    useful and this code was likely bit-rotting - dsl
33353955d011SMarcel Moolenaar	  o fix for :P modifier - sjg
33363955d011SMarcel Moolenaar	* boot-strap: set default prefix to something reasonable
33373955d011SMarcel Moolenaar	  (for me anyway).
33383955d011SMarcel Moolenaar
33393955d011SMarcel Moolenaar2006-03-01  Simon J. Gerraty  <sjg@void.crufty.net>
33403955d011SMarcel Moolenaar
33413955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060301
33423955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33433955d011SMarcel Moolenaar	  o make .WAIT apply recursively, document and test case - apb
33443955d011SMarcel Moolenaar	  o allow variable modifiers in a variable appear anywhere in
33453955d011SMarcel Moolenaar	    modifier list, document and test case - sjg
33463955d011SMarcel Moolenaar
33473955d011SMarcel Moolenaar2006-02-22  Simon J. Gerraty  <sjg@void.crufty.net>
33483955d011SMarcel Moolenaar
33493955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060222
33503955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33513955d011SMarcel Moolenaar	  o improved job token handling - dsl
33523955d011SMarcel Moolenaar	  o SIG_DFL the correct signal before exec - dsl
33533955d011SMarcel Moolenaar	  o more debug info during parsing - dsl
33543955d011SMarcel Moolenaar	  o allow variable modifiers to be specified via variable - sjg
33553955d011SMarcel Moolenaar	* boot-strap: explain why we died if no mksrc
33563955d011SMarcel Moolenaar
33573955d011SMarcel Moolenaar2005-11-05  Simon J. Gerraty  <sjg@void.crufty.net>
33583955d011SMarcel Moolenaar
33593955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051105
33603955d011SMarcel Moolenaar	* configure.in: always set default_sys_path
33613955d011SMarcel Moolenaar	  default is ${prefix}/share/mk
33623955d011SMarcel Moolenaar	  - remove prefix_sys_path, anyone wanting more than above
33633955d011SMarcel Moolenaar	    needs to set it manually.
33643955d011SMarcel Moolenaar
33653955d011SMarcel Moolenaar2005-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
33663955d011SMarcel Moolenaar
33673955d011SMarcel Moolenaar	* boot-strap: make this a bit easier for pkgsrc folk.
33683955d011SMarcel Moolenaar	  bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
33693955d011SMarcel Moolenaar	  'mips' while pkgsrc wants 'mipseb' or 'mipsel'
33703955d011SMarcel Moolenaar
33713955d011SMarcel Moolenaar2005-11-02  Simon J. Gerraty  <sjg@void.crufty.net>
33723955d011SMarcel Moolenaar
33733955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051102
33743955d011SMarcel Moolenaar	* job.c (JobFinish): fix likely ancient merge lossage
33753955d011SMarcel Moolenaar	fix from Todd Vierling.
33763955d011SMarcel Moolenaar	* boot-strap (srcdir): allow setting mksrc=none
33773955d011SMarcel Moolenaar
33783955d011SMarcel Moolenaar2005-10-31  Simon J. Gerraty  <sjg@void.crufty.net>
33793955d011SMarcel Moolenaar
33803955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051031
33813955d011SMarcel Moolenaar	* ranlib.h: skip on OSF too.
33823955d011SMarcel Moolenaar	  (NetBSD PR 31864)
33833955d011SMarcel Moolenaar
33843955d011SMarcel Moolenaar2005-10-10  Simon J. Gerraty  <sjg@void.crufty.net>
33853955d011SMarcel Moolenaar
33863955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051002
33873955d011SMarcel Moolenaar	  fix a silly typo
33883955d011SMarcel Moolenaar
33893955d011SMarcel Moolenaar2005-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
33903955d011SMarcel Moolenaar
33913955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051001
33923955d011SMarcel Moolenaar	  support for UnixWare and some other systems,
33933955d011SMarcel Moolenaar	  based on patches from pkgsrc/bootstrap
33943955d011SMarcel Moolenaar
33953955d011SMarcel Moolenaar2005-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
33963955d011SMarcel Moolenaar
33973955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050901
33983955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33993955d011SMarcel Moolenaar	  o possible parse error causing us to wander off.
34003955d011SMarcel Moolenaar
34013955d011SMarcel Moolenaar2005-06-06  Simon J. Gerraty  <sjg@void.crufty.net>
34023955d011SMarcel Moolenaar
34033955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050606
34043955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34053955d011SMarcel Moolenaar	  o :0x modifier for randomizing a list
34063955d011SMarcel Moolenaar	  o fixes for a number of -Wuninitialized issues.
34073955d011SMarcel Moolenaar
34083955d011SMarcel Moolenaar2005-05-30  Simon J. Gerraty  <sjg@void.crufty.net>
34093955d011SMarcel Moolenaar
34103955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050530
34113955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34123955d011SMarcel Moolenaar	  o Handle dependencies for .BEGIN, .END and .INTERRUPT
34133955d011SMarcel Moolenaar
34143955d011SMarcel Moolenaar	* README: was seriously out of date.
34153955d011SMarcel Moolenaar
34163955d011SMarcel Moolenaar2005-03-22  Simon J. Gerraty  <sjg@void.crufty.net>
34173955d011SMarcel Moolenaar
34183955d011SMarcel Moolenaar	* Important to use .MAKE rather than MAKE.
34193955d011SMarcel Moolenaar
34203955d011SMarcel Moolenaar2005-03-15  Simon J. Gerraty  <sjg@void.crufty.net>
34213955d011SMarcel Moolenaar
34223955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050315
34233955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34243955d011SMarcel Moolenaar	  o don't mistake .elsefoo for .else
34253955d011SMarcel Moolenaar	  o use suffix-specific search path correctly
34263955d011SMarcel Moolenaar	  o bunch of style nits
34273955d011SMarcel Moolenaar
34283955d011SMarcel Moolenaar2004-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
34293955d011SMarcel Moolenaar
34303955d011SMarcel Moolenaar	* boot-strap:
34313955d011SMarcel Moolenaar	o ensure that args to --src and --with-mksrc
34323955d011SMarcel Moolenaar	  are resolved before giving them to configure.
34333955d011SMarcel Moolenaar	o add -o "objdir" so that builder can control it,
34343955d011SMarcel Moolenaar	  default is $OS as determined by os.sh
34353955d011SMarcel Moolenaar	o add -q to suppress all the install instructions.
34363955d011SMarcel Moolenaar
34373955d011SMarcel Moolenaar2004-05-08  Simon J. Gerraty  <sjg@void.crufty.net>
34383955d011SMarcel Moolenaar
34393955d011SMarcel Moolenaar	* Remove __IDSTRING()
34403955d011SMarcel Moolenaar
34413955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040508
34423955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34433955d011SMarcel Moolenaar	  o posix fixes
34443955d011SMarcel Moolenaar	    - remove '-e' from compat mode
34453955d011SMarcel Moolenaar	    - add support for '+' command-line prefix.
34463955d011SMarcel Moolenaar	  o fix for handling '--' on command-line.
34473955d011SMarcel Moolenaar	  o fix include in lst.lib/lstInt.h to simplify '-I's
34483955d011SMarcel Moolenaar	  o we also picked up replacement of MAKE_BOOTSTRAP
34493955d011SMarcel Moolenaar	    with !MAKE_NATIVE which is a noop, but possibly confusing.
34503955d011SMarcel Moolenaar
34513955d011SMarcel Moolenaar2004-04-14  Simon J. Gerraty  <sjg@void.crufty.net>
34523955d011SMarcel Moolenaar
34533955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040414
34543955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34553955d011SMarcel Moolenaar	  o allow quoted strings on lhs of conditionals
34563955d011SMarcel Moolenaar	  o issue warning when extra .else is seen
34573955d011SMarcel Moolenaar	  o print line numer when errors encountered during parsing from
34583955d011SMarcel Moolenaar	  string.
34593955d011SMarcel Moolenaar
34603955d011SMarcel Moolenaar2004-02-20  Simon J. Gerraty  <sjg@void.crufty.net>
34613955d011SMarcel Moolenaar
34623955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump to 20040220
34633955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34643955d011SMarcel Moolenaar	  o fix for old :M parsing bug.
34653955d011SMarcel Moolenaar	  o re-jigged unit-tests
34663955d011SMarcel Moolenaar
34673955d011SMarcel Moolenaar2004-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
34683955d011SMarcel Moolenaar
34693955d011SMarcel Moolenaar	* Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,}
34703955d011SMarcel Moolenaar	so that './bmake -f Makefile test' works.
34713955d011SMarcel Moolenaar
34723955d011SMarcel Moolenaar2004-02-14  Simon J. Gerraty  <sjg@void.crufty.net>
34733955d011SMarcel Moolenaar
34743955d011SMarcel Moolenaar	* Makefile.in: (BMAKE_VERSION): bump to 20040214
34753955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34763955d011SMarcel Moolenaar	  o search upwards for *.mk
34773955d011SMarcel Moolenaar	  o fix for double free of var substitution buffers
34783955d011SMarcel Moolenaar	  o use of getopt replaced with custom code, since the usage
34793955d011SMarcel Moolenaar	  (re-scanning) isn't posix compatible.
34803955d011SMarcel Moolenaar
34813955d011SMarcel Moolenaar2004-02-12  Simon J. Gerraty  <sjg@void.crufty.net>
34823955d011SMarcel Moolenaar
34833955d011SMarcel Moolenaar	* arch.c: don't include ranlib.h on ELF systems
34843955d011SMarcel Moolenaar	(thanks to Chuck Cranor <chuck@ece.cmu.edu>).
34853955d011SMarcel Moolenaar
34863955d011SMarcel Moolenaar2004-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
34873955d011SMarcel Moolenaar
34883955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040118
34893955d011SMarcel Moolenaar
34903955d011SMarcel Moolenaar	* boot-strap (while): export vars we assign to on cmdline
34913955d011SMarcel Moolenaar	* unit-test/Makefile.in: ternary is .PHONY
34923955d011SMarcel Moolenaar
34933955d011SMarcel Moolenaar2004-01-08  Simon J. Gerraty  <sjg@void.crufty.net>
34943955d011SMarcel Moolenaar
34953955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20040108
34963955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34973955d011SMarcel Moolenaar	  o fix for ternary modifier
34983955d011SMarcel Moolenaar
34993955d011SMarcel Moolenaar2004-01-06  Simon J. Gerraty  <sjg@void.crufty.net>
35003955d011SMarcel Moolenaar
35013955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20040105
35023955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35033955d011SMarcel Moolenaar	  o fix for cond.c to handle compound expressions better
35043955d011SMarcel Moolenaar	  o variable expansion within sysV style replacements
35053955d011SMarcel Moolenaar
35063955d011SMarcel Moolenaar2003-12-22  Simon J. Gerraty  <sjg@void.crufty.net>
35073955d011SMarcel Moolenaar
35083955d011SMarcel Moolenaar	* Make portable snprintf safer - output to /dev/null first to
35093955d011SMarcel Moolenaar	check space needed.
35103955d011SMarcel Moolenaar
35113955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20031222
35123955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35133955d011SMarcel Moolenaar	  o -dg3 to show input graph when things go wrong.
35143955d011SMarcel Moolenaar	  o explicitly look for makefiles in objdir if not found in curdir so
35153955d011SMarcel Moolenaar	    that errors in .depend etc will be reported accurarely.
35163955d011SMarcel Moolenaar	  o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
35173955d011SMarcel Moolenaar	    instead as it more accurately reflects the expected behavior and
35183955d011SMarcel Moolenaar	    is more consistently implemented.
35193955d011SMarcel Moolenaar	  o avoid use of asprintf.
35203955d011SMarcel Moolenaar
35213955d011SMarcel Moolenaar2003-09-28  Simon J. Gerraty  <sjg@void.crufty.net>
35223955d011SMarcel Moolenaar
35233955d011SMarcel Moolenaar	* util.c: Add asprintf and vasprintf.
35243955d011SMarcel Moolenaar
35253955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030928
35263955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35273955d011SMarcel Moolenaar	:[] modifier - allows picking words from a variable.
35283955d011SMarcel Moolenaar	:tW modifier - allows treating value as one big word.
35293955d011SMarcel Moolenaar	W flag for :C and :S - allows treating value as one big word.
35303955d011SMarcel Moolenaar
35313955d011SMarcel Moolenaar2003-09-12  Simon J. Gerraty  <sjg@void.crufty.net>
35323955d011SMarcel Moolenaar
35333955d011SMarcel Moolenaar	* Merge with NetBSD make
35343955d011SMarcel Moolenaar	pick up -de flag to enable printing failed command.
35353955d011SMarcel Moolenaar	don't skip 1st two dir entries (normally . and ..) since
35363955d011SMarcel Moolenaar	coda does not have them.
35373955d011SMarcel Moolenaar
35383955d011SMarcel Moolenaar2003-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
35393955d011SMarcel Moolenaar
35403955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030909
35413955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35423955d011SMarcel Moolenaar	- changes for -V '${VAR}' to print fully expanded value
35433955d011SMarcel Moolenaar	  cf. -V VAR
35443955d011SMarcel Moolenaar	- CompatRunCommand now prints the command that failed.
35453955d011SMarcel Moolenaar	- several files got updated 3 clause Berkeley license.
35463955d011SMarcel Moolenaar
35473955d011SMarcel Moolenaar2003-08-02  Simon J. Gerraty  <sjg@void.crufty.net>
35483955d011SMarcel Moolenaar
35493955d011SMarcel Moolenaar	* boot-strap: Allow setting configure args on command line.
35503955d011SMarcel Moolenaar
35513955d011SMarcel Moolenaar2003-07-31  Simon J. Gerraty  <sjg@void.crufty.net>
35523955d011SMarcel Moolenaar
35533955d011SMarcel Moolenaar	* configure.in: add --with-defshell to allow sh or ksh
35543955d011SMarcel Moolenaar	to be selected as default shell.
35553955d011SMarcel Moolenaar
35563955d011SMarcel Moolenaar	* Makefile.in: bump version to 20030731
35573955d011SMarcel Moolenaar
35583955d011SMarcel Moolenaar	* Merge with NetBSD make
35593955d011SMarcel Moolenaar	Pick up .SHELL spec for ksh and associate man page changes.
35603955d011SMarcel Moolenaar	Also compat mode now uses the same shell specs.
35613955d011SMarcel Moolenaar
35623955d011SMarcel Moolenaar2003-07-29  Simon J. Gerraty  <sjg@void.crufty.net>
35633955d011SMarcel Moolenaar
35643955d011SMarcel Moolenaar	* var.c (Var_Parse): ensure delim is initialized.
35653955d011SMarcel Moolenaar
35663955d011SMarcel Moolenaar	* unit-tests/Makefile.in: use single quotes to avoid problems from
35673955d011SMarcel Moolenaar	some shells.
35683955d011SMarcel Moolenaar
35693955d011SMarcel Moolenaar	* makefile.boot.in:
35703955d011SMarcel Moolenaar	Run the unit-tests as part of the bootstrap procedure.
35713955d011SMarcel Moolenaar
35723955d011SMarcel Moolenaar2003-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
35733955d011SMarcel Moolenaar
35743955d011SMarcel Moolenaar	* unit-tests/Makefile.in: always force complaints from
35753955d011SMarcel Moolenaar	${TEST_MAKE} to be from 'make'.
35763955d011SMarcel Moolenaar
35773955d011SMarcel Moolenaar	* configure.in: add check for 'diff -u'
35783955d011SMarcel Moolenaar	also fix some old autoconf'isms
35793955d011SMarcel Moolenaar
35803955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030728.
35813955d011SMarcel Moolenaar	if using GCC add -Wno-cast-qual to CFLAGS for var.o
35823955d011SMarcel Moolenaar
35833955d011SMarcel Moolenaar	* Merge with NetBSD make
35843955d011SMarcel Moolenaar	Pick up fix for :ts parsing error in some cases.
35853955d011SMarcel Moolenaar	Pick unit-tests.
35863955d011SMarcel Moolenaar
35873955d011SMarcel Moolenaar2003-07-23  Simon J. Gerraty  <sjg@void.crufty.net>
35883955d011SMarcel Moolenaar
35893955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030723.
35903955d011SMarcel Moolenaar
35913955d011SMarcel Moolenaar	* var.c (Var_Parse): fix bug in :ts modifier, after const
35923955d011SMarcel Moolenaar	correctness fixes, must pass nstr to VarModify.
35933955d011SMarcel Moolenaar
35943955d011SMarcel Moolenaar2003-07-14  Simon J. Gerraty  <sjg@void.crufty.net>
35953955d011SMarcel Moolenaar
35963955d011SMarcel Moolenaar	* Makefile.in: BMAKE_VERSION switch to a date based version.
35973955d011SMarcel Moolenaar	We'll generally use the date of last import from NetBSD.
35983955d011SMarcel Moolenaar
35993955d011SMarcel Moolenaar	* Merge with NetBSD make
36003955d011SMarcel Moolenaar	Pick up fixes for const-correctness, now passes WARNS=3 on
36013955d011SMarcel Moolenaar	NetBSD.
36023955d011SMarcel Moolenaar	Pick up :ts modifier, allows controlling the separator used
36033955d011SMarcel Moolenaar	between words in variable expansion.
36043955d011SMarcel Moolenaar
36053955d011SMarcel Moolenaar2003-07-11  Simon J. Gerraty  <sjg@void.crufty.net>
36063955d011SMarcel Moolenaar
36073955d011SMarcel Moolenaar	* FILES: include boot-strap and os.sh
36083955d011SMarcel Moolenaar
36093955d011SMarcel Moolenaar	* Makefile.in: only set WARNS if we are NetBSD, the effect on
36103955d011SMarcel Moolenaar	FreeBSD is known to be bad.
36113955d011SMarcel Moolenaar
36123955d011SMarcel Moolenaar	* makefile.boot.in (bootstrap): make this the default target.
36133955d011SMarcel Moolenaar
36143955d011SMarcel Moolenaar	* Makefile.in: bump version to 3.1.19
36153955d011SMarcel Moolenaar
36163955d011SMarcel Moolenaar	* machine.sh: avoid A-Z with tr as it is bound to lose.
36173955d011SMarcel Moolenaar
36183955d011SMarcel Moolenaar2003-07-10  Simon J. Gerraty  <sjg@void.crufty.net>
36193955d011SMarcel Moolenaar
36203955d011SMarcel Moolenaar	* Merge with NetBSD make
36213955d011SMarcel Moolenaar	Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
36223955d011SMarcel Moolenaar	Plus some doc fixes.
36233955d011SMarcel Moolenaar
36243955d011SMarcel Moolenaar2003-04-27  Simon J. Gerraty  <sjg@void.crufty.net>
36253955d011SMarcel Moolenaar
36263955d011SMarcel Moolenaar	* Merge with NetBSD make
36273955d011SMarcel Moolenaar	Pick up fix for PR/1523 - don't count a library as built, if there
36283955d011SMarcel Moolenaar	is no way to build it
36293955d011SMarcel Moolenaar
36303955d011SMarcel Moolenaar	* Bump version to 3.1.18
36313955d011SMarcel Moolenaar
36323955d011SMarcel Moolenaar2003-03-23  Simon J. Gerraty  <sjg@void.crufty.net>
36333955d011SMarcel Moolenaar
36343955d011SMarcel Moolenaar	* Merge with NetBSD make
36353955d011SMarcel Moolenaar	Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT
36363955d011SMarcel Moolenaar	appears in src list.
36373955d011SMarcel Moolenaar
36383955d011SMarcel Moolenaar2003-03-21  Simon J. Gerraty  <sjg@void.crufty.net>
36393955d011SMarcel Moolenaar
36403955d011SMarcel Moolenaar	* Merge with NetBSD make (mmm 10th anniversary!)
36413955d011SMarcel Moolenaar	pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828)
36423955d011SMarcel Moolenaar	pick up -X which tells us to not export VAR=val via setenv if
36433955d011SMarcel Moolenaar	we are already doing so via MAKEFLAGS.  This saves valuable env
36443955d011SMarcel Moolenaar	space on systems like Darwin.
36453955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.17
36463955d011SMarcel Moolenaar
36473955d011SMarcel Moolenaar	* parse.c: pix up fix for suffix rules
36483955d011SMarcel Moolenaar
36493955d011SMarcel Moolenaar2003-03-06  Simon J. Gerraty  <sjg@void.crufty.net>
36503955d011SMarcel Moolenaar
36513955d011SMarcel Moolenaar	* Merge with NetBSD make.
36523955d011SMarcel Moolenaar	pick up fix for propagating -B via MAKEFLAGS.
36533955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.16
36543955d011SMarcel Moolenaar
36553955d011SMarcel Moolenaar	* Apply some patches from pkgsrc-bootstrap/bmake
36563955d011SMarcel Moolenaar	Originally by Grant Beattie <grant@netbsd.org>
36573955d011SMarcel Moolenaar	I may have missed some - since they are based on bmake-3.1.12
36583955d011SMarcel Moolenaar
36593955d011SMarcel Moolenaar2002-12-03  Simon J. Gerraty  <sjg@void.crufty.net>
36603955d011SMarcel Moolenaar
36613955d011SMarcel Moolenaar	* makefile.boot.in (bmake): update install targets for those that
36623955d011SMarcel Moolenaar	use them, also clear MAKEFLAGS when invoking bmake.boot to avoid
36633955d011SMarcel Moolenaar	havoc from gmake -w.  Thanks to Harlan Stenn <hstenn@cisco.com>.
36643955d011SMarcel Moolenaar
36653955d011SMarcel Moolenaar	* bmake.cat1: update the pre-formatted man page!
36663955d011SMarcel Moolenaar
36673955d011SMarcel Moolenaar2002-11-30  Simon J. Gerraty  <sjg@void.crufty.net>
36683955d011SMarcel Moolenaar
36693955d011SMarcel Moolenaar	* Merge with NetBSD make.
36703955d011SMarcel Moolenaar	pick up fix for premature free of pointer used in call
36713955d011SMarcel Moolenaar	to Dir_InitCur().
36723955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.15
36733955d011SMarcel Moolenaar
36743955d011SMarcel Moolenaar2002-11-26  Simon J. Gerraty  <sjg@void.crufty.net>
36753955d011SMarcel Moolenaar
36763955d011SMarcel Moolenaar	* configure.in: determine suitable value for MKSRC.
36773955d011SMarcel Moolenaar	override using --with-mksrc=PATH.
36783955d011SMarcel Moolenaar
36793955d011SMarcel Moolenaar	* machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems.
36803955d011SMarcel Moolenaar	configs(8) will use 'sun4' as an alias for 'sparc'.
36813955d011SMarcel Moolenaar
36823955d011SMarcel Moolenaar2002-11-25  Simon J. Gerraty  <sjg@void.crufty.net>
36833955d011SMarcel Moolenaar
36843955d011SMarcel Moolenaar	* Merge with NetBSD make.
36853955d011SMarcel Moolenaar	pick up ${.PATH}
36863955d011SMarcel Moolenaar	pick up fix for finding ../cat.c via .PATH when .CURDIR=..
36873955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.14
36883955d011SMarcel Moolenaar	add configure checks for killpg and sys/socket.h
36893955d011SMarcel Moolenaar
36903955d011SMarcel Moolenaar2002-09-16  Simon J. Gerraty  <sjg@void.crufty.net>
36913955d011SMarcel Moolenaar
36923955d011SMarcel Moolenaar	* tag bmake-3-1-13
36933955d011SMarcel Moolenaar
36943955d011SMarcel Moolenaar	* makefile.boot.in (bmake): use install-mk
36953955d011SMarcel Moolenaar	Also setup ./mk before trying to invoke bmake.boot incase we
36963955d011SMarcel Moolenaar	needed install-mk to create a sys.mk for us.
36973955d011SMarcel Moolenaar
36983955d011SMarcel Moolenaar	* configure.in: If we need to add -I${srcdir}/missing, make it an
36993955d011SMarcel Moolenaar	absolute path so that it works for lst.lib too.
37003955d011SMarcel Moolenaar
37013955d011SMarcel Moolenaar	* make.h: always include sys/cdefs.h since we provide one if the
37023955d011SMarcel Moolenaar	host does not.
37033955d011SMarcel Moolenaar
37043955d011SMarcel Moolenaar	* Makefile.in (install-mk):
37053955d011SMarcel Moolenaar	use MKSRC/install-mk which will do the right thing.
37063955d011SMarcel Moolenaar	use uname -p for ARCH if possible.
37073955d011SMarcel Moolenaar	since install-mk will setup links bsd.prog.mk -> prog.mk if
37083955d011SMarcel Moolenaar	needed, just .include bsd.prog.mk
37093955d011SMarcel Moolenaar
37103955d011SMarcel Moolenaar	* Merge with NetBSD make (NetBSD-1.6)
37113955d011SMarcel Moolenaar	Code is ansi-C only now.
37123955d011SMarcel Moolenaar	Bug in handling of dotLast is fixed.
37133955d011SMarcel Moolenaar	Can now assign .OBJDIR and make will reset its notions of life.
37143955d011SMarcel Moolenaar	New modifiers :tu :tl for toUpper and toLower.
37153955d011SMarcel Moolenaar
37163955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
37173955d011SMarcel Moolenaar
37183955d011SMarcel Moolenaar	* Merge with NetBSD make
37193955d011SMarcel Moolenaar	pick up fix for .END failure in compat mode.
37203955d011SMarcel Moolenaar	pick up fix for extra va_end() in ParseVErrorInternal.
37213955d011SMarcel Moolenaar
37223955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
37233955d011SMarcel Moolenaar
37243955d011SMarcel Moolenaar	* configure.in: for systems that have sys/cdefs.h check if it is
37253955d011SMarcel Moolenaar	compatible.  If not, include the one under missing, but tell it to
37263955d011SMarcel Moolenaar	include the native one too - necessary on Linux.
37273955d011SMarcel Moolenaar
37283955d011SMarcel Moolenaar	* missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use
37293955d011SMarcel Moolenaar	include_next (for gcc) to get the native sys/cdefs.h
37303955d011SMarcel Moolenaar
37313955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
37323955d011SMarcel Moolenaar
37333955d011SMarcel Moolenaar	* job.c (JobFinish): Fix an earlier merge bug that resulted in
37343955d011SMarcel Moolenaar	leaking descriptors when using -jN.
37353955d011SMarcel Moolenaar
37363955d011SMarcel Moolenaar	* job.c (JobPrintCommand): See if "curdir" exists before
37373955d011SMarcel Moolenaar	attempting to chdir().  Doing the chdir directly in make (when in
37383955d011SMarcel Moolenaar	compat mode) fails silently, so let the -jN version do the same.
37393955d011SMarcel Moolenaar	This can happen when building kernels in an object tree and
37403955d011SMarcel Moolenaar	playing clever games to reset .CURDIR.
37413955d011SMarcel Moolenaar
37423955d011SMarcel Moolenaar	* Merged with NetBSD make
37433955d011SMarcel Moolenaar	pick up .USEBEFORE
37443955d011SMarcel Moolenaar
37453955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
37463955d011SMarcel Moolenaar
37473955d011SMarcel Moolenaar	* makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work.
37483955d011SMarcel Moolenaar
37493955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
37503955d011SMarcel Moolenaar
37513955d011SMarcel Moolenaar	* var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
37523955d011SMarcel Moolenaar	us not to export the iterator variable when using VAR_CMD context.
37533955d011SMarcel Moolenaar
37543955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
37553955d011SMarcel Moolenaar
37563955d011SMarcel Moolenaar	* job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
37573955d011SMarcel Moolenaar	its the wrong "fix".
37583955d011SMarcel Moolenaar
37593955d011SMarcel MoolenaarSat Jun  9 00:11:24 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
37603955d011SMarcel Moolenaar
37613955d011SMarcel Moolenaar	* Redesigned export of VAR_CMD's via MAKEFLAGS.
37623955d011SMarcel Moolenaar	We now simply append the variable names to .MAKEOVERRIDES, and
37633955d011SMarcel Moolenaar	handle duplicate suppression and quoting in ExportMAKEFLAGS using:
37643955d011SMarcel Moolenaar	${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
37653955d011SMarcel Moolenaar	Apart from fixing quoting bugs in previous version, this allows us
37663955d011SMarcel Moolenaar	to export vars to the environment by simply doing:
37673955d011SMarcel Moolenaar	.MAKEOVERRIDES+= PATH
37683955d011SMarcel Moolenaar	Merged again with NetBSD make, but the above is the only change.
37693955d011SMarcel Moolenaar
37703955d011SMarcel Moolenaar	* configure.in: added
37713955d011SMarcel Moolenaar	--disable-pwd-override		disable $PWD overriding getcwd()
37723955d011SMarcel Moolenaar	--disable-check-make-chdir	disable make trying to guess
37733955d011SMarcel Moolenaar		when it should automatically cd ${.CURDIR}
37743955d011SMarcel Moolenaar
37753955d011SMarcel Moolenaar	* Merge with NetBSD make, changes include:
37763955d011SMarcel Moolenaar	parse.c (ParseDoDependency): Spot that the syntax error is
37773955d011SMarcel Moolenaar	caused by an unresolved cvs/rcs conflict and say so.
37783955d011SMarcel Moolenaar	var.c: most of Var* functions now take a ctxt as 1st arg.
37793955d011SMarcel Moolenaar	now does variable substituion on rhs of sysv style modifiers.
37803955d011SMarcel Moolenaar
37813955d011SMarcel Moolenaar	* var.c (Var_Set): exporting of command line variables (VAR_CMD)
37823955d011SMarcel Moolenaar	is now done here.  We append the name='value' to .MAKEOVERRIDES
37833955d011SMarcel Moolenaar	rather than directly into MAKEFLAGS as this allows a Makefile to
37843955d011SMarcel Moolenaar	use .MAKEOVERRIDES= to disable this behaviour.  GNU make uses a
37853955d011SMarcel Moolenaar	very similar mechanism.  Note that in adding name='value' to
37863955d011SMarcel Moolenaar	.MAKEOVERRIDES we do the moral equivalent of:
37873955d011SMarcel Moolenaar	.MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
37883955d011SMarcel Moolenaar
37893955d011SMarcel MoolenaarFri Jun  1 14:08:02 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
37903955d011SMarcel Moolenaar
37913955d011SMarcel Moolenaar	* make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H
37923955d011SMarcel Moolenaar
37933955d011SMarcel Moolenaar	* Merged with NetBSD make
37943955d011SMarcel Moolenaar	make -dx can now be used to run commands via sh -x
37953955d011SMarcel Moolenaar	better error messages on exec failures.
37963955d011SMarcel Moolenaar
37973955d011SMarcel MoolenaarThu May 31 01:44:54 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
37983955d011SMarcel Moolenaar
37993955d011SMarcel Moolenaar	* Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that
38003955d011SMarcel Moolenaar	MAKE_VERSION gets updated.  Also don't use ?= for MAKE_VERSION,
38013955d011SMarcel Moolenaar	MACHINE etc otherwise they propagate from the previous bmake.
38023955d011SMarcel Moolenaar
38033955d011SMarcel Moolenaar	* configure.in (machine): allow --with-machine=generic to make
38043955d011SMarcel Moolenaar	configure use machine.sh to set MACHINE.
38053955d011SMarcel Moolenaar
38063955d011SMarcel Moolenaar	* job.c (JobInterrupt): convert to using WAIT_T and friends.
38073955d011SMarcel Moolenaar
38083955d011SMarcel Moolenaar	* Makefile.in: mention in bmake.1 that we use autoconf.
38093955d011SMarcel Moolenaar
38103955d011SMarcel Moolenaar	* make.1: mention MAKE_PRINT_VAR_ON_ERROR.
38113955d011SMarcel Moolenaar
38123955d011SMarcel MoolenaarWed May 30 23:17:18 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
38133955d011SMarcel Moolenaar
38143955d011SMarcel Moolenaar	* main.c (ReadMakefile): don't set MAKEFILE if reading ".depend"
38153955d011SMarcel Moolenaar	as that rather defeats the usefulness of ${MAKEFILE}.
38163955d011SMarcel Moolenaar
38173955d011SMarcel Moolenaar	* main.c (MainParseArgs): append command line variable assignments
38183955d011SMarcel Moolenaar	to MAKEFLAGS so that they get propagated to child make's.
38193955d011SMarcel Moolenaar	Apparently this is required POSIX behaviour?  Its useful anyway.
38203955d011SMarcel Moolenaar
38213955d011SMarcel MoolenaarTue May 29 02:20:07 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
38223955d011SMarcel Moolenaar
38233955d011SMarcel Moolenaar	* compat.c (CompatRunCommand): don't use perror() since stdio may
38243955d011SMarcel Moolenaar	cause problems in child of vfork().
38253955d011SMarcel Moolenaar
38263955d011SMarcel Moolenaar	* compat.c, main.c: Call PrintOnError() when we are going to bail.
38273955d011SMarcel Moolenaar	This routine prints out the .curdir where we stopped and will also
38283955d011SMarcel Moolenaar	display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}.
38293955d011SMarcel Moolenaar
38303955d011SMarcel Moolenaar	* main.c: add ${.newline} to hold a "\n" - sometimes handy in
38313955d011SMarcel Moolenaar	:@ expansion.
38323955d011SMarcel Moolenaar
38333955d011SMarcel Moolenaar	* var.c: VarLoopExpand: ignore addSpace if a \n is present.
38343955d011SMarcel Moolenaar
38353955d011SMarcel Moolenaar	* Added RCSid's for the files we've touched.
38363955d011SMarcel Moolenaar
38373955d011SMarcel MoolenaarThu May 24 15:41:37 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
38383955d011SMarcel Moolenaar
38393955d011SMarcel Moolenaar	* configure.in:	Thanks to some clues from mdb@juniper.net,
38403955d011SMarcel Moolenaar	added autoconf magic to control setting of MACHINE, MACHINE_ARCH
38413955d011SMarcel Moolenaar	as well as what ends up in _PATH_DEFSYSPATH.  We now have:
38423955d011SMarcel Moolenaar
38433955d011SMarcel Moolenaar  --with-machine=MACHINE  explicitly set MACHINE
38443955d011SMarcel Moolenaar  --with-force-machine=MACHINE  set FORCE_MACHINE
38453955d011SMarcel Moolenaar  --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
38463955d011SMarcel Moolenaar  --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
38473955d011SMarcel Moolenaar  --with-prefix-sys-path=PATH:DIR:LIST  prefix _PATH_PREFIX_SYSPATH
38483955d011SMarcel Moolenaar  --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
38493955d011SMarcel Moolenaar
38503955d011SMarcel Moolenaar	If _PATH_OBJDIRPREFIX is set to "no" we won't define it.
38513955d011SMarcel Moolenaar
38523955d011SMarcel Moolenaar	* makefile: added a pathetically simple makefile to drive
38533955d011SMarcel Moolenaar	bootstrapping.  Running configure by hand is more useful.
38543955d011SMarcel Moolenaar
38553955d011SMarcel Moolenaar	* Makefile.in: added MAKE_VERSION, and reworked things to be less
38563955d011SMarcel Moolenaar	dependent on NetBSD bsd.*.mk
38573955d011SMarcel Moolenaar
38583955d011SMarcel Moolenaar	* pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining
38593955d011SMarcel Moolenaar	_PATH_OBJDIRPREFIX for those that don't want a default.
38603955d011SMarcel Moolenaar	construct _PATH_DEFSYSPATH from the info we get from configure.
38613955d011SMarcel Moolenaar
38623955d011SMarcel Moolenaar	* main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION}
38633955d011SMarcel Moolenaar	if MAKE_VERSION is defined.
38643955d011SMarcel Moolenaar
38653955d011SMarcel Moolenaar	* compat.c: when we bail, print out the .CURDIR we were in.
38663955d011SMarcel Moolenaar
38673955d011SMarcel MoolenaarSat May 12 00:34:12 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
38683955d011SMarcel Moolenaar
38693955d011SMarcel Moolenaar	* Merged with NetBSD make
38703955d011SMarcel Moolenaar
38713955d011SMarcel Moolenaar	* var.c: fixed a bug in the handling of the modifier :P
38723955d011SMarcel Moolenaar	if the node as found but the path was null, we segfault trying to
38733955d011SMarcel Moolenaar	duplicate it.
38743955d011SMarcel Moolenaar
38753955d011SMarcel MoolenaarMon Mar  5 16:20:33 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
38763955d011SMarcel Moolenaar
38773955d011SMarcel Moolenaar	* Merged with NetBSD make
38783955d011SMarcel Moolenaar
38793955d011SMarcel Moolenaar	* make.c: Make_OODate's test for a library out of date was using
38803955d011SMarcel Moolenaar	cmtime where it should have used mtime (my bug).
38813955d011SMarcel Moolenaar
38823955d011SMarcel Moolenaar	* compat.c: Use perror() to tell us what really went wrong when we
38833955d011SMarcel Moolenaar	cannot exec a command.
38843955d011SMarcel Moolenaar
38853955d011SMarcel MoolenaarFri Dec 15 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
38863955d011SMarcel Moolenaar
38873955d011SMarcel Moolenaar	* Merged with NetBSD make
38883955d011SMarcel Moolenaar
38893955d011SMarcel MoolenaarSat Jun 10 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
38903955d011SMarcel Moolenaar
38913955d011SMarcel Moolenaar	* Merged with NetBSD make
38923955d011SMarcel Moolenaar
38933955d011SMarcel MoolenaarThu Jun  1 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
38943955d011SMarcel Moolenaar
38953955d011SMarcel Moolenaar	* Merged with NetBSD make
38963955d011SMarcel Moolenaar
38973955d011SMarcel MoolenaarTue May 30 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
38983955d011SMarcel Moolenaar
38993955d011SMarcel Moolenaar	* Merged with NetBSD make
39003955d011SMarcel Moolenaar
39013955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
39023955d011SMarcel Moolenaar
39033955d011SMarcel Moolenaar	* util.c: don't provide signal() since we use sigcompat.c
39043955d011SMarcel Moolenaar
39053955d011SMarcel Moolenaar	* Makefile.in: added a build target.
39063955d011SMarcel Moolenaar
39073955d011SMarcel Moolenaar	* var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :!
39083955d011SMarcel Moolenaar	These allow some quite clever magic.
39093955d011SMarcel Moolenaar
39103955d011SMarcel Moolenaar	* main.c (main): added support for getenv(MAKESYSPATH).
39113955d011SMarcel Moolenaar
39123955d011SMarcel MoolenaarMon Apr  2 16:25:13 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
39133955d011SMarcel Moolenaar
39143955d011SMarcel Moolenaar	* Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set.
39153955d011SMarcel Moolenaar	This avoids objdir having a different value depending on how a
39163955d011SMarcel Moolenaar	directory was reached (via command line, or subdir.mk).
39173955d011SMarcel Moolenaar
39183955d011SMarcel Moolenaar	* If FORCE_MACHINE is defined, ignore getenv("MACHINE").
39193955d011SMarcel Moolenaar
39203955d011SMarcel MoolenaarMon Apr  2 23:15:31 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
39213955d011SMarcel Moolenaar
39223955d011SMarcel Moolenaar	* Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if
39233955d011SMarcel Moolenaar	MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not.
39243955d011SMarcel Moolenaar	I've been testing this in NetBSD's make for some weeks.
39253955d011SMarcel Moolenaar
39263955d011SMarcel Moolenaar	* Turn Makefile into Makefile.in and make it useful.
39273955d011SMarcel Moolenaar
39283955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty  <sjg@zen.quick.com.au>
39293955d011SMarcel Moolenaar
39303955d011SMarcel Moolenaar	* Imported NetBSD's -current make(1) and resolve conflicts.
39313955d011SMarcel Moolenaar
39323955d011SMarcel Moolenaar	* Applied autoconf patches from bmake v2
39333955d011SMarcel Moolenaar
39343955d011SMarcel Moolenaar	* Imported clean code base from NetBSD-1.0
3935