xref: /freebsd/contrib/bmake/ChangeLog (revision 8c973ee23d647bbdebd2c12cb51460d80101e11a)
1*8c973ee2SSimon J. Gerraty2023-04-14  Simon J Gerraty  <sjg@beast.crufty.net>
2*8c973ee2SSimon J. Gerraty
3*8c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230414
4*8c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
5*8c973ee2SSimon J. Gerraty	o minor cleanup
6*8c973ee2SSimon J. Gerraty
7*8c973ee2SSimon J. Gerraty2023-03-25  Simon J Gerraty  <sjg@beast.crufty.net>
8*8c973ee2SSimon J. Gerraty
9*8c973ee2SSimon J. Gerraty	* main.c: on some systems (eg OS/X) setting RLIMIT_NOFILE to
10*8c973ee2SSimon J. Gerraty	unlimited results in an insane number (0x7fffffffffffffff).
11*8c973ee2SSimon J. Gerraty	If BMAKE_NOFILE_MAX is defined, use that instead.
12*8c973ee2SSimon J. Gerraty
13*8c973ee2SSimon J. Gerraty2023-03-22  Simon J Gerraty  <sjg@beast.crufty.net>
14*8c973ee2SSimon J. Gerraty
15*8c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230321
16*8c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
17*8c973ee2SSimon J. Gerraty	* make.1: document seemingly unexplained Error code 6.
18*8c973ee2SSimon J. Gerraty
19*8c973ee2SSimon J. Gerraty2023-03-18  Simon J Gerraty  <sjg@beast.crufty.net>
20*8c973ee2SSimon J. Gerraty
21*8c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230317
22*8c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
23*8c973ee2SSimon J. Gerraty	o compat.c: CompatDeleteTarget skip .PHONY targets to be
24*8c973ee2SSimon J. Gerraty	consistent with JobDeleteTarget.
25*8c973ee2SSimon J. Gerraty	o job.c: fix memory leak in handling sysv :from=to modifiers
26*8c973ee2SSimon J. Gerraty
27*8c973ee2SSimon J. Gerraty2023-03-04  Simon J Gerraty  <sjg@beast.crufty.net>
28*8c973ee2SSimon J. Gerraty
29*8c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230303
30*8c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
31*8c973ee2SSimon J. Gerraty	o several updated unit-tests
32*8c973ee2SSimon J. Gerraty
33*8c973ee2SSimon J. Gerraty2023-02-22  Simon J Gerraty  <sjg@beast.crufty.net>
34*8c973ee2SSimon J. Gerraty
35*8c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230222
36*8c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
37*8c973ee2SSimon J. Gerraty	o unit tests for .MAKE.META.IGNORE_{FILTER,PATHS,PATTERNS}
38*8c973ee2SSimon J. Gerraty
39*8c973ee2SSimon J. Gerraty2023-02-20  Simon J Gerraty  <sjg@beast.crufty.net>
40*8c973ee2SSimon J. Gerraty
41*8c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230218
42*8c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
43*8c973ee2SSimon J. Gerraty	o var.c: fix parsing of unevaluated subexpressions with
44*8c973ee2SSimon J. Gerraty	unbalanced '{}'
45*8c973ee2SSimon J. Gerraty
46*8c973ee2SSimon J. Gerraty2023-02-17  Simon J Gerraty  <sjg@beast.crufty.net>
47*8c973ee2SSimon J. Gerraty
48*8c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230215
49*8c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
50*8c973ee2SSimon J. Gerraty	o inline macros for some variable names
51*8c973ee2SSimon J. Gerraty	o cond.c: reduce complexity of evaluating expressions
52*8c973ee2SSimon J. Gerraty
53dc1b8c9aSSimon J. Gerraty2023-02-08  Simon J Gerraty  <sjg@beast.crufty.net>
54dc1b8c9aSSimon J. Gerraty
55dc1b8c9aSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230208
56dc1b8c9aSSimon J. Gerraty	Merge with NetBSD make, pick up
57dc1b8c9aSSimon J. Gerraty	o var.c: always use SCOPE_GLOBAL for :_ to avoid problems
58dc1b8c9aSSimon J. Gerraty	when it has been used within conditional expressions
59dc1b8c9aSSimon J. Gerraty
60dc1b8c9aSSimon J. Gerraty2023-01-27  Simon J Gerraty  <sjg@beast.crufty.net>
61dc1b8c9aSSimon J. Gerraty
62dc1b8c9aSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230127
63dc1b8c9aSSimon J. Gerraty
64dc1b8c9aSSimon J. Gerraty	* install-sh: if making directories ensure umask is set
65dc1b8c9aSSimon J. Gerraty	to match mode.
66dc1b8c9aSSimon J. Gerraty
67dc1b8c9aSSimon J. Gerraty	* Makefile: use DIRMODE for directories and
68dc1b8c9aSSimon J. Gerraty	NONBINMODE for man pages and mk files
69dc1b8c9aSSimon J. Gerraty
704fde40d9SSimon J. Gerraty2023-01-26  Simon J Gerraty  <sjg@beast.crufty.net>
714fde40d9SSimon J. Gerraty
724fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230126
734fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
744fde40d9SSimon J. Gerraty	o variables like .newline and .MAKE.{GID,PID,PPID,UID}
754fde40d9SSimon J. Gerraty	should be read-only.
764fde40d9SSimon J. Gerraty
774fde40d9SSimon J. Gerraty2023-01-23  Simon J Gerraty  <sjg@beast.crufty.net>
784fde40d9SSimon J. Gerraty
794fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230123
804fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
814fde40d9SSimon J. Gerraty	o .[NO]READONLY: for control of read-only variables
824fde40d9SSimon J. Gerraty	o .SYSPATH: for controlling the path searched for makefiles
834fde40d9SSimon J. Gerraty
844fde40d9SSimon J. Gerraty2023-01-20  Simon J Gerraty  <sjg@beast.crufty.net>
854fde40d9SSimon J. Gerraty
864fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230120
874fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
884fde40d9SSimon J. Gerraty	o allow for white-space between command specifiers @+-
894fde40d9SSimon J. Gerraty	o add more details to warning 'Extra targets ignored'
904fde40d9SSimon J. Gerraty
914fde40d9SSimon J. Gerraty2023-01-12  Simon J Gerraty  <sjg@beast.crufty.net>
924fde40d9SSimon J. Gerraty
934fde40d9SSimon J. Gerraty	* machine.sh: leverage os.sh rather than duplicate
944fde40d9SSimon J. Gerraty	also dispence with the $OS.$MACHINE values - we have $HOST_TARGET
954fde40d9SSimon J. Gerraty	for that purpose for the past decade or so.
964fde40d9SSimon J. Gerraty	We invariably get MACHINE and MACHINE_ARCH at runtime anyway.
974fde40d9SSimon J. Gerraty
984fde40d9SSimon J. Gerraty2023-01-02  Simon J Gerraty  <sjg@beast.crufty.net>
994fde40d9SSimon J. Gerraty
1004fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230101
1014fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1024fde40d9SSimon J. Gerraty	o cleanup comments, inline some LazyBuf_ methods
1034fde40d9SSimon J. Gerraty	o unit-tests/ add/improve comments in tests
1044fde40d9SSimon J. Gerraty	o make.1: sync list of built-in variables with reality
1054fde40d9SSimon J. Gerraty	sort list of built-in variables
1064fde40d9SSimon J. Gerraty	reduce indentation of the long list of variable names
1074fde40d9SSimon J. Gerraty	use consistent markup for boolean flags
1084fde40d9SSimon J. Gerraty	move description of .MAKE.MODE below the .MAKE.META block
1094fde40d9SSimon J. Gerraty	clarify in which case an expression may omit braces
1104fde40d9SSimon J. Gerraty
1114fde40d9SSimon J. Gerraty2022-11-08  Simon J Gerraty  <sjg@beast.crufty.net>
1124fde40d9SSimon J. Gerraty
1134fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20221024
1144fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1154fde40d9SSimon J. Gerraty	o change return type of unlink_file back to int
1164fde40d9SSimon J. Gerraty
1174fde40d9SSimon J. Gerraty2022-10-07  Simon J Gerraty  <sjg@beast.crufty.net>
1184fde40d9SSimon J. Gerraty
1194fde40d9SSimon J. Gerraty	* Makefile: Darwin and Linux can handle MANTARGET=man
1204fde40d9SSimon J. Gerraty
1214fde40d9SSimon J. Gerraty2022-09-28  Simon J Gerraty  <sjg@beast.crufty.net>
1224fde40d9SSimon J. Gerraty
1234fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220928
1244fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1254fde40d9SSimon J. Gerraty	o fix more ignored returns from snprintf
1264fde40d9SSimon J. Gerraty	o compile with higher warnings
1274fde40d9SSimon J. Gerraty
1284fde40d9SSimon J. Gerraty2022-09-26  Simon J Gerraty  <sjg@beast.crufty.net>
1294fde40d9SSimon J. Gerraty
1304fde40d9SSimon J. Gerraty	* main.c meta.c: do not ignore return from snprintf
1314fde40d9SSimon J. Gerraty
1324fde40d9SSimon J. Gerraty	* meta.c strlcpy.c: we need prototype for strlcpy
1334fde40d9SSimon J. Gerraty
1344fde40d9SSimon J. Gerraty	* sigcompat.c: fix unused function warnings
1354fde40d9SSimon J. Gerraty
1364fde40d9SSimon J. Gerraty2022-09-24  Simon J Gerraty  <sjg@beast.crufty.net>
1374fde40d9SSimon J. Gerraty
1384fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220924
1394fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1404fde40d9SSimon J. Gerraty	o fix bug in .break reset of conditional depth
1414fde40d9SSimon J. Gerraty	o overhaul and simplify tracking of conditional depth
1424fde40d9SSimon J. Gerraty
1434fde40d9SSimon J. Gerraty2022-09-17  Simon J Gerraty  <sjg@beast.crufty.net>
1444fde40d9SSimon J. Gerraty
1454fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220912
1464fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1474fde40d9SSimon J. Gerraty	o man page updates
1484fde40d9SSimon J. Gerraty
1494fde40d9SSimon J. Gerraty2022-09-09  Simon J Gerraty  <sjg@beast.crufty.net>
1504fde40d9SSimon J. Gerraty
1514fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220909
1524fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1534fde40d9SSimon J. Gerraty	o update unit-tests to handle deprecation of egrep
1544fde40d9SSimon J. Gerraty	o cond.c: add more details to error message for numeric comparison
1554fde40d9SSimon J. Gerraty
1564fde40d9SSimon J. Gerraty	* configure.in: allow for deprecation of egrep
1574fde40d9SSimon J. Gerraty
1584fde40d9SSimon J. Gerraty	* Makefile: Linux can handle MANTARGET=man
1594fde40d9SSimon J. Gerraty
1604fde40d9SSimon J. Gerraty2022-09-03  Simon J Gerraty  <sjg@beast.crufty.net>
1614fde40d9SSimon J. Gerraty
1624fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220903
1634fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1644fde40d9SSimon J. Gerraty	o job.c: fix handling of null bytes in output
1654fde40d9SSimon J. Gerraty
1664fde40d9SSimon J. Gerraty2022-09-02  Simon J Gerraty  <sjg@beast.crufty.net>
1674fde40d9SSimon J. Gerraty
1684fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220902
1694fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1704fde40d9SSimon J. Gerraty	o Allow .break to terminate a .for loop early
1714fde40d9SSimon J. Gerraty
1724fde40d9SSimon J. Gerraty2022-09-01  Simon J Gerraty  <sjg@beast.crufty.net>
1734fde40d9SSimon J. Gerraty
1744fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220901
1754fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1764fde40d9SSimon J. Gerraty	o var.c: fix out-of-bounds errors when parsing
1774fde40d9SSimon J. Gerraty
1784fde40d9SSimon J. Gerraty2022-08-24  Simon J Gerraty  <sjg@beast.crufty.net>
1794fde40d9SSimon J. Gerraty
1804fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220824
1814fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1824fde40d9SSimon J. Gerraty	o var.c: revert change to modifier parsing that breaks
1834fde40d9SSimon J. Gerraty	shell variable references within ':@var@body@'
1844fde40d9SSimon J. Gerraty	o adjust unit-tests
1854fde40d9SSimon J. Gerraty
1864fde40d9SSimon J. Gerraty2022-08-18  Simon J Gerraty  <sjg@beast.crufty.net>
1874fde40d9SSimon J. Gerraty
1884fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220818
1894fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1904fde40d9SSimon J. Gerraty	o fix exit status for '-q' (since 1994)
1914fde40d9SSimon J. Gerraty
1924fde40d9SSimon J. Gerraty2022-08-08  Simon J Gerraty  <sjg@beast.crufty.net>
1934fde40d9SSimon J. Gerraty
1944fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220808
1954fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
1964fde40d9SSimon J. Gerraty	o var.c: fix parsing of modifiers containing unbalanced subexpressions
1974fde40d9SSimon J. Gerraty	extract parsing of ':D' and ':U' modifiers into separate function
1984fde40d9SSimon J. Gerraty
199532d4fbfSSimon J. Gerraty2022-07-26  Simon J Gerraty  <sjg@beast.crufty.net>
200532d4fbfSSimon J. Gerraty
201532d4fbfSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220726
202532d4fbfSSimon J. Gerraty
203532d4fbfSSimon J. Gerraty	* Auto-create objdir for bmake/unit-tests if appropriate
204532d4fbfSSimon J. Gerraty
205954401e6SSimon J. Gerraty2022-07-24  Simon J Gerraty  <sjg@beast.crufty.net>
206954401e6SSimon J. Gerraty
207954401e6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220724
208954401e6SSimon J. Gerraty	Merge with NetBSD make, pick up
209954401e6SSimon J. Gerraty	o make.1: describe variable assignment and evaluation more precisely
210954401e6SSimon J. Gerraty	o parse.c: fix out-of-bounds read when parsing an invalid line
211954401e6SSimon J. Gerraty	o var.c: simplify return type of IsShortVarnameValid
212954401e6SSimon J. Gerraty
213954401e6SSimon J. Gerraty2022-06-12  Simon J Gerraty  <sjg@beast.crufty.net>
214954401e6SSimon J. Gerraty
215954401e6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220612
216954401e6SSimon J. Gerraty	Merge with NetBSD make, pick up
217954401e6SSimon J. Gerraty	o allow to randomize build order of targets
218954401e6SSimon J. Gerraty	.MAKE.MODE += randomize-targets can help uncover dependency bugs
219954401e6SSimon J. Gerraty	within a makefile.
220954401e6SSimon J. Gerraty	o compat.c: rename Compat_Run to Compat_MakeAll
221954401e6SSimon J. Gerraty	o make.c: inline MakeBuildParent
222954401e6SSimon J. Gerraty	inline make_abort, improve error details
223954401e6SSimon J. Gerraty	o parse.c: reorganize Parse_Error
224954401e6SSimon J. Gerraty	fix memory leak in wildcard targets and sources
225954401e6SSimon J. Gerraty	separate cases in HandleDependencyTargetMundane
226954401e6SSimon J. Gerraty	extract HandleSingleDependencyTargetMundane
227954401e6SSimon J. Gerraty	rename loadfile to LoadFile
228954401e6SSimon J. Gerraty	split IncludeFile into separate functions
229954401e6SSimon J. Gerraty	condense code for searching a file in the paths
230954401e6SSimon J. Gerraty	fix off-by-one error in buffer for .WAIT nodes
231954401e6SSimon J. Gerraty	o str.c: condense Str_Match
232954401e6SSimon J. Gerraty	make code for string matching syntactically more consistent
233954401e6SSimon J. Gerraty
2342f2a5ecdSSimon J. Gerraty2022-04-18  Simon J Gerraty  <sjg@beast.crufty.net>
2352f2a5ecdSSimon J. Gerraty
2362f2a5ecdSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220418
2372f2a5ecdSSimon J. Gerraty	Merge with NetBSD make, pick up
2382f2a5ecdSSimon J. Gerraty	o ignore '.POSIX:' if not in first non-comment line
2392f2a5ecdSSimon J. Gerraty	of Makefile as specified by POSIX.
2402f2a5ecdSSimon J. Gerraty	add unit-tests for above.
2412f2a5ecdSSimon J. Gerraty	o meta.c: make it easier to find usage of identifiers
2422f2a5ecdSSimon J. Gerraty	o targ.c: add .USEBEFORE to Targ_PrintType
2432f2a5ecdSSimon J. Gerraty
2442f2a5ecdSSimon J. Gerraty2022-04-14  Simon J Gerraty  <sjg@beast.crufty.net>
2452f2a5ecdSSimon J. Gerraty
2462f2a5ecdSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220414
2472f2a5ecdSSimon J. Gerraty
2482f2a5ecdSSimon J. Gerraty	* unit-tests/Makefile: simplify checks for shells with
2492f2a5ecdSSimon J. Gerraty	BROKEN_TESTS, this helps with other Linux distros that
2502f2a5ecdSSimon J. Gerraty	use dash.
2512f2a5ecdSSimon J. Gerraty
2521d3f2ddcSSimon J. Gerraty2022-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
2531d3f2ddcSSimon J. Gerraty
2541d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220330
2551d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
2561d3f2ddcSSimon J. Gerraty	o var.c: fix spacing, and a typo in a test
2571d3f2ddcSSimon J. Gerraty
2581d3f2ddcSSimon J. Gerraty2022-03-26  Simon J Gerraty  <sjg@beast.crufty.net>
2591d3f2ddcSSimon J. Gerraty
2601d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220326
2611d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
2621d3f2ddcSSimon J. Gerraty	o parse.c: try to include 'posix.mk' the first time
2631d3f2ddcSSimon J. Gerraty	.POSIX: is encountered, to allow for beter POSIX compliance.
2641d3f2ddcSSimon J. Gerraty	o var.c: make debug logs more readable
2651d3f2ddcSSimon J. Gerraty	prefer 'long long' over 'long' on 32-bit C99 platforms
2661d3f2ddcSSimon J. Gerraty	fix crash on .undef of an environment variable
2671d3f2ddcSSimon J. Gerraty
2681d3f2ddcSSimon J. Gerraty2022-03-03  Simon J Gerraty  <sjg@beast.crufty.net>
2691d3f2ddcSSimon J. Gerraty
2701d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220303
2711d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
2721d3f2ddcSSimon J. Gerraty	o tell meta mode unit tests not to expect filemon
2731d3f2ddcSSimon J. Gerraty	o cond.c: make debug logging for comparisons less technical
2741d3f2ddcSSimon J. Gerraty	o lst.c: fix mem leak in Lst_Remove
2751d3f2ddcSSimon J. Gerraty	o str.c: make code for string matching syntactically more consistent
2761d3f2ddcSSimon J. Gerraty	o var.c: simplify ParseModifier_Match
2771d3f2ddcSSimon J. Gerraty
2781d3f2ddcSSimon J. Gerraty2022-02-14  Simon J Gerraty  <sjg@beast.crufty.net>
2791d3f2ddcSSimon J. Gerraty
2801d3f2ddcSSimon J. Gerraty	* unit-tests/Makefile: control MAKESYSPATH for deptgt-phony
2811d3f2ddcSSimon J. Gerraty
2821d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220214
2831d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
2841d3f2ddcSSimon J. Gerraty	o cond.c: simplify control flow in CondParser_Comparison
2851d3f2ddcSSimon J. Gerraty	o job.c: fix echoing of command with '-' in silent target in jobs mode
2861d3f2ddcSSimon J. Gerraty	o main.c: prefix the warning about read-only .OBJDIR with a colon
2871d3f2ddcSSimon J. Gerraty	o parse.c: remove redundant conditions
2881d3f2ddcSSimon J. Gerraty	o var.c: simplify control flow in ModifyWord_SysVSubst
2891d3f2ddcSSimon J. Gerraty
290a6f0e10bSSimon J. Gerraty2022-02-08  Simon J Gerraty  <sjg@beast.crufty.net>
291a6f0e10bSSimon J. Gerraty
292a6f0e10bSSimon J. Gerraty	* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
293a6f0e10bSSimon J. Gerraty	is any chance we have dash as .SHELL
294a6f0e10bSSimon J. Gerraty
295a6f0e10bSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220208
296a6f0e10bSSimon J. Gerraty	Merge with NetBSD make, pick up
297a6f0e10bSSimon J. Gerraty	o more unit tests
298a6f0e10bSSimon J. Gerraty	o meta.c: use a variable to hold command line to be filtered
299a6f0e10bSSimon J. Gerraty	to avoid any side effects from content of command line.
300a6f0e10bSSimon J. Gerraty
3019f45a3c8SSimon J. Gerraty2022-02-04  Simon J Gerraty  <sjg@beast.crufty.net>
3029f45a3c8SSimon J. Gerraty
3039f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220204
3049f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
3059f45a3c8SSimon J. Gerraty	o use unsigned consistently for line numbers, avoid the need for %z
3069f45a3c8SSimon J. Gerraty	o parse.c: do not step off end of input in Parse_IsVar
3079f45a3c8SSimon J. Gerraty	when checking for target local variable assignments
3089f45a3c8SSimon J. Gerraty
3099f45a3c8SSimon J. Gerraty2022-02-02  Simon J Gerraty  <sjg@beast.crufty.net>
3109f45a3c8SSimon J. Gerraty
3119f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220202
3129f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
3139f45a3c8SSimon J. Gerraty	o remove redundant declaration of HashIter_Init
3149f45a3c8SSimon J. Gerraty	o make DEBUG0 simpler
3159f45a3c8SSimon J. Gerraty
3169f45a3c8SSimon J. Gerraty2022-01-30  Simon J Gerraty  <sjg@beast.crufty.net>
3179f45a3c8SSimon J. Gerraty
3189f45a3c8SSimon J. Gerraty	* cast gn->lineno to avoid %z
3199f45a3c8SSimon J. Gerraty
3209f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220130
3219f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
3229f45a3c8SSimon J. Gerraty	o more unit tests
3239f45a3c8SSimon J. Gerraty	o make GNode lineno unsigned to please lint
3249f45a3c8SSimon J. Gerraty	o print location of recursive variable references in commands
3259f45a3c8SSimon J. Gerraty	o print "stack trace" (makefile includes) on fatal errors
3269f45a3c8SSimon J. Gerraty	o make.1: refine documentation for target local assignments
3279f45a3c8SSimon J. Gerraty
3289f45a3c8SSimon J. Gerraty2022-01-28  Simon J Gerraty  <sjg@beast.crufty.net>
3299f45a3c8SSimon J. Gerraty
3309f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220128
3319f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
3329f45a3c8SSimon J. Gerraty	o inline functions called only once
3339f45a3c8SSimon J. Gerraty	o for.c: clean up AddEscape for building the body of a .for loop
3349f45a3c8SSimon J. Gerraty	o hash.c: merge duplicate code for finding an entry in a hash table
3359f45a3c8SSimon J. Gerraty	replace HashEntry_KeyEquals with strncmp
3369f45a3c8SSimon J. Gerraty	o make.1: document quirks of target local variable assignments.
3379f45a3c8SSimon J. Gerraty	o parse.c: cleanup white-space
3389f45a3c8SSimon J. Gerraty
3399f45a3c8SSimon J. Gerraty2022-01-26  Simon J Gerraty  <sjg@beast.crufty.net>
3409f45a3c8SSimon J. Gerraty
3419f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220126
3429f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
3439f45a3c8SSimon J. Gerraty	o allow setting target local variables
3449f45a3c8SSimon J. Gerraty	o more unit tests
3459f45a3c8SSimon J. Gerraty	o add missing newline after "cannot continue" message
3469f45a3c8SSimon J. Gerraty	o meta.c: clean up eat_dots
3479f45a3c8SSimon J. Gerraty	o parse.c: fix filename in warning about duplicate script
3489f45a3c8SSimon J. Gerraty	o var.c: when expanding nested variables, check simple things first
3499f45a3c8SSimon J. Gerraty
3509f45a3c8SSimon J. Gerraty2022-01-16  Simon J Gerraty  <sjg@beast.crufty.net>
3519f45a3c8SSimon J. Gerraty
3529f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220116
3539f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
3549f45a3c8SSimon J. Gerraty	o fix for unit-tests/varname-makeflags on non-BSD systems
3559f45a3c8SSimon J. Gerraty	o use Var_Exists rather than Var_Value where appropriate
3569f45a3c8SSimon J. Gerraty	o remove unnecessary functions for expanding variable names
3579f45a3c8SSimon J. Gerraty	o cond.c: inline EvalBare
3589f45a3c8SSimon J. Gerraty	o main.c: lint cleanup
3599f45a3c8SSimon J. Gerraty	o parse.c: condense code in Parse_IsVar
3609f45a3c8SSimon J. Gerraty	use islower for parsing directives (none have upper case)
3619f45a3c8SSimon J. Gerraty
3629f45a3c8SSimon J. Gerraty2022-01-12  Simon J Gerraty  <sjg@beast.crufty.net>
3639f45a3c8SSimon J. Gerraty
3649f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220112
3659f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
3669f45a3c8SSimon J. Gerraty	o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before
3679f45a3c8SSimon J. Gerraty	comparion, rarely needed but useful when it is.
3689f45a3c8SSimon J. Gerraty
3699f45a3c8SSimon J. Gerraty2022-01-10  Simon J Gerraty  <sjg@beast.crufty.net>
3709f45a3c8SSimon J. Gerraty
3719f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220110
3729f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
3739f45a3c8SSimon J. Gerraty	o inline Buf_Clear
3749f45a3c8SSimon J. Gerraty	o remove redundant braces
3759f45a3c8SSimon J. Gerraty	o rename and inline Targ_Precious
3769f45a3c8SSimon J. Gerraty	o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf
3779f45a3c8SSimon J. Gerraty	o for.c: clean up handling of .for loops
3789f45a3c8SSimon J. Gerraty	fix reported line numbers of continuation lines
3799f45a3c8SSimon J. Gerraty	add details about .for loop variables to stack traces
3809f45a3c8SSimon J. Gerraty	o job.c: reduce code for initializing error handling in shell
3819f45a3c8SSimon J. Gerraty	o main.c: in Cmd_Exec, return error message instead of format string
3829f45a3c8SSimon J. Gerraty	have as few statements as possible between va_start and va_end
3839f45a3c8SSimon J. Gerraty	add debug logging for capturing the output of external commands
3849f45a3c8SSimon J. Gerraty	o make.c: use consistent variable names for varargs
3859f45a3c8SSimon J. Gerraty	o make_malloc.c: remove duplicate code from bmake_strdup
3869f45a3c8SSimon J. Gerraty	o parse.c: add missing printflike annotations
3879f45a3c8SSimon J. Gerraty	remove redundant lines from stack traces
3889f45a3c8SSimon J. Gerraty	fix stack traces in -dp mode
3899f45a3c8SSimon J. Gerraty	reduce confusing code in ParseForLoop
3909f45a3c8SSimon J. Gerraty	fix line number in debug log after returning from a file
3919f45a3c8SSimon J. Gerraty	rename IFile and its fields to match their actual content
3929f45a3c8SSimon J. Gerraty	clean up ParseDependencySources
3939f45a3c8SSimon J. Gerraty	o var.c: shorten ApplyModifier_Assign
3949f45a3c8SSimon J. Gerraty	rename is_shell_metachar, fix character conversion warning
3959f45a3c8SSimon J. Gerraty	merge calls to ApplyModifier_Time
3969f45a3c8SSimon J. Gerraty	merge duplicate code for modifiers 'gmtime' and 'localtime'
3979f45a3c8SSimon J. Gerraty
3989f45a3c8SSimon J. Gerraty2022-01-04  Simon J Gerraty  <sjg@beast.crufty.net>
3999f45a3c8SSimon J. Gerraty
4009f45a3c8SSimon J. Gerraty	* parse.c: loadfile restore extra byte in buffer.
4019f45a3c8SSimon J. Gerraty
4029f45a3c8SSimon J. Gerraty2022-01-01  Simon J Gerraty  <sjg@beast.crufty.net>
4039f45a3c8SSimon J. Gerraty
4049f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220101
4059f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
4069f45a3c8SSimon J. Gerraty	o more unit-tests
4079f45a3c8SSimon J. Gerraty	o remove unnecessary words from command line options in CmdOpts
4089f45a3c8SSimon J. Gerraty	o rename eunlink to unlink_file
4099f45a3c8SSimon J. Gerraty	o cond.c: make ParseWord in condition parser simpler
4109f45a3c8SSimon J. Gerraty	internally return false for irrelevant leaves in conditions
4119f45a3c8SSimon J. Gerraty	replace table for function lookup in conditions with simple code
4129f45a3c8SSimon J. Gerraty	merge duplicate types CondEvalResult and CondResult
4139f45a3c8SSimon J. Gerraty	o for.c: clean up handling of .for loops and .include directives
4149f45a3c8SSimon J. Gerraty	o main.c: constify cached_realpath
4159f45a3c8SSimon J. Gerraty	clean up Cmd_Exec
4169f45a3c8SSimon J. Gerraty	o parse.c: sync API documentation
4179f45a3c8SSimon J. Gerraty	fix error message when reading more than 1 GB from stdin
4189f45a3c8SSimon J. Gerraty	clean up parsing of makefiles
4199f45a3c8SSimon J. Gerraty	fix line number in error message about open conditionals
4209f45a3c8SSimon J. Gerraty	unexport types VarAssignOp and VarAssign
4219f45a3c8SSimon J. Gerraty	clean up function names
4229f45a3c8SSimon J. Gerraty	remove redundant parameters in dependency parsing functions
4239f45a3c8SSimon J. Gerraty	reduce scope of the list of wildcard target names
4249f45a3c8SSimon J. Gerraty	extract OP_NOTARGET into separate function
4259f45a3c8SSimon J. Gerraty	clean up variable names for parsing dependency lines
4269f45a3c8SSimon J. Gerraty	make debug logging a bit more human-friendly
4279f45a3c8SSimon J. Gerraty	o var.c: condense code in ApplyModifier_Assign
4289f45a3c8SSimon J. Gerraty
4299f45a3c8SSimon J. Gerraty2021-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
4309f45a3c8SSimon J. Gerraty
4319f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211221
4329f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
4339f45a3c8SSimon J. Gerraty	o more unit-tests
4349f45a3c8SSimon J. Gerraty	o style cleanup
4359f45a3c8SSimon J. Gerraty	o in CLEANUP mode, free interned strings at the very end
4369f45a3c8SSimon J. Gerraty	o fix memory leak for filenames in .for loops
4379f45a3c8SSimon J. Gerraty	o buf.c: avoid memory leak
4389f45a3c8SSimon J. Gerraty	o cond.c: condense CondParser_ComparisonOp
4399f45a3c8SSimon J. Gerraty	o hash.c: change return type of HashTable_Set to void
4409f45a3c8SSimon J. Gerraty	o job.c: change return type of Compat_RunCommand from int to bool
4419f45a3c8SSimon J. Gerraty	o main.c: remove bmake_free
4429f45a3c8SSimon J. Gerraty	o parse.c: condense repetetive code in ParseDirective
4439f45a3c8SSimon J. Gerraty	remove dead code for handling traditional include directives
4449f45a3c8SSimon J. Gerraty	clean up parsing of variable assignments
4459f45a3c8SSimon J. Gerraty	remove unreachable code for parsing the dependency operator
4469f45a3c8SSimon J. Gerraty	clean up loading of files
4479f45a3c8SSimon J. Gerraty	fix memory leak in IncludeFile
4489f45a3c8SSimon J. Gerraty	o var.c: fix memory leak when parsing a variable name
4499f45a3c8SSimon J. Gerraty	fix memory leak from ${.SUFFIXES}
4509f45a3c8SSimon J. Gerraty	reduce memory allocation in modifier ':?' and ':C'
4519f45a3c8SSimon J. Gerraty	condense RegexReplace for the modifier ':C' and avoid strlen
4529f45a3c8SSimon J. Gerraty	merge duplicate code for memory handling in Var_Parse
4539f45a3c8SSimon J. Gerraty	distinguish between short-lived and environment variables
4549f45a3c8SSimon J. Gerraty	rename VarFreeEnv to VarFreeShortLived
4559f45a3c8SSimon J. Gerraty
45612904384SSimon J. Gerraty2021-12-15  Simon J Gerraty  <sjg@beast.crufty.net>
45712904384SSimon J. Gerraty
45812904384SSimon J. Gerraty	* cond.c: fix mem leak in CondParser_Leaf
45912904384SSimon J. Gerraty
46012904384SSimon J. Gerraty2021-12-12  Simon J Gerraty  <sjg@beast.crufty.net>
46112904384SSimon J. Gerraty
46212904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211212
46312904384SSimon J. Gerraty	Merge with NetBSD make, pick up
46412904384SSimon J. Gerraty	o rename Parse_SetInput to Parse_PushInput
46512904384SSimon J. Gerraty	o remove remove period from end of error messages and warnings
46612904384SSimon J. Gerraty	to be more consistent
46712904384SSimon J. Gerraty	o arch.c: use simpler memory management for parsing archive members
46812904384SSimon J. Gerraty	o cond.c: rework and reduce recursion
46912904384SSimon J. Gerraty	o for.c: rename some functions to better reflect purpose
47012904384SSimon J. Gerraty	o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string.
47112904384SSimon J. Gerraty	o var.c: in parse errors, mark whitespace more clearly
47212904384SSimon J. Gerraty	inline ParseEmptyArg into CondParser_FuncCallEmpty
47312904384SSimon J. Gerraty	minimize calls to LazyBuf_Get in ParseVarnameLong
47412904384SSimon J. Gerraty	treat .SUFFIXES as a read-only variable
47512904384SSimon J. Gerraty
47612904384SSimon J. Gerraty2021-12-07  Simon J Gerraty  <sjg@beast.crufty.net>
47712904384SSimon J. Gerraty
47812904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211207
47912904384SSimon J. Gerraty	Merge with NetBSD make, pick up
48012904384SSimon J. Gerraty	o inline HashIter_Init
48112904384SSimon J. Gerraty	o parse.c: inline common subexpression in ParseRawLine
48212904384SSimon J. Gerraty	o var.c: merge branches for modifiers ':D' and ':U'
48312904384SSimon J. Gerraty	extract common code into Expr_Words
48412904384SSimon J. Gerraty	extract common code into Expr_Str
48512904384SSimon J. Gerraty	move low-level implementation details out of Var_Parse
48612904384SSimon J. Gerraty
48712904384SSimon J. Gerraty2021-12-06  Simon J Gerraty  <sjg@beast.crufty.net>
48812904384SSimon J. Gerraty
48912904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211206
49012904384SSimon J. Gerraty	Merge with NetBSD make, pick up
49112904384SSimon J. Gerraty	o add unit-tests/varmod-loop-delete
49212904384SSimon J. Gerraty	o for.c: inline Str_Words - reduce memory allocation
49312904384SSimon J. Gerraty	o parse.c: do not try to expand fixed variable names
49412904384SSimon J. Gerraty	only allocate the name of an included file if necessary
49512904384SSimon J. Gerraty	clean up ParseInclude
49612904384SSimon J. Gerraty	o var.c: fix use-after-free in modifier ':@'
49712904384SSimon J. Gerraty	save a memory allocation in each modifier ':O' and ':u'
49812904384SSimon J. Gerraty	save a memory allocation in the modifier ':[...]'
49912904384SSimon J. Gerraty	in UnexportVars, replace Str_Words with Substring_Words to
50012904384SSimon J. Gerraty	reduce allocations and copying.
50112904384SSimon J. Gerraty
50212904384SSimon J. Gerraty2021-12-04  Simon J Gerraty  <sjg@beast.crufty.net>
50312904384SSimon J. Gerraty
50412904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211204
50512904384SSimon J. Gerraty	Merge with NetBSD make, pick up
50612904384SSimon J. Gerraty	o flesh out a number of tests
50712904384SSimon J. Gerraty	o replace enums with bitfields, this simplifies a lot of code.
50812904384SSimon J. Gerraty	o var.c: refactor ParseModifierPartSubst
50912904384SSimon J. Gerraty
51012904384SSimon J. Gerraty2021-10-24  Simon J Gerraty  <sjg@beast.crufty.net>
51112904384SSimon J. Gerraty
51212904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211024
51312904384SSimon J. Gerraty	Merge with NetBSD make, pick up
51412904384SSimon J. Gerraty	o Punt on write errors - ENOSPC etc.
51512904384SSimon J. Gerraty
51612904384SSimon J. Gerraty2021-10-22  Simon J Gerraty  <sjg@beast.crufty.net>
51712904384SSimon J. Gerraty
51812904384SSimon J. Gerraty	* configure.in: use_defshell, set both DEFSHELL_INDEX
51912904384SSimon J. Gerraty	and defshell_path if appropriate.
52012904384SSimon J. Gerraty	This makes it easier to use say the KSH specification with
52112904384SSimon J. Gerraty	and alternate path for the shell.
52212904384SSimon J. Gerraty
52312904384SSimon J. Gerraty	* configure.in compat.c: for SCO we need to force UseShell
52412904384SSimon J. Gerraty
52512904384SSimon J. Gerraty	* configure.in: SCO /bin/sh is not usable, provide a list of
52612904384SSimon J. Gerraty	alternatives for use as .SHELL.
52712904384SSimon J. Gerraty	We still have to mark some tests as broken, plus more if we end up
52812904384SSimon J. Gerraty	with ksh as .SHELL.
52912904384SSimon J. Gerraty	Issue a warning about skipped tests.
53012904384SSimon J. Gerraty
53112904384SSimon J. Gerraty	* boot-strap: leave TOOL_DIFF to configure
53212904384SSimon J. Gerraty
53312904384SSimon J. Gerraty	* configure.in: on SCO native cc is not usable,
53412904384SSimon J. Gerraty	gcc is to be found in /usr/gnu/bin
53512904384SSimon J. Gerraty	and while ancient is at least able to compile bmake.
53612904384SSimon J. Gerraty	Thus we add /usr/gnu/bin to PATH if it exists, and later
53712904384SSimon J. Gerraty	check if $CC would have been found via $PATH.
53812904384SSimon J. Gerraty	If not we set CC to the full path of $CC.
53912904384SSimon J. Gerraty	Also gnu diff is known to support -u, so if it exists use it.
54012904384SSimon J. Gerraty
54112904384SSimon J. Gerraty	* configure.in: move getopt to AC_REPLACE_FUNCS
54212904384SSimon J. Gerraty	also add AC_C_INLINE - in an attempt to compile using
54312904384SSimon J. Gerraty	native cc on SCO.
54412904384SSimon J. Gerraty
54512904384SSimon J. Gerraty	* configure.in: check for stresep as well as strsep, since we
54612904384SSimon J. Gerraty	define the later to the former if necessary, and if we have to
54712904384SSimon J. Gerraty	provide stresep we also need to provide a prototype.
54812904384SSimon J. Gerraty
54912904384SSimon J. Gerraty	* configure.in: we no longer need to worry about
55012904384SSimon J. Gerraty	sys/cdefs.h providing __RCSID which simplifies things quite a bit.
55112904384SSimon J. Gerraty
55212904384SSimon J. Gerraty	* make.h: make sure we have __RCSID
55312904384SSimon J. Gerraty
55412904384SSimon J. Gerraty	* unit-tests/Makefile.config.in: add TOOL_DIFF so configure
55512904384SSimon J. Gerraty	can control it.
55612904384SSimon J. Gerraty
55712904384SSimon J. Gerraty2021-10-20  Simon J Gerraty  <sjg@beast.crufty.net>
55812904384SSimon J. Gerraty
55912904384SSimon J. Gerraty	* VERSION: 20211020
56012904384SSimon J. Gerraty	Merge with NetBSD make, pick up
56112904384SSimon J. Gerraty	o confirm sync of unit-tests
56212904384SSimon J. Gerraty
56312904384SSimon J. Gerraty2021-10-18  Simon J Gerraty  <sjg@beast.crufty.net>
56412904384SSimon J. Gerraty
56512904384SSimon J. Gerraty	* configure.in: check if timezone Europe/Berlin is supported
56612904384SSimon J. Gerraty	if not try UTC-1
56712904384SSimon J. Gerraty	* configure.in: if .OBJDIR is $srcdir/obj we need to create a
56812904384SSimon J. Gerraty	symlink unit-tests -> ../unit-tests/obj so that
56912904384SSimon J. Gerraty	unit-tests/Makefile.config is put in the right place.
57012904384SSimon J. Gerraty	* refine filtering of .OBJDIR in unit-tests
57112904384SSimon J. Gerraty
57212904384SSimon J. Gerraty2021-10-16  Simon J Gerraty  <sjg@beast.crufty.net>
57312904384SSimon J. Gerraty
57412904384SSimon J. Gerraty	* Fix unit-tests on Minix 3.2.0
57512904384SSimon J. Gerraty	o job.c: do not punt if read of token pipe fails for EAGAIN.
57612904384SSimon J. Gerraty	On Minix at least, we are not ready to read the childExitJob pipe
57712904384SSimon J. Gerraty	when poll says we are.
57812904384SSimon J. Gerraty	There should actually be no reason for this pipe to be
57912904384SSimon J. Gerraty	non-blocking, but while that works fine on {Net,Free}BSD it
58012904384SSimon J. Gerraty	breaks another test case on Minix.
58112904384SSimon J. Gerraty	o unit-tests/Makefile: deal with variants of error messages
58212904384SSimon J. Gerraty	  and use of obj as .OBJDIR
58312904384SSimon J. Gerraty
58412904384SSimon J. Gerraty2021-10-14  Simon J Gerraty  <sjg@beast.crufty.net>
58512904384SSimon J. Gerraty
58612904384SSimon J. Gerraty	* configure.in: add sigaction to AC_REPLACE_FUNCS
58712904384SSimon J. Gerraty	we also need to check for sigaddset etc just for the benefit of
58812904384SSimon J. Gerraty	sigact.c
58912904384SSimon J. Gerraty
59012904384SSimon J. Gerraty	* Add sigact.c as sigaction.c so this "just works".
59112904384SSimon J. Gerraty	This should have been done back when bmake_signal started using
59212904384SSimon J. Gerraty	sigaction (I only just noticed that sigact.c wasn't here ;-)
59312904384SSimon J. Gerraty	Note: I no longer have access to any system where this would matter.
59412904384SSimon J. Gerraty
59512904384SSimon J. Gerraty2021-10-13  Simon J Gerraty  <sjg@beast.crufty.net>
59612904384SSimon J. Gerraty
59712904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211011
59812904384SSimon J. Gerraty
59912904384SSimon J. Gerraty	* Makefile: cleanup a little
60012904384SSimon J. Gerraty
60112904384SSimon J. Gerraty	* configure.in: check for sigsetmask
60212904384SSimon J. Gerraty
60312904384SSimon J. Gerraty2021-10-01  Simon J Gerraty  <sjg@beast.crufty.net>
60412904384SSimon J. Gerraty
60512904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211001
60612904384SSimon J. Gerraty	Merge with NetBSD make, pick up
60712904384SSimon J. Gerraty	o reduce locations reducing text size
60812904384SSimon J. Gerraty	o remove unnecessary const
60912904384SSimon J. Gerraty	o cond.c: fix lint warning on i386
61012904384SSimon J. Gerraty	do not allow unquoted 'left == right' after modifier ':?'
61112904384SSimon J. Gerraty	o hash.c: fix build for DEBUG_HASH_LOOKUP
61212904384SSimon J. Gerraty	o var.c: fix memory leak in error case of the ':?' modifier
61312904384SSimon J. Gerraty
61412904384SSimon J. Gerraty2021-09-11  Simon J Gerraty  <sjg@beast.crufty.net>
61512904384SSimon J. Gerraty
61612904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210911
61712904384SSimon J. Gerraty	Merge with NetBSD make, pick up
61812904384SSimon J. Gerraty	o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval
61912904384SSimon J. Gerraty
62012904384SSimon J. Gerraty2021-09-08  Simon J Gerraty  <sjg@beast.crufty.net>
62112904384SSimon J. Gerraty
62212904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210906
62312904384SSimon J. Gerraty	Merge with NetBSD make, pick up
62412904384SSimon J. Gerraty	o more unit tests
62512904384SSimon J. Gerraty	o lint cleanup
62612904384SSimon J. Gerraty	o rename some functions to better fit purpose
62712904384SSimon J. Gerraty	o for.c: cleanup - remove unnecessary optimization
62812904384SSimon J. Gerraty	  fix embedded newlines
62912904384SSimon J. Gerraty	o parse.c: correct case for CVS/RCS
63012904384SSimon J. Gerraty
63112904384SSimon J. Gerraty2021-08-11  Simon J Gerraty  <sjg@beast.crufty.net>
63212904384SSimon J. Gerraty
63312904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210808
63412904384SSimon J. Gerraty	Merge with NetBSD make, pick up
63512904384SSimon J. Gerraty	o var.c: remove redundant initialization in ApplyModifier_Order
63612904384SSimon J. Gerraty
63712904384SSimon J. Gerraty	* mk/options.mk: issue warning for incorrect usage
63812904384SSimon J. Gerraty
63912904384SSimon J. Gerraty2021-08-03  Simon J Gerraty  <sjg@beast.crufty.net>
64012904384SSimon J. Gerraty
64112904384SSimon J. Gerraty	* var.c: use long for :On if we don't have a 64bit int type
64212904384SSimon J. Gerraty
64312904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210803
64412904384SSimon J. Gerraty	Merge with NetBSD make, pick up
64512904384SSimon J. Gerraty	o rework varmod-order tests to avoid qsort instability
64612904384SSimon J. Gerraty	o make.1: clarify :On entry
64712904384SSimon J. Gerraty
64812904384SSimon J. Gerraty2021-07-31  Simon J Gerraty  <sjg@beast.crufty.net>
64912904384SSimon J. Gerraty
65012904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210731
65112904384SSimon J. Gerraty	Merge with NetBSD make, pick up
65212904384SSimon J. Gerraty	o fix some lint issues
65312904384SSimon J. Gerraty	o more unit tests
65412904384SSimon J. Gerraty	o var.c: rework of ApplyModifier_Order
65512904384SSimon J. Gerraty
65612904384SSimon J. Gerraty2021-07-30  Simon J Gerraty  <sjg@beast.crufty.net>
65712904384SSimon J. Gerraty
65812904384SSimon J. Gerraty	* util.c: add strto*l if HAVE_STRTO*L not defined
65912904384SSimon J. Gerraty
66012904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210730
66112904384SSimon J. Gerraty	Merge with NetBSD make, pick up
66212904384SSimon J. Gerraty	o var.c: add :On and :Orn for numeric sort
66312904384SSimon J. Gerraty	  disabled if no 64bit type available.
66412904384SSimon J. Gerraty	o _strtol.h: to implement strto*l functions
66512904384SSimon J. Gerraty
66612904384SSimon J. Gerraty2021-07-04  Simon J Gerraty  <sjg@beast.crufty.net>
66712904384SSimon J. Gerraty
66812904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210704
66912904384SSimon J. Gerraty	Merge with NetBSD make, pick up
67012904384SSimon J. Gerraty	o unit-tests: fix some tests to be more portable
67112904384SSimon J. Gerraty	- job-output-null not all shells do the same number of write calls
67212904384SSimon J. Gerraty	- objdir-writable if TMPDIR is set; /tmp may not be usable
67312904384SSimon J. Gerraty
67412904384SSimon J. Gerraty2021-07-01  Simon J Gerraty  <sjg@beast.crufty.net>
67512904384SSimon J. Gerraty
67612904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210701
67712904384SSimon J. Gerraty	Merge with NetBSD make, pick up
67812904384SSimon J. Gerraty	o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped;
67912904384SSimon J. Gerraty	some tests just cannot work in some environments.
68012904384SSimon J. Gerraty	o buf.c: simpler upper bound for length in Buf_AddInt
68112904384SSimon J. Gerraty	o cond.c: fix grammar in error message for malformed conditional
68212904384SSimon J. Gerraty	o for.c: prevent newline injection (from ${.newline}) in .for loops
68312904384SSimon J. Gerraty	o var.c: use more practical data type in RegexReplace
68412904384SSimon J. Gerraty	(avoid need for %zu)
68512904384SSimon J. Gerraty	extract RegexReplace from ModifyWord_SubstRegex
68612904384SSimon J. Gerraty
687b0c40a00SSimon J. Gerraty2021-06-21  Simon J Gerraty  <sjg@beast.crufty.net>
688b0c40a00SSimon J. Gerraty
689b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210621
690b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
691b0c40a00SSimon J. Gerraty	o var.c: only report error for unmatched regex subexpression
692b0c40a00SSimon J. Gerraty	when linting (-dL) since we cannot tell when an unmatched
693b0c40a00SSimon J. Gerraty	subexpression is an expected result.
694b0c40a00SSimon J. Gerraty	o move unmatched regex subexpression tests to
695b0c40a00SSimon J. Gerraty	varmod-subst-regex.mk and enable strict (lint) mode
696b0c40a00SSimon J. Gerraty
697b0c40a00SSimon J. Gerraty2021-06-16  Simon J Gerraty  <sjg@beast.crufty.net>
698b0c40a00SSimon J. Gerraty
699b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210616
700b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
701b0c40a00SSimon J. Gerraty	o more unit tests
702b0c40a00SSimon J. Gerraty	o cond.c: rename If_Eval to EvalBare
703b0c40a00SSimon J. Gerraty	improve function names for parsing conditions
704b0c40a00SSimon J. Gerraty	o job.c: fix error handling of targets that cannot be made
705b0c40a00SSimon J. Gerraty	o var.c: uncompress code in ApplyModifier_Unique
706b0c40a00SSimon J. Gerraty
707b0c40a00SSimon J. Gerraty2021-05-18  Simon J Gerraty  <sjg@beast.crufty.net>
708b0c40a00SSimon J. Gerraty
709b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210518
710b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
711b0c40a00SSimon J. Gerraty	o fix unit-tests/opt-chdir to cope with /nonexistent existing.
712b0c40a00SSimon J. Gerraty	o job.c: Print -de error information when running multiple jobs
713b0c40a00SSimon J. Gerraty
714b0c40a00SSimon J. Gerraty2021-04-20  Simon J Gerraty  <sjg@beast.crufty.net>
715b0c40a00SSimon J. Gerraty
716b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210420
717b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
718b0c40a00SSimon J. Gerraty	o use C99 bool type
719b0c40a00SSimon J. Gerraty	o convert VarEvalFlags back into an enum
720b0c40a00SSimon J. Gerraty	o cond.c: do not complain when skipping the condition 'no >= 10'
721b0c40a00SSimon J. Gerraty	o hash.c: avoid allocating memory for simple variable names
722b0c40a00SSimon J. Gerraty	o job.c: use distinct wording for writing to the shell commands file
723b0c40a00SSimon J. Gerraty	remove type name for the abort status in job handling
724b0c40a00SSimon J. Gerraty	rename PrintOutput to PrintFilteredOutput to avoid confusion
725b0c40a00SSimon J. Gerraty	o main.c: avoid double slash in name of temporary directory
726b0c40a00SSimon J. Gerraty	o var.c: use straight quotes for error 'Bad conditional expression'
727b0c40a00SSimon J. Gerraty	reduce memory allocations in the modifiers ':D' and ':U'
728b0c40a00SSimon J. Gerraty	rename members of ModifyWord_LoopArgs
729b0c40a00SSimon J. Gerraty	clean up pattern flags for the modifiers ':S' and ':C'
730b0c40a00SSimon J. Gerraty	reduce memory allocation and strlen calls in modifier ':from=to'
731b0c40a00SSimon J. Gerraty	in the ':Q' modifier, only allocate memory if necessary
732b0c40a00SSimon J. Gerraty	improve performance for LazyBuf
733b0c40a00SSimon J. Gerraty	remove redundant parameter from ParseVarnameLong
734b0c40a00SSimon J. Gerraty	migrate ParseModifierPart to use Substring
735b0c40a00SSimon J. Gerraty	avoid unnecessary calls to strlen when evaluating modifiers
736b0c40a00SSimon J. Gerraty	migrate ModifyWord functions to use Substring
737b0c40a00SSimon J. Gerraty	migrate handling of the modifier ':S,from,to,' to Substring
738b0c40a00SSimon J. Gerraty	reduce debug logging and memory allocation for ${:U...}
739b0c40a00SSimon J. Gerraty	reduce verbosity of the -dv debug logging for standard cases
740b0c40a00SSimon J. Gerraty	clean up debug logging for ':M' and ':N'
741b0c40a00SSimon J. Gerraty	disallow '$' in the variable name of the modifier ':@'
742b0c40a00SSimon J. Gerraty	simplify access to the name of an expression during evaluation
743b0c40a00SSimon J. Gerraty
744b0c40a00SSimon J. Gerraty2021-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
745b0c40a00SSimon J. Gerraty
746b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210330
747b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
748b0c40a00SSimon J. Gerraty	o replace enum bit-field with struct bit-field for VarEvalFlags
749b0c40a00SSimon J. Gerraty	o rename VARE_NONE to VARE_PARSE_ONLY
750b0c40a00SSimon J. Gerraty	o var.c: rename ApplyModifiersState to ModChain
751b0c40a00SSimon J. Gerraty	fix double varname expansion in the variable modifier '::='
752b0c40a00SSimon J. Gerraty	change debug log for variable evaluation flags to lowercase
753b0c40a00SSimon J. Gerraty
754b0c40a00SSimon J. Gerraty2021-03-14  Simon J Gerraty  <sjg@beast.crufty.net>
755b0c40a00SSimon J. Gerraty
756b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210314
757b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
758b0c40a00SSimon J. Gerraty	o var.c: avoid evaluating many modifiers in parse only mode
759b0c40a00SSimon J. Gerraty	in strict mode (-dL) many variable references are parsed twice,
760b0c40a00SSimon J. Gerraty	the first time just to report parse errors early, so we want to
761b0c40a00SSimon J. Gerraty	avoid side effects and wasted effort to the extent possible.
762b0c40a00SSimon J. Gerraty
763b0c40a00SSimon J. Gerraty2021-02-26  Simon J Gerraty  <sjg@beast.crufty.net>
764b0c40a00SSimon J. Gerraty
765b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210226
766b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
767b0c40a00SSimon J. Gerraty	o remove freestanding freeIt variables
768b0c40a00SSimon J. Gerraty	link via FStr
769b0c40a00SSimon J. Gerraty	o var.c: restructure code in ParseVarname to target human readers
770b0c40a00SSimon J. Gerraty	improve error message for;
771b0c40a00SSimon J. Gerraty	  bad modifier in variable expression
772b0c40a00SSimon J. Gerraty	  unclosed modifier
773b0c40a00SSimon J. Gerraty	  unknown modifier
774b0c40a00SSimon J. Gerraty	remove redundant parameter of ApplySingleModifier
775b0c40a00SSimon J. Gerraty	explain non-obvious code around indirect variable modifiers
776b0c40a00SSimon J. Gerraty	quote ':S' in error message about missing delimiter
777b0c40a00SSimon J. Gerraty	extract ParseModifier_Match into separate function
778b0c40a00SSimon J. Gerraty	add context information to error message about ':range' modifier
779b0c40a00SSimon J. Gerraty	add quotes around variable name in an error message
780b0c40a00SSimon J. Gerraty	reorder code in ModifyWords
781b0c40a00SSimon J. Gerraty	use more common parameter order for VarSelectWords
782b0c40a00SSimon J. Gerraty	make ModifyWord_Subst a little easier to understand
783b0c40a00SSimon J. Gerraty	do not expand variable name from the command line twice
784b0c40a00SSimon J. Gerraty	extract ExistsInCmdline from Var_SetWithFlags
785b0c40a00SSimon J. Gerraty	save a hash map lookup when defining a cmdline variable
786b0c40a00SSimon J. Gerraty	clean up VarAdd, Var_Delete, Var_ReexportVars
787b0c40a00SSimon J. Gerraty	use bit-shift expressions for VarFlags constants
788b0c40a00SSimon J. Gerraty	rename constants for VarFlags
789b0c40a00SSimon J. Gerraty	rename ExprDefined constants for debug logging
790b0c40a00SSimon J. Gerraty	rename ExprStatus to ExprDefined
791b0c40a00SSimon J. Gerraty	split parameters for evaluating variable expressions
792b0c40a00SSimon J. Gerraty	reduce redundant code around ModifyWords
793b0c40a00SSimon J. Gerraty	print error about failed shell command before overwriting variable
794b0c40a00SSimon J. Gerraty	clean up ValidShortVarname, ParseVarnameShort
795b0c40a00SSimon J. Gerraty	rename VarExprStatus to ExprStatus
796b0c40a00SSimon J. Gerraty	add functions for assigning the value of an expression
797b0c40a00SSimon J. Gerraty	rename ApplyModifiersState_Define to Expr_Define
798b0c40a00SSimon J. Gerraty	condense the code for parsing :S and :C modifiers
799b0c40a00SSimon J. Gerraty
800dba7b0efSSimon J. Gerraty2021-02-06  Simon J Gerraty  <sjg@beast.crufty.net>
801dba7b0efSSimon J. Gerraty
802dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210206
803dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
804dba7b0efSSimon J. Gerraty	o unit-tests: use private TMPDIR to avoid errors from other users
805dba7b0efSSimon J. Gerraty
806dba7b0efSSimon J. Gerraty2021-02-05  Simon J Gerraty  <sjg@beast.crufty.net>
807dba7b0efSSimon J. Gerraty
808dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210205
809dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
810dba7b0efSSimon J. Gerraty	o avoid strdup in mkTempFile
811dba7b0efSSimon J. Gerraty	o always use vfork
812dba7b0efSSimon J. Gerraty	o rename context and ctxt to scope
813dba7b0efSSimon J. Gerraty	o rename some VAR constants to SCOPE
814dba7b0efSSimon J. Gerraty	o Var_ functions, move the scope to the front
815dba7b0efSSimon J. Gerraty	o use shortcut functions Global_Set and Global_Append
816dba7b0efSSimon J. Gerraty	o add shortcut Global_Delete for deleting a global variable
817dba7b0efSSimon J. Gerraty	o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete
818dba7b0efSSimon J. Gerraty	o compat.c: when exiting due to an error, print graph information
819dba7b0efSSimon J. Gerraty	o enum.c: remove overengineered Enum_ValueToString
820dba7b0efSSimon J. Gerraty	o make.c: remove unused INTERNAL flag
821dba7b0efSSimon J. Gerraty	remove unused return type of MakeBuildParent
822dba7b0efSSimon J. Gerraty	o parse.c: replace parse error "Need an operator" with better message
823dba7b0efSSimon J. Gerraty	o var.c: improve documentation about variable scopes
824dba7b0efSSimon J. Gerraty	rename Var_ValueDirect to GNode_ValueDirect
825dba7b0efSSimon J. Gerraty	rename old Var_SetWithFlags to Var_SetExpandWithFlags
826dba7b0efSSimon J. Gerraty	merge SetVar into Var_SetWithFlags
827dba7b0efSSimon J. Gerraty	split Var_Exists into plain Var_Exists and Var_ExistsExpand
828dba7b0efSSimon J. Gerraty	split Var_Append into Var_Append and Var_AppendExpand
829dba7b0efSSimon J. Gerraty	replace enum bit-set with bit-field
830dba7b0efSSimon J. Gerraty	o unit-tests/var-op-shell: use kill rather than kill -14
831dba7b0efSSimon J. Gerraty	which broke on darwin with recent update.
832dba7b0efSSimon J. Gerraty
833dba7b0efSSimon J. Gerraty2021-02-01  Simon J Gerraty  <sjg@beast.crufty.net>
834dba7b0efSSimon J. Gerraty
835dba7b0efSSimon J. Gerraty	* configure.in: check for sig_atomic_t and define it as 'int'
836dba7b0efSSimon J. Gerraty	if missing.
837dba7b0efSSimon J. Gerraty
838dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210201
839dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
840dba7b0efSSimon J. Gerraty	o use sig_atomic_t for caught_sigchld
841dba7b0efSSimon J. Gerraty
842dba7b0efSSimon J. Gerraty2021-01-30  Simon J Gerraty  <sjg@beast.crufty.net>
843dba7b0efSSimon J. Gerraty
844dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210130
845dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
846dba7b0efSSimon J. Gerraty	o more unit tests
847dba7b0efSSimon J. Gerraty	o convert SearchPath to struct
848dba7b0efSSimon J. Gerraty	o split Buf_Destroy into Buf_Done and Buf_DoneData
849dba7b0efSSimon J. Gerraty	o for.c: split For_Eval into separate functions
850dba7b0efSSimon J. Gerraty	rename struct For to struct ForLoop
851dba7b0efSSimon J. Gerraty	o job.c: do not create empty shell files in jobs mode
852dba7b0efSSimon J. Gerraty	rename JobOpenTmpFile to JobWriteShellCommands
853dba7b0efSSimon J. Gerraty	reduce unnecessary calls to waitpid
854dba7b0efSSimon J. Gerraty	o parse.c: in -dp mode, print stack trace with each diagnostic
855dba7b0efSSimon J. Gerraty
856dba7b0efSSimon J. Gerraty2021-01-23  Simon J Gerraty  <sjg@beast.crufty.net>
857dba7b0efSSimon J. Gerraty
858dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210123
859dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
860dba7b0efSSimon J. Gerraty	o rename Dir_Expand to SearchPath_Expand
861dba7b0efSSimon J. Gerraty	o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags
862dba7b0efSSimon J. Gerraty	o cond.c: fix debug output for comparison operators in conditionals
863dba7b0efSSimon J. Gerraty	o dir.c: split Dir_FindFile into separate functions
864dba7b0efSSimon J. Gerraty
865dba7b0efSSimon J. Gerraty2021-01-20  Simon J Gerraty  <sjg@beast.crufty.net>
866dba7b0efSSimon J. Gerraty
867dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210120
868dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
869dba7b0efSSimon J. Gerraty	o fix some more lint nits
870dba7b0efSSimon J. Gerraty	o refine some unit tests for portability
871dba7b0efSSimon J. Gerraty	o cond.c: rework parsing
872dba7b0efSSimon J. Gerraty
87306b9b3e0SSimon J. Gerraty2021-01-10  Simon J Gerraty  <sjg@beast.crufty.net>
87406b9b3e0SSimon J. Gerraty
87506b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210110
87606b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
87706b9b3e0SSimon J. Gerraty	o fix lint warnings
87806b9b3e0SSimon J. Gerraty	o consistently use boolean expressions in conditions
87906b9b3e0SSimon J. Gerraty
88006b9b3e0SSimon J. Gerraty2021-01-08  Simon J Gerraty  <sjg@beast.crufty.net>
88106b9b3e0SSimon J. Gerraty
88206b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210108
88306b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
88406b9b3e0SSimon J. Gerraty	o job.c: back to polling token pipe if we want a token
88506b9b3e0SSimon J. Gerraty	o main.c: always print 'stopped in' on first call
88606b9b3e0SSimon J. Gerraty	The execption is if we bail because of an abort token
88706b9b3e0SSimon J. Gerraty	in which case just exit 6.
88806b9b3e0SSimon J. Gerraty
88906b9b3e0SSimon J. Gerraty2021-01-01  Simon J Gerraty  <sjg@beast.crufty.net>
89006b9b3e0SSimon J. Gerraty
89106b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210101
89206b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
89306b9b3e0SSimon J. Gerraty	o Happy New Year!
89406b9b3e0SSimon J. Gerraty	o rename CmdOpts.lint to strict
89506b9b3e0SSimon J. Gerraty	o exit 2 on technical errors
89606b9b3e0SSimon J. Gerraty	o replace pointers in controlling conditions with booleans
89706b9b3e0SSimon J. Gerraty	o replace global preserveUndefined with VARE_KEEP_UNDEF
89806b9b3e0SSimon J. Gerraty	o compat.c: re-export variables from the actual make process
89906b9b3e0SSimon J. Gerraty	if using vfork this is the effect anyway
90006b9b3e0SSimon J. Gerraty	o cond.c: clean up VarParseResult constants
90106b9b3e0SSimon J. Gerraty	o for.c: fix undefined behavior in SubstVarLong
90206b9b3e0SSimon J. Gerraty	make control flow in SubstVarLong of .for loops more obvious
90306b9b3e0SSimon J. Gerraty	clean up SubstVarShort in .for loops
90406b9b3e0SSimon J. Gerraty	extract ForSubstBody from ForReadMore
90506b9b3e0SSimon J. Gerraty	clean up ForReadMore
90606b9b3e0SSimon J. Gerraty	simplify termination condition for .for loop
90706b9b3e0SSimon J. Gerraty	add error handling for .for loop items
90806b9b3e0SSimon J. Gerraty	job.c: re-export variables from the actual make process
90906b9b3e0SSimon J. Gerraty	parse.c: remove mmap for loading files, only allow files < 1 GiB
91006b9b3e0SSimon J. Gerraty	fix edge case in := with undefined in variable name
91106b9b3e0SSimon J. Gerraty	skip variable expansion in ParseDependencyTargetWord
91206b9b3e0SSimon J. Gerraty	var.c: split ExportVar into separate functions
91306b9b3e0SSimon J. Gerraty	clean up code in extracted ExportVar functions
91406b9b3e0SSimon J. Gerraty	remove dead code from ApplyModifiersIndirect
91506b9b3e0SSimon J. Gerraty	split Var_Subst into easily understandable functions
91606b9b3e0SSimon J. Gerraty	clean up VarParseResult constants
91706b9b3e0SSimon J. Gerraty
91806b9b3e0SSimon J. Gerraty2020-12-25  Simon J Gerraty  <sjg@beast.crufty.net>
91906b9b3e0SSimon J. Gerraty
92006b9b3e0SSimon J. Gerraty	* main.c: use .MAKE.DEPENDFILE as set by makefiles
92106b9b3e0SSimon J. Gerraty
92206b9b3e0SSimon J. Gerraty2020-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
92306b9b3e0SSimon J. Gerraty
92406b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201222
92506b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
92606b9b3e0SSimon J. Gerraty	o make DEBUG macro return boolean
92706b9b3e0SSimon J. Gerraty	o parse.c: fix assertion failure for files without trailing newline
92806b9b3e0SSimon J. Gerraty	o var.c: allow .undef to undefine multiple variables at once
92906b9b3e0SSimon J. Gerraty	remove excess newline from parse errors
93006b9b3e0SSimon J. Gerraty
93106b9b3e0SSimon J. Gerraty2020-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
93206b9b3e0SSimon J. Gerraty
93306b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201221
93406b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
93506b9b3e0SSimon J. Gerraty	o some unit-test updates
93606b9b3e0SSimon J. Gerraty
93706b9b3e0SSimon J. Gerraty2020-12-20  Simon J Gerraty  <sjg@beast.crufty.net>
93806b9b3e0SSimon J. Gerraty
93906b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201220
94006b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
94106b9b3e0SSimon J. Gerraty	o more unit tests
94206b9b3e0SSimon J. Gerraty	o return FStr from Var_Parse and Var_Value
94306b9b3e0SSimon J. Gerraty	o spell nonexistent consistently
94406b9b3e0SSimon J. Gerraty	o add str_basename to reduce duplicate code
94506b9b3e0SSimon J. Gerraty	o compat.c: fix .ERROR_TARGET in compat -k mode
94606b9b3e0SSimon J. Gerraty	extract InitSignals from Compat_Run
94706b9b3e0SSimon J. Gerraty	extract UseShell from Compat_RunCommand
94806b9b3e0SSimon J. Gerraty	o cond.c: error out if an '.endif' or '.else' contain extraneous text
94906b9b3e0SSimon J. Gerraty	o for.c: rename ForIterate to ForReadMore
95006b9b3e0SSimon J. Gerraty	o hash.c: clean up hash function for HashTable
95106b9b3e0SSimon J. Gerraty	o lst.c: rename Vector.priv_cap to cap
95206b9b3e0SSimon J. Gerraty	o main.c: remove constant parameter from MakeMode
95306b9b3e0SSimon J. Gerraty	o make.c: use symbolic time for 0 in Make_Recheck
95406b9b3e0SSimon J. Gerraty	extract MakeChildren from MakeStartJobs
95506b9b3e0SSimon J. Gerraty	o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar
95606b9b3e0SSimon J. Gerraty	fix error message for .info/.warning/.error without argument
95706b9b3e0SSimon J. Gerraty	extract Var_Undef from ParseDirective
95806b9b3e0SSimon J. Gerraty	extract ParseSkippedBranches, ParseForLoop from ParseReadLine
95906b9b3e0SSimon J. Gerraty	rename mode constants for ParseGetLine to be more expressive
96006b9b3e0SSimon J. Gerraty	reduce debugging details in Parse_SetInput
96106b9b3e0SSimon J. Gerraty	fix line numbers in .for loops
96206b9b3e0SSimon J. Gerraty	split ParseGetLine into separate functions
96306b9b3e0SSimon J. Gerraty	fix garbled output for failed shell command
96406b9b3e0SSimon J. Gerraty	var.c: remove redundant assignment in ApplyModifier_SysV
96506b9b3e0SSimon J. Gerraty	error out on unknown variable modifiers at parse time
96606b9b3e0SSimon J. Gerraty	remove wrong error message for indirect modifier in lint mode
96706b9b3e0SSimon J. Gerraty	extract ApplySingleModifier from ApplyModifiers
96806b9b3e0SSimon J. Gerraty	use FStr for memory management in Var_SetWithFlags
96906b9b3e0SSimon J. Gerraty	extract SetVar from Var_SetWithFlags
97006b9b3e0SSimon J. Gerraty	use FStr in VarNew
97106b9b3e0SSimon J. Gerraty	extract string functions from ApplyModifier_To
97206b9b3e0SSimon J. Gerraty	error out if .undef has not exactly 1 argument
97306b9b3e0SSimon J. Gerraty	extract Var_DeleteVar from Var_Delete
97406b9b3e0SSimon J. Gerraty	extract Var_Undef from ParseDirective
97506b9b3e0SSimon J. Gerraty	clean up memory management for expanding variable expressions
97606b9b3e0SSimon J. Gerraty
97706b9b3e0SSimon J. Gerraty2020-12-12  Simon J Gerraty  <sjg@beast.crufty.net>
97806b9b3e0SSimon J. Gerraty
97906b9b3e0SSimon J. Gerraty	* avoid %zu
98006b9b3e0SSimon J. Gerraty
98106b9b3e0SSimon J. Gerraty	* lst.c: avoid anonymous union
98206b9b3e0SSimon J. Gerraty
98306b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201212
98406b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
98506b9b3e0SSimon J. Gerraty	o more unit tests
98606b9b3e0SSimon J. Gerraty	o inline Targ_Ignore and Targ_Silent
98706b9b3e0SSimon J. Gerraty	o split JobFlags into separate fields
98806b9b3e0SSimon J. Gerraty	o remove const from function parameters (left overs from refactoring)
98906b9b3e0SSimon J. Gerraty	o eliminate boolean argument of Var_Export
99006b9b3e0SSimon J. Gerraty	o make API of Buf_Init simpler
99106b9b3e0SSimon J. Gerraty	o rename ParseRunOptions to ParseCommandFlags
99206b9b3e0SSimon J. Gerraty	o replace *line with line[0]
99306b9b3e0SSimon J. Gerraty	o compat.c: fix wrong exit status for multiple failed main targets
99406b9b3e0SSimon J. Gerraty	refactor Compat_Run to show the error condition more clearly
99506b9b3e0SSimon J. Gerraty	don't make .END if the main targets already failed (-k mode)
99606b9b3e0SSimon J. Gerraty	fix exit status in -k mode if a dependency fails
99706b9b3e0SSimon J. Gerraty	o for.c: clean up Buf_AddEscaped in .for loops
99806b9b3e0SSimon J. Gerraty	o job.c: extract ShellWriter_ErrOn from JobPrintCommand
99906b9b3e0SSimon J. Gerraty	make Job_Touch simpler
100006b9b3e0SSimon J. Gerraty	refactor JobFinish
100106b9b3e0SSimon J. Gerraty	rename Shell.exitFlag to errFlag
100206b9b3e0SSimon J. Gerraty	move Job.xtraced to ShellWriter
100306b9b3e0SSimon J. Gerraty	make printing of shell commands independent from the job
100406b9b3e0SSimon J. Gerraty	rename shell flags in struct Shell
100506b9b3e0SSimon J. Gerraty	extract JobOpenTmpFile from JobStart
100606b9b3e0SSimon J. Gerraty	rename RunFlags to CommandFlags
100706b9b3e0SSimon J. Gerraty	split various Job.* into separate fields
100806b9b3e0SSimon J. Gerraty	rename commandShell to shell
100906b9b3e0SSimon J. Gerraty	extract InitShellNameAndPath from Shell_Init
101006b9b3e0SSimon J. Gerraty	replace signal handling macros with local functions
101106b9b3e0SSimon J. Gerraty	replace macro MESSAGE with local function
101206b9b3e0SSimon J. Gerraty	parse.c: error out on null bytes in makefiles
101306b9b3e0SSimon J. Gerraty	error out on misspelled directives
101406b9b3e0SSimon J. Gerraty	rename IFile.nextbuf to readMore
101506b9b3e0SSimon J. Gerraty	fix undefined behavior in ParseEOF
101606b9b3e0SSimon J. Gerraty	str.c: remove redundant call to strlen in Str_Words
101706b9b3e0SSimon J. Gerraty	var.c: error out on misspelled .unexport-env
101806b9b3e0SSimon J. Gerraty	error out on misspelled .export directives
101906b9b3e0SSimon J. Gerraty	extract ExportVars from Var_Export
102006b9b3e0SSimon J. Gerraty	extract ExportVarsExpand from Var_Export
102106b9b3e0SSimon J. Gerraty	eliminate boolean argument of Var_Export
102206b9b3e0SSimon J. Gerraty	fix undefined behavior when exporting ${:U }
102306b9b3e0SSimon J. Gerraty	rename Var_ExportVars to Var_ReexportVars
102406b9b3e0SSimon J. Gerraty	rename Var_Export1 to ExportVar
102506b9b3e0SSimon J. Gerraty
102606b9b3e0SSimon J. Gerraty2020-12-06  Simon J Gerraty  <sjg@beast.crufty.net>
102706b9b3e0SSimon J. Gerraty
102806b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201206
102906b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
103006b9b3e0SSimon J. Gerraty	o more unit tests
103106b9b3e0SSimon J. Gerraty	o inline macros for debug logging
103206b9b3e0SSimon J. Gerraty	o use consistent variable names for list nodes
103306b9b3e0SSimon J. Gerraty	o define constants for enum zero-values
103406b9b3e0SSimon J. Gerraty	o dir.c: use fixed format for debug output of the directory cache
103506b9b3e0SSimon J. Gerraty	remove Dir_InitDir
103606b9b3e0SSimon J. Gerraty	o lst.c: inline Lst_Enqueue, Vector_Done
103706b9b3e0SSimon J. Gerraty	o meta.c: remove unused parameter from meta_needed
103806b9b3e0SSimon J. Gerraty	o parse.c: rename parse functions
103906b9b3e0SSimon J. Gerraty	o suff.c: extract ExpandChildrenRegular from ExpandChildren
104006b9b3e0SSimon J. Gerraty	o targ.c: don't concatenate identifiers in Targ_PrintType
104106b9b3e0SSimon J. Gerraty	o var.c: remove comment decoration
104206b9b3e0SSimon J. Gerraty	extract UnexportVars from Var_UnExport
104306b9b3e0SSimon J. Gerraty	extract GetVarnamesToUnexport from Var_UnExport
104406b9b3e0SSimon J. Gerraty	extract UnexportEnv from Var_UnExport
104506b9b3e0SSimon J. Gerraty	extract UnexportVar from Var_UnExport
104606b9b3e0SSimon J. Gerraty	move CleanEnv to UnexportVars
104706b9b3e0SSimon J. Gerraty	replace pointer comparisons with enum
104806b9b3e0SSimon J. Gerraty	add FStr to var.c to make memory handling simpler
104906b9b3e0SSimon J. Gerraty	use FStr in Var_UnExport
105006b9b3e0SSimon J. Gerraty	move type definitions in var.c to the top
105106b9b3e0SSimon J. Gerraty	extract FreeEnvVar from Var_Parse
105206b9b3e0SSimon J. Gerraty	extract ShuffleStrings from ApplyModifier_Order
105306b9b3e0SSimon J. Gerraty
105406b9b3e0SSimon J. Gerraty2020-11-30  Simon J Gerraty  <sjg@beast.crufty.net>
105506b9b3e0SSimon J. Gerraty
105606b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201130
105706b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
105806b9b3e0SSimon J. Gerraty	o add unit tests for META MODE
105906b9b3e0SSimon J. Gerraty	o reduce memory allocation for dirSearchPath, GNode.parents,
106006b9b3e0SSimon J. Gerraty	GNode.children, OpenDirs
106106b9b3e0SSimon J. Gerraty	o reduce pointer indirection for GNode.cohorts and
106206b9b3e0SSimon J. Gerraty	GNode.implicitParents
106306b9b3e0SSimon J. Gerraty	o remove pointer indirection from GNode.commands
106406b9b3e0SSimon J. Gerraty	o inline Lst_ForEachUntil in meta mode
106506b9b3e0SSimon J. Gerraty	o dir.c: fix memory leak for lstat cache in -DCLEANUP mode
106606b9b3e0SSimon J. Gerraty	clean up memory management for CachedDirs
106706b9b3e0SSimon J. Gerraty	fix the reference count of dotLast going negative
106806b9b3e0SSimon J. Gerraty	add debug logging for OpenDirs_Done
106906b9b3e0SSimon J. Gerraty	extract CacheNewDir from Dir_AddDir
107006b9b3e0SSimon J. Gerraty	add debug logging for reference counting of CachedDir
107106b9b3e0SSimon J. Gerraty	rename some Dir functions to SearchPath
107206b9b3e0SSimon J. Gerraty	o job.c: rename some global variables
107306b9b3e0SSimon J. Gerraty	o main.c: reduce memory allocation in ReadBuiltinRules
107406b9b3e0SSimon J. Gerraty	reduce memory allocation in CmdOpts.create, CmdOpts.variables,
107506b9b3e0SSimon J. Gerraty	CmdOpts.makefiles
107606b9b3e0SSimon J. Gerraty	Add .MAKE.UID and .MAKE.GID
107706b9b3e0SSimon J. Gerraty	o make.c: reduce memory allocation for/in toBeMade,
107806b9b3e0SSimon J. Gerraty	Make_ProcessWait, Make_ExpandUse
107906b9b3e0SSimon J. Gerraty	o meta.c: reduce memory allocation in meta_oodate
108006b9b3e0SSimon J. Gerraty	o parse.c: reduce memory allocations for parsing dependencies and
108106b9b3e0SSimon J. Gerraty	targets
108206b9b3e0SSimon J. Gerraty	o suff.c: reduce memory allocation in suffix handling
108306b9b3e0SSimon J. Gerraty
108406b9b3e0SSimon J. Gerraty2020-11-24  Simon J Gerraty  <sjg@beast.crufty.net>
108506b9b3e0SSimon J. Gerraty
108606b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201124
108706b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
108806b9b3e0SSimon J. Gerraty	o .MAKE.{UID,GID} represent uid and gid running make.
108906b9b3e0SSimon J. Gerraty	o fix error handling for .BEGIN and .END dependency in -k mode
109006b9b3e0SSimon J. Gerraty	o fix missing "Stop." after failed .END node in -k mode
109106b9b3e0SSimon J. Gerraty	o use properly typed comparisons in boolean contexts
109206b9b3e0SSimon J. Gerraty	o replace a few HashTable_CreateEntry with HashTable_Set
109306b9b3e0SSimon J. Gerraty	o add HashSet type
109406b9b3e0SSimon J. Gerraty	o compat.c: split Compat_Make into smaller functions
109506b9b3e0SSimon J. Gerraty	extract DebugFailedTarget from Compat_RunCommand
109606b9b3e0SSimon J. Gerraty	o dir.c: refactor Dir_UpdateMTime
109706b9b3e0SSimon J. Gerraty	migrate CachedDir.files from HashTable to HashSet
109806b9b3e0SSimon J. Gerraty	o make.c: add high-level API for GNode.made
109906b9b3e0SSimon J. Gerraty
110006b9b3e0SSimon J. Gerraty2020-11-22  Simon J Gerraty  <sjg@beast.crufty.net>
110106b9b3e0SSimon J. Gerraty
110206b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201122
110306b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
110406b9b3e0SSimon J. Gerraty	o rename GNode.context to vars
110506b9b3e0SSimon J. Gerraty	o suff.c: cleanup and refactor
110606b9b3e0SSimon J. Gerraty	rename some functions and vars to better reflect usage
110706b9b3e0SSimon J. Gerraty	add high-level API for CandidateSearcher
110806b9b3e0SSimon J. Gerraty	o targ.c: add more debug logging for suffix handling
110906b9b3e0SSimon J. Gerraty	o more unit tests
111006b9b3e0SSimon J. Gerraty	o add debug logging for setting and resetting the main target
111106b9b3e0SSimon J. Gerraty
1112e2eeea75SSimon J. Gerraty2020-11-17  Simon J Gerraty  <sjg@beast.crufty.net>
1113e2eeea75SSimon J. Gerraty
1114e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201117
1115e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
111606b9b3e0SSimon J. Gerraty	o fix some unit-tests when .SHELL is dash
1117e2eeea75SSimon J. Gerraty	o rename Targ_NewGN to GNode_New
1118e2eeea75SSimon J. Gerraty	o make some GNode functions const
1119e2eeea75SSimon J. Gerraty	o main.c: call Targ_Init before Var_Init
1120e2eeea75SSimon J. Gerraty	cleanup PrintOnError, getTmpdir and ParseBoolean
1121e2eeea75SSimon J. Gerraty	o var.c: fix error message of failed :!cmd! modifier
1122e2eeea75SSimon J. Gerraty
1123e2eeea75SSimon J. Gerraty2020-11-14  Simon J Gerraty  <sjg@beast.crufty.net>
1124e2eeea75SSimon J. Gerraty
1125e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201114
1126e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
1127e2eeea75SSimon J. Gerraty	o replace a few HashTable_CreateEntry with HashTable_Set
1128e2eeea75SSimon J. Gerraty	o clean up cached_stats
1129e2eeea75SSimon J. Gerraty	o rename DEFAULT to defaultNode
1130e2eeea75SSimon J. Gerraty	o remove redundant struct make_stat
1131e2eeea75SSimon J. Gerraty	o cond.c: in lint mode, check for ".else <cond>"
1132e2eeea75SSimon J. Gerraty	use bitset for IfState
1133e2eeea75SSimon J. Gerraty	replace large switch with if-else in Cond_EvalLine
1134e2eeea75SSimon J. Gerraty	o job.c: clean up JobExec, JobStart, JobDoOutput
1135e2eeea75SSimon J. Gerraty	use stderr for error message about failed touch
1136e2eeea75SSimon J. Gerraty	clean up Job_Touch
1137e2eeea75SSimon J. Gerraty	replace macro DBPRINTF with JobPrintln
1138e2eeea75SSimon J. Gerraty	rename JobState to JobStatus
1139e2eeea75SSimon J. Gerraty	main.c: switch cache for realpath from GNode to HashTable
1140e2eeea75SSimon J. Gerraty	clean up Fatal
1141e2eeea75SSimon J. Gerraty	clean up InitDefSysIncPath
1142e2eeea75SSimon J. Gerraty	use progname instead of hard-coded 'make' in warning
1143e2eeea75SSimon J. Gerraty	rename Main_SetVarObjdir to SetVarObjdir
1144e2eeea75SSimon J. Gerraty	make.1: document the -S option
1145e2eeea75SSimon J. Gerraty	make.c: fix debug output for GNode details
1146e2eeea75SSimon J. Gerraty	use symbolic names in debug output of GNodes
1147e2eeea75SSimon J. Gerraty
1148e2eeea75SSimon J. Gerraty2020-11-12  Simon J Gerraty  <sjg@beast.crufty.net>
1149e2eeea75SSimon J. Gerraty
1150e2eeea75SSimon J. Gerraty	* configure.in: fix --with-force-machine-arch
1151e2eeea75SSimon J. Gerraty
1152e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201112
1153e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
1154e2eeea75SSimon J. Gerraty	o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
1155e2eeea75SSimon J. Gerraty	checks in InitObjdir.  Explicit .OBJDIR target always allows
1156e2eeea75SSimon J. Gerraty	read-only directory.
1157e2eeea75SSimon J. Gerraty	o cond.c: clean up Cond_EvalLine
1158e2eeea75SSimon J. Gerraty
1159e2eeea75SSimon J. Gerraty2020-11-11  Simon J Gerraty  <sjg@beast.crufty.net>
1160e2eeea75SSimon J. Gerraty
1161e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201111
1162e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
1163e2eeea75SSimon J. Gerraty	o more unit-tests
1164e2eeea75SSimon J. Gerraty	o style cleanup
1165e2eeea75SSimon J. Gerraty	remove redundant parentheses from sizeof operator
1166e2eeea75SSimon J. Gerraty	replace character literal 0 with '\0'.
1167e2eeea75SSimon J. Gerraty	replace pointer literal 0 with NULL.
1168e2eeea75SSimon J. Gerraty	remove redundant parentheses.
1169e2eeea75SSimon J. Gerraty	replace (expr & mask) == 0 with !(expr & mask).
1170e2eeea75SSimon J. Gerraty	use strict typing in conditions of the form !var
1171e2eeea75SSimon J. Gerraty	o rename Make_OODate to GNode_IsOODate
1172e2eeea75SSimon J. Gerraty	o rename Make_TimeStamp to GNode_UpdateYoungestChild
1173e2eeea75SSimon J. Gerraty	o rename Var_Set_with_flags to Var_SetWithFlags
1174e2eeea75SSimon J. Gerraty	o rename dieQuietly to shouldDieQuietly
1175e2eeea75SSimon J. Gerraty	o buf.c: make API of Buf_Init simpler
1176e2eeea75SSimon J. Gerraty	o compat.c: clean up Compat_Make, Compat_RunCommand,
1177e2eeea75SSimon J. Gerraty	CompatDeleteTarget and CompatInterrupt
1178e2eeea75SSimon J. Gerraty	o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|'
1179e2eeea75SSimon J. Gerraty	clean up CondParser_Comparison
1180e2eeea75SSimon J. Gerraty	o main.c: rename getBoolean and s2Boolean
1181e2eeea75SSimon J. Gerraty	rename MAKEFILE_PREFERENCE for consistency
1182e2eeea75SSimon J. Gerraty	o parse.c: replace strstr in ParseMaybeSubMake with optimized code
1183e2eeea75SSimon J. Gerraty	o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR
1184e2eeea75SSimon J. Gerraty	replace emptyString with allocated empty string
1185e2eeea75SSimon J. Gerraty	error out on unclosed expressions after the colon
1186e2eeea75SSimon J. Gerraty
1187956e45f6SSimon J. Gerraty2020-11-01  Simon J Gerraty  <sjg@beast.crufty.net>
1188956e45f6SSimon J. Gerraty
1189956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201101
1190956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1191956e45f6SSimon J. Gerraty	o negate NoExecute to GNode_ShouldExecute
1192956e45f6SSimon J. Gerraty	o job.c: rename JobMatchShell to FindShellByName
1193956e45f6SSimon J. Gerraty	extract EscapeShellDblQuot from JobPrintCommand
1194956e45f6SSimon J. Gerraty	extract ParseRunOptions from JobPrintCommand
1195956e45f6SSimon J. Gerraty	o var.c: extract ApplyModifiersIndirect from ApplyModifiers
1196956e45f6SSimon J. Gerraty	treat malformed :range, :ts and :[...] as errors
1197956e45f6SSimon J. Gerraty	add tests for the variable modifiers :[words] and :range
1198956e45f6SSimon J. Gerraty
1199956e45f6SSimon J. Gerraty2020-10-31  Simon J Gerraty  <sjg@beast.crufty.net>
1200956e45f6SSimon J. Gerraty
1201956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201031
1202956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1203956e45f6SSimon J. Gerraty	o format #include directives consistently
1204956e45f6SSimon J. Gerraty	o do not look up local variables like .TARGET anywhere else
1205956e45f6SSimon J. Gerraty	o main.c: Main_SetObjdir is first called for curdir which may be
1206956e45f6SSimon J. Gerraty	readonly
1207956e45f6SSimon J. Gerraty	reduce the scope where recursive expressions are detected
1208956e45f6SSimon J. Gerraty	remove redundant :tl from getBoolean
1209956e45f6SSimon J. Gerraty	clean up mkTempFile
1210956e45f6SSimon J. Gerraty	o meta.c: simplify memory allocation in meta_create and meta_oodate
1211956e45f6SSimon J. Gerraty	o parse.c: extract loadedfile_mmap from loadfile
1212956e45f6SSimon J. Gerraty	o trace.c: document possible undefined behavior with .CURDIR
1213956e45f6SSimon J. Gerraty	o var.c: make parsing of the :gmtime and :localtime modifiers stricter
1214956e45f6SSimon J. Gerraty	rename ismeta to is_shell_metachar
1215956e45f6SSimon J. Gerraty	remove debug logging for the :Q variable modifier
1216956e45f6SSimon J. Gerraty	rename VarIsDynamic to VarnameIsDynamic
1217956e45f6SSimon J. Gerraty	use consistent parameter order in varname parsing functions
1218956e45f6SSimon J. Gerraty	extract ParseVarnameLong from Var_Parse
1219956e45f6SSimon J. Gerraty	extract ParseVarnameShort from Var_Parse
1220956e45f6SSimon J. Gerraty	fix type of ParseModifierPart parameter delim
1221956e45f6SSimon J. Gerraty	extract IsEscapedModifierPart from ParseModifierPart
1222956e45f6SSimon J. Gerraty	clean up ModifyWords
1223956e45f6SSimon J. Gerraty	add test for combining the :@ and :? variable modifiers
1224956e45f6SSimon J. Gerraty
1225956e45f6SSimon J. Gerraty2020-10-30  Simon J Gerraty  <sjg@beast.crufty.net>
1226956e45f6SSimon J. Gerraty
1227956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201030
1228956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1229956e45f6SSimon J. Gerraty	o change char * to void * in Var_Value
1230956e45f6SSimon J. Gerraty	o make iterating over HashTable simpler
1231956e45f6SSimon J. Gerraty	o rename VAR_CMD to VAR_CMDLINE
1232956e45f6SSimon J. Gerraty	o cond.c: clean up is_separator
1233956e45f6SSimon J. Gerraty	fix parse error in string literal in conditional
1234956e45f6SSimon J. Gerraty	o main.c: do not use objdir that is not writable
1235956e45f6SSimon J. Gerraty	in lint mode, exit with error status on errors
1236956e45f6SSimon J. Gerraty	o  parse.c: clean up StrContainsWord
1237956e45f6SSimon J. Gerraty	fix out-of-bounds pointer in ParseTrackInput
1238956e45f6SSimon J. Gerraty	o var.c: rename Str_SYSVMatch and its parameters
1239956e45f6SSimon J. Gerraty	remove unsatisfiable conditions in Var_Set_with_flags
1240956e45f6SSimon J. Gerraty	document where the variable name is expanded
1241956e45f6SSimon J. Gerraty	fix documentation for VARP_SUB_ONE
1242956e45f6SSimon J. Gerraty	rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME
1243956e45f6SSimon J. Gerraty	document VAR_READONLY
1244956e45f6SSimon J. Gerraty	prevent appending to read-only variables
1245956e45f6SSimon J. Gerraty	extract MayExport from Var_Export1
1246956e45f6SSimon J. Gerraty	remove redundant evaluations in VarFind
1247956e45f6SSimon J. Gerraty	replace VarFindFlags with a simple Boolean
1248956e45f6SSimon J. Gerraty	rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE
1249956e45f6SSimon J. Gerraty
1250956e45f6SSimon J. Gerraty2020-10-28  Simon J Gerraty  <sjg@beast.crufty.net>
1251956e45f6SSimon J. Gerraty
1252956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201028
1253956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1254956e45f6SSimon J. Gerraty	o rename defIncPath to defSysIncPath
1255956e45f6SSimon J. Gerraty	o initialize all CmdOpts fields
1256956e45f6SSimon J. Gerraty	o lst.c: inline Vector_Get
1257956e45f6SSimon J. Gerraty	o main.c: refactor main extract
1258956e45f6SSimon J. Gerraty	InitMaxJobs,InitObjdir,InitVarMake,InitRandom,
1259956e45f6SSimon J. Gerraty	ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules,
1260956e45f6SSimon J. Gerraty	InitDefIncPath,CmdOpts_Init,UnlimitFiles
1261956e45f6SSimon J. Gerraty	o parse.c: merge curFile into includes
1262956e45f6SSimon J. Gerraty	rename predecessor to order_pred
1263956e45f6SSimon J. Gerraty	sort ParseSpecial alphabetically
1264956e45f6SSimon J. Gerraty	remove unused, undocumented .NOEXPORT
1265956e45f6SSimon J. Gerraty	rename ParseSpecial enum values consistently
1266956e45f6SSimon J. Gerraty	rename some fields of struct IFile
1267956e45f6SSimon J. Gerraty
1268956e45f6SSimon J. Gerraty2020-10-26  Simon J Gerraty  <sjg@beast.crufty.net>
1269956e45f6SSimon J. Gerraty
1270956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201026
1271956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1272956e45f6SSimon J. Gerraty	o group the command line options and arguments into a struct
1273956e45f6SSimon J. Gerraty	o rename GNode.cmgn to youngestChild
1274956e45f6SSimon J. Gerraty	o rename hash functions to identify the type name
1275956e45f6SSimon J. Gerraty	o negate OP_NOP and rename it to GNode_IsTarget
1276956e45f6SSimon J. Gerraty	o add GNode_Path to access the path of a GNode
1277956e45f6SSimon J. Gerraty	o remove macros MIN and MAX
1278956e45f6SSimon J. Gerraty	o remove unused Lst_Find and Lst_FindFrom
1279956e45f6SSimon J. Gerraty	o arch.c: and make Arch_FindLib simpler
1280956e45f6SSimon J. Gerraty	clean up code layout
1281956e45f6SSimon J. Gerraty	make Arch_ParseArchive simpler
1282956e45f6SSimon J. Gerraty	o cond.c: inline CondFindStrMatch into FuncMake
1283956e45f6SSimon J. Gerraty	o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath
1284956e45f6SSimon J. Gerraty	omit trailing space in debug output for expanding file patterns
1285956e45f6SSimon J. Gerraty	refactor DirMatchFiles
1286956e45f6SSimon J. Gerraty	document that the SearchPath of Dir_FindFile may be NULL
1287956e45f6SSimon J. Gerraty	remove UNCONST from Dir_Expand
1288956e45f6SSimon J. Gerraty	inline DirFindName
1289956e45f6SSimon J. Gerraty	o for.c: clean up code for handling .for loops
1290956e45f6SSimon J. Gerraty	o hash.c: print hash in debug log with fixed width
1291956e45f6SSimon J. Gerraty	clean up hash table functions
1292956e45f6SSimon J. Gerraty	reduce amount of string hashing
1293956e45f6SSimon J. Gerraty	o job.c: refactor JobDeleteTarget
1294956e45f6SSimon J. Gerraty	use proper enum constants for aborting
1295956e45f6SSimon J. Gerraty	convert result of JobStart from macros to enum
1296956e45f6SSimon J. Gerraty	convert abort reason macros to enum
1297956e45f6SSimon J. Gerraty	rework Job_CheckCommands to reduce indentation
1298956e45f6SSimon J. Gerraty	rename Shell fields
1299956e45f6SSimon J. Gerraty	add field names in declaration of DEFSHELL_CUSTOM
1300956e45f6SSimon J. Gerraty	convert JobState and JobFlags to enum types
1301956e45f6SSimon J. Gerraty	move handling of the "..." command to JobPrintCommands
1302956e45f6SSimon J. Gerraty	o lst.c: clean up
1303956e45f6SSimon J. Gerraty	refactor LstNodeNew
1304956e45f6SSimon J. Gerraty	remove Lst_Open, Lst_Next, Lst_Close
1305956e45f6SSimon J. Gerraty	remove code for circular lists from Lst_Next
1306956e45f6SSimon J. Gerraty	o main.c: do not attempt to read .MAKE.DEPENFILE if set to
1307956e45f6SSimon J. Gerraty	/dev/null or anything starting with "no"
1308956e45f6SSimon J. Gerraty	convert macros for debug flags into enum
1309956e45f6SSimon J. Gerraty	o make.c: inline Lst_Copy in Make_ExpandUse
1310956e45f6SSimon J. Gerraty	o meta.c: inline Lst_Find in meta_oodate
1311956e45f6SSimon J. Gerraty	make Lst_RemoveIf simpler in meta_oodate
1312956e45f6SSimon J. Gerraty	o parse.c: convert error level for Parse_Error to an enum
1313956e45f6SSimon J. Gerraty	o suff.c: properly terminate debug output with newline
1314956e45f6SSimon J. Gerraty	add more details to DEBUG_SRC log
1315956e45f6SSimon J. Gerraty	replace Dir_CopyDir with Dir_CopyDirSearchPath
1316956e45f6SSimon J. Gerraty	don't modify GNode name while rebuilding the suffix graph
1317956e45f6SSimon J. Gerraty	o var.c: reduce duplicate code in VarFind
1318956e45f6SSimon J. Gerraty
1319956e45f6SSimon J. Gerraty2020-10-22  Simon J Gerraty  <sjg@beast.crufty.net>
1320956e45f6SSimon J. Gerraty
1321956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201022
1322956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1323956e45f6SSimon J. Gerraty	o more refactoring and simplification to reduce code size
1324956e45f6SSimon J. Gerraty	o var.c: extract CanonicalVarname from VarFind
1325956e45f6SSimon J. Gerraty	o make.c: extract UpdateImplicitParentsVars from Make_Update
1326956e45f6SSimon J. Gerraty	o main.c: extract PrintVar from doPrintVars
1327956e45f6SSimon J. Gerraty	extract HandlePWD from main
1328956e45f6SSimon J. Gerraty	o lst.c: inline simple Lst getters
1329956e45f6SSimon J. Gerraty	remove unused Lst_ForEach
1330956e45f6SSimon J. Gerraty	o job.c: move struct Shell from job.h to job.c
1331956e45f6SSimon J. Gerraty	o more unit tests
1332956e45f6SSimon J. Gerraty
1333956e45f6SSimon J. Gerraty2020-10-19  Simon J Gerraty  <sjg@beast.crufty.net>
1334956e45f6SSimon J. Gerraty
1335956e45f6SSimon J. Gerraty	* configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT
1336956e45f6SSimon J. Gerraty
1337956e45f6SSimon J. Gerraty2020-10-18  Simon J Gerraty  <sjg@beast.crufty.net>
1338956e45f6SSimon J. Gerraty
1339956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201018
1340956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1341956e45f6SSimon J. Gerraty	o remove USE_IOVEC
1342956e45f6SSimon J. Gerraty	o rename some Hash_* apis to Hash*
1343956e45f6SSimon J. Gerraty	o replace execError with execDie
1344956e45f6SSimon J. Gerraty	o rename Lst_Init to Lst_New
1345956e45f6SSimon J. Gerraty	o add tags to enum types
1346956e45f6SSimon J. Gerraty	o rename Stack to Vector
1347956e45f6SSimon J. Gerraty	o parse.c: more refactoring
1348956e45f6SSimon J. Gerraty	o unit-tests: make some tests use line buffered stdout
1349956e45f6SSimon J. Gerraty	o unit-tests/Makefile: in meta mode do not make all tests depend on
1350956e45f6SSimon J. Gerraty	Makefile, it isn't necessary.
1351956e45f6SSimon J. Gerraty
1352956e45f6SSimon J. Gerraty2020-10-10  Simon J Gerraty  <sjg@beast.crufty.net>
1353956e45f6SSimon J. Gerraty
1354956e45f6SSimon J. Gerraty	* main.c: check for CTL_HW being defined.
1355956e45f6SSimon J. Gerraty	* unit-tests/Makefile: ensure export tests output are POSIX compliant
1356956e45f6SSimon J. Gerraty	disable opt-debug-jobs test until it works on ubuntu
1357956e45f6SSimon J. Gerraty
1358956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201010
1359956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1360956e45f6SSimon J. Gerraty	o dir.c: remove pathname limit for Dir_FindHereOrAbove
1361956e45f6SSimon J. Gerraty	o hash.c: replace strcpy with memcpy in Hash_CreateEntry
1362956e45f6SSimon J. Gerraty	o main.c: extract init_machine and init_machine_arch from main
1363956e45f6SSimon J. Gerraty	allow to disable debug logging options
1364956e45f6SSimon J. Gerraty	o parse.c: enable format string truncation warnings
1365956e45f6SSimon J. Gerraty	extract parsing of sources from ParseDoDependency
1366956e45f6SSimon J. Gerraty	split ParseDoSrc into smaller functions
1367956e45f6SSimon J. Gerraty	hide implementation details from Parse_DoVar
1368956e45f6SSimon J. Gerraty	clean up parsing of variable assignments
1369956e45f6SSimon J. Gerraty	split Parse_DoVar into manageable pieces
1370956e45f6SSimon J. Gerraty	don't modify the given line during Parse_DoVar
1371956e45f6SSimon J. Gerraty	fix out-of-bounds memory access in Parse_DoVar
1372956e45f6SSimon J. Gerraty	fix parsing of the :sh assignment modifier
1373956e45f6SSimon J. Gerraty	o var.c: rework memory allocation for the name of variables
1374956e45f6SSimon J. Gerraty	extract ApplyModifier_Literal into separate function
1375956e45f6SSimon J. Gerraty	in lint mode, reject modifiers without delimiter
1376956e45f6SSimon J. Gerraty	do not export variable names starting with '-'
1377956e45f6SSimon J. Gerraty	o fix double-free bug in -DCLEANUP mode
1378956e45f6SSimon J. Gerraty	o more cleanup to enable higher warnings level
1379956e45f6SSimon J. Gerraty	o more unit tests
1380956e45f6SSimon J. Gerraty
1381956e45f6SSimon J. Gerraty2020-10-02  Simon J Gerraty  <sjg@beast.crufty.net>
1382956e45f6SSimon J. Gerraty
1383956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201002
1384956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1385956e45f6SSimon J. Gerraty	o dir.c: use hash table for looking up open directories by name
1386956e45f6SSimon J. Gerraty	o main.c: clean up option handling
1387956e45f6SSimon J. Gerraty	o parse.c: add missing const for Parse_AddIncludeDir
1388956e45f6SSimon J. Gerraty	o var.c: ApplyModifier_To, update pp in each branch
1389956e45f6SSimon J. Gerraty	o remove redundant function prototypes
1390956e45f6SSimon J. Gerraty	o more unit tests
1391956e45f6SSimon J. Gerraty
1392956e45f6SSimon J. Gerraty2020-10-01  Simon J Gerraty  <sjg@beast.crufty.net>
1393956e45f6SSimon J. Gerraty
1394956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201001
1395956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1396956e45f6SSimon J. Gerraty	o compat.c: comment about "..."
1397956e45f6SSimon J. Gerraty
1398956e45f6SSimon J. Gerraty2020-09-30  Simon J Gerraty  <sjg@beast.crufty.net>
1399956e45f6SSimon J. Gerraty
1400956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200930
1401956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1402956e45f6SSimon J. Gerraty	o job.c: split Job.jobPipe into 2 separate fields
1403956e45f6SSimon J. Gerraty	replace Lst_Open with direct iteration
1404956e45f6SSimon J. Gerraty	o lst.c: remove redundant assertions
1405956e45f6SSimon J. Gerraty	o targ.c: replace Lst_Open with direct iteration
1406956e45f6SSimon J. Gerraty	o var.c: fix bug in evaluation of indirect variable modifiers
1407956e45f6SSimon J. Gerraty	extract ApplyModifier_Quote into separate function
1408956e45f6SSimon J. Gerraty	o make debug logging simpler
1409956e45f6SSimon J. Gerraty
1410956e45f6SSimon J. Gerraty2020-09-27  Simon J Gerraty  <sjg@beast.crufty.net>
1411956e45f6SSimon J. Gerraty
1412956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200927
1413956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1414956e45f6SSimon J. Gerraty	o parse.c: ensure parse errors result in 'stopped in' message.
1415956e45f6SSimon J. Gerraty	o compat.c: make parameter of Compat_RunCommand const
1416956e45f6SSimon J. Gerraty	o main.c: extract InitVarTarget from main
1417956e45f6SSimon J. Gerraty	o parse.c: rename ParseFinishLine to FinishDependencyGroup
1418956e45f6SSimon J. Gerraty	refactor ParseDoDependency
1419956e45f6SSimon J. Gerraty	o var.c: Var_Subst no longer returns string result
1420956e45f6SSimon J. Gerraty	rename Var_ParsePP back to Var_Parse
1421956e45f6SSimon J. Gerraty	in lint mode, improve error handling for undefined variables
1422956e45f6SSimon J. Gerraty	extract ParseVarname from Var_Parse
1423956e45f6SSimon J. Gerraty	o rename Lst_ForEach to Lst_ForEachUntil
1424956e45f6SSimon J. Gerraty	o inline Lst_ForEachUntil in several cases
1425956e45f6SSimon J. Gerraty	o clean up API for finding and creating GNodes
1426956e45f6SSimon J. Gerraty	o fix assertion failure in -j mode with .END node
1427956e45f6SSimon J. Gerraty	o inline and remove LstNode_Prev and LstNode_Next
1428956e45f6SSimon J. Gerraty	o use fine-grained type names for lists and their nodes
1429956e45f6SSimon J. Gerraty	o more unit tests
1430956e45f6SSimon J. Gerraty
1431956e45f6SSimon J. Gerraty2020-09-11  Simon J Gerraty  <sjg@beast.crufty.net>
1432956e45f6SSimon J. Gerraty
1433956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200911
1434956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1435956e45f6SSimon J. Gerraty	o cond.c: split EvalComparison into smaller functions
1436956e45f6SSimon J. Gerraty	reorder parameters of condition parsing functions
1437956e45f6SSimon J. Gerraty	reduce code size in CondParser_Eval
1438956e45f6SSimon J. Gerraty	rename CondGetString to CondParser_String
1439956e45f6SSimon J. Gerraty	add CondLexer_SkipWhitespace
1440956e45f6SSimon J. Gerraty	group the condition parsing state into a struct
1441956e45f6SSimon J. Gerraty	in CondGetString, replace repeated Buf_Add with Buf_AddStr
1442956e45f6SSimon J. Gerraty	o migrate Var_Parse to Var_ParsePP
1443956e45f6SSimon J. Gerraty	o add wrappers around ctype.h functions
1444956e45f6SSimon J. Gerraty	o lst.c: use a stack instead of a list for the nested include path
1445956e45f6SSimon J. Gerraty	o more unit tests
1446956e45f6SSimon J. Gerraty
1447956e45f6SSimon J. Gerraty2020-09-04  Simon J Gerraty  <sjg@beast.crufty.net>
1448956e45f6SSimon J. Gerraty
1449956e45f6SSimon J. Gerraty	* make-bootstrap.sh.in: adjust object list
1450956e45f6SSimon J. Gerraty
14512c3632d1SSimon J. Gerraty2020-09-02  Simon J Gerraty  <sjg@beast.crufty.net>
14522c3632d1SSimon J. Gerraty
14532c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200902
14542c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14552c3632d1SSimon J. Gerraty	o use make_stat to ensure no confusion over valid fields
14562c3632d1SSimon J. Gerraty	returned by cached_stat
14572c3632d1SSimon J. Gerraty	o var.c: make VarQuote const-correct
14582c3632d1SSimon J. Gerraty	o add unit tests for .for
14592c3632d1SSimon J. Gerraty
14602c3632d1SSimon J. Gerraty2020-09-01  Simon J Gerraty  <sjg@beast.crufty.net>
14612c3632d1SSimon J. Gerraty
14622c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200901
14632c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14642c3632d1SSimon J. Gerraty	o rename Hash_Table fields
14652c3632d1SSimon J. Gerraty	o make data types in Dir_HasWildcards more precise
14662c3632d1SSimon J. Gerraty
14672c3632d1SSimon J. Gerraty2020-08-31  Simon J Gerraty  <sjg@beast.crufty.net>
14682c3632d1SSimon J. Gerraty
14692c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200831
14702c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14712c3632d1SSimon J. Gerraty	o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds
14722c3632d1SSimon J. Gerraty	o lst.c: Lst_Open renable assert that list isn't open
14732c3632d1SSimon J. Gerraty	o unit test for .TARGET dependent flags
14742c3632d1SSimon J. Gerraty	o var.c: fix aliasing bug in VarUniq
14752c3632d1SSimon J. Gerraty	o more unit tests for :u
14762c3632d1SSimon J. Gerraty
14772c3632d1SSimon J. Gerraty2020-08-30  Simon J Gerraty  <sjg@beast.crufty.net>
14782c3632d1SSimon J. Gerraty
14792c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200830
14802c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14812c3632d1SSimon J. Gerraty	o allow for strict type checking for Boolean
14822c3632d1SSimon J. Gerraty	o Var_Parse never returns NULL
14832c3632d1SSimon J. Gerraty	o Var_Subst never returns NULL
14842c3632d1SSimon J. Gerraty	o Lst_Find now takes boolean match function
14852c3632d1SSimon J. Gerraty	o rename Lst_Memeber to Lst_FindDatum
14862c3632d1SSimon J. Gerraty	o rename LstNode functions to match their type
14872c3632d1SSimon J. Gerraty	o rename GNode.iParents to implicitParents
14882c3632d1SSimon J. Gerraty	o fix assertion failure for .SUFFIXES in archives
14892c3632d1SSimon J. Gerraty	o compat.c: clean up documentation for CompatInterrupt and Compat_Run
14902c3632d1SSimon J. Gerraty	remove unreachable code from CompatRunCommand
14912c3632d1SSimon J. Gerraty	o main.c: simplify getBoolean
14922c3632d1SSimon J. Gerraty	o stc.c: replace brk_string with simpler Str_Words
14932c3632d1SSimon J. Gerraty	o suff.c: add debug macros
14942c3632d1SSimon J. Gerraty
14952c3632d1SSimon J. Gerraty2020-08-28  Simon J Gerraty  <sjg@beast.crufty.net>
14962c3632d1SSimon J. Gerraty
14972c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200828
14982c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
14992c3632d1SSimon J. Gerraty	o lst.c: inline LstIsValid and LstNodeIsValid
15002c3632d1SSimon J. Gerraty	o remove trailing S from Lst function names after migration complete
15012c3632d1SSimon J. Gerraty	o more comment cleanup/clarification
15022c3632d1SSimon J. Gerraty	o suff.c: clean up suffix handling
15032c3632d1SSimon J. Gerraty	o more unit tests
15042c3632d1SSimon J. Gerraty
15052c3632d1SSimon J. Gerraty2020-08-26  Simon J Gerraty  <sjg@beast.crufty.net>
15062c3632d1SSimon J. Gerraty
15072c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200826
15082c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15092c3632d1SSimon J. Gerraty	o enum.c: distinguish between bitsets containing flags and
15102c3632d1SSimon J. Gerraty	ordinary enums
15112c3632d1SSimon J. Gerraty	o var.c: fix error message for ::!= modifier with shell error
15122c3632d1SSimon J. Gerraty	o fix bugs in -DCLEANUP mode
15132c3632d1SSimon J. Gerraty
15142c3632d1SSimon J. Gerraty2020-08-24  Simon J Gerraty  <sjg@beast.crufty.net>
15152c3632d1SSimon J. Gerraty
15162c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200824
15172c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15182c3632d1SSimon J. Gerraty	o in debug mode, print GNode details in symbols
15192c3632d1SSimon J. Gerraty
15202c3632d1SSimon J. Gerraty2020-08-23  Simon J Gerraty  <sjg@beast.crufty.net>
15212c3632d1SSimon J. Gerraty
15222c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200823
15232c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15242c3632d1SSimon J. Gerraty	o lst.c: more asserts,
15252c3632d1SSimon J. Gerraty	make args to Lst_Find match others.
15262c3632d1SSimon J. Gerraty	o var.c: pass flags to VarAdd
15272c3632d1SSimon J. Gerraty	o arch.c: use Buffer
15282c3632d1SSimon J. Gerraty	o str.c: brk_string return size_t for nwords
15292c3632d1SSimon J. Gerraty	o more unit tests
15302c3632d1SSimon J. Gerraty
15312c3632d1SSimon J. Gerraty2020-08-22  Simon J Gerraty  <sjg@beast.crufty.net>
15322c3632d1SSimon J. Gerraty
15332c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION):
15342c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15352c3632d1SSimon J. Gerraty	o var.c: support for read-only variables eg .SHELL
15362c3632d1SSimon J. Gerraty	being the shell used to run scripts.
15372c3632d1SSimon J. Gerraty	o lst.c: more simplification
15382c3632d1SSimon J. Gerraty	o more documentation and style cleanup
15392c3632d1SSimon J. Gerraty	o more unit tests
15402c3632d1SSimon J. Gerraty	o ensure unit-test/Makefile is run by TEST_MAKE
15412c3632d1SSimon J. Gerraty	o reduce duplication of header inclusion
15422c3632d1SSimon J. Gerraty
15432c3632d1SSimon J. Gerraty2020-08-21  Simon J Gerraty  <sjg@beast.crufty.net>
15442c3632d1SSimon J. Gerraty
15452c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200821
15462c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15472c3632d1SSimon J. Gerraty	o lst.c: revert invalid assertion - but document it
15482c3632d1SSimon J. Gerraty	o dir.c: split Dir_Init into two functions
15492c3632d1SSimon J. Gerraty
15502c3632d1SSimon J. Gerraty2020-08-20  Simon J Gerraty  <sjg@beast.crufty.net>
15512c3632d1SSimon J. Gerraty
15522c3632d1SSimon J. Gerraty	* lst.c: needs inttypes.h on Linux
15532c3632d1SSimon J. Gerraty
15542c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200820
15552c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15562c3632d1SSimon J. Gerraty	o make.1: clarify some passages
15572c3632d1SSimon J. Gerraty	o var.c: more cleanup, clarify comments
15582c3632d1SSimon J. Gerraty	o make_malloc.c: remove unreachable code
15592c3632d1SSimon J. Gerraty	o cond.c: make CondGetString easier to debug
15602c3632d1SSimon J. Gerraty	o simplify list usage
15612c3632d1SSimon J. Gerraty	o unit-tests: more
15622c3632d1SSimon J. Gerraty
15632c3632d1SSimon J. Gerraty2020-08-16  Simon J Gerraty  <sjg@beast.crufty.net>
15642c3632d1SSimon J. Gerraty
15652c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200816
15662c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15672c3632d1SSimon J. Gerraty	o refactor unit-tests to be more fine grained
15682c3632d1SSimon J. Gerraty	  not all tests moved yet
15692c3632d1SSimon J. Gerraty
15702c3632d1SSimon J. Gerraty2020-08-14  Simon J Gerraty  <sjg@beast.crufty.net>
15712c3632d1SSimon J. Gerraty
15722c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200814
15732c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15742c3632d1SSimon J. Gerraty	o more str_concat variants
15752c3632d1SSimon J. Gerraty	o more enums for flags
15762c3632d1SSimon J. Gerraty	o var.c: cleanup for higher warnings level
15772c3632d1SSimon J. Gerraty
15782c3632d1SSimon J. Gerraty2020-08-10  Simon J Gerraty  <sjg@beast.crufty.net>
15792c3632d1SSimon J. Gerraty
15802c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200810
15812c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15822c3632d1SSimon J. Gerraty	o more unit tests
15832c3632d1SSimon J. Gerraty	o general comment and style cleanup
15842c3632d1SSimon J. Gerraty
15852c3632d1SSimon J. Gerraty2020-08-08  Simon J Gerraty  <sjg@beast.crufty.net>
15862c3632d1SSimon J. Gerraty
15872c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200808
15882c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
15892c3632d1SSimon J. Gerraty	o enum.[ch]: streamline, enums for use in flags and debug output
15902c3632d1SSimon J. Gerraty	o cond.c: cleanup
15912c3632d1SSimon J. Gerraty	o var.c: reduce duplicate code for modifiers
15922c3632d1SSimon J. Gerraty	debug logging for Var_Parse
15932c3632d1SSimon J. Gerraty	more detailed debug output
15942c3632d1SSimon J. Gerraty	o more unit tests
15952c3632d1SSimon J. Gerraty
15962c3632d1SSimon J. Gerraty2020-08-06  Simon J Gerraty  <sjg@beast.crufty.net>
15972c3632d1SSimon J. Gerraty
15982c3632d1SSimon J. Gerraty	* unit-tests/Makefile: -r for recursive and include Makefile.inc
15992c3632d1SSimon J. Gerraty	so I can run tests in meta mode
16002c3632d1SSimon J. Gerraty	supress extra noise if in meta mode
16012c3632d1SSimon J. Gerraty
16022c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200806
16032c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16042c3632d1SSimon J. Gerraty	o parse.c: remove VARE_WANTRES for LINT
16052c3632d1SSimon J. Gerraty	we just want to check parsing (for now).
16062c3632d1SSimon J. Gerraty
16072c3632d1SSimon J. Gerraty2020-08-05  Simon J Gerraty  <sjg@beast.crufty.net>
16082c3632d1SSimon J. Gerraty
16092c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200805
16102c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16112c3632d1SSimon J. Gerraty	o make.1: Rework the description of dependence operators
16122c3632d1SSimon J. Gerraty
16132c3632d1SSimon J. Gerraty2020-08-03  Simon J Gerraty  <sjg@beast.crufty.net>
16142c3632d1SSimon J. Gerraty
16152c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200803
16162c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16172c3632d1SSimon J. Gerraty	o revert some C99 usage, for max portability
16182c3632d1SSimon J. Gerraty	o unit-tests/lint
16192c3632d1SSimon J. Gerraty
16202c3632d1SSimon J. Gerraty2020-08-02  Simon J Gerraty  <sjg@beast.crufty.net>
16212c3632d1SSimon J. Gerraty
16222c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200802
16232c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16242c3632d1SSimon J. Gerraty	o more unit tests
16252c3632d1SSimon J. Gerraty
16262c3632d1SSimon J. Gerraty2020-08-01  Simon J Gerraty  <sjg@beast.crufty.net>
16272c3632d1SSimon J. Gerraty
16282c3632d1SSimon J. Gerraty	* Remove NetBSD specific plumbing from unit-tests/Makefile
16292c3632d1SSimon J. Gerraty
16302c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200801
16312c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16322c3632d1SSimon J. Gerraty	o make Var_Value return const
16332c3632d1SSimon J. Gerraty	o size_t for buf sizes
16342c3632d1SSimon J. Gerraty	o optimize some buffer operations - avoid strlen
16352c3632d1SSimon J. Gerraty
16362c3632d1SSimon J. Gerraty2020-07-31  Simon J Gerraty  <sjg@beast.crufty.net>
16372c3632d1SSimon J. Gerraty
16382c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200731
16392c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16402c3632d1SSimon J. Gerraty	o var.c: fix undefinded behavior for incomplete :t modifier
16412c3632d1SSimon J. Gerraty	  fixes unit-test/moderrs on Ubuntu
16422c3632d1SSimon J. Gerraty	o parse.c: When parsing variable assignments other than :=
16432c3632d1SSimon J. Gerraty	  if DEBUG(LINT) test substition of value, so we get a file and
16442c3632d1SSimon J. Gerraty	  line number in the resulting error.
16452c3632d1SSimon J. Gerraty	o dir.c: fix parsing of nested braces in dependency lines
16462c3632d1SSimon J. Gerraty	  add unit-tests
16472c3632d1SSimon J. Gerraty
16482c3632d1SSimon J. Gerraty2020-07-30  Simon J Gerraty  <sjg@beast.crufty.net>
16492c3632d1SSimon J. Gerraty
16502c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200730
16512c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16522c3632d1SSimon J. Gerraty	o var.c: minor cleanup
16532c3632d1SSimon J. Gerraty	o unit-tests: more tests to improve code coverage
16542c3632d1SSimon J. Gerraty
16552c3632d1SSimon J. Gerraty2020-07-28  Simon J Gerraty  <sjg@beast.crufty.net>
16562c3632d1SSimon J. Gerraty
16572c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200728
16582c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16592c3632d1SSimon J. Gerraty	o var.c: more optimizations
16602c3632d1SSimon J. Gerraty
16612c3632d1SSimon J. Gerraty2020-07-26  Simon J Gerraty  <sjg@beast.crufty.net>
16622c3632d1SSimon J. Gerraty
16632c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200726
16642c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16652c3632d1SSimon J. Gerraty	o collapse lsd.lib into lst.c - reduce code size and allow inlining
16662c3632d1SSimon J. Gerraty	o lots of function comment updates
16672c3632d1SSimon J. Gerraty	o var.c: more optimizations
16682c3632d1SSimon J. Gerraty	o make return of Var_Parse const
16692c3632d1SSimon J. Gerraty
16702c3632d1SSimon J. Gerraty2020-07-20  Simon J Gerraty  <sjg@beast.crufty.net>
16712c3632d1SSimon J. Gerraty
16722c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200720
16732c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16742c3632d1SSimon J. Gerraty	o DEBUG_HASH report stats at end and tone down the noise
16752c3632d1SSimon J. Gerraty	o var.c: each flag type gets its own prefix.
16762c3632d1SSimon J. Gerraty	move SysV string matching to var.c
16772c3632d1SSimon J. Gerraty	make ampersand in ${VAR:from=to&} an ordinary character
16782c3632d1SSimon J. Gerraty	cleanup and simplify implementation of modifiers
16792c3632d1SSimon J. Gerraty	o make.1: move documentation for assignment modifiers
16802c3632d1SSimon J. Gerraty
16812c3632d1SSimon J. Gerraty2020-07-18  Simon J Gerraty  <sjg@beast.crufty.net>
16822c3632d1SSimon J. Gerraty
16832c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200718
16842c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
16852c3632d1SSimon J. Gerraty	o DEBUG_HASH to see how well the hash tables are working
16862c3632d1SSimon J. Gerraty
16872c3632d1SSimon J. Gerraty2020-07-11  Simon J Gerraty  <sjg@beast.crufty.net>
16882c3632d1SSimon J. Gerraty
16892c3632d1SSimon J. Gerraty	* bsd.after-import.mk: make sure we update unit-tests/Makefile
16902c3632d1SSimon J. Gerraty
16913841c287SSimon J. Gerraty2020-07-10  Simon J Gerraty  <sjg@beast.crufty.net>
16923841c287SSimon J. Gerraty
16933841c287SSimon J. Gerraty	* configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC
16943841c287SSimon J. Gerraty
16953841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200710
16963841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
16973841c287SSimon J. Gerraty	o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall
16983841c287SSimon J. Gerraty	o meta.c: target flagged .META is out-of-date if meta file missing
16993841c287SSimon J. Gerraty
17003841c287SSimon J. Gerraty2020-07-09  Simon J Gerraty  <sjg@beast.crufty.net>
17013841c287SSimon J. Gerraty
17023841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200709
17033841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17043841c287SSimon J. Gerraty	o cond.c: fix for compare_expression when doEval=0
17053841c287SSimon J. Gerraty	o unit-tests/Makefile: rework
17063841c287SSimon J. Gerraty	o filemon/filemon_dev.c: ensure filemon fd is closed on exec.
17073841c287SSimon J. Gerraty
17083841c287SSimon J. Gerraty2020-07-04  Simon J Gerraty  <sjg@beast.crufty.net>
17093841c287SSimon J. Gerraty
17103841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200704
17113841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17123841c287SSimon J. Gerraty	(most of this by rillig@)
17133841c287SSimon J. Gerraty	o lots of style and white-space cleanup
17143841c287SSimon J. Gerraty	o lots more unit tests for variable modifiers
17153841c287SSimon J. Gerraty	o simplified description of some functions
17163841c287SSimon J. Gerraty	o str.c: refactor Str_Match
17173841c287SSimon J. Gerraty	o var.c: debugging output for :@
17183841c287SSimon J. Gerraty	  constify VarModify parameter
17193841c287SSimon J. Gerraty	  fix :hash modifier on 16-bit platforms
17203841c287SSimon J. Gerraty	  remove unnecessary forward declarations
17213841c287SSimon J. Gerraty	  refactor ApplyModifier_SysV to have less indentation
17223841c287SSimon J. Gerraty	  simplify code for :E and :R
17233841c287SSimon J. Gerraty	  clean up code for :H and :T
17243841c287SSimon J. Gerraty	  refactor ApplyModifiers
17253841c287SSimon J. Gerraty
17263841c287SSimon J. Gerraty	* var.c: we need stdint.h on some platforms to get uint32_t
17273841c287SSimon J. Gerraty	* unit-test/Makefile: we need to supress the specific error
17283841c287SSimon J. Gerraty	for RE substitution error in modmisc, since it varies accross
17293841c287SSimon J. Gerraty	different OS.
17303841c287SSimon J. Gerraty
17313841c287SSimon J. Gerraty2020-07-02  Simon J Gerraty  <sjg@beast.crufty.net>
17323841c287SSimon J. Gerraty
17333841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200702
17343841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17353841c287SSimon J. Gerraty	o var.c: more improvements to avoiding unnecessary evaluation
17363841c287SSimon J. Gerraty	use enums for flags
17373841c287SSimon J. Gerraty	o remove flags arg to Var_Set which outside of var.c is always 0
17383841c287SSimon J. Gerraty
17393841c287SSimon J. Gerraty2020-07-01  Simon J Gerraty  <sjg@beast.crufty.net>
17403841c287SSimon J. Gerraty
17413841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200701
17423841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17433841c287SSimon J. Gerraty	o var.c: with change to cond.c; ensure that nested variables
17443841c287SSimon J. Gerraty	within a variable name are expanded.
17453841c287SSimon J. Gerraty	o unit-tests/varmisc.mk: test for nested varname
17463841c287SSimon J. Gerraty
17473841c287SSimon J. Gerraty2020-06-29  Simon J Gerraty  <sjg@beast.crufty.net>
17483841c287SSimon J. Gerraty
17493841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200629
17503841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17513841c287SSimon J. Gerraty	o cond.c: do not eval unnecessary terms of conditionals.
17523841c287SSimon J. Gerraty
17533841c287SSimon J. Gerraty2020-06-25  Simon J Gerraty  <sjg@beast.crufty.net>
17543841c287SSimon J. Gerraty
17553841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200625
17563841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17573841c287SSimon J. Gerraty	o meta.c: report error if lseek in filemon_read fails
17583841c287SSimon J. Gerraty
17593841c287SSimon J. Gerraty2020-06-22  Simon J Gerraty  <sjg@beast.crufty.net>
17603841c287SSimon J. Gerraty
17613841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200622
17623841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17633841c287SSimon J. Gerraty	o dieQuietly: ignore OP_SUBMAKE as too aggressive
17643841c287SSimon J. Gerraty
17653841c287SSimon J. Gerraty2020-06-19  Simon J Gerraty  <sjg@beast.crufty.net>
17663841c287SSimon J. Gerraty
17673841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200619
17683841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17693841c287SSimon J. Gerraty	o str.c: performance improvement for Str_Match for multiple '*'
17703841c287SSimon J. Gerraty	o dieQuietly: supress the failure output from make
17713841c287SSimon J. Gerraty	when failing node is a sub-make or a sibling failed.
17723841c287SSimon J. Gerraty	This cuts down greatly on unhelpful noise at the end of
17733841c287SSimon J. Gerraty	build log.  Disabled by -dj or .MAKE.DIE_QUIETLY=no
17743841c287SSimon J. Gerraty
17753841c287SSimon J. Gerraty2020-06-10  Simon J Gerraty  <sjg@beast.crufty.net>
17763841c287SSimon J. Gerraty
17773841c287SSimon J. Gerraty	* FILES: add LICENSE to appease some packagers.
17783841c287SSimon J. Gerraty	This is an attempt to fairly represent the license on almost
17793841c287SSimon J. Gerraty	200 files, which are almost all BSD-3-Clause
17803841c287SSimon J. Gerraty	The few exceptions being more liberal.
17813841c287SSimon J. Gerraty
17823841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200610
17833841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
17843841c287SSimon J. Gerraty	o unit test for :Or
17853841c287SSimon J. Gerraty
1786ef0b2538SSimon J. Gerraty2020-06-06  Simon J Gerraty  <sjg@beast.crufty.net>
1787ef0b2538SSimon J. Gerraty
1788ef0b2538SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200606
1789ef0b2538SSimon J. Gerraty	Merge with NetBSD make, pick up
1790ef0b2538SSimon J. Gerraty	o make.1: cleanup
1791ef0b2538SSimon J. Gerraty
1792ef0b2538SSimon J. Gerraty	* Makefile: fix depends for main.o which broke MAKE_VERSION
1793ef0b2538SSimon J. Gerraty
1794ef0b2538SSimon J. Gerraty2020-06-05  Simon J Gerraty  <sjg@beast.crufty.net>
1795ef0b2538SSimon J. Gerraty
1796ef0b2538SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200605
1797ef0b2538SSimon J. Gerraty	Merge with NetBSD make, pick up
1798ef0b2538SSimon J. Gerraty	o dir.c: cached_stats - don't confuse stat and lstat results.
1799ef0b2538SSimon J. Gerraty	o var.c: add :Or for reverse sort.
1800ef0b2538SSimon J. Gerraty
1801ef0b2538SSimon J. Gerraty2020-05-24  Simon J Gerraty  <sjg@beast.crufty.net>
1802ef0b2538SSimon J. Gerraty
1803ef0b2538SSimon J. Gerraty	* configure.in: add AC_PROG_CC_C99 for mipspro compiler
1804ef0b2538SSimon J. Gerraty	also if --with-filemon= specifies path to filemon.h
1805ef0b2538SSimon J. Gerraty	set use_filemon=dev
1806ef0b2538SSimon J. Gerraty	* dirname.c: remove include of namespace.h
1807ef0b2538SSimon J. Gerraty
180849caa483SSimon J. Gerraty2020-05-17  Simon J Gerraty  <sjg@beast.crufty.net>
180949caa483SSimon J. Gerraty
181049caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200517
181149caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
181249caa483SSimon J. Gerraty	o modified dollar tests to avoid shell dependencies
181349caa483SSimon J. Gerraty	o new tests for .INCLUDEFROM
181449caa483SSimon J. Gerraty
181549caa483SSimon J. Gerraty2020-05-16  Simon J Gerraty  <sjg@beast.crufty.net>
181649caa483SSimon J. Gerraty
181749caa483SSimon J. Gerraty	* unit-tests/dollar.mk: tweak  '1 dollar literal' test
181849caa483SSimon J. Gerraty	to not depend so much on shell behavior
181949caa483SSimon J. Gerraty
182049caa483SSimon J. Gerraty2020-05-10  Simon J Gerraty  <sjg@beast.crufty.net>
182149caa483SSimon J. Gerraty
182249caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200510
182349caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
182449caa483SSimon J. Gerraty	o unit test for dollar handling
182549caa483SSimon J. Gerraty
182649caa483SSimon J. Gerraty2020-05-06  Simon J Gerraty  <sjg@beast.crufty.net>
182749caa483SSimon J. Gerraty
182849caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200506
182949caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
183049caa483SSimon J. Gerraty	o str.c: empty string does not match % pattern
183149caa483SSimon J. Gerraty	  plus unit-test changes
183249caa483SSimon J. Gerraty
183349caa483SSimon J. Gerraty2020-05-04  Simon J Gerraty  <sjg@beast.crufty.net>
183449caa483SSimon J. Gerraty
183549caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200504
183649caa483SSimon J. Gerraty	May the 4th be with you
183749caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
183849caa483SSimon J. Gerraty	o var.c: import handling of old sysV style modifier using '%'
183949caa483SSimon J. Gerraty	o str.c: refactor brk_string
184049caa483SSimon J. Gerraty	o unit-tests: add test case for lazy conditions
184149caa483SSimon J. Gerraty
184249caa483SSimon J. Gerraty2020-04-18  Simon J Gerraty  <sjg@beast.crufty.net>
184349caa483SSimon J. Gerraty
184449caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200418
184549caa483SSimon J. Gerraty
184649caa483SSimon J. Gerraty	* configure.in: use_makefile=no for cygwin et al.
184749caa483SSimon J. Gerraty	case insensitive filesystems just don't work if both
184849caa483SSimon J. Gerraty	makefile and Makefile exist.
184949caa483SSimon J. Gerraty	NOTE: bmake does not support cygwin and likely never will,
185049caa483SSimon J. Gerraty	but if brave souls want to try it - help them out.
185149caa483SSimon J. Gerraty
185249caa483SSimon J. Gerraty2020-04-02  Simon J Gerraty  <sjg@beast.crufty.net>
185349caa483SSimon J. Gerraty
185449caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200402
185549caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
185649caa483SSimon J. Gerraty	o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD
185749caa483SSimon J. Gerraty	  a blank command is perfectly valid.
185849caa483SSimon J. Gerraty
185949caa483SSimon J. Gerraty2020-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
186049caa483SSimon J. Gerraty
186149caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200330
186249caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
186349caa483SSimon J. Gerraty	o make.h: extern debug_file
186449caa483SSimon J. Gerraty
186549caa483SSimon J. Gerraty2020-03-18  Simon J Gerraty  <sjg@beast.crufty.net>
186649caa483SSimon J. Gerraty
186749caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200318
186849caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
186949caa483SSimon J. Gerraty	o meta.c: meta_oodate, check for corrupted meta file
187049caa483SSimon J. Gerraty	  earlier and more often.
187149caa483SSimon J. Gerraty
187249caa483SSimon J. Gerraty2020-02-20  Simon J Gerraty  <sjg@beast.crufty.net>
187349caa483SSimon J. Gerraty
187449caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200220
187549caa483SSimon J. Gerraty
187649caa483SSimon J. Gerraty2020-02-19  Simon J Gerraty  <sjg@beast.crufty.net>
187749caa483SSimon J. Gerraty
187849caa483SSimon J. Gerraty	* boot-strap: unset MAKEFLAGS
187949caa483SSimon J. Gerraty
188049caa483SSimon J. Gerraty2020-02-12  Simon J Gerraty  <sjg@beast.crufty.net>
188149caa483SSimon J. Gerraty
188249caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200212
188349caa483SSimon J. Gerraty	* meta.c: meta_compat_parent check for USE_FILEMON
188449caa483SSimon J. Gerraty	  patch from Soeren Tempel
188549caa483SSimon J. Gerraty
188649caa483SSimon J. Gerraty2020-02-05  Simon J Gerraty  <sjg@beast.crufty.net>
188749caa483SSimon J. Gerraty
188849caa483SSimon J. Gerraty	* VERSION: 20200205
188949caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
189049caa483SSimon J. Gerraty	o meta.c: fix compat mode, need to call meta_job_output()
189149caa483SSimon J. Gerraty	o job.c: extra fds for meta mode not needed if using filemon_dev
189249caa483SSimon J. Gerraty
189349caa483SSimon J. Gerraty2020-01-22  Simon J Gerraty  <sjg@beast.crufty.net>
189449caa483SSimon J. Gerraty
189549caa483SSimon J. Gerraty	* VERSION: 20200122
189649caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
189749caa483SSimon J. Gerraty	o meta.c: avoid passing NULL to filemon_*() when meta_needed()
189849caa483SSimon J. Gerraty	  returns FALSE.
189949caa483SSimon J. Gerraty
190049caa483SSimon J. Gerraty2020-01-21  Simon J Gerraty  <sjg@beast.crufty.net>
190149caa483SSimon J. Gerraty
190249caa483SSimon J. Gerraty	* VERSION: 20200121
190349caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
190449caa483SSimon J. Gerraty	o filemon/filemon_{dev,ktrace}.c: allow selection of
190549caa483SSimon J. Gerraty	  filemon implementation.  filemon_dev.c uses the kernel module
190649caa483SSimon J. Gerraty	  while filemon_ktrace.c leverages the fktrace api available in
190749caa483SSimon J. Gerraty	  NetBSD.  filemon_ktrace.c can hopefully form the basis for
190849caa483SSimon J. Gerraty	  adding support for other tracing mechanisms such as strace on
190949caa483SSimon J. Gerraty	  Linux.
191049caa483SSimon J. Gerraty	o meta.c: when target is out-of-date per normal make rules
191149caa483SSimon J. Gerraty	  record value of .OODATE in meta file.
191249caa483SSimon J. Gerraty
191349caa483SSimon J. Gerraty2019-09-26  Simon J Gerraty  <sjg@beast.crufty.net>
191449caa483SSimon J. Gerraty
191549caa483SSimon J. Gerraty	* VERSION: 20190926
191649caa483SSimon J. Gerraty	  Merge with NetBSD make, pick up
191749caa483SSimon J. Gerraty	  o parse.c: don't pass NULL to realpath(3)
191849caa483SSimon J. Gerraty	    some versions cannot handle it.
191949caa483SSimon J. Gerraty
192049caa483SSimon J. Gerraty2019-04-09  Simon J Gerraty  <sjg@beast.crufty.net>
192149caa483SSimon J. Gerraty
192249caa483SSimon J. Gerraty	* VERSION: 20190409
192349caa483SSimon J. Gerraty	  Merge with NetBSD make, pick up
192449caa483SSimon J. Gerraty	  o parse.c: ParseDoDependency: free paths rather than assert
192549caa483SSimon J. Gerraty
192649caa483SSimon J. Gerraty2018-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
192749caa483SSimon J. Gerraty
192849caa483SSimon J. Gerraty	* VERSION: 20181222
192949caa483SSimon J. Gerraty
193049caa483SSimon J. Gerraty	* configure.in: add --without-makefile to avoid generating
193149caa483SSimon J. Gerraty	  makefile and make-bootstrap.sh
193249caa483SSimon J. Gerraty
193349caa483SSimon J. Gerraty	* include Makefile.inc if it exists
193449caa483SSimon J. Gerraty
193549caa483SSimon J. Gerraty	* Use Makefile and Makefile.config.in in unit-tests
193649caa483SSimon J. Gerraty	  so we can use just: make obj && make && make test
193749caa483SSimon J. Gerraty	  when bmake is already available.
193849caa483SSimon J. Gerraty	  We add --without-makefile to CONFIGURE_ARGS in this case.
193949caa483SSimon J. Gerraty
194049caa483SSimon J. Gerraty	* tweak bsd.after-import.mk (captures Makefile.config etc
194149caa483SSimon J. Gerraty	  after import to FreeBSD for example) to cope with all the above.
194249caa483SSimon J. Gerraty
1943dfd669abSSimon J. Gerraty2018-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
1944dfd669abSSimon J. Gerraty
1945dfd669abSSimon J. Gerraty	* VERSION: 20181221
1946dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1947dfd669abSSimon J. Gerraty	  o parse.c: ParseVErrorInternal use .PARSEDIR
1948dfd669abSSimon J. Gerraty	    and apply if relative, and then use .PARSEFILE
1949dfd669abSSimon J. Gerraty	    for consistent result.
1950dfd669abSSimon J. Gerraty
1951dfd669abSSimon J. Gerraty2018-12-20  Simon J Gerraty  <sjg@beast.crufty.net>
1952dfd669abSSimon J. Gerraty
1953dfd669abSSimon J. Gerraty	* VERSION: 20181220
1954dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1955dfd669abSSimon J. Gerraty	  o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR
1956dfd669abSSimon J. Gerraty	    is relative
1957dfd669abSSimon J. Gerraty	  o var.c: avoid SEGFAULT in .unexport-env
1958dfd669abSSimon J. Gerraty	    when MAKELEVEL is not set
1959dfd669abSSimon J. Gerraty
1960dfd669abSSimon J. Gerraty2018-12-16  Simon J Gerraty  <sjg@beast.crufty.net>
1961dfd669abSSimon J. Gerraty
1962dfd669abSSimon J. Gerraty	* VERSION: 20181216
1963dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1964dfd669abSSimon J. Gerraty	  o fix for unit-tests/varquote.mk on Debian
1965dfd669abSSimon J. Gerraty
19662eae894cSSimon J. Gerraty2018-09-21  Simon J. Gerraty  <sjg@bad.crufty.net>
19672eae894cSSimon J. Gerraty
19682eae894cSSimon J. Gerraty	* VERSION: 20180919
19692eae894cSSimon J. Gerraty	  Merge with NetBSD make, pick up
19702eae894cSSimon J. Gerraty	  o var.c: add :q
19712eae894cSSimon J. Gerraty	  o dir.c: cleanup caching of stats
19722eae894cSSimon J. Gerraty
19732eae894cSSimon J. Gerraty2018-09-21  Simon J Gerraty  <sjg@beast.crufty.net>
19742eae894cSSimon J. Gerraty
19752eae894cSSimon J. Gerraty	* Makefile.config.in: use += where it makes sense.
19762eae894cSSimon J. Gerraty
1977494f7191SSimon J. Gerraty2018-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
1978494f7191SSimon J. Gerraty
1979494f7191SSimon J. Gerraty	* VERSION: 20180512
1980494f7191SSimon J. Gerraty	  Merge with NetBSD make, pick up
1981494f7191SSimon J. Gerraty	  o job.c: skip polling job token pipe
1982494f7191SSimon J. Gerraty
1983494f7191SSimon J. Gerraty2018-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1984494f7191SSimon J. Gerraty
1985494f7191SSimon J. Gerraty	* VERSION: 20180405
1986494f7191SSimon J. Gerraty	  Merge with NetBSD make, pick up
1987494f7191SSimon J. Gerraty	  o parse.c: be more cautious about detecting depenency line
1988494f7191SSimon J. Gerraty	    rather than sysV style include.
1989494f7191SSimon J. Gerraty
199050d2e745SSimon J. Gerraty2018-02-22  Simon J. Gerraty  <sjg@bad.crufty.net>
199150d2e745SSimon J. Gerraty
199250d2e745SSimon J. Gerraty	* VERSION: 20180222
199350d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
199450d2e745SSimon J. Gerraty	  o parse.c: avoid calling sysconf for every call to loadfile
199550d2e745SSimon J. Gerraty
199650d2e745SSimon J. Gerraty2018-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
199750d2e745SSimon J. Gerraty
199850d2e745SSimon J. Gerraty	* VERSION: 20180218
199950d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
200050d2e745SSimon J. Gerraty	  o var.c: Var_Set handle NULL value anytime.
200150d2e745SSimon J. Gerraty
200250d2e745SSimon J. Gerraty2018-02-12  Simon J. Gerraty  <sjg@bad.crufty.net>
200350d2e745SSimon J. Gerraty
200450d2e745SSimon J. Gerraty	* VERSION: 20180212
200550d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
200650d2e745SSimon J. Gerraty	  o parse.c: do not treat .info as warning with -W
200750d2e745SSimon J. Gerraty
200850d2e745SSimon J. Gerraty2017-12-07  Simon J. Gerraty  <sjg@bad.crufty.net>
200950d2e745SSimon J. Gerraty
201050d2e745SSimon J. Gerraty	* VERSION: 20171207
201150d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
201250d2e745SSimon J. Gerraty	  o var.c: Var_Append use Var_Set if var not previously set
201350d2e745SSimon J. Gerraty	    so that VAR_CMD is handled correctly.
201450d2e745SSimon J. Gerraty	    Add a suitable unit-test.
201550d2e745SSimon J. Gerraty
201650d2e745SSimon J. Gerraty2017-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
201750d2e745SSimon J. Gerraty
201850d2e745SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20171126
201950d2e745SSimon J. Gerraty
202050d2e745SSimon J. Gerraty	* aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__
202150d2e745SSimon J. Gerraty	  since AC_TRY_COMPILE puts input inside main()
202250d2e745SSimon J. Gerraty	  which upsets modern compilers.
202350d2e745SSimon J. Gerraty
202450d2e745SSimon J. Gerraty2017-11-18  Simon J. Gerraty  <sjg@bad.crufty.net>
202550d2e745SSimon J. Gerraty
202650d2e745SSimon J. Gerraty	* VERSION: 20171118
202750d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
202850d2e745SSimon J. Gerraty	  o var.c: do not append to variable set on command line
202950d2e745SSimon J. Gerraty	    add unit-test to catch this.
203050d2e745SSimon J. Gerraty
2031e22fef7dSSimon J. Gerraty2017-10-28  Simon J. Gerraty  <sjg@bad.crufty.net>
2032e22fef7dSSimon J. Gerraty
2033e22fef7dSSimon J. Gerraty	* VERSION: 20171028
2034e22fef7dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2035e22fef7dSSimon J. Gerraty	  o main.c: ignore empty MAKEOBJDIR
2036e22fef7dSSimon J. Gerraty
2037e22fef7dSSimon J. Gerraty	* Makefile.config.in:
2038e22fef7dSSimon J. Gerraty	  make @prefix@ @machine*@ and @default_sys_path@ defaults.
2039e22fef7dSSimon J. Gerraty
2040e22fef7dSSimon J. Gerraty2017-10-05  Simon J. Gerraty  <sjg@bad.crufty.net>
2041e22fef7dSSimon J. Gerraty
2042e22fef7dSSimon J. Gerraty	* VERSION: 20171005
2043e22fef7dSSimon J. Gerraty
2044e22fef7dSSimon J. Gerraty	* unit-tests/dotwait.mk: redirect stderr through pipe for more
2045e22fef7dSSimon J. Gerraty	  consistent result on some platforms.
2046e22fef7dSSimon J. Gerraty
2047e22fef7dSSimon J. Gerraty2017-08-13  Simon J. Gerraty  <sjg@bad.crufty.net>
2048e22fef7dSSimon J. Gerraty
2049e22fef7dSSimon J. Gerraty	* machine.sh: entry for AIX
2050e22fef7dSSimon J. Gerraty
2051e22fef7dSSimon J. Gerraty2017-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
2052e22fef7dSSimon J. Gerraty
2053e22fef7dSSimon J. Gerraty	* VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION
2054e22fef7dSSimon J. Gerraty	  to a file that can be included by configure as well as make.
2055e22fef7dSSimon J. Gerraty	  This allows configure to set set _MAKE_VERSION in make-bootstrap.sh
2056e22fef7dSSimon J. Gerraty
2057e22fef7dSSimon J. Gerraty2017-08-10  Simon J. Gerraty  <sjg@bad.crufty.net>
2058e22fef7dSSimon J. Gerraty
2059e22fef7dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170810
2060e22fef7dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2061e22fef7dSSimon J. Gerraty	  o meta.c: if target is in subdir we only need subdir name in
2062e22fef7dSSimon J. Gerraty	    meta_name.
2063e22fef7dSSimon J. Gerraty
2064c7019bf7SSimon J. Gerraty2017-07-20  Simon J. Gerraty  <sjg@bad.crufty.net>
2065c7019bf7SSimon J. Gerraty
2066c7019bf7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170720
2067c7019bf7SSimon J. Gerraty	  Merge with NetBSD make, pick up
2068c7019bf7SSimon J. Gerraty	  o compat.c: pass SIGINT etc onto child and wait for it to exit
2069c7019bf7SSimon J. Gerraty	    before we self-terminate.
2070c7019bf7SSimon J. Gerraty
20718695518cSSimon J. Gerraty2017-07-11  Simon J. Gerraty  <sjg@bad.crufty.net>
20728695518cSSimon J. Gerraty
20738695518cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170711
20748695518cSSimon J. Gerraty	  forgot to update after merge on 20170708 ;-)
20758695518cSSimon J. Gerraty	  o main.c: refactor to reduce size of main function.
20768695518cSSimon J. Gerraty	    add -v option to always fully expand values.
20778695518cSSimon J. Gerraty	  o meta.c: ensure command output in meta file has ending newline
20788695518cSSimon J. Gerraty	    even when filemon not being used.
20798695518cSSimon J. Gerraty	    When matching ${.MAKE.META.IGNORE_PATTERNS} do not use
20808695518cSSimon J. Gerraty	    pathname via ':L' since any ':' in pathname breaks that.
20818695518cSSimon J. Gerraty	    Instead set a '${.p.}' to pathname in the target context and
20828695518cSSimon J. Gerraty	    use that.
20838695518cSSimon J. Gerraty
2084cac6fd11SSimon J. Gerraty2017-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
2085cac6fd11SSimon J. Gerraty
2086cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170510
2087cac6fd11SSimon J. Gerraty	  Merge with NetBSD make, pick up
2088cac6fd11SSimon J. Gerraty	  o main.c: Main_SetObjdir: ensure buf2 is in scope
2089cac6fd11SSimon J. Gerraty
2090cac6fd11SSimon J. Gerraty2017-05-08  Simon J. Gerraty  <sjg@bad.crufty.net>
2091cac6fd11SSimon J. Gerraty
2092cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170505
2093cac6fd11SSimon J. Gerraty	  see mk/ChangeLog
2094cac6fd11SSimon J. Gerraty
2095cac6fd11SSimon J. Gerraty2017-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
2096cac6fd11SSimon J. Gerraty
2097cac6fd11SSimon J. Gerraty	* parse.c: not everyone has stdint.h
2098cac6fd11SSimon J. Gerraty
2099cac6fd11SSimon J. Gerraty2017-05-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2100cac6fd11SSimon J. Gerraty
2101cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170501
2102cac6fd11SSimon J. Gerraty	  see mk/ChangeLog
2103cac6fd11SSimon J. Gerraty
2104cac6fd11SSimon J. Gerraty2017-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
2105cac6fd11SSimon J. Gerraty
2106cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170421
2107cac6fd11SSimon J. Gerraty	  Merge with NetBSD make, pick up
2108cac6fd11SSimon J. Gerraty	  o str.c: Str_Match: fix closure tests for [^] and add unit-test.
2109cac6fd11SSimon J. Gerraty
2110e1cee40dSSimon J. Gerraty2017-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
2111e1cee40dSSimon J. Gerraty
2112e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170420
2113e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2114e1cee40dSSimon J. Gerraty	  o main.c: only use -C arg "as is" if it contains no
2115e1cee40dSSimon J. Gerraty	    relative component.
2116e1cee40dSSimon J. Gerraty
2117e1cee40dSSimon J. Gerraty2017-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
2118e1cee40dSSimon J. Gerraty
2119e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170418
2120e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2121e1cee40dSSimon J. Gerraty	  o main.c: fix Main_SetObjdir() for relative paths (eg obj).
2122e1cee40dSSimon J. Gerraty
2123e1cee40dSSimon J. Gerraty2017-04-17  Simon J. Gerraty  <sjg@bad.crufty.net>
2124e1cee40dSSimon J. Gerraty
2125e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170417
2126e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2127e1cee40dSSimon J. Gerraty	  o fixes a number of coverity complaints
2128e1cee40dSSimon J. Gerraty	    - check return value of fseek, fcntl
2129e1cee40dSSimon J. Gerraty	    - plug memory leak in Dir_FindFile, Var_LoopExpand,
2130e1cee40dSSimon J. Gerraty	      JobPrintCommand, ParseTraditionalInclude
2131e1cee40dSSimon J. Gerraty	    - use bmake_malloc() where NULL is not tollerated
2132e1cee40dSSimon J. Gerraty	    - use MAKE_ATTR_UNUSED rather that kludges like
2133e1cee40dSSimon J. Gerraty	      return(unused ? 0 : 0)
2134e1cee40dSSimon J. Gerraty	    - use purge_cached_realpaths() rather than abuse cached_realpath()
2135e1cee40dSSimon J. Gerraty
2136b46b9039SSimon J. Gerraty2017-04-13  Simon J. Gerraty  <sjg@bad.crufty.net>
2137b46b9039SSimon J. Gerraty
2138b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170413
2139b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
2140b46b9039SSimon J. Gerraty	  o main.c: when setting .OBJDIR ignore '$' in paths.
2141b46b9039SSimon J. Gerraty
2142b46b9039SSimon J. Gerraty	* job.c: use MALLOC_OPTIONS to set malloc_options.
2143b46b9039SSimon J. Gerraty
2144b46b9039SSimon J. Gerraty2017-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2145b46b9039SSimon J. Gerraty
2146b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170411
2147b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
2148b46b9039SSimon J. Gerraty	  o str.c: Str_Match: allow [^a-z] to behave as expected.
2149b46b9039SSimon J. Gerraty
2150b46b9039SSimon J. Gerraty2017-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2151b46b9039SSimon J. Gerraty
2152b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170326
2153b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
2154b46b9039SSimon J. Gerraty	  o main.c: purge relative paths from realpath cache when .OBJDIR
2155b46b9039SSimon J. Gerraty	    is changed.
2156b46b9039SSimon J. Gerraty
2157b46b9039SSimon J. Gerraty2017-03-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2158b46b9039SSimon J. Gerraty
2159b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170311
2160b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
2161b46b9039SSimon J. Gerraty          o main.c: only use -C arg "as is" if it starts with '/'.
2162b46b9039SSimon J. Gerraty
21631ce939a7SSimon J. Gerraty2017-03-01  Simon J. Gerraty  <sjg@bad.crufty.net>
21641ce939a7SSimon J. Gerraty
21651ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170301
21661ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
2167b46b9039SSimon J. Gerraty	  o main.c: use -C arg "as is" rather than getcwd()
21681ce939a7SSimon J. Gerraty	    if they identify the same directory.
21691ce939a7SSimon J. Gerraty	  o parse.c: ensure loadfile buffer is \n terminated in non-mmap case
21701ce939a7SSimon J. Gerraty
21711ce939a7SSimon J. Gerraty2017-02-01  Simon J. Gerraty  <sjg@bad.crufty.net>
21721ce939a7SSimon J. Gerraty
21731ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170201
21741ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
21751ce939a7SSimon J. Gerraty	  o var.c: allow :_=var and avoid use of special context.
21761ce939a7SSimon J. Gerraty
21771ce939a7SSimon J. Gerraty2017-01-30  Simon J. Gerraty  <sjg@bad.crufty.net>
21781ce939a7SSimon J. Gerraty
21791ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170130
21801ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
21811ce939a7SSimon J. Gerraty	  o var.c: add :range and :_
21821ce939a7SSimon J. Gerraty	  o main.c: partially initialize Dir_* before MainParseArgs()
21831ce939a7SSimon J. Gerraty	    can be called.
21841ce939a7SSimon J. Gerraty	    If -V, skip Main_ExportMAKEFLAGS()
21851ce939a7SSimon J. Gerraty
21861ce939a7SSimon J. Gerraty2017-01-14  Simon J. Gerraty  <sjg@bad.crufty.net>
21871ce939a7SSimon J. Gerraty
21881ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170114
21891ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
21901ce939a7SSimon J. Gerraty	  o var.c: allow specifying the utc value used by :{gm,local}time
21911ce939a7SSimon J. Gerraty
219245447996SSimon J. Gerraty2016-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
219345447996SSimon J. Gerraty
219445447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161212
219545447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
219645447996SSimon J. Gerraty          o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too.
219745447996SSimon J. Gerraty
219845447996SSimon J. Gerraty2016-12-09  Simon J. Gerraty  <sjg@bad.crufty.net>
219945447996SSimon J. Gerraty
220045447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161209
220145447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
220245447996SSimon J. Gerraty	  o main.c: cleanup setting of .OBJDIR
220345447996SSimon J. Gerraty	  o parse.c: avoid coredump from (var)=val
220445447996SSimon J. Gerraty
220545447996SSimon J. Gerraty2016-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
220645447996SSimon J. Gerraty
220745447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161126
220845447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
220945447996SSimon J. Gerraty	  o make.c: Make_OODate: report src node name if path not set
221045447996SSimon J. Gerraty
221145447996SSimon J. Gerraty2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
221245447996SSimon J. Gerraty
221345447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160926
221445447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
221545447996SSimon J. Gerraty	  o support for .DELETE_ON_ERROR: (remove targets that fail)
221645447996SSimon J. Gerraty
221745447996SSimon J. Gerraty2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
221845447996SSimon J. Gerraty
221945447996SSimon J. Gerraty	* Makefile MAN: tweak .Dt to match ${PROG}
222045447996SSimon J. Gerraty
222195e3ed2cSSimon J. Gerraty2016-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
222295e3ed2cSSimon J. Gerraty
222395e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160818
222495e3ed2cSSimon J. Gerraty	  its a neater number; pick up whitespace fixes to man page.
222595e3ed2cSSimon J. Gerraty
222695e3ed2cSSimon J. Gerraty2016-08-17  Simon J. Gerraty  <sjg@bad.crufty.net>
222795e3ed2cSSimon J. Gerraty
222895e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160817
222995e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
223095e3ed2cSSimon J. Gerraty	  o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore()
223195e3ed2cSSimon J. Gerraty	    so we can call it before adding entries to missingFiles.
223295e3ed2cSSimon J. Gerraty	    Thus we do not track files we have been told to ignore.
223395e3ed2cSSimon J. Gerraty
223495e3ed2cSSimon J. Gerraty2016-08-15  Simon J. Gerraty  <sjg@bad.crufty.net>
223595e3ed2cSSimon J. Gerraty
223695e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160815
223795e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
223895e3ed2cSSimon J. Gerraty	  o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to
223995e3ed2cSSimon J. Gerraty	    pathnames, and skip if the expansion is empty.
224095e3ed2cSSimon J. Gerraty	    Useful for dirdeps.mk when checking DIRDEPS_CACHE.
224195e3ed2cSSimon J. Gerraty
224295e3ed2cSSimon J. Gerraty2016-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
224395e3ed2cSSimon J. Gerraty
224495e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160812
224595e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
224695e3ed2cSSimon J. Gerraty	  o meta.c: remove all missingFiles entries that match a deleted
224795e3ed2cSSimon J. Gerraty	    dir.
224895e3ed2cSSimon J. Gerraty	  o main.c: set .ERROR_CMD if possible.
224995e3ed2cSSimon J. Gerraty
225039ac7ef4SSimon J. Gerraty2016-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
225139ac7ef4SSimon J. Gerraty
225239ac7ef4SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160606
225339ac7ef4SSimon J. Gerraty	  Merge with NetBSD make, pick up
225439ac7ef4SSimon J. Gerraty	  o dir.c: extend mtimes cache to others via cached_stat()
225539ac7ef4SSimon J. Gerraty
2256b778b302SSimon J. Gerraty2016-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
2257b778b302SSimon J. Gerraty
2258b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160604
2259b778b302SSimon J. Gerraty	  Merge with NetBSD make, pick up
2260b778b302SSimon J. Gerraty	  o meta.c: missing filemon data is only relevant if we read a
2261b778b302SSimon J. Gerraty	    meta file.
2262b778b302SSimon J. Gerraty	    Also do not return oodate for a missing metafile if gn->path
2263b778b302SSimon J. Gerraty	    points to .CURDIR
2264b778b302SSimon J. Gerraty
2265b778b302SSimon J. Gerraty2016-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
2266b778b302SSimon J. Gerraty
2267b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160602
2268b778b302SSimon J. Gerraty	  Merge with NetBSD make, pick up
2269b778b302SSimon J. Gerraty	  o cached_realpath(): avoid hitting filesystem more than necessary.
2270b778b302SSimon J. Gerraty	  o meta.c: refactor need_meta decision, add knobs for
2271b778b302SSimon J. Gerraty	    missing meta file and filemon data wrt out-of-datedness.
2272b778b302SSimon J. Gerraty
2273b778b302SSimon J. Gerraty2016-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
2274b778b302SSimon J. Gerraty
2275b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160528
2276b778b302SSimon J. Gerraty
2277b778b302SSimon J. Gerraty	* boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION
2278b778b302SSimon J. Gerraty
2279e48f47ddSSimon J. Gerraty2016-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
2280e48f47ddSSimon J. Gerraty
2281e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160512
2282e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2283e48f47ddSSimon J. Gerraty	  o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS
2284e48f47ddSSimon J. Gerraty	    this is useful for gcov builds.
2285e48f47ddSSimon J. Gerraty	  o propagate errors from filemon(4).
2286e48f47ddSSimon J. Gerraty
2287e48f47ddSSimon J. Gerraty2016-05-09  Simon J. Gerraty  <sjg@bad.crufty.net>
2288e48f47ddSSimon J. Gerraty
2289e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160509
2290e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2291e48f47ddSSimon J. Gerraty	  o remove use of non-standard types u_int etc.
2292e48f47ddSSimon J. Gerraty	  o meta.c: apply realpath() before matching against metaIgnorePaths
2293e48f47ddSSimon J. Gerraty
2294e48f47ddSSimon J. Gerraty2016-04-04  Simon J. Gerraty  <sjg@bad.crufty.net>
2295e48f47ddSSimon J. Gerraty
2296e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160404
2297e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2298e48f47ddSSimon J. Gerraty	  o allow makefile to set .MAKE.JOBS
2299e48f47ddSSimon J. Gerraty
2300e48f47ddSSimon J. Gerraty	* Makefile (PROG_NAME): use ${_MAKE_VERSION}
2301e48f47ddSSimon J. Gerraty
23023bebe729SSimon J. Gerraty2016-03-15  Simon J. Gerraty  <sjg@bad.crufty.net>
23033bebe729SSimon J. Gerraty
23043bebe729SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160315
23053bebe729SSimon J. Gerraty	  Merge with NetBSD make, pick up
23063bebe729SSimon J. Gerraty	  o fix handling of archive members
23073bebe729SSimon J. Gerraty
23083bebe729SSimon J. Gerraty2016-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
23093bebe729SSimon J. Gerraty
23103bebe729SSimon J. Gerraty	* Makefile (_MAKE_VERSION): rename variable to avoid interference
23113bebe729SSimon J. Gerraty	  with checks for ${MAKE_VERSION}
23123bebe729SSimon J. Gerraty
23133bebe729SSimon J. Gerraty2016-03-10  Simon J. Gerraty  <sjg@bad.crufty.net>
23143bebe729SSimon J. Gerraty
23153bebe729SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160310
23163bebe729SSimon J. Gerraty	  Merge with NetBSD make, pick up
23173bebe729SSimon J. Gerraty	  o meta.c: treat missing Read file same as Write, incase we Delete it.
23183bebe729SSimon J. Gerraty
2319be19d90bSSimon J. Gerraty2016-03-07  Simon J. Gerraty  <sjg@bad.crufty.net>
2320be19d90bSSimon J. Gerraty
2321be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160307
2322be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2323be19d90bSSimon J. Gerraty	  o var.c: fix :ts\nnn to be octal by default.
2324be19d90bSSimon J. Gerraty	  o meta.c: meta_finish() to cleanup memory.
2325be19d90bSSimon J. Gerraty
2326be19d90bSSimon J. Gerraty2016-02-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2327be19d90bSSimon J. Gerraty
2328be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160226
2329be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2330be19d90bSSimon J. Gerraty	  o meta.c: allow meta file for makeDepend if makefiles want it.
2331be19d90bSSimon J. Gerraty
2332be19d90bSSimon J. Gerraty2016-02-19  Simon J. Gerraty  <sjg@bad.crufty.net>
2333be19d90bSSimon J. Gerraty
2334be19d90bSSimon J. Gerraty	* var.c: default .MAKE.SAVE_DOLLARS to FALSE
2335be19d90bSSimon J. Gerraty	  for backwards compatability.
2336be19d90bSSimon J. Gerraty
2337be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160220
2338be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2339be19d90bSSimon J. Gerraty	  o var.c: add knob to control handling of '$$' in :=
2340be19d90bSSimon J. Gerraty
2341be19d90bSSimon J. Gerraty2016-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
2342be19d90bSSimon J. Gerraty
2343be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160218
2344be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2345be19d90bSSimon J. Gerraty	  o var.c: add .export-literal allows us to fix sys.clean-env.mk
2346be19d90bSSimon J. Gerraty	    post the changes to Var_Subst.
2347be19d90bSSimon J. Gerraty	    Var_Subst now takes flags, and does not consume '$$' in :=
2348be19d90bSSimon J. Gerraty
2349be19d90bSSimon J. Gerraty2016-02-17  Simon J. Gerraty  <sjg@bad.crufty.net>
2350be19d90bSSimon J. Gerraty
2351be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160217
2352be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2353be19d90bSSimon J. Gerraty	  o var.c: preserve '$$' in :=
2354be19d90bSSimon J. Gerraty	  o parse.c: add .dinclude for handling included
2355be19d90bSSimon J. Gerraty	    makefile like .depend
2356be19d90bSSimon J. Gerraty
23576e050540SSimon J. Gerraty2015-12-20  Simon J. Gerraty  <sjg@bad.crufty.net>
23586e050540SSimon J. Gerraty
23596e050540SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151220
23606e050540SSimon J. Gerraty	  Merge with NetBSD make, pick up
23616e050540SSimon J. Gerraty	  o suff.c: re-initialize suffNull when clearing suffixes.
23626e050540SSimon J. Gerraty
2363ac3446e9SSimon J. Gerraty2015-12-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2364ac3446e9SSimon J. Gerraty
2365ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151201
2366ac3446e9SSimon J. Gerraty	  Merge with NetBSD make, pick up
2367ac3446e9SSimon J. Gerraty	  o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
2368ac3446e9SSimon J. Gerraty	  o meta.c: meta_oodate: use lstat(2) for checking link target
2369ac3446e9SSimon J. Gerraty	    in case it is a symlink.
2370ac3446e9SSimon J. Gerraty	  o var.c: avoid calling brk_string and Var_Export1 with empty
2371ac3446e9SSimon J. Gerraty	    strings.
2372ac3446e9SSimon J. Gerraty
2373ac3446e9SSimon J. Gerraty2015-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2374ac3446e9SSimon J. Gerraty
2375ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151126
2376ac3446e9SSimon J. Gerraty	  Merge with NetBSD make, pick up
2377ac3446e9SSimon J. Gerraty	  o parse.c: ParseTrackInput don't access beyond
2378ac3446e9SSimon J. Gerraty	    end of old value.
2379ac3446e9SSimon J. Gerraty
2380ac3446e9SSimon J. Gerraty2015-10-22  Simon J. Gerraty  <sjg@bad.crufty.net>
2381ac3446e9SSimon J. Gerraty
2382ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151022
2383ac3446e9SSimon J. Gerraty
2384ac3446e9SSimon J. Gerraty	* Add support for BSD/OS which lacks inttypes.h
2385ac3446e9SSimon J. Gerraty	  and really needs sys/param.h for sys/sysctl.h
2386ac3446e9SSimon J. Gerraty	  also 'type' is not a shell builtin.
2387ac3446e9SSimon J. Gerraty
2388ac3446e9SSimon J. Gerraty	* var.c: eliminate uint32_t and need for inttypes.h
2389ac3446e9SSimon J. Gerraty
2390ac3446e9SSimon J. Gerraty	* main.c: PrintOnError flush stdout before run .ERROR
2391ac3446e9SSimon J. Gerraty
2392ac3446e9SSimon J. Gerraty	* parse.c: cope with _SC_PAGESIZE not being defined.
2393ac3446e9SSimon J. Gerraty
2394ac3446e9SSimon J. Gerraty
23954c620fe5SSimon J. Gerraty2015-10-20  Simon J. Gerraty  <sjg@bad.crufty.net>
23964c620fe5SSimon J. Gerraty
23974c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151020
23984c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
23994c620fe5SSimon J. Gerraty	  o var.c: fix uninitialized var
24004c620fe5SSimon J. Gerraty
24014c620fe5SSimon J. Gerraty2015-10-12  Simon J. Gerraty  <sjg@bad.crufty.net>
24024c620fe5SSimon J. Gerraty
24034c620fe5SSimon J. Gerraty	* var.c: the conditional expressions used with ':?' can be
24044c620fe5SSimon J. Gerraty	expensive, if already discarding do not evaluate or expand
24054c620fe5SSimon J. Gerraty	anything.
24064c620fe5SSimon J. Gerraty
24074c620fe5SSimon J. Gerraty2015-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
24084c620fe5SSimon J. Gerraty
24094c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151010
24104c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
24114c620fe5SSimon J. Gerraty	  o Add Boolean wantit flag to Var_Subst and Var_Parse
24124c620fe5SSimon J. Gerraty	    when FALSE we know we are discarding the result and can
24134c620fe5SSimon J. Gerraty	    skip operations like Cmd_Exec.
24144c620fe5SSimon J. Gerraty
24154c620fe5SSimon J. Gerraty2015-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
24164c620fe5SSimon J. Gerraty
24174c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151009
24184c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
24194c620fe5SSimon J. Gerraty	  o var.c: don't check for NULL before free()
24204c620fe5SSimon J. Gerraty	  o meta.c: meta_oodate, do not hard code ignore of makeDependfile
24214c620fe5SSimon J. Gerraty
24224c620fe5SSimon J. Gerraty2015-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
24234c620fe5SSimon J. Gerraty
24244c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150910
24254c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
24264c620fe5SSimon J. Gerraty	  o main.c: with -w print Enter/Leaving messages for objdir too
24274c620fe5SSimon J. Gerraty	    if necessary.
24284c620fe5SSimon J. Gerraty	  o centralize shell metachar handling
24294c620fe5SSimon J. Gerraty
24304c620fe5SSimon J. Gerraty	* FILES: add metachar.[ch]
24314c620fe5SSimon J. Gerraty
2432128a4105SSimon J. Gerraty2015-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
2433128a4105SSimon J. Gerraty
2434128a4105SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150606
2435128a4105SSimon J. Gerraty	  Merge with NetBSD make, pick up
2436128a4105SSimon J. Gerraty	  o make.1: document .OBJDIR target
2437128a4105SSimon J. Gerraty
243828a6bc81SSimon J. Gerraty2015-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
243928a6bc81SSimon J. Gerraty
244028a6bc81SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150505
244128a6bc81SSimon J. Gerraty	  Merge with NetBSD make, pick up
244228a6bc81SSimon J. Gerraty	  o cond.c: be strict about lhs of comparison when evaluating .if
244328a6bc81SSimon J. Gerraty	    but less so when called from variable expansion.
244428a6bc81SSimon J. Gerraty	  o unit-tests/cond2.mk: test various error conditions
244528a6bc81SSimon J. Gerraty
244628a6bc81SSimon J. Gerraty2015-05-04  Simon J. Gerraty  <sjg@bad.crufty.net>
244728a6bc81SSimon J. Gerraty
244828a6bc81SSimon J. Gerraty	* machine.sh (MACHINE): Add Bitrig
244928a6bc81SSimon J. Gerraty	  patch from joerg@netbsd.org
245028a6bc81SSimon J. Gerraty
2451db29cad8SSimon J. Gerraty2015-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
2452db29cad8SSimon J. Gerraty
2453db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150418
2454db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2455db29cad8SSimon J. Gerraty	  o job.c: use memmove() rather than memcpy()
2456db29cad8SSimon J. Gerraty
2457db29cad8SSimon J. Gerraty	* unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL
2458db29cad8SSimon J. Gerraty	  case, so skip it.
2459db29cad8SSimon J. Gerraty
2460db29cad8SSimon J. Gerraty2015-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2461db29cad8SSimon J. Gerraty
2462db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150411
2463db29cad8SSimon J. Gerraty	  bump version - only mk/ changes.
2464db29cad8SSimon J. Gerraty
2465db29cad8SSimon J. Gerraty2015-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
2466db29cad8SSimon J. Gerraty
2467db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150410
2468db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2469db29cad8SSimon J. Gerraty	  o document different handling of '-' in jobs mode vs compat
2470db29cad8SSimon J. Gerraty	  o fix jobs mode so that '-' only applies to whole job
2471db29cad8SSimon J. Gerraty	    when shell lacks hasErrCtl
2472db29cad8SSimon J. Gerraty	  o meta.c: use separate vars to track lcwd and latestdir (read)
2473db29cad8SSimon J. Gerraty	    per process
2474db29cad8SSimon J. Gerraty
2475db29cad8SSimon J. Gerraty2015-04-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2476db29cad8SSimon J. Gerraty
2477db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150401
2478db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2479db29cad8SSimon J. Gerraty	  o meta.c: close meta file in child
2480db29cad8SSimon J. Gerraty
2481db29cad8SSimon J. Gerraty	* Makefile: use BINDIR.bmake if set.
2482db29cad8SSimon J. Gerraty	  Same for MANDIR and SHAREDIR
2483db29cad8SSimon J. Gerraty	  Handy for testing release candidates
2484db29cad8SSimon J. Gerraty	  in various environments.
2485db29cad8SSimon J. Gerraty
2486db29cad8SSimon J. Gerraty2015-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2487db29cad8SSimon J. Gerraty
2488db29cad8SSimon J. Gerraty	* move initialization of savederr to block where it is used
2489db29cad8SSimon J. Gerraty	  to avoid spurious warning from gcc5
2490db29cad8SSimon J. Gerraty
2491db29cad8SSimon J. Gerraty2014-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2492db29cad8SSimon J. Gerraty
2493db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20141111
2494db29cad8SSimon J. Gerraty	  just a cooler number
2495db29cad8SSimon J. Gerraty
2496db29cad8SSimon J. Gerraty2014-11-05  Simon J. Gerraty  <sjg@bad.crufty.net>
2497db29cad8SSimon J. Gerraty
2498db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20141105
2499db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2500db29cad8SSimon J. Gerraty	  o revert major overhaul of suffix handling
2501db29cad8SSimon J. Gerraty	    and POSIX compliance - too much breakage
2502db29cad8SSimon J. Gerraty	    and impossible to make backwards compatible.
2503db29cad8SSimon J. Gerraty	  o we still have the new unit test structure which is ok.
2504db29cad8SSimon J. Gerraty	  o meta.c ensure "-- filemon" is at start of line.
2505db29cad8SSimon J. Gerraty
2506db29cad8SSimon J. Gerraty2014-09-17  Simon J. Gerraty  <sjg@bad.crufty.net>
2507db29cad8SSimon J. Gerraty
2508db29cad8SSimon J. Gerraty	* configure.in: test that result of getconf PATH_MAX is numeric
2509db29cad8SSimon J. Gerraty	  and discard if not.  Apparently needed for Hurd.
2510db29cad8SSimon J. Gerraty
2511db29cad8SSimon J. Gerraty2014-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
2512db29cad8SSimon J. Gerraty
2513db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140830
2514db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2515db29cad8SSimon J. Gerraty	  o major overhaul of suffix handling
2516db29cad8SSimon J. Gerraty	  o improved POSIX compliance
2517db29cad8SSimon J. Gerraty	  o overhauled unit-tests
2518db29cad8SSimon J. Gerraty
25195bcb7424SSimon J. Gerraty2014-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
25205bcb7424SSimon J. Gerraty
25215bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140620
25225bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
2523db29cad8SSimon J. Gerraty	  o var.c return varNoError rather than var_Error for ::= modifiers.
25245bcb7424SSimon J. Gerraty
25255bcb7424SSimon J. Gerraty2014-05-22  Simon J. Gerraty  <sjg@bad.crufty.net>
25265bcb7424SSimon J. Gerraty
25275bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140522
25285bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
25295bcb7424SSimon J. Gerraty	  o var.c detect some parse errors.
25305bcb7424SSimon J. Gerraty
25315bcb7424SSimon J. Gerraty2014-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
25325bcb7424SSimon J. Gerraty
25335bcb7424SSimon J. Gerraty	* Fix spelling errors - patch from Pedro Giffuni
25345bcb7424SSimon J. Gerraty
25355bcb7424SSimon J. Gerraty2014-02-14  Simon J. Gerraty  <sjg@bad.crufty.net>
25365bcb7424SSimon J. Gerraty
25375bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140214
25385bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
25395bcb7424SSimon J. Gerraty	  o .INCLUDEFROM*
25405bcb7424SSimon J. Gerraty	  o use Var_Value to get MAKEOBJDIR[PREFIX]
25415bcb7424SSimon J. Gerraty	  o reduced realloc'ign in brk_string.
25425bcb7424SSimon J. Gerraty	* configure.in: add a check for compiler supporting __func__
25435bcb7424SSimon J. Gerraty
25440dede8b0SSimon J. Gerraty2014-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
25450dede8b0SSimon J. Gerraty
25460dede8b0SSimon J. Gerraty	* boot-strap: ignore mksrc=none
25470dede8b0SSimon J. Gerraty
25480dede8b0SSimon J. Gerraty2014-01-02  Simon J. Gerraty  <sjg@bad.crufty.net>
25490dede8b0SSimon J. Gerraty
25500dede8b0SSimon J. Gerraty	* Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk
25510dede8b0SSimon J. Gerraty
25520dede8b0SSimon J. Gerraty2014-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
25530dede8b0SSimon J. Gerraty
25540dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140101
25550dede8b0SSimon J. Gerraty	* configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024)
25560dede8b0SSimon J. Gerraty	* Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max
25570dede8b0SSimon J. Gerraty	* make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for
25580dede8b0SSimon J. Gerraty	  Hurd)
25590dede8b0SSimon J. Gerraty	* configure.in: Add AC_PREREQ and check for
25600dede8b0SSimon J. Gerraty	  sysctl; patch from Andrew Shadura andrewsh at debian.org
25610dede8b0SSimon J. Gerraty
25620dede8b0SSimon J. Gerraty2013-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
25630dede8b0SSimon J. Gerraty
25640dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20131010
25650dede8b0SSimon J. Gerraty	* lose the const from arg to systcl to avoid problems on older BSDs.
25660dede8b0SSimon J. Gerraty
25670dede8b0SSimon J. Gerraty2013-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
25680dede8b0SSimon J. Gerraty
25690dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20131001
25700dede8b0SSimon J. Gerraty	  Merge with NetBSD make, pick up
25710dede8b0SSimon J. Gerraty	  o main.c: for NATIVE build sysctl to get MACHINE_ARCH from
25720dede8b0SSimon J. Gerraty	    hw.machine_arch if necessary.
25730dede8b0SSimon J. Gerraty	  o meta.c: meta_oodate - need to look at src of Link and target
25740dede8b0SSimon J. Gerraty	    of Move as well.
25750dede8b0SSimon J. Gerraty	* main.c: check that CTL_HW and HW_MACHINE_ARCH exist.
25760dede8b0SSimon J. Gerraty	  provide __arraycount() if needed.
25770dede8b0SSimon J. Gerraty
25781bbe5942SSimon J. Gerraty2013-09-04  Simon J. Gerraty  <sjg@bad.crufty.net>
25791bbe5942SSimon J. Gerraty
25801bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130904
25811bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
25821bbe5942SSimon J. Gerraty	  o Add VAR_INTERNAL context, so that internal setting of
25831bbe5942SSimon J. Gerraty	    MAKEFILE does not override value set by makefiles.
25841bbe5942SSimon J. Gerraty
25851bbe5942SSimon J. Gerraty2013-09-02  Simon J. Gerraty  <sjg@bad.crufty.net>
25861bbe5942SSimon J. Gerraty
25871bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130902
25881bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
25891bbe5942SSimon J. Gerraty	  o CompatRunCommand: only apply shellErrFlag when errCheck is true
25901bbe5942SSimon J. Gerraty
25911bbe5942SSimon J. Gerraty2013-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
25921bbe5942SSimon J. Gerraty
25931bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130828
25941bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
25951bbe5942SSimon J. Gerraty	  o Fix VAR :sh = syntax from Will Andrews at freebsd.org
25961bbe5942SSimon J. Gerraty	  o Call Job_SetPrefix() from Job_Init() so makefiles have
25971bbe5942SSimon J. Gerraty	    opportunity to set .MAKE.JOB.PREFIX
25981bbe5942SSimon J. Gerraty
259951ee2c1cSSimon J. Gerraty2013-07-30  Simon J. Gerraty  <sjg@bad.crufty.net>
260051ee2c1cSSimon J. Gerraty
260151ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130730
260251ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
260351ee2c1cSSimon J. Gerraty	  o Allow suppression of --- job -- tokens by setting
260451ee2c1cSSimon J. Gerraty	    .MAKE.JOB.PREFIX empty.
260551ee2c1cSSimon J. Gerraty
260651ee2c1cSSimon J. Gerraty2013-07-16  Simon J. Gerraty  <sjg@bad.crufty.net>
260751ee2c1cSSimon J. Gerraty
260851ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130716
260951ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
26105bcb7424SSimon J. Gerraty	  o number of gmake compatibility tweaks
261151ee2c1cSSimon J. Gerraty	    -w for gmake style entering/leaving messages
261251ee2c1cSSimon J. Gerraty	    if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc.
261351ee2c1cSSimon J. Gerraty	    handle MAKEFLAGS containing only letters.
261451ee2c1cSSimon J. Gerraty	  o when overriding a GLOBAL variable on the command line,
261551ee2c1cSSimon J. Gerraty	    delete it from GLOBAL context so -V doesn't show the wrong
261651ee2c1cSSimon J. Gerraty	    value.
261751ee2c1cSSimon J. Gerraty
261851ee2c1cSSimon J. Gerraty2013-07-06  Simon J. Gerraty  <sjg@bad.crufty.net>
261951ee2c1cSSimon J. Gerraty
262051ee2c1cSSimon J. Gerraty	* configure.in: We don't need MAKE_LEVEL_SAFE anymore.
262151ee2c1cSSimon J. Gerraty
262251ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130706
262351ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
262451ee2c1cSSimon J. Gerraty	  o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is
262551ee2c1cSSimon J. Gerraty	    true so that CompatRunCommand() can use it, to ensure
262651ee2c1cSSimon J. Gerraty	    consistent behavior with jobs mode.
262751ee2c1cSSimon J. Gerraty	  o use MAKE_LEVEL_ENV to define the variable to propagate
262851ee2c1cSSimon J. Gerraty	    .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake).
262951ee2c1cSSimon J. Gerraty	  o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of
263051ee2c1cSSimon J. Gerraty	    paths to ignore.
263151ee2c1cSSimon J. Gerraty
263274d2e02bSSimon J. Gerraty2013-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
263374d2e02bSSimon J. Gerraty
263474d2e02bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130604
263574d2e02bSSimon J. Gerraty	  Merge with NetBSD make, pick up
263674d2e02bSSimon J. Gerraty	  o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's
263774d2e02bSSimon J. Gerraty	    to avoid leaking descriptors.
263874d2e02bSSimon J. Gerraty
263974d2e02bSSimon J. Gerraty2013-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
264074d2e02bSSimon J. Gerraty
264174d2e02bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130528
264274d2e02bSSimon J. Gerraty	  Merge with NetBSD make, pick up
264374d2e02bSSimon J. Gerraty	  o var.c: cleanup some left-overs in VarHash()
264474d2e02bSSimon J. Gerraty
264552d86256SSimon J. Gerraty2013-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
264652d86256SSimon J. Gerraty
264752d86256SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130520
264852d86256SSimon J. Gerraty	  generate manifest from component FILES rather than have to
264952d86256SSimon J. Gerraty	  update FILES when mk/FILES changes.
265052d86256SSimon J. Gerraty
265152d86256SSimon J. Gerraty2013-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
265252d86256SSimon J. Gerraty
265352d86256SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130518
265452d86256SSimon J. Gerraty	  Merge with NetBSD make, pick up
265552d86256SSimon J. Gerraty	  o suff.c: don't skip all processsing for .PHONY targets
265652d86256SSimon J. Gerraty	    else wildcard srcs do not get expanded.
265752d86256SSimon J. Gerraty	  o var.c: expand name of variable to delete if necessary.
265852d86256SSimon J. Gerraty
26591748de26SSimon J. Gerraty2013-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
26601748de26SSimon J. Gerraty
26611748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130330
26621748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
26631748de26SSimon J. Gerraty	  o meta.c: refine the handling of .OODATE in commands.
26641748de26SSimon J. Gerraty	    Rather than suppress command comparison for the entire script
26651748de26SSimon J. Gerraty	    as though .NOMETA_CMP had been used, only suppress it for the
26661748de26SSimon J. Gerraty	    one command line.
26671748de26SSimon J. Gerraty	    This allows something like ${.OODATE:M.NOMETA_CMP} to be used to
26681748de26SSimon J. Gerraty	    suppress comparison of a command without otherwise affecting it.
26691748de26SSimon J. Gerraty	  o make.1: document that
26701748de26SSimon J. Gerraty
26711748de26SSimon J. Gerraty2013-03-22  Simon J. Gerraty  <sjg@bad.crufty.net>
26721748de26SSimon J. Gerraty
26731748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130321
26741748de26SSimon J. Gerraty	  yes, not quite right but its a cooler number.
26751748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
26761748de26SSimon J. Gerraty	  o parse.c: fix ParseGmakeExport to be portable
26771748de26SSimon J. Gerraty	    and add a unit-test.
26781748de26SSimon J. Gerraty	* meta.c: call meta_init() before makefiles are read and if built
26791748de26SSimon J. Gerraty	  with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON
26801748de26SSimon J. Gerraty	  this let's makefiles test for support.
26811748de26SSimon J. Gerraty	  Call meta_mode_init() to process .MAKE.MODE.
26821748de26SSimon J. Gerraty
26831748de26SSimon J. Gerraty2013-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
26841748de26SSimon J. Gerraty
26851748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130305
26861748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
26871748de26SSimon J. Gerraty	  o run .STALE: target when a dependency from .depend is missing.
26881748de26SSimon J. Gerraty	  o job.c: add Job_RunTarget() for the above and .BEGIN
26891748de26SSimon J. Gerraty
26901748de26SSimon J. Gerraty2013-03-03  Simon J. Gerraty  <sjg@bad.crufty.net>
26911748de26SSimon J. Gerraty
26921748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130303
26931748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
26941748de26SSimon J. Gerraty	  o main.c: set .MAKE.OS to utsname.sysname
26951748de26SSimon J. Gerraty	  o job.c: more checks for read and poll errors
26961748de26SSimon J. Gerraty	  o var.c: lose VarChangeCase() saves 4% time
26971748de26SSimon J. Gerraty
26981748de26SSimon J. Gerraty2013-03-02  Simon J. Gerraty  <sjg@bad.crufty.net>
26991748de26SSimon J. Gerraty
27001748de26SSimon J. Gerraty	* boot-strap: remove MAKEOBJDIRPREFIX from environment since we
27011748de26SSimon J. Gerraty	  want to use MAKEOBJDIR
27021748de26SSimon J. Gerraty
27033cbdda60SSimon J. Gerraty2013-01-27  Simon J. Gerraty  <sjg@bad.crufty.net>
27043cbdda60SSimon J. Gerraty
27053cbdda60SSimon J. Gerraty	* Merge with NetBSD make, pick up
27063cbdda60SSimon J. Gerraty	  o make.1: more info on how shell commands are handled.
27073cbdda60SSimon J. Gerraty	  o job.c,main.c: detect write errors to job pipes.
27083cbdda60SSimon J. Gerraty
27093cbdda60SSimon J. Gerraty2013-01-25  Simon J. Gerraty  <sjg@bad.crufty.net>
27103cbdda60SSimon J. Gerraty
27113cbdda60SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130123
27123cbdda60SSimon J. Gerraty	  Merge with NetBSD make, pick up
27133cbdda60SSimon J. Gerraty	  o meta.c: if script uses .OODATE and meta_oodate() decides
27143cbdda60SSimon J. Gerraty	    rebuild is needed, .OODATE will be empty - set it to .ALLSRC.
27153cbdda60SSimon J. Gerraty	  o var.c: in debug output indicate which variabale modifiers
27163cbdda60SSimon J. Gerraty	    apply to.
27173cbdda60SSimon J. Gerraty	  o remove Check_Cwd logic the makefiles have been fixed.
27183cbdda60SSimon J. Gerraty
27193cbdda60SSimon J. Gerraty2012-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
27203cbdda60SSimon J. Gerraty
27213cbdda60SSimon J. Gerraty	* makefile.in: add a simple makefile for folk who insist on
27223cbdda60SSimon J. Gerraty	  ./configure; make; make install
27233cbdda60SSimon J. Gerraty	  it just runs boot-strap
27243cbdda60SSimon J. Gerraty	* include mk/* to accommodate the above
27253cbdda60SSimon J. Gerraty	* boot-strap:  re-work to accommodate the above
27263cbdda60SSimon J. Gerraty	  mksrc defaults to $Mydir/mk
27273cbdda60SSimon J. Gerraty	  allow op={configure,build,install,clean,all}
27283cbdda60SSimon J. Gerraty	  add options to facilitate install
27293cbdda60SSimon J. Gerraty	* Makefile.config.in: just the bits set by configure
27303cbdda60SSimon J. Gerraty	* Makefile: bump version to 20121212
27313cbdda60SSimon J. Gerraty	  abandon Makefile.in (NetBSD Makefile)
27323cbdda60SSimon J. Gerraty	  leverage mk/* instead
27333cbdda60SSimon J. Gerraty	* configure.in: ensure srcdir is absolute
27343cbdda60SSimon J. Gerraty
273559a02420SSimon J. Gerraty2012-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
273659a02420SSimon J. Gerraty
273759a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121111
273859a02420SSimon J. Gerraty	  fix generation of bmake.cat1
273959a02420SSimon J. Gerraty
274059a02420SSimon J. Gerraty2012-11-09  Simon J. Gerraty  <sjg@bad.crufty.net>
274159a02420SSimon J. Gerraty
274259a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121109
274359a02420SSimon J. Gerraty	  Merge with NetBSD make, pick up
274459a02420SSimon J. Gerraty	  o make.c: MakeBuildChild: return 0 so search continues if a
274559a02420SSimon J. Gerraty	    .ORDER dependency is detected.
274659a02420SSimon J. Gerraty	  o unit-tests/order: test the above
274759a02420SSimon J. Gerraty
274859a02420SSimon J. Gerraty2012-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
274959a02420SSimon J. Gerraty
275059a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121102
275159a02420SSimon J. Gerraty	  Merge with NetBSD make, pick up
275259a02420SSimon J. Gerraty	  o cond.c: allow cond_state[] to grow.
275359a02420SSimon J. Gerraty	    In meta mode with a very large tree, we can hit the limit
275459a02420SSimon J. Gerraty	    while processing dirdeps.
275559a02420SSimon J. Gerraty
275659a02420SSimon J. Gerraty2012-10-25  Simon J. Gerraty  <sjg@bad.crufty.net>
275759a02420SSimon J. Gerraty
275859a02420SSimon J. Gerraty	* Makefile.in: we need to use ${srcdir} not ${.CURDIR}
275959a02420SSimon J. Gerraty
276093036677SSimon J. Gerraty2012-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
276193036677SSimon J. Gerraty
276293036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121010
276393036677SSimon J. Gerraty	  o protect syntax that only bmake parses correctly.
276493036677SSimon J. Gerraty	  o remove auto setting of FORCE_MACHINE, use configure's
276593036677SSimon J. Gerraty	    --with-force-machine=whatever if that is desired.
276693036677SSimon J. Gerraty
276793036677SSimon J. Gerraty2012-10-08  Simon J. Gerraty  <sjg@bad.crufty.net>
276893036677SSimon J. Gerraty
276993036677SSimon J. Gerraty	* Makefile.in: do not lose history from make.1 when generating bmake.1
277093036677SSimon J. Gerraty
277193036677SSimon J. Gerraty2012-10-07  Simon J. Gerraty  <sjg@bad.crufty.net>
277293036677SSimon J. Gerraty
277393036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121007
277493036677SSimon J. Gerraty	  Merge with NetBSD make, pick up
277593036677SSimon J. Gerraty	  o compat.c: ignore empty commands - same as jobs mode.
277693036677SSimon J. Gerraty	  o make.1: document meta chars that cause use of shell
277793036677SSimon J. Gerraty
277893036677SSimon J. Gerraty2012-09-11  Simon J. Gerraty  <sjg@bad.crufty.net>
277993036677SSimon J. Gerraty
278093036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): bump version to 20120911
278193036677SSimon J. Gerraty	* bsd.after-import.mk: include Makefile.inc early and allow it to
278293036677SSimon J. Gerraty	  override PROG
278393036677SSimon J. Gerraty
27843955d011SMarcel Moolenaar2012-08-31  Simon J. Gerraty  <sjg@bad.crufty.net>
27853955d011SMarcel Moolenaar
27863955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120831
27873955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27883955d011SMarcel Moolenaar	  o cast sizeof() to int for comparison
27893955d011SMarcel Moolenaar	  o minor make.1 tweak
27903955d011SMarcel Moolenaar
27913955d011SMarcel Moolenaar2012-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
27923955d011SMarcel Moolenaar
27933955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120830
27943955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
27953955d011SMarcel Moolenaar	  o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V
27963955d011SMarcel Moolenaar	  o debug flag -dV causes -V to show raw value regardless.
27973955d011SMarcel Moolenaar
27983955d011SMarcel Moolenaar2012-07-05  Simon J. Gerraty  <sjg@bad.crufty.net>
27993955d011SMarcel Moolenaar
28003955d011SMarcel Moolenaar	* bsd.after-import.mk (after-import): ensure unit-tests/Makefile
28013955d011SMarcel Moolenaar	  gets SRCTOP set.
28023955d011SMarcel Moolenaar
28033955d011SMarcel Moolenaar2012-07-04  Simon J. Gerraty  <sjg@bad.crufty.net>
28043955d011SMarcel Moolenaar
28053955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120704
28063955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28073955d011SMarcel Moolenaar	  o Job_ParseShell should call Shell_Init if it has been
28083955d011SMarcel Moolenaar	    previously called.
28093955d011SMarcel Moolenaar	* Makefile.in: set USE_META based on configure result.
28103955d011SMarcel Moolenaar	  also .PARSEDIR is safer indicator of bmake.
28113955d011SMarcel Moolenaar
28123955d011SMarcel Moolenaar2012-06-26  Simon J. Gerraty  <sjg@bad.crufty.net>
28133955d011SMarcel Moolenaar
28143955d011SMarcel Moolenaar	* Makefile.in: bump version to 20120626
28153955d011SMarcel Moolenaar	  ensure CPPFLAGS is in CFLAGS
28163955d011SMarcel Moolenaar	* meta.c: avoid nested externs
28173955d011SMarcel Moolenaar	* bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target
28183955d011SMarcel Moolenaar
28193955d011SMarcel Moolenaar2012-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
28203955d011SMarcel Moolenaar
28213955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120620
28223955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28233955d011SMarcel Moolenaar	  o make_malloc.c: avoid including make_malloc.h again
28243955d011SMarcel Moolenaar
28253955d011SMarcel Moolenaar	* Makefile.in: avoid bmake only syntax or protect with
28263955d011SMarcel Moolenaar	  .if defined(.MAKE.LEVEL)
28273955d011SMarcel Moolenaar	* bsd.after-import.mk: replace .-include with .sinclude
28283955d011SMarcel Moolenaar	  ensure? SRCTOP gets a value
28293955d011SMarcel Moolenaar	* configure.in: look for filemon.h in /usr/include/dev/filemon first.
28303955d011SMarcel Moolenaar
28313955d011SMarcel Moolenaar2012-06-19  Simon J. Gerraty  <sjg@bad.crufty.net>
28323955d011SMarcel Moolenaar
28333955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120612
28343955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28353955d011SMarcel Moolenaar	  o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler
28363955d011SMarcel Moolenaar	    for greater portability.
28373955d011SMarcel Moolenaar	  o unit-tests/forloop: check that .for works as expected wrt
28383955d011SMarcel Moolenaar	    number of times and with "quoted strings".
28393955d011SMarcel Moolenaar
28403955d011SMarcel Moolenaar2012-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
28413955d011SMarcel Moolenaar
28423955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120606
28433955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28443955d011SMarcel Moolenaar	  o compat.c: use kill(2) rather than raise(3).
28453955d011SMarcel Moolenaar	* configure.in: look for sys/dev/filemon
28463955d011SMarcel Moolenaar	* bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile
28473955d011SMarcel Moolenaar	  and pass BOOTSTRAP_XTRAS to boot-strap.
28483955d011SMarcel Moolenaar
28493955d011SMarcel Moolenaar2012-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
28503955d011SMarcel Moolenaar
28513955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120604
28523955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28533955d011SMarcel Moolenaar	  o util.c and var.c share same var for tracking if environ
28543955d011SMarcel Moolenaar	    has been reallocated.
28553955d011SMarcel Moolenaar	  o util.c provide getenv with setenv.
28563955d011SMarcel Moolenaar	* Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL
28573955d011SMarcel Moolenaar	  when the shell actively strips .MAKE.* from the environment.
28583955d011SMarcel Moolenaar	  We still refer to the variable always as .MAKE.LEVEL
28593955d011SMarcel Moolenaar	* util.c fix bug in findenv() was finding prefix of name.
28603955d011SMarcel Moolenaar	* compat.c: re-raising SIGINT etc after running .INTERRUPT
28613955d011SMarcel Moolenaar	  results in more reliable termination of all activity on many
28623955d011SMarcel Moolenaar	  platforms.
28633955d011SMarcel Moolenaar
28643955d011SMarcel Moolenaar2012-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
28653955d011SMarcel Moolenaar
28663955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120602
28673955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28683955d011SMarcel Moolenaar	  o for.c: handle quoted items in .for list
28693955d011SMarcel Moolenaar
28703955d011SMarcel Moolenaar2012-05-30  Simon J. Gerraty  <sjg@bad.crufty.net>
28713955d011SMarcel Moolenaar
28723955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120530
28733955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28743955d011SMarcel Moolenaar	  o compat.c: ignore empty command.
28753955d011SMarcel Moolenaar
28763955d011SMarcel Moolenaar2012-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
28773955d011SMarcel Moolenaar
28783955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120524
28793955d011SMarcel Moolenaar	* FILES: add bsd.after-import.mk:
28803955d011SMarcel Moolenaar	  A simple means of integrating bmake into a BSD build system.
28813955d011SMarcel Moolenaar
28823955d011SMarcel Moolenaar2012-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
28833955d011SMarcel Moolenaar
28843955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120520
28853955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28863955d011SMarcel Moolenaar	  o increased limit for nested conditionals.
28873955d011SMarcel Moolenaar
28883955d011SMarcel Moolenaar2012-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
28893955d011SMarcel Moolenaar
28903955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120518
28913955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
28923955d011SMarcel Moolenaar	  o use _exit(2) in signal hanlder
28933955d011SMarcel Moolenaar	  o Don't use the [dir] cache when building nodes that might have
28943955d011SMarcel Moolenaar	    changed since the last exec.
28953955d011SMarcel Moolenaar	  o Avoid nested extern declaration warnings.
28963955d011SMarcel Moolenaar
28973955d011SMarcel Moolenaar2012-04-27  Simon J. Gerraty  <sjg@bad.crufty.net>
28983955d011SMarcel Moolenaar
28993955d011SMarcel Moolenaar	* meta.c (fgetLine): avoid %z - not portable.
29003955d011SMarcel Moolenaar	* parse.c: Since we moved include of sys/mman.h
29013955d011SMarcel Moolenaar	  and def's of MAP_COPY etc. we got dups from a merge.
29023955d011SMarcel Moolenaar
29033955d011SMarcel Moolenaar2012-04-24  Simon J. Gerraty  <sjg@bad.crufty.net>
29043955d011SMarcel Moolenaar
29053955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120420
29063955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29073955d011SMarcel Moolenaar	  o restore duplicate supression in .MAKE.MAKEFILES
29083955d011SMarcel Moolenaar	    runtime saving can be significant.
29093955d011SMarcel Moolenaar	  o Var_Subst() uses Buf_DestroyCompact() to reduce memory
29103955d011SMarcel Moolenaar	    consumption up to 20%.
29113955d011SMarcel Moolenaar
29123955d011SMarcel Moolenaar2012-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
29133955d011SMarcel Moolenaar
29143955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120420
29153955d011SMarcel Moolenaar          Merge with NetBSD make, pick up
29163955d011SMarcel Moolenaar	  o remove duplicate supression in .MAKE.MAKEFILES
29173955d011SMarcel Moolenaar	  o improved dir cache behavior
29183955d011SMarcel Moolenaar	  o gmake'ish export command
29193955d011SMarcel Moolenaar
29203955d011SMarcel Moolenaar2012-03-25  Simon J. Gerraty  <sjg@bad.crufty.net>
29213955d011SMarcel Moolenaar
29223955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120325
29233955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29243955d011SMarcel Moolenaar	  o fix parsing of :[#] in conditionals.
29253955d011SMarcel Moolenaar
29263955d011SMarcel Moolenaar2012-02-10  Simon J. Gerraty  <sjg@bad.crufty.net>
29273955d011SMarcel Moolenaar
29283955d011SMarcel Moolenaar	* Makefile.in: replace use of .Nx in bmake.1 with NetBSD
29293955d011SMarcel Moolenaar	  since some systems cannot cope with .Nx <version>
29303955d011SMarcel Moolenaar
29313955d011SMarcel Moolenaar2011-11-14  Simon J. Gerraty  <sjg@bad.crufty.net>
29323955d011SMarcel Moolenaar
29333955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20111111
29343955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29353955d011SMarcel Moolenaar	  o debug output for .PARSEDIR and .PARSEFILE
29363955d011SMarcel Moolenaar
29373955d011SMarcel Moolenaar2011-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
29383955d011SMarcel Moolenaar
29393955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION):  bump version to 20111010
29403955d011SMarcel Moolenaar
29413955d011SMarcel Moolenaar2011-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
29423955d011SMarcel Moolenaar
29433955d011SMarcel Moolenaar	* boot-strap: check for an expected file in the dirs we look for.
29443955d011SMarcel Moolenaar	* make-bootstrap.sh: pass on LDSTATIC
29453955d011SMarcel Moolenaar
29463955d011SMarcel Moolenaar2011-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
29473955d011SMarcel Moolenaar
29483955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20111001
29493955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29503955d011SMarcel Moolenaar	  o ensure .PREFIX is set for .PHONY
29513955d011SMarcel Moolenaar	    and .TARGET set for .PHONY run via .END
29523955d011SMarcel Moolenaar	  o __dead used consistently
29533955d011SMarcel Moolenaar
29543955d011SMarcel Moolenaar2011-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
29553955d011SMarcel Moolenaar
29563955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): 20110909 is a better number ;-)
29573955d011SMarcel Moolenaar
29583955d011SMarcel Moolenaar2011-09-05  Simon J. Gerraty  <sjg@bad.crufty.net>
29593955d011SMarcel Moolenaar
29603955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110905
29613955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29623955d011SMarcel Moolenaar	  o meta_oodate: ignore makeDependfile
29633955d011SMarcel Moolenaar
29643955d011SMarcel Moolenaar2011-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
29653955d011SMarcel Moolenaar
29663955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110828
29673955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29683955d011SMarcel Moolenaar	  o silent=yes in .MAKE.MODE causes meta mode to mark targets
29693955d011SMarcel Moolenaar	    as SILENT if a .meta file is created
29703955d011SMarcel Moolenaar
29713955d011SMarcel Moolenaar2011-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
29723955d011SMarcel Moolenaar
29733955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110818
29743955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29753955d011SMarcel Moolenaar	  o in meta mode, if target flagged .META a missing .meta file
29763955d011SMarcel Moolenaar	    means target is out-of-date
29773955d011SMarcel Moolenaar	  o fixes for gcc 4.5 warnings
29783955d011SMarcel Moolenaar	  o simplify job printing code
29793955d011SMarcel Moolenaar
29803955d011SMarcel Moolenaar2011-08-09  Simon J. Gerraty  <sjg@bad.crufty.net>
29813955d011SMarcel Moolenaar
29823955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110808
29833955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29843955d011SMarcel Moolenaar	  o do not touch OP_SPECIAL targets when doing make -t
29853955d011SMarcel Moolenaar
29863955d011SMarcel Moolenaar2011-06-22  Simon J. Gerraty  <sjg@bad.crufty.net>
29873955d011SMarcel Moolenaar
29883955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110622
29893955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
29903955d011SMarcel Moolenaar	  o meta_oodate detect corrupted .meta file and declare oodate.
29913955d011SMarcel Moolenaar	* configure.in: add check for setsid
29923955d011SMarcel Moolenaar
29933955d011SMarcel Moolenaar2011-06-07  Simon J. Gerraty  <sjg@bad.crufty.net>
29943955d011SMarcel Moolenaar
29953955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
29963955d011SMarcel Moolenaar	  o unit-tests/modts now works on MirBSD
29973955d011SMarcel Moolenaar
29983955d011SMarcel Moolenaar2011-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
29993955d011SMarcel Moolenaar
30003955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110606
30013955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30023955d011SMarcel Moolenaar	  o ApplyModifiers: when we parse a variable which is not
30033955d011SMarcel Moolenaar	    the entire modifier string, or not followed by ':', do not
30043955d011SMarcel Moolenaar	    consider it as containing modifiers.
30053955d011SMarcel Moolenaar	  o loadfile: ensure newline at end of mapped file.
30063955d011SMarcel Moolenaar
30073955d011SMarcel Moolenaar2011-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
30083955d011SMarcel Moolenaar
30093955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110505
30103955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30113955d011SMarcel Moolenaar	  o .MAKE.META.BAILIWICK - list of prefixes which define the scope
30123955d011SMarcel Moolenaar	    of make's control.  In meta mode, any generated file within
30133955d011SMarcel Moolenaar	    said bailiwick, which  is found to be missing, causes current
30143955d011SMarcel Moolenaar	    target to be out-of-date.
30153955d011SMarcel Moolenaar
30163955d011SMarcel Moolenaar2011-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
30173955d011SMarcel Moolenaar
30183955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110411
30193955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30203955d011SMarcel Moolenaar	  o when long modifiers fail to match, check sysV style.
30213955d011SMarcel Moolenaar	    - add a test case
30223955d011SMarcel Moolenaar
30233955d011SMarcel Moolenaar2011-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
30243955d011SMarcel Moolenaar
30253955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110410
30263955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30273955d011SMarcel Moolenaar	  o :hash - cheap 32bit hash of value
30283955d011SMarcel Moolenaar	  o :localtime, :gmtime - use value as format string for strftime.
30293955d011SMarcel Moolenaar
30303955d011SMarcel Moolenaar2011-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
30313955d011SMarcel Moolenaar
30323955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110330
30333955d011SMarcel Moolenaar	  mostly because its a cooler version.
30343955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30353955d011SMarcel Moolenaar	  o NetBSD tags for meta.[ch]
30363955d011SMarcel Moolenaar	  o job.c call meta_job_finish() after meta_job_error().
30373955d011SMarcel Moolenaar	  o meta_job_error() should call meta_job_finish() to ensure
30383955d011SMarcel Moolenaar	    .meta file is closed, and safe to copy - if .ERROR target wants.
30393955d011SMarcel Moolenaar	   meta_job_finish() is safe to call repeatedly.
30403955d011SMarcel Moolenaar
30413955d011SMarcel Moolenaar2011-03-29  Simon J. Gerraty  <sjg@bad.crufty.net>
30423955d011SMarcel Moolenaar
30433955d011SMarcel Moolenaar	* unit-tests/modts: use printf if it is a builtin,
30443955d011SMarcel Moolenaar	  to save us from MirBSD
30453955d011SMarcel Moolenaar
30463955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110329
30473955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30483955d011SMarcel Moolenaar	  o fix for use after free() in CondDoExists().
30493955d011SMarcel Moolenaar	  o meta_oodate() report extra commands and return earlier.
30503955d011SMarcel Moolenaar
30513955d011SMarcel Moolenaar2011-03-27  Simon J. Gerraty  <sjg@bad.crufty.net>
30523955d011SMarcel Moolenaar
30533955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110327
30543955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30553955d011SMarcel Moolenaar	  o meta.c, if .MAKE.MODE contains curdirOk=yes
30563955d011SMarcel Moolenaar	    allow creating .meta files in .CURDIR
30573955d011SMarcel Moolenaar	* boot-strap (TOOL_DIFF): aparently at least on linux distro
30583955d011SMarcel Moolenaar	  formats the output of 'type' differently - so eat any "()"
30593955d011SMarcel Moolenaar
30603955d011SMarcel Moolenaar2011-03-06  Simon J. Gerraty  <sjg@bad.crufty.net>
30613955d011SMarcel Moolenaar
30623955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110306
30633955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30643955d011SMarcel Moolenaar	  o meta.c, only do getcwd() once
30653955d011SMarcel Moolenaar
30663955d011SMarcel Moolenaar2011-03-05  Simon J. Gerraty  <sjg@bad.crufty.net>
30673955d011SMarcel Moolenaar
30683955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110305
30693955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30703955d011SMarcel Moolenaar	  o correct sysV substitution handling of empty lhs and variable
30713955d011SMarcel Moolenaar	  o correct exists() check for dir with trailing /
30723955d011SMarcel Moolenaar	  o correct handling of modifiers for non-existant variables
30733955d011SMarcel Moolenaar	    during evaluation of conditionals.
30743955d011SMarcel Moolenaar	  o ensure MAP_FILE is defined.
30753955d011SMarcel Moolenaar	  o meta.c use curdir[] now exported by main.c
30763955d011SMarcel Moolenaar
30773955d011SMarcel Moolenaar2011-02-25  Simon J. Gerraty  <sjg@bad.crufty.net>
30783955d011SMarcel Moolenaar
30793955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110225
30803955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30813955d011SMarcel Moolenaar	  o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after
30823955d011SMarcel Moolenaar	    makefiles have been read.
30833955d011SMarcel Moolenaar	  o fix example of :? modifier in man page.
30843955d011SMarcel Moolenaar
30853955d011SMarcel Moolenaar2011-02-13  Simon J. Gerraty  <sjg@bad.crufty.net>
30863955d011SMarcel Moolenaar
30873955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110214
30883955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30893955d011SMarcel Moolenaar	  o meta.c handle realpath() failing when generating meta file
30903955d011SMarcel Moolenaar	    name.
30913955d011SMarcel Moolenaar
30923955d011SMarcel Moolenaar	* sigcompat.c: convert to ansi so we can use higher warning levels.
30933955d011SMarcel Moolenaar
30943955d011SMarcel Moolenaar
30953955d011SMarcel Moolenaar2011-02-07  Simon J. Gerraty  <sjg@bad.crufty.net>
30963955d011SMarcel Moolenaar
30973955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110207
30983955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
30993955d011SMarcel Moolenaar	  o fix for bug in meta mode.
31003955d011SMarcel Moolenaar
31013955d011SMarcel Moolenaar2011-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
31023955d011SMarcel Moolenaar
31033955d011SMarcel Moolenaar	* parse.c: SunOS 5.8 at least does not have MAP_FILE
31043955d011SMarcel Moolenaar
31053955d011SMarcel Moolenaar2011-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
31063955d011SMarcel Moolenaar
31073955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110101
31083955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31093955d011SMarcel Moolenaar	  o use mmap(2) if available, for reading makefiles
31103955d011SMarcel Moolenaar
31113955d011SMarcel Moolenaar2010-12-15  Simon J. Gerraty  <sjg@bad.crufty.net>
31123955d011SMarcel Moolenaar
31133955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101215
31143955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31153955d011SMarcel Moolenaar	  o ensure meta_job_error() does not report a previous .meta file
31163955d011SMarcel Moolenaar	    as being culprit.
31173955d011SMarcel Moolenaar
31183955d011SMarcel Moolenaar2010-12-10  Simon J. Gerraty  <sjg@bad.crufty.net>
31193955d011SMarcel Moolenaar
31203955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101210
31213955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31223955d011SMarcel Moolenaar	  o meta_oodate: track cwd per process, and only consider target
31233955d011SMarcel Moolenaar	    out-of-date if missing file is outside make's CWD.
31243955d011SMarcel Moolenaar	    Ignore files in /tmp/ etc.
31253955d011SMarcel Moolenaar	  o to ensure unit-tests results match, need to control LC_ALL
31263955d011SMarcel Moolenaar	    as well as LANG.
31273955d011SMarcel Moolenaar	  o fix for parsing bug in var.c
31283955d011SMarcel Moolenaar
31293955d011SMarcel Moolenaar2010-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
31303955d011SMarcel Moolenaar
31313955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101126
31323955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31333955d011SMarcel Moolenaar	  o if stale dependency is an IMPSRC, search via .PATH
31343955d011SMarcel Moolenaar	  o meta_oodate: if a referenced file is missing, target is
31353955d011SMarcel Moolenaar	    out-of-date.
31363955d011SMarcel Moolenaar	  o meta_oodate: if a target uses .OODATE in its commands,
31373955d011SMarcel Moolenaar	    it (.OODATE) needs to be recomputed.
31383955d011SMarcel Moolenaar	  o keep a pointer to youngest child node, rather than just its
31393955d011SMarcel Moolenaar	    mtime.
31403955d011SMarcel Moolenaar
31413955d011SMarcel Moolenaar2010-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
31423955d011SMarcel Moolenaar
31433955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101101
31443955d011SMarcel Moolenaar
31453955d011SMarcel Moolenaar2010-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
31463955d011SMarcel Moolenaar
31473955d011SMarcel Moolenaar	* machine.sh: like os.sh,
31483955d011SMarcel Moolenaar	allow for uname -p producing useless drivel
31493955d011SMarcel Moolenaar
31503955d011SMarcel Moolenaar2010-09-13  Simon J. Gerraty  <sjg@bad.crufty.net>
31513955d011SMarcel Moolenaar
31523955d011SMarcel Moolenaar	* boot-strap: document configure knobs for meta and filemon.
31533955d011SMarcel Moolenaar
31543955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100911
31553955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31563955d011SMarcel Moolenaar	  o meta.c - meta mode
31573955d011SMarcel Moolenaar
31583955d011SMarcel Moolenaar	* make-bootstrap.sh.in: handle meta.c
31593955d011SMarcel Moolenaar	* configure.in: add knobs for use_meta and filemon_h
31603955d011SMarcel Moolenaar	  also, look for dirname, str[e]sep and strlcpy
31613955d011SMarcel Moolenaar	* util.c: add simple err[x] and warn[x]
31623955d011SMarcel Moolenaar
31633955d011SMarcel Moolenaar2010-08-08  Simon J. Gerraty  <sjg@bad.crufty.net>
31643955d011SMarcel Moolenaar
31653955d011SMarcel Moolenaar	* boot-strap (TOOL_DIFF): set this to ensure tests use
31663955d011SMarcel Moolenaar	  the same version of diff that configure tested
31673955d011SMarcel Moolenaar
31683955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100808
31693955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31703955d011SMarcel Moolenaar	  o in jobs mode, when we discover we cannot make something,
31713955d011SMarcel Moolenaar	    call PrintOnError before exit.
31723955d011SMarcel Moolenaar
31733955d011SMarcel Moolenaar2010-08-06  Simon J. Gerraty  <sjg@bad.crufty.net>
31743955d011SMarcel Moolenaar
31753955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100806
31763955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31773955d011SMarcel Moolenaar	  o formatting fixes for ignored errors
31783955d011SMarcel Moolenaar	  o ensure jobs are cleaned up regardless of where wait() was called.
31793955d011SMarcel Moolenaar
31803955d011SMarcel Moolenaar2010-06-28  Simon J. Gerraty  <sjg@bad.crufty.net>
31813955d011SMarcel Moolenaar
31823955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100618
31833955d011SMarcel Moolenaar	* os.sh (MACHINE_ARCH): watch out for drivel from uname -p
31843955d011SMarcel Moolenaar
31853955d011SMarcel Moolenaar2010-06-16  Simon J. Gerraty  <sjg@bad.crufty.net>
31863955d011SMarcel Moolenaar
31873955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100616
31883955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31893955d011SMarcel Moolenaar	  o man page update
31903955d011SMarcel Moolenaar	  o call PrintOnError from JobFinish when we detect an error we
31913955d011SMarcel Moolenaar	    are not ignoring.
31923955d011SMarcel Moolenaar
31933955d011SMarcel Moolenaar2010-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
31943955d011SMarcel Moolenaar
31953955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100606
31963955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31973955d011SMarcel Moolenaar	  o man page update
31983955d011SMarcel Moolenaar
31993955d011SMarcel Moolenaar2010-06-05  Simon J. Gerraty  <sjg@bad.crufty.net>
32003955d011SMarcel Moolenaar
32013955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100605
32023955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32033955d011SMarcel Moolenaar	  o use bmake_signal() which is a wrapper around sigaction()
32043955d011SMarcel Moolenaar	    in place of signal()
32053955d011SMarcel Moolenaar	  o add .export-env to allow exporting variables to environment
32063955d011SMarcel Moolenaar	    without tracking (so no re-export when the internal value is
32073955d011SMarcel Moolenaar	    changed).
32083955d011SMarcel Moolenaar
32093955d011SMarcel Moolenaar2010-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
32103955d011SMarcel Moolenaar
32113955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100524
32123955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32133955d011SMarcel Moolenaar	  o fix for .info et al being greedy.
32143955d011SMarcel Moolenaar
32153955d011SMarcel Moolenaar2010-05-23  Simon J. Gerraty  <sjg@bad.crufty.net>
32163955d011SMarcel Moolenaar
32173955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100520
32183955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32193955d011SMarcel Moolenaar	  o back to using realpath on argv[0]
32203955d011SMarcel Moolenaar	    but only if contains '/' and does not start with '/'.
32213955d011SMarcel Moolenaar
32223955d011SMarcel Moolenaar2010-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
32233955d011SMarcel Moolenaar
32243955d011SMarcel Moolenaar	* boot-strap: use absolute path for bmake when running tests.
32253955d011SMarcel Moolenaar
32263955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION):  bump version to 20100510
32273955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32283955d011SMarcel Moolenaar	  o revert use of realpath on argv[0]
32293955d011SMarcel Moolenaar	    too many corner cases.
32303955d011SMarcel Moolenaar	  o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target.
32313955d011SMarcel Moolenaar
32323955d011SMarcel Moolenaar2010-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
32333955d011SMarcel Moolenaar
32343955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100505
32353955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32363955d011SMarcel Moolenaar	  o fix for missed SIGCHLD when compiled with SunPRO
32373955d011SMarcel Moolenaar	    actually for bmake, defining FORCE_POSIX_SIGNALS would have
32383955d011SMarcel Moolenaar	    done the job.
32393955d011SMarcel Moolenaar
32403955d011SMarcel Moolenaar2010-04-30  Simon J. Gerraty  <sjg@bad.crufty.net>
32413955d011SMarcel Moolenaar
32423955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100430
32433955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32443955d011SMarcel Moolenaar	  o fflush stdout before writing to stdout
32453955d011SMarcel Moolenaar
32463955d011SMarcel Moolenaar2010-04-23  Simon J. Gerraty  <sjg@bad.crufty.net>
32473955d011SMarcel Moolenaar
32483955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100423
32493955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32503955d011SMarcel Moolenaar	  o updated unit tests for Haiku (this time for sure).
32513955d011SMarcel Moolenaar	* boot-strap: based on patch from joerg
32523955d011SMarcel Moolenaar	  honor --with-default-sys-path better.
32533955d011SMarcel Moolenaar	* boot-strap: remove mention of --with-prefix-sys-path
32543955d011SMarcel Moolenaar
32553955d011SMarcel Moolenaar2010-04-22  Simon J. Gerraty  <sjg@bad.crufty.net>
32563955d011SMarcel Moolenaar
32573955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100422
32583955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
32593955d011SMarcel Moolenaar	  o fix for vfork() on Darwin.
32603955d011SMarcel Moolenaar	  o fix for bogus $TMPDIR.
32613955d011SMarcel Moolenaar	  o set .MAKE.MODE=compat for -B
32623955d011SMarcel Moolenaar	  o set .MAKE.JOBS=max_jobs for -j max_jobs
32633955d011SMarcel Moolenaar	  o allow unit-tests to run without any *.mk
32643955d011SMarcel Moolenaar	  o unit-tests/modmisc be more conservative in dirs presumed to exist.
32653955d011SMarcel Moolenaar	* boot-strap: ignore /usr/share/mk except on NetBSD.
32663955d011SMarcel Moolenaar	* unit-tests/Makefile.in: set LANG=C when running unit-tests to
32673955d011SMarcel Moolenaar	  ensure sort(1) behaves as expected.
32683955d011SMarcel Moolenaar
32693955d011SMarcel Moolenaar2010-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
32703955d011SMarcel Moolenaar
32713955d011SMarcel Moolenaar	* boot-strap: add FindHereOrAbove so we can use -m .../mk
32723955d011SMarcel Moolenaar
32733955d011SMarcel Moolenaar2010-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
32743955d011SMarcel Moolenaar
32753955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100420
32763955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
32773955d011SMarcel Moolenaar	  o fix for variable realpath() behavior.
32783955d011SMarcel Moolenaar	    we have to stat(2) the result to be sure.
32793955d011SMarcel Moolenaar	  o fix for .export (all) when nested vars use :sh
32803955d011SMarcel Moolenaar
32813955d011SMarcel Moolenaar2010-04-14  Simon J. Gerraty  <sjg@bad.crufty.net>
32823955d011SMarcel Moolenaar
32833955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100414
32843955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
32853955d011SMarcel Moolenaar	  o use realpath to resolve argv[0] (for .MAKE) if needed.
32863955d011SMarcel Moolenaar	  o add realpath from libc.
32873955d011SMarcel Moolenaar	  o add :tA to resolve variable via realpath(3) if possible.
32883955d011SMarcel Moolenaar
32893955d011SMarcel Moolenaar2010-04-08  Simon J. Gerraty  <sjg@bad.crufty.net>
32903955d011SMarcel Moolenaar
32913955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100408
32923955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
32933955d011SMarcel Moolenaar	  o unit tests for .ERROR, .error
32943955d011SMarcel Moolenaar	  o fix for .ERROR to ensure it cannot be default target.
32953955d011SMarcel Moolenaar
32963955d011SMarcel Moolenaar2010-04-06  Simon J. Gerraty  <sjg@bad.crufty.net>
32973955d011SMarcel Moolenaar
32983955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100406
32993955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
33003955d011SMarcel Moolenaar	  o fix for compat mode "Error code" going to debug_file.
33013955d011SMarcel Moolenaar	  o fix for .ALLSRC being populated twice.
33023955d011SMarcel Moolenaar	  o support for .info, .warning and .error directives
33033955d011SMarcel Moolenaar	  o .MAKE.MODE to control make's operational mode
33043955d011SMarcel Moolenaar	  o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile
33053955d011SMarcel Moolenaar	    name(s).
33063955d011SMarcel Moolenaar	  o .MAKE.DEPENDFILE to control the name of the depend file
33073955d011SMarcel Moolenaar	  o .ERROR target - run on failure.
33083955d011SMarcel Moolenaar
33093955d011SMarcel Moolenaar2010-03-18  Simon J. Gerraty  <sjg@bad.crufty.net>
33103955d011SMarcel Moolenaar
33113955d011SMarcel Moolenaar	* make-bootstrap.sh.in: extract MAKE_VERSION from Makefile
33123955d011SMarcel Moolenaar
33133955d011SMarcel Moolenaar	* os.sh,arch.c: patch for Haiku from joerg at netbsd
33143955d011SMarcel Moolenaar
33153955d011SMarcel Moolenaar2010-03-17  Simon J. Gerraty  <sjg@bad.crufty.net>
33163955d011SMarcel Moolenaar
33173955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100222
33183955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
33193955d011SMarcel Moolenaar	  o better error msg for .for with mutiple inter vars
33203955d011SMarcel Moolenaar
33213955d011SMarcel Moolenaar	* boot-strap:
33223955d011SMarcel Moolenaar	  o use make-bootstrap.sh from joerg at netbsd
33233955d011SMarcel Moolenaar	    to avoid the need for a native make when bootstrapping.
33243955d011SMarcel Moolenaar	  o add "" everywhere ;-)
33253955d011SMarcel Moolenaar	  o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1
33263955d011SMarcel Moolenaar	    otherwise the pre-formated version.
33273955d011SMarcel Moolenaar
33283955d011SMarcel Moolenaar2010-01-04  Simon J. Gerraty  <sjg@bad.crufty.net>
33293955d011SMarcel Moolenaar
33303955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100102
33313955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33323955d011SMarcel Moolenaar	  o fix for -m .../
33333955d011SMarcel Moolenaar
33343955d011SMarcel Moolenaar2009-11-18  Simon J. Gerraty  <sjg@void.crufty.net>
33353955d011SMarcel Moolenaar
33363955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20091118
33373955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33383955d011SMarcel Moolenaar	  o .unexport
33393955d011SMarcel Moolenaar	  o report lines that start with '.' and should have ':'
33403955d011SMarcel Moolenaar	    (catch typo's of .el*if).
33413955d011SMarcel Moolenaar
33423955d011SMarcel Moolenaar2009-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
33433955d011SMarcel Moolenaar
33443955d011SMarcel Moolenaar	* configure.in: Ensure that srcdir and mksrc are absolute paths.
33453955d011SMarcel Moolenaar
33463955d011SMarcel Moolenaar2009-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
33473955d011SMarcel Moolenaar
33483955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): fix version to 20091007
33493955d011SMarcel Moolenaar
33503955d011SMarcel Moolenaar2009-10-07  Simon J. Gerraty  <sjg@void.crufty.net>
33513955d011SMarcel Moolenaar
33523955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 200910007
33533955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33543955d011SMarcel Moolenaar	  o fix for parsing of :S;...;...; applied to .for loop iterator
33553955d011SMarcel Moolenaar	    appearing in a dependency line.
33563955d011SMarcel Moolenaar
33573955d011SMarcel Moolenaar2009-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
33583955d011SMarcel Moolenaar
33593955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090909
33603955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33613955d011SMarcel Moolenaar	  o fix for -C, .CURDIR and .OBJDIR
33623955d011SMarcel Moolenaar	* boot-strap:
33633955d011SMarcel Moolenaar	  o allow share_dir to be set independent of prefix.
33643955d011SMarcel Moolenaar	  o select default share_dir better when prefix ends in $HOST_TARGET
33653955d011SMarcel Moolenaar	  o if FORCE_BSD_MK etc were set, include them in the suggested
33663955d011SMarcel Moolenaar	    install-mk command.
33673955d011SMarcel Moolenaar
33683955d011SMarcel Moolenaar2009-09-08  Simon J. Gerraty  <sjg@void.crufty.net>
33693955d011SMarcel Moolenaar
33703955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090908
33713955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33723955d011SMarcel Moolenaar	  o .MAKE.LEVEL for recursion tracking
33733955d011SMarcel Moolenaar	  o fix for :M scanning \:
33743955d011SMarcel Moolenaar
33753955d011SMarcel Moolenaar2009-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
33763955d011SMarcel Moolenaar
33773955d011SMarcel Moolenaar	* configure.in: Don't -D__EXTENSIONS__ if
33783955d011SMarcel Moolenaar	AC_USE_SYSTEM_EXTENSIONS says "no".
33793955d011SMarcel Moolenaar
33803955d011SMarcel Moolenaar2009-08-26  Simon J. Gerraty  <sjg@void.crufty.net>
33813955d011SMarcel Moolenaar
33823955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090826
33833955d011SMarcel Moolenaar	Simplify MAKE_VERSION to just the bare date.
33843955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33853955d011SMarcel Moolenaar	  o -C directory support.
33863955d011SMarcel Moolenaar	  o support for SIGINFO
33873955d011SMarcel Moolenaar	  o use $TMPDIR for temp files.
33883955d011SMarcel Moolenaar	  o child of vfork should be careful about modifying parent's state.
33893955d011SMarcel Moolenaar
33903955d011SMarcel Moolenaar
33913955d011SMarcel Moolenaar2009-03-26  Simon J. Gerraty  <sjg@void.crufty.net>
33923955d011SMarcel Moolenaar
33933955d011SMarcel Moolenaar	* Appy some patches for MiNT from David Brownlee
33943955d011SMarcel Moolenaar
33953955d011SMarcel Moolenaar2009-02-26  Simon J. Gerraty  <sjg@void.crufty.net>
33963955d011SMarcel Moolenaar
33973955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20090222
33983955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
33993955d011SMarcel Moolenaar	  o Possible null pointer de-ref in Var_Set.
34003955d011SMarcel Moolenaar
34013955d011SMarcel Moolenaar2009-02-08  Simon J. Gerraty  <sjg@void.crufty.net>
34023955d011SMarcel Moolenaar
34033955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20090204
34043955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34053955d011SMarcel Moolenaar	  o bmake_malloc et al moved to their own .c
34063955d011SMarcel Moolenaar	  o Count both () and {} when looking for the end of a :M pattern
34073955d011SMarcel Moolenaar	  o Change 'Buffer' so that it is the actual struct, not a pointer to it.
34083955d011SMarcel Moolenaar	  o strlist.c - functions for processing extendable arrays of pointers to strings.
34093955d011SMarcel Moolenaar	  o ClientData replaced with void *, so const void * can be used.
34103955d011SMarcel Moolenaar	  o New debug flag C for DEBUG_CWD
34113955d011SMarcel Moolenaar
34123955d011SMarcel Moolenaar2008-11-11  Simon J. Gerraty  <sjg@void.crufty.net>
34133955d011SMarcel Moolenaar
34143955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081111
34153955d011SMarcel Moolenaar	  Apply patch from Joerg Sonnenberge to
34163955d011SMarcel Moolenaar	  configure.in:
34173955d011SMarcel Moolenaar	  o remove some redundant checks
34183955d011SMarcel Moolenaar	  o check for emlloc etc only in libutil and require the whole family.
34193955d011SMarcel Moolenaar	  util.c:
34203955d011SMarcel Moolenaar	  o remove [v]asprintf which is no longer used.
34213955d011SMarcel Moolenaar
34223955d011SMarcel Moolenaar2008-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
34233955d011SMarcel Moolenaar
34243955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081101
34253955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34263955d011SMarcel Moolenaar	  o util.c: avoid use of putenv() - christos
34273955d011SMarcel Moolenaar
34283955d011SMarcel Moolenaar2008-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
34293955d011SMarcel Moolenaar
34303955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081030
34313955d011SMarcel Moolenaar	  pick up man page tweaks.
34323955d011SMarcel Moolenaar
34333955d011SMarcel Moolenaar2008-10-29  Simon J. Gerraty  <sjg@void.crufty.net>
34343955d011SMarcel Moolenaar
34353955d011SMarcel Moolenaar	* Makefile.in: move processing of LIBOBJS to after is definition!
34363955d011SMarcel Moolenaar	  thus we'll have getenv.c in SRCS only if needed.
34373955d011SMarcel Moolenaar
34383955d011SMarcel Moolenaar	* make.1: add examples of how to use :?
34393955d011SMarcel Moolenaar
34403955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081029
34413955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34423955d011SMarcel Moolenaar	  o fix for .END processing with -j
34433955d011SMarcel Moolenaar	  o segfault from Parse_Error when no makefile is open
34443955d011SMarcel Moolenaar	  o handle numeric expressions in any variable expansion
34453955d011SMarcel Moolenaar	  o debug output now defaults to stderr, -dF to change it - apb
34463955d011SMarcel Moolenaar	  o make now uses bmake_malloc etc so that it can build natively
34473955d011SMarcel Moolenaar	    on A/UX - wasn't an issue for bmake, but we want to keep in sync.
34483955d011SMarcel Moolenaar
34493955d011SMarcel Moolenaar2008-09-27  Simon J. Gerraty  <sjg@void.crufty.net>
34503955d011SMarcel Moolenaar
34513955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080808
34523955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34533955d011SMarcel Moolenaar	  o fix for PR/38840: Pierre Pronchery: make crashes while parsing
34543955d011SMarcel Moolenaar	    long lines in Makefiles
34553955d011SMarcel Moolenaar	  o optimizations for VarQuote by joerg
34563955d011SMarcel Moolenaar	  o fix for PR/38756: dominik: make dumps core on invalid makefile
34573955d011SMarcel Moolenaar
34583955d011SMarcel Moolenaar2008-05-15  Simon J. Gerraty  <sjg@void.crufty.net>
34593955d011SMarcel Moolenaar
34603955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080515
34613955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34623955d011SMarcel Moolenaar	  o fix skip setting vars in VAR_GLOBAL context, to handle
34633955d011SMarcel Moolenaar	    cases where VAR_CMD is used for other than command line vars.
34643955d011SMarcel Moolenaar
34653955d011SMarcel Moolenaar2008-05-14  Simon J. Gerraty  <sjg@void.crufty.net>
34663955d011SMarcel Moolenaar
34673955d011SMarcel Moolenaar	* boot-strap (make_version): we may need to look in
34683955d011SMarcel Moolenaar	$prefix/share/mk for sys.mk
34693955d011SMarcel Moolenaar
34703955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080514
34713955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34723955d011SMarcel Moolenaar	  o skip setting vars in VAR_GLOBAL context, when already set in
34733955d011SMarcel Moolenaar	  VAR_CMD which takes precedence.
34743955d011SMarcel Moolenaar
34753955d011SMarcel Moolenaar2008-03-30  Simon J. Gerraty  <sjg@void.crufty.net>
34763955d011SMarcel Moolenaar
34773955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump version to 20080330
34783955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34793955d011SMarcel Moolenaar	  o fix for ?= when LHS contains variable reference.
34803955d011SMarcel Moolenaar
34813955d011SMarcel Moolenaar2008-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
34823955d011SMarcel Moolenaar
34833955d011SMarcel Moolenaar	* merge some patches from NetBSD pkgsrc.
34843955d011SMarcel Moolenaar
34853955d011SMarcel Moolenaar	* makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
34863955d011SMarcel Moolenaar	the MAKSYSPATH used during bootstrap.
34873955d011SMarcel Moolenaar
34883955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080215
34893955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34903955d011SMarcel Moolenaar	  o warn if non-space chars follow 'empty' in a conditional.
34913955d011SMarcel Moolenaar
34923955d011SMarcel Moolenaar2008-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
34933955d011SMarcel Moolenaar
34943955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080118
34953955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
34963955d011SMarcel Moolenaar	  o consider dependencies read from .depend as optional - dsl
34973955d011SMarcel Moolenaar	  o remember when buffer for reading makefile grows - dsl
34983955d011SMarcel Moolenaar	  o add -dl (aka LOUD) - David O'Brien
34993955d011SMarcel Moolenaar
35003955d011SMarcel Moolenaar2007-10-22  Simon J. Gerraty  <sjg@void.crufty.net>
35013955d011SMarcel Moolenaar
35023955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071022
35033955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35043955d011SMarcel Moolenaar	  o Allow .PATH<suffix> to be used for .include ""
35053955d011SMarcel Moolenaar
35063955d011SMarcel Moolenaar	* boot-strap: source default settings from .bmake-boot-strap.rc
35073955d011SMarcel Moolenaar
35083955d011SMarcel Moolenaar2007-10-16  Simon J. Gerraty  <sjg@void.crufty.net>
35093955d011SMarcel Moolenaar
35103955d011SMarcel Moolenaar	* Makefile.in: fix maninstall on various systems
35113955d011SMarcel Moolenaar	  provided that our man.mk is used.
35123955d011SMarcel Moolenaar	  For non-BSD systems we install the preformatted page
35133955d011SMarcel Moolenaar	  into $MANDIR/cat1
35143955d011SMarcel Moolenaar
35153955d011SMarcel Moolenaar2007-10-15  Simon J. Gerraty  <sjg@void.crufty.net>
35163955d011SMarcel Moolenaar
35173955d011SMarcel Moolenaar	* boot-strap: make bmake.1 too, so maninstall works.
35183955d011SMarcel Moolenaar
35193955d011SMarcel Moolenaar2007-10-14  Simon J. Gerraty  <sjg@void.crufty.net>
35203955d011SMarcel Moolenaar
35213955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071014
35223955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35233955d011SMarcel Moolenaar	  o revamped handling of defshell - configure no longer needs to
35243955d011SMarcel Moolenaar	    know the content of the shells array - apb
35253955d011SMarcel Moolenaar	  o stop Var_Subst modifying its input - apb
35263955d011SMarcel Moolenaar	  o avoid calling ParseTrackInput too often - dsl
35273955d011SMarcel Moolenaar
35283955d011SMarcel Moolenaar2007-10-11  Simon J. Gerraty  <sjg@void.crufty.net>
35293955d011SMarcel Moolenaar
35303955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071011
35313955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35323955d011SMarcel Moolenaar	  o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.
35333955d011SMarcel Moolenaar
35343955d011SMarcel Moolenaar	* sigcompat.c: some tweaks for HP-UX 11.x based on
35353955d011SMarcel Moolenaar	  patch from Tobias Nygren
35363955d011SMarcel Moolenaar
35373955d011SMarcel Moolenaar	* configure.in: update handling of --with-defshell to match
35383955d011SMarcel Moolenaar	  new make behavior.  --with-defshell=/usr/xpg4/bin/sh
35393955d011SMarcel Moolenaar	  will now do what one might hope - provided the chosen shell
35403955d011SMarcel Moolenaar	  behaves enough like sh.
35413955d011SMarcel Moolenaar
35423955d011SMarcel Moolenaar2007-10-08  Simon J. Gerraty  <sjg@void.crufty.net>
35433955d011SMarcel Moolenaar
35443955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20071008
35453955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35463955d011SMarcel Moolenaar	  o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
35473955d011SMarcel Moolenaar	  o .export/.MAKE.EXPORTED - export of variables - sjg
35483955d011SMarcel Moolenaar	  o .MAKE.MAKEFILES - track all makefiles read - sjg
35493955d011SMarcel Moolenaar	  o performance improvements - dsl
35503955d011SMarcel Moolenaar	  o revamp parallel job scheduling - dsl
35513955d011SMarcel Moolenaar
35523955d011SMarcel Moolenaar2006-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
35533955d011SMarcel Moolenaar
35543955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060728
35553955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35563955d011SMarcel Moolenaar	  o extra debug info during variable and cond processing - sjg
35573955d011SMarcel Moolenaar	  o shell definition now covers newline - rillig
35583955d011SMarcel Moolenaar	  o minor mem leak in PrintOnError - sjg
35593955d011SMarcel Moolenaar
35603955d011SMarcel Moolenaar2006-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
35613955d011SMarcel Moolenaar
35623955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump to 20060511
35633955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35643955d011SMarcel Moolenaar	  o more memory leaks - coverity
35653955d011SMarcel Moolenaar	  o possible overflow in ArchFindMember - coverity
35663955d011SMarcel Moolenaar	  o extract variable modifier code out of Var_Parse()
35673955d011SMarcel Moolenaar	    so it can be called recursively - sjg
35683955d011SMarcel Moolenaar	  o unit-tests/moderrs - sjg
35693955d011SMarcel Moolenaar
35703955d011SMarcel Moolenaar2006-04-12  Simon J. Gerraty  <sjg@void.crufty.net>
35713955d011SMarcel Moolenaar
35723955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060412
35733955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35743955d011SMarcel Moolenaar	  o fixes for some memory leaks - coverity
35753955d011SMarcel Moolenaar	  o only read first sys.mk etc when searching sysIncPath - sjg
35763955d011SMarcel Moolenaar
35773955d011SMarcel Moolenaar	* main.c (ReadMakefile): remove hack for __INTERIX that prevented
35783955d011SMarcel Moolenaar	setting ${MAKEFILE} - OBATA Akio
35793955d011SMarcel Moolenaar
35803955d011SMarcel Moolenaar2006-03-18  Simon J. Gerraty  <sjg@void.crufty.net>
35813955d011SMarcel Moolenaar
35823955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060318
35833955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35843955d011SMarcel Moolenaar	  o cleanup of job.c to remove remote handling, distcc is more
35853955d011SMarcel Moolenaar	    useful and this code was likely bit-rotting - dsl
35863955d011SMarcel Moolenaar	  o fix for :P modifier - sjg
35873955d011SMarcel Moolenaar	* boot-strap: set default prefix to something reasonable
35883955d011SMarcel Moolenaar	  (for me anyway).
35893955d011SMarcel Moolenaar
35903955d011SMarcel Moolenaar2006-03-01  Simon J. Gerraty  <sjg@void.crufty.net>
35913955d011SMarcel Moolenaar
35923955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060301
35933955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
35943955d011SMarcel Moolenaar	  o make .WAIT apply recursively, document and test case - apb
35953955d011SMarcel Moolenaar	  o allow variable modifiers in a variable appear anywhere in
35963955d011SMarcel Moolenaar	    modifier list, document and test case - sjg
35973955d011SMarcel Moolenaar
35983955d011SMarcel Moolenaar2006-02-22  Simon J. Gerraty  <sjg@void.crufty.net>
35993955d011SMarcel Moolenaar
36003955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060222
36013955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36023955d011SMarcel Moolenaar	  o improved job token handling - dsl
36033955d011SMarcel Moolenaar	  o SIG_DFL the correct signal before exec - dsl
36043955d011SMarcel Moolenaar	  o more debug info during parsing - dsl
36053955d011SMarcel Moolenaar	  o allow variable modifiers to be specified via variable - sjg
36063955d011SMarcel Moolenaar	* boot-strap: explain why we died if no mksrc
36073955d011SMarcel Moolenaar
36083955d011SMarcel Moolenaar2005-11-05  Simon J. Gerraty  <sjg@void.crufty.net>
36093955d011SMarcel Moolenaar
36103955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051105
36113955d011SMarcel Moolenaar	* configure.in: always set default_sys_path
36123955d011SMarcel Moolenaar	  default is ${prefix}/share/mk
36133955d011SMarcel Moolenaar	  - remove prefix_sys_path, anyone wanting more than above
36143955d011SMarcel Moolenaar	    needs to set it manually.
36153955d011SMarcel Moolenaar
36163955d011SMarcel Moolenaar2005-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
36173955d011SMarcel Moolenaar
36183955d011SMarcel Moolenaar	* boot-strap: make this a bit easier for pkgsrc folk.
36193955d011SMarcel Moolenaar	  bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
36203955d011SMarcel Moolenaar	  'mips' while pkgsrc wants 'mipseb' or 'mipsel'
36213955d011SMarcel Moolenaar
36223955d011SMarcel Moolenaar2005-11-02  Simon J. Gerraty  <sjg@void.crufty.net>
36233955d011SMarcel Moolenaar
36243955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051102
36253955d011SMarcel Moolenaar	* job.c (JobFinish): fix likely ancient merge lossage
36263955d011SMarcel Moolenaar	fix from Todd Vierling.
36273955d011SMarcel Moolenaar	* boot-strap (srcdir): allow setting mksrc=none
36283955d011SMarcel Moolenaar
36293955d011SMarcel Moolenaar2005-10-31  Simon J. Gerraty  <sjg@void.crufty.net>
36303955d011SMarcel Moolenaar
36313955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051031
36323955d011SMarcel Moolenaar	* ranlib.h: skip on OSF too.
36333955d011SMarcel Moolenaar	  (NetBSD PR 31864)
36343955d011SMarcel Moolenaar
36353955d011SMarcel Moolenaar2005-10-10  Simon J. Gerraty  <sjg@void.crufty.net>
36363955d011SMarcel Moolenaar
36373955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051002
36383955d011SMarcel Moolenaar	  fix a silly typo
36393955d011SMarcel Moolenaar
36403955d011SMarcel Moolenaar2005-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
36413955d011SMarcel Moolenaar
36423955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051001
36433955d011SMarcel Moolenaar	  support for UnixWare and some other systems,
36443955d011SMarcel Moolenaar	  based on patches from pkgsrc/bootstrap
36453955d011SMarcel Moolenaar
36463955d011SMarcel Moolenaar2005-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
36473955d011SMarcel Moolenaar
36483955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050901
36493955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36503955d011SMarcel Moolenaar	  o possible parse error causing us to wander off.
36513955d011SMarcel Moolenaar
36523955d011SMarcel Moolenaar2005-06-06  Simon J. Gerraty  <sjg@void.crufty.net>
36533955d011SMarcel Moolenaar
36543955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050606
36553955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36563955d011SMarcel Moolenaar	  o :0x modifier for randomizing a list
36573955d011SMarcel Moolenaar	  o fixes for a number of -Wuninitialized issues.
36583955d011SMarcel Moolenaar
36593955d011SMarcel Moolenaar2005-05-30  Simon J. Gerraty  <sjg@void.crufty.net>
36603955d011SMarcel Moolenaar
36613955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050530
36623955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36633955d011SMarcel Moolenaar	  o Handle dependencies for .BEGIN, .END and .INTERRUPT
36643955d011SMarcel Moolenaar
36653955d011SMarcel Moolenaar	* README: was seriously out of date.
36663955d011SMarcel Moolenaar
36673955d011SMarcel Moolenaar2005-03-22  Simon J. Gerraty  <sjg@void.crufty.net>
36683955d011SMarcel Moolenaar
36693955d011SMarcel Moolenaar	* Important to use .MAKE rather than MAKE.
36703955d011SMarcel Moolenaar
36713955d011SMarcel Moolenaar2005-03-15  Simon J. Gerraty  <sjg@void.crufty.net>
36723955d011SMarcel Moolenaar
36733955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050315
36743955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36753955d011SMarcel Moolenaar	  o don't mistake .elsefoo for .else
36763955d011SMarcel Moolenaar	  o use suffix-specific search path correctly
36773955d011SMarcel Moolenaar	  o bunch of style nits
36783955d011SMarcel Moolenaar
36793955d011SMarcel Moolenaar2004-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
36803955d011SMarcel Moolenaar
36813955d011SMarcel Moolenaar	* boot-strap:
36823955d011SMarcel Moolenaar	o ensure that args to --src and --with-mksrc
36833955d011SMarcel Moolenaar	  are resolved before giving them to configure.
36843955d011SMarcel Moolenaar	o add -o "objdir" so that builder can control it,
36853955d011SMarcel Moolenaar	  default is $OS as determined by os.sh
36863955d011SMarcel Moolenaar	o add -q to suppress all the install instructions.
36873955d011SMarcel Moolenaar
36883955d011SMarcel Moolenaar2004-05-08  Simon J. Gerraty  <sjg@void.crufty.net>
36893955d011SMarcel Moolenaar
36903955d011SMarcel Moolenaar	* Remove __IDSTRING()
36913955d011SMarcel Moolenaar
36923955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040508
36933955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36943955d011SMarcel Moolenaar	  o posix fixes
36953955d011SMarcel Moolenaar	    - remove '-e' from compat mode
36963955d011SMarcel Moolenaar	    - add support for '+' command-line prefix.
36973955d011SMarcel Moolenaar	  o fix for handling '--' on command-line.
36983955d011SMarcel Moolenaar	  o fix include in lst.lib/lstInt.h to simplify '-I's
36993955d011SMarcel Moolenaar	  o we also picked up replacement of MAKE_BOOTSTRAP
37003955d011SMarcel Moolenaar	    with !MAKE_NATIVE which is a noop, but possibly confusing.
37013955d011SMarcel Moolenaar
37023955d011SMarcel Moolenaar2004-04-14  Simon J. Gerraty  <sjg@void.crufty.net>
37033955d011SMarcel Moolenaar
37043955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040414
37053955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37063955d011SMarcel Moolenaar	  o allow quoted strings on lhs of conditionals
37073955d011SMarcel Moolenaar	  o issue warning when extra .else is seen
37083955d011SMarcel Moolenaar	  o print line numer when errors encountered during parsing from
37093955d011SMarcel Moolenaar	  string.
37103955d011SMarcel Moolenaar
37113955d011SMarcel Moolenaar2004-02-20  Simon J. Gerraty  <sjg@void.crufty.net>
37123955d011SMarcel Moolenaar
37133955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump to 20040220
37143955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37153955d011SMarcel Moolenaar	  o fix for old :M parsing bug.
37163955d011SMarcel Moolenaar	  o re-jigged unit-tests
37173955d011SMarcel Moolenaar
37183955d011SMarcel Moolenaar2004-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
37193955d011SMarcel Moolenaar
37203955d011SMarcel Moolenaar	* Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,}
37213955d011SMarcel Moolenaar	so that './bmake -f Makefile test' works.
37223955d011SMarcel Moolenaar
37233955d011SMarcel Moolenaar2004-02-14  Simon J. Gerraty  <sjg@void.crufty.net>
37243955d011SMarcel Moolenaar
37253955d011SMarcel Moolenaar	* Makefile.in: (BMAKE_VERSION): bump to 20040214
37263955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37273955d011SMarcel Moolenaar	  o search upwards for *.mk
37283955d011SMarcel Moolenaar	  o fix for double free of var substitution buffers
37293955d011SMarcel Moolenaar	  o use of getopt replaced with custom code, since the usage
37303955d011SMarcel Moolenaar	  (re-scanning) isn't posix compatible.
37313955d011SMarcel Moolenaar
37323955d011SMarcel Moolenaar2004-02-12  Simon J. Gerraty  <sjg@void.crufty.net>
37333955d011SMarcel Moolenaar
37343955d011SMarcel Moolenaar	* arch.c: don't include ranlib.h on ELF systems
37353955d011SMarcel Moolenaar	(thanks to Chuck Cranor <chuck@ece.cmu.edu>).
37363955d011SMarcel Moolenaar
37373955d011SMarcel Moolenaar2004-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
37383955d011SMarcel Moolenaar
37393955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040118
37403955d011SMarcel Moolenaar
37413955d011SMarcel Moolenaar	* boot-strap (while): export vars we assign to on cmdline
37423955d011SMarcel Moolenaar	* unit-test/Makefile.in: ternary is .PHONY
37433955d011SMarcel Moolenaar
37443955d011SMarcel Moolenaar2004-01-08  Simon J. Gerraty  <sjg@void.crufty.net>
37453955d011SMarcel Moolenaar
37463955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20040108
37473955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37483955d011SMarcel Moolenaar	  o fix for ternary modifier
37493955d011SMarcel Moolenaar
37503955d011SMarcel Moolenaar2004-01-06  Simon J. Gerraty  <sjg@void.crufty.net>
37513955d011SMarcel Moolenaar
37523955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20040105
37533955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37543955d011SMarcel Moolenaar	  o fix for cond.c to handle compound expressions better
37553955d011SMarcel Moolenaar	  o variable expansion within sysV style replacements
37563955d011SMarcel Moolenaar
37573955d011SMarcel Moolenaar2003-12-22  Simon J. Gerraty  <sjg@void.crufty.net>
37583955d011SMarcel Moolenaar
37593955d011SMarcel Moolenaar	* Make portable snprintf safer - output to /dev/null first to
37603955d011SMarcel Moolenaar	check space needed.
37613955d011SMarcel Moolenaar
37623955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20031222
37633955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37643955d011SMarcel Moolenaar	  o -dg3 to show input graph when things go wrong.
37653955d011SMarcel Moolenaar	  o explicitly look for makefiles in objdir if not found in curdir so
37663955d011SMarcel Moolenaar	    that errors in .depend etc will be reported accurarely.
37673955d011SMarcel Moolenaar	  o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
37683955d011SMarcel Moolenaar	    instead as it more accurately reflects the expected behavior and
37693955d011SMarcel Moolenaar	    is more consistently implemented.
37703955d011SMarcel Moolenaar	  o avoid use of asprintf.
37713955d011SMarcel Moolenaar
37723955d011SMarcel Moolenaar2003-09-28  Simon J. Gerraty  <sjg@void.crufty.net>
37733955d011SMarcel Moolenaar
37743955d011SMarcel Moolenaar	* util.c: Add asprintf and vasprintf.
37753955d011SMarcel Moolenaar
37763955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030928
37773955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37783955d011SMarcel Moolenaar	:[] modifier - allows picking words from a variable.
37793955d011SMarcel Moolenaar	:tW modifier - allows treating value as one big word.
37803955d011SMarcel Moolenaar	W flag for :C and :S - allows treating value as one big word.
37813955d011SMarcel Moolenaar
37823955d011SMarcel Moolenaar2003-09-12  Simon J. Gerraty  <sjg@void.crufty.net>
37833955d011SMarcel Moolenaar
37843955d011SMarcel Moolenaar	* Merge with NetBSD make
37853955d011SMarcel Moolenaar	pick up -de flag to enable printing failed command.
37863955d011SMarcel Moolenaar	don't skip 1st two dir entries (normally . and ..) since
37873955d011SMarcel Moolenaar	coda does not have them.
37883955d011SMarcel Moolenaar
37893955d011SMarcel Moolenaar2003-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
37903955d011SMarcel Moolenaar
37913955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030909
37923955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37933955d011SMarcel Moolenaar	- changes for -V '${VAR}' to print fully expanded value
37943955d011SMarcel Moolenaar	  cf. -V VAR
37953955d011SMarcel Moolenaar	- CompatRunCommand now prints the command that failed.
37963955d011SMarcel Moolenaar	- several files got updated 3 clause Berkeley license.
37973955d011SMarcel Moolenaar
37983955d011SMarcel Moolenaar2003-08-02  Simon J. Gerraty  <sjg@void.crufty.net>
37993955d011SMarcel Moolenaar
38003955d011SMarcel Moolenaar	* boot-strap: Allow setting configure args on command line.
38013955d011SMarcel Moolenaar
38023955d011SMarcel Moolenaar2003-07-31  Simon J. Gerraty  <sjg@void.crufty.net>
38033955d011SMarcel Moolenaar
38043955d011SMarcel Moolenaar	* configure.in: add --with-defshell to allow sh or ksh
38053955d011SMarcel Moolenaar	to be selected as default shell.
38063955d011SMarcel Moolenaar
38073955d011SMarcel Moolenaar	* Makefile.in: bump version to 20030731
38083955d011SMarcel Moolenaar
38093955d011SMarcel Moolenaar	* Merge with NetBSD make
38103955d011SMarcel Moolenaar	Pick up .SHELL spec for ksh and associate man page changes.
38113955d011SMarcel Moolenaar	Also compat mode now uses the same shell specs.
38123955d011SMarcel Moolenaar
38133955d011SMarcel Moolenaar2003-07-29  Simon J. Gerraty  <sjg@void.crufty.net>
38143955d011SMarcel Moolenaar
38153955d011SMarcel Moolenaar	* var.c (Var_Parse): ensure delim is initialized.
38163955d011SMarcel Moolenaar
38173955d011SMarcel Moolenaar	* unit-tests/Makefile.in: use single quotes to avoid problems from
38183955d011SMarcel Moolenaar	some shells.
38193955d011SMarcel Moolenaar
38203955d011SMarcel Moolenaar	* makefile.boot.in:
38213955d011SMarcel Moolenaar	Run the unit-tests as part of the bootstrap procedure.
38223955d011SMarcel Moolenaar
38233955d011SMarcel Moolenaar2003-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
38243955d011SMarcel Moolenaar
38253955d011SMarcel Moolenaar	* unit-tests/Makefile.in: always force complaints from
38263955d011SMarcel Moolenaar	${TEST_MAKE} to be from 'make'.
38273955d011SMarcel Moolenaar
38283955d011SMarcel Moolenaar	* configure.in: add check for 'diff -u'
38293955d011SMarcel Moolenaar	also fix some old autoconf'isms
38303955d011SMarcel Moolenaar
38313955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030728.
38323955d011SMarcel Moolenaar	if using GCC add -Wno-cast-qual to CFLAGS for var.o
38333955d011SMarcel Moolenaar
38343955d011SMarcel Moolenaar	* Merge with NetBSD make
38353955d011SMarcel Moolenaar	Pick up fix for :ts parsing error in some cases.
38363955d011SMarcel Moolenaar	Pick unit-tests.
38373955d011SMarcel Moolenaar
38383955d011SMarcel Moolenaar2003-07-23  Simon J. Gerraty  <sjg@void.crufty.net>
38393955d011SMarcel Moolenaar
38403955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030723.
38413955d011SMarcel Moolenaar
38423955d011SMarcel Moolenaar	* var.c (Var_Parse): fix bug in :ts modifier, after const
38433955d011SMarcel Moolenaar	correctness fixes, must pass nstr to VarModify.
38443955d011SMarcel Moolenaar
38453955d011SMarcel Moolenaar2003-07-14  Simon J. Gerraty  <sjg@void.crufty.net>
38463955d011SMarcel Moolenaar
38473955d011SMarcel Moolenaar	* Makefile.in: BMAKE_VERSION switch to a date based version.
38483955d011SMarcel Moolenaar	We'll generally use the date of last import from NetBSD.
38493955d011SMarcel Moolenaar
38503955d011SMarcel Moolenaar	* Merge with NetBSD make
38513955d011SMarcel Moolenaar	Pick up fixes for const-correctness, now passes WARNS=3 on
38523955d011SMarcel Moolenaar	NetBSD.
38533955d011SMarcel Moolenaar	Pick up :ts modifier, allows controlling the separator used
38543955d011SMarcel Moolenaar	between words in variable expansion.
38553955d011SMarcel Moolenaar
38563955d011SMarcel Moolenaar2003-07-11  Simon J. Gerraty  <sjg@void.crufty.net>
38573955d011SMarcel Moolenaar
38583955d011SMarcel Moolenaar	* FILES: include boot-strap and os.sh
38593955d011SMarcel Moolenaar
38603955d011SMarcel Moolenaar	* Makefile.in: only set WARNS if we are NetBSD, the effect on
38613955d011SMarcel Moolenaar	FreeBSD is known to be bad.
38623955d011SMarcel Moolenaar
38633955d011SMarcel Moolenaar	* makefile.boot.in (bootstrap): make this the default target.
38643955d011SMarcel Moolenaar
38653955d011SMarcel Moolenaar	* Makefile.in: bump version to 3.1.19
38663955d011SMarcel Moolenaar
38673955d011SMarcel Moolenaar	* machine.sh: avoid A-Z with tr as it is bound to lose.
38683955d011SMarcel Moolenaar
38693955d011SMarcel Moolenaar2003-07-10  Simon J. Gerraty  <sjg@void.crufty.net>
38703955d011SMarcel Moolenaar
38713955d011SMarcel Moolenaar	* Merge with NetBSD make
38723955d011SMarcel Moolenaar	Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
38733955d011SMarcel Moolenaar	Plus some doc fixes.
38743955d011SMarcel Moolenaar
38753955d011SMarcel Moolenaar2003-04-27  Simon J. Gerraty  <sjg@void.crufty.net>
38763955d011SMarcel Moolenaar
38773955d011SMarcel Moolenaar	* Merge with NetBSD make
38783955d011SMarcel Moolenaar	Pick up fix for PR/1523 - don't count a library as built, if there
38793955d011SMarcel Moolenaar	is no way to build it
38803955d011SMarcel Moolenaar
38813955d011SMarcel Moolenaar	* Bump version to 3.1.18
38823955d011SMarcel Moolenaar
38833955d011SMarcel Moolenaar2003-03-23  Simon J. Gerraty  <sjg@void.crufty.net>
38843955d011SMarcel Moolenaar
38853955d011SMarcel Moolenaar	* Merge with NetBSD make
38863955d011SMarcel Moolenaar	Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT
38873955d011SMarcel Moolenaar	appears in src list.
38883955d011SMarcel Moolenaar
38893955d011SMarcel Moolenaar2003-03-21  Simon J. Gerraty  <sjg@void.crufty.net>
38903955d011SMarcel Moolenaar
38913955d011SMarcel Moolenaar	* Merge with NetBSD make (mmm 10th anniversary!)
38923955d011SMarcel Moolenaar	pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828)
38933955d011SMarcel Moolenaar	pick up -X which tells us to not export VAR=val via setenv if
38943955d011SMarcel Moolenaar	we are already doing so via MAKEFLAGS.  This saves valuable env
38953955d011SMarcel Moolenaar	space on systems like Darwin.
38963955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.17
38973955d011SMarcel Moolenaar
38983955d011SMarcel Moolenaar	* parse.c: pix up fix for suffix rules
38993955d011SMarcel Moolenaar
39003955d011SMarcel Moolenaar2003-03-06  Simon J. Gerraty  <sjg@void.crufty.net>
39013955d011SMarcel Moolenaar
39023955d011SMarcel Moolenaar	* Merge with NetBSD make.
39033955d011SMarcel Moolenaar	pick up fix for propagating -B via MAKEFLAGS.
39043955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.16
39053955d011SMarcel Moolenaar
39063955d011SMarcel Moolenaar	* Apply some patches from pkgsrc-bootstrap/bmake
39073955d011SMarcel Moolenaar	Originally by Grant Beattie <grant@netbsd.org>
39083955d011SMarcel Moolenaar	I may have missed some - since they are based on bmake-3.1.12
39093955d011SMarcel Moolenaar
39103955d011SMarcel Moolenaar2002-12-03  Simon J. Gerraty  <sjg@void.crufty.net>
39113955d011SMarcel Moolenaar
39123955d011SMarcel Moolenaar	* makefile.boot.in (bmake): update install targets for those that
39133955d011SMarcel Moolenaar	use them, also clear MAKEFLAGS when invoking bmake.boot to avoid
39143955d011SMarcel Moolenaar	havoc from gmake -w.  Thanks to Harlan Stenn <hstenn@cisco.com>.
39153955d011SMarcel Moolenaar
39163955d011SMarcel Moolenaar	* bmake.cat1: update the pre-formatted man page!
39173955d011SMarcel Moolenaar
39183955d011SMarcel Moolenaar2002-11-30  Simon J. Gerraty  <sjg@void.crufty.net>
39193955d011SMarcel Moolenaar
39203955d011SMarcel Moolenaar	* Merge with NetBSD make.
39213955d011SMarcel Moolenaar	pick up fix for premature free of pointer used in call
39223955d011SMarcel Moolenaar	to Dir_InitCur().
39233955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.15
39243955d011SMarcel Moolenaar
39253955d011SMarcel Moolenaar2002-11-26  Simon J. Gerraty  <sjg@void.crufty.net>
39263955d011SMarcel Moolenaar
39273955d011SMarcel Moolenaar	* configure.in: determine suitable value for MKSRC.
39283955d011SMarcel Moolenaar	override using --with-mksrc=PATH.
39293955d011SMarcel Moolenaar
39303955d011SMarcel Moolenaar	* machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems.
39313955d011SMarcel Moolenaar	configs(8) will use 'sun4' as an alias for 'sparc'.
39323955d011SMarcel Moolenaar
39333955d011SMarcel Moolenaar2002-11-25  Simon J. Gerraty  <sjg@void.crufty.net>
39343955d011SMarcel Moolenaar
39353955d011SMarcel Moolenaar	* Merge with NetBSD make.
39363955d011SMarcel Moolenaar	pick up ${.PATH}
39373955d011SMarcel Moolenaar	pick up fix for finding ../cat.c via .PATH when .CURDIR=..
39383955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.14
39393955d011SMarcel Moolenaar	add configure checks for killpg and sys/socket.h
39403955d011SMarcel Moolenaar
39413955d011SMarcel Moolenaar2002-09-16  Simon J. Gerraty  <sjg@void.crufty.net>
39423955d011SMarcel Moolenaar
39433955d011SMarcel Moolenaar	* tag bmake-3-1-13
39443955d011SMarcel Moolenaar
39453955d011SMarcel Moolenaar	* makefile.boot.in (bmake): use install-mk
39463955d011SMarcel Moolenaar	Also setup ./mk before trying to invoke bmake.boot incase we
39473955d011SMarcel Moolenaar	needed install-mk to create a sys.mk for us.
39483955d011SMarcel Moolenaar
39493955d011SMarcel Moolenaar	* configure.in: If we need to add -I${srcdir}/missing, make it an
39503955d011SMarcel Moolenaar	absolute path so that it works for lst.lib too.
39513955d011SMarcel Moolenaar
39523955d011SMarcel Moolenaar	* make.h: always include sys/cdefs.h since we provide one if the
39533955d011SMarcel Moolenaar	host does not.
39543955d011SMarcel Moolenaar
39553955d011SMarcel Moolenaar	* Makefile.in (install-mk):
39563955d011SMarcel Moolenaar	use MKSRC/install-mk which will do the right thing.
39573955d011SMarcel Moolenaar	use uname -p for ARCH if possible.
39583955d011SMarcel Moolenaar	since install-mk will setup links bsd.prog.mk -> prog.mk if
39593955d011SMarcel Moolenaar	needed, just .include bsd.prog.mk
39603955d011SMarcel Moolenaar
39613955d011SMarcel Moolenaar	* Merge with NetBSD make (NetBSD-1.6)
39623955d011SMarcel Moolenaar	Code is ansi-C only now.
39633955d011SMarcel Moolenaar	Bug in handling of dotLast is fixed.
39643955d011SMarcel Moolenaar	Can now assign .OBJDIR and make will reset its notions of life.
39653955d011SMarcel Moolenaar	New modifiers :tu :tl for toUpper and toLower.
39663955d011SMarcel Moolenaar
39673955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
39683955d011SMarcel Moolenaar
39693955d011SMarcel Moolenaar	* Merge with NetBSD make
39703955d011SMarcel Moolenaar	pick up fix for .END failure in compat mode.
39713955d011SMarcel Moolenaar	pick up fix for extra va_end() in ParseVErrorInternal.
39723955d011SMarcel Moolenaar
39733955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
39743955d011SMarcel Moolenaar
39753955d011SMarcel Moolenaar	* configure.in: for systems that have sys/cdefs.h check if it is
39763955d011SMarcel Moolenaar	compatible.  If not, include the one under missing, but tell it to
39773955d011SMarcel Moolenaar	include the native one too - necessary on Linux.
39783955d011SMarcel Moolenaar
39793955d011SMarcel Moolenaar	* missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use
39803955d011SMarcel Moolenaar	include_next (for gcc) to get the native sys/cdefs.h
39813955d011SMarcel Moolenaar
39823955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
39833955d011SMarcel Moolenaar
39843955d011SMarcel Moolenaar	* job.c (JobFinish): Fix an earlier merge bug that resulted in
39853955d011SMarcel Moolenaar	leaking descriptors when using -jN.
39863955d011SMarcel Moolenaar
39873955d011SMarcel Moolenaar	* job.c (JobPrintCommand): See if "curdir" exists before
39883955d011SMarcel Moolenaar	attempting to chdir().  Doing the chdir directly in make (when in
39893955d011SMarcel Moolenaar	compat mode) fails silently, so let the -jN version do the same.
39903955d011SMarcel Moolenaar	This can happen when building kernels in an object tree and
39913955d011SMarcel Moolenaar	playing clever games to reset .CURDIR.
39923955d011SMarcel Moolenaar
39933955d011SMarcel Moolenaar	* Merged with NetBSD make
39943955d011SMarcel Moolenaar	pick up .USEBEFORE
39953955d011SMarcel Moolenaar
39963955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
39973955d011SMarcel Moolenaar
39983955d011SMarcel Moolenaar	* makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work.
39993955d011SMarcel Moolenaar
40003955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
40013955d011SMarcel Moolenaar
40023955d011SMarcel Moolenaar	* var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
40033955d011SMarcel Moolenaar	us not to export the iterator variable when using VAR_CMD context.
40043955d011SMarcel Moolenaar
40053955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
40063955d011SMarcel Moolenaar
40073955d011SMarcel Moolenaar	* job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
40083955d011SMarcel Moolenaar	its the wrong "fix".
40093955d011SMarcel Moolenaar
40103955d011SMarcel MoolenaarSat Jun  9 00:11:24 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
40113955d011SMarcel Moolenaar
40123955d011SMarcel Moolenaar	* Redesigned export of VAR_CMD's via MAKEFLAGS.
40133955d011SMarcel Moolenaar	We now simply append the variable names to .MAKEOVERRIDES, and
40143955d011SMarcel Moolenaar	handle duplicate suppression and quoting in ExportMAKEFLAGS using:
40153955d011SMarcel Moolenaar	${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
40163955d011SMarcel Moolenaar	Apart from fixing quoting bugs in previous version, this allows us
40173955d011SMarcel Moolenaar	to export vars to the environment by simply doing:
40183955d011SMarcel Moolenaar	.MAKEOVERRIDES+= PATH
40193955d011SMarcel Moolenaar	Merged again with NetBSD make, but the above is the only change.
40203955d011SMarcel Moolenaar
40213955d011SMarcel Moolenaar	* configure.in: added
40223955d011SMarcel Moolenaar	--disable-pwd-override		disable $PWD overriding getcwd()
40233955d011SMarcel Moolenaar	--disable-check-make-chdir	disable make trying to guess
40243955d011SMarcel Moolenaar		when it should automatically cd ${.CURDIR}
40253955d011SMarcel Moolenaar
40263955d011SMarcel Moolenaar	* Merge with NetBSD make, changes include:
40273955d011SMarcel Moolenaar	parse.c (ParseDoDependency): Spot that the syntax error is
40283955d011SMarcel Moolenaar	caused by an unresolved cvs/rcs conflict and say so.
40293955d011SMarcel Moolenaar	var.c: most of Var* functions now take a ctxt as 1st arg.
40303955d011SMarcel Moolenaar	now does variable substituion on rhs of sysv style modifiers.
40313955d011SMarcel Moolenaar
40323955d011SMarcel Moolenaar	* var.c (Var_Set): exporting of command line variables (VAR_CMD)
40333955d011SMarcel Moolenaar	is now done here.  We append the name='value' to .MAKEOVERRIDES
40343955d011SMarcel Moolenaar	rather than directly into MAKEFLAGS as this allows a Makefile to
40353955d011SMarcel Moolenaar	use .MAKEOVERRIDES= to disable this behaviour.  GNU make uses a
40363955d011SMarcel Moolenaar	very similar mechanism.  Note that in adding name='value' to
40373955d011SMarcel Moolenaar	.MAKEOVERRIDES we do the moral equivalent of:
40383955d011SMarcel Moolenaar	.MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
40393955d011SMarcel Moolenaar
40403955d011SMarcel MoolenaarFri Jun  1 14:08:02 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
40413955d011SMarcel Moolenaar
40423955d011SMarcel Moolenaar	* make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H
40433955d011SMarcel Moolenaar
40443955d011SMarcel Moolenaar	* Merged with NetBSD make
40453955d011SMarcel Moolenaar	make -dx can now be used to run commands via sh -x
40463955d011SMarcel Moolenaar	better error messages on exec failures.
40473955d011SMarcel Moolenaar
40483955d011SMarcel MoolenaarThu May 31 01:44:54 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
40493955d011SMarcel Moolenaar
40503955d011SMarcel Moolenaar	* Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that
40513955d011SMarcel Moolenaar	MAKE_VERSION gets updated.  Also don't use ?= for MAKE_VERSION,
40523955d011SMarcel Moolenaar	MACHINE etc otherwise they propagate from the previous bmake.
40533955d011SMarcel Moolenaar
40543955d011SMarcel Moolenaar	* configure.in (machine): allow --with-machine=generic to make
40553955d011SMarcel Moolenaar	configure use machine.sh to set MACHINE.
40563955d011SMarcel Moolenaar
40573955d011SMarcel Moolenaar	* job.c (JobInterrupt): convert to using WAIT_T and friends.
40583955d011SMarcel Moolenaar
40593955d011SMarcel Moolenaar	* Makefile.in: mention in bmake.1 that we use autoconf.
40603955d011SMarcel Moolenaar
40613955d011SMarcel Moolenaar	* make.1: mention MAKE_PRINT_VAR_ON_ERROR.
40623955d011SMarcel Moolenaar
40633955d011SMarcel MoolenaarWed May 30 23:17:18 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
40643955d011SMarcel Moolenaar
40653955d011SMarcel Moolenaar	* main.c (ReadMakefile): don't set MAKEFILE if reading ".depend"
40663955d011SMarcel Moolenaar	as that rather defeats the usefulness of ${MAKEFILE}.
40673955d011SMarcel Moolenaar
40683955d011SMarcel Moolenaar	* main.c (MainParseArgs): append command line variable assignments
40693955d011SMarcel Moolenaar	to MAKEFLAGS so that they get propagated to child make's.
40703955d011SMarcel Moolenaar	Apparently this is required POSIX behaviour?  Its useful anyway.
40713955d011SMarcel Moolenaar
40723955d011SMarcel MoolenaarTue May 29 02:20:07 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
40733955d011SMarcel Moolenaar
40743955d011SMarcel Moolenaar	* compat.c (CompatRunCommand): don't use perror() since stdio may
40753955d011SMarcel Moolenaar	cause problems in child of vfork().
40763955d011SMarcel Moolenaar
40773955d011SMarcel Moolenaar	* compat.c, main.c: Call PrintOnError() when we are going to bail.
40783955d011SMarcel Moolenaar	This routine prints out the .curdir where we stopped and will also
40793955d011SMarcel Moolenaar	display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}.
40803955d011SMarcel Moolenaar
40813955d011SMarcel Moolenaar	* main.c: add ${.newline} to hold a "\n" - sometimes handy in
40823955d011SMarcel Moolenaar	:@ expansion.
40833955d011SMarcel Moolenaar
40843955d011SMarcel Moolenaar	* var.c: VarLoopExpand: ignore addSpace if a \n is present.
40853955d011SMarcel Moolenaar
40863955d011SMarcel Moolenaar	* Added RCSid's for the files we've touched.
40873955d011SMarcel Moolenaar
40883955d011SMarcel MoolenaarThu May 24 15:41:37 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
40893955d011SMarcel Moolenaar
40903955d011SMarcel Moolenaar	* configure.in:	Thanks to some clues from mdb@juniper.net,
40913955d011SMarcel Moolenaar	added autoconf magic to control setting of MACHINE, MACHINE_ARCH
40923955d011SMarcel Moolenaar	as well as what ends up in _PATH_DEFSYSPATH.  We now have:
40933955d011SMarcel Moolenaar
40943955d011SMarcel Moolenaar  --with-machine=MACHINE  explicitly set MACHINE
40953955d011SMarcel Moolenaar  --with-force-machine=MACHINE  set FORCE_MACHINE
40963955d011SMarcel Moolenaar  --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
40973955d011SMarcel Moolenaar  --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
40983955d011SMarcel Moolenaar  --with-prefix-sys-path=PATH:DIR:LIST  prefix _PATH_PREFIX_SYSPATH
40993955d011SMarcel Moolenaar  --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
41003955d011SMarcel Moolenaar
41013955d011SMarcel Moolenaar	If _PATH_OBJDIRPREFIX is set to "no" we won't define it.
41023955d011SMarcel Moolenaar
41033955d011SMarcel Moolenaar	* makefile: added a pathetically simple makefile to drive
41043955d011SMarcel Moolenaar	bootstrapping.  Running configure by hand is more useful.
41053955d011SMarcel Moolenaar
41063955d011SMarcel Moolenaar	* Makefile.in: added MAKE_VERSION, and reworked things to be less
41073955d011SMarcel Moolenaar	dependent on NetBSD bsd.*.mk
41083955d011SMarcel Moolenaar
41093955d011SMarcel Moolenaar	* pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining
41103955d011SMarcel Moolenaar	_PATH_OBJDIRPREFIX for those that don't want a default.
41113955d011SMarcel Moolenaar	construct _PATH_DEFSYSPATH from the info we get from configure.
41123955d011SMarcel Moolenaar
41133955d011SMarcel Moolenaar	* main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION}
41143955d011SMarcel Moolenaar	if MAKE_VERSION is defined.
41153955d011SMarcel Moolenaar
41163955d011SMarcel Moolenaar	* compat.c: when we bail, print out the .CURDIR we were in.
41173955d011SMarcel Moolenaar
41183955d011SMarcel MoolenaarSat May 12 00:34:12 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
41193955d011SMarcel Moolenaar
41203955d011SMarcel Moolenaar	* Merged with NetBSD make
41213955d011SMarcel Moolenaar
41223955d011SMarcel Moolenaar	* var.c: fixed a bug in the handling of the modifier :P
41233955d011SMarcel Moolenaar	if the node as found but the path was null, we segfault trying to
41243955d011SMarcel Moolenaar	duplicate it.
41253955d011SMarcel Moolenaar
41263955d011SMarcel MoolenaarMon Mar  5 16:20:33 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
41273955d011SMarcel Moolenaar
41283955d011SMarcel Moolenaar	* Merged with NetBSD make
41293955d011SMarcel Moolenaar
41303955d011SMarcel Moolenaar	* make.c: Make_OODate's test for a library out of date was using
41313955d011SMarcel Moolenaar	cmtime where it should have used mtime (my bug).
41323955d011SMarcel Moolenaar
41333955d011SMarcel Moolenaar	* compat.c: Use perror() to tell us what really went wrong when we
41343955d011SMarcel Moolenaar	cannot exec a command.
41353955d011SMarcel Moolenaar
41363955d011SMarcel MoolenaarFri Dec 15 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
41373955d011SMarcel Moolenaar
41383955d011SMarcel Moolenaar	* Merged with NetBSD make
41393955d011SMarcel Moolenaar
41403955d011SMarcel MoolenaarSat Jun 10 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
41413955d011SMarcel Moolenaar
41423955d011SMarcel Moolenaar	* Merged with NetBSD make
41433955d011SMarcel Moolenaar
41443955d011SMarcel MoolenaarThu Jun  1 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
41453955d011SMarcel Moolenaar
41463955d011SMarcel Moolenaar	* Merged with NetBSD make
41473955d011SMarcel Moolenaar
41483955d011SMarcel MoolenaarTue May 30 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
41493955d011SMarcel Moolenaar
41503955d011SMarcel Moolenaar	* Merged with NetBSD make
41513955d011SMarcel Moolenaar
41523955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
41533955d011SMarcel Moolenaar
41543955d011SMarcel Moolenaar	* util.c: don't provide signal() since we use sigcompat.c
41553955d011SMarcel Moolenaar
41563955d011SMarcel Moolenaar	* Makefile.in: added a build target.
41573955d011SMarcel Moolenaar
41583955d011SMarcel Moolenaar	* var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :!
41593955d011SMarcel Moolenaar	These allow some quite clever magic.
41603955d011SMarcel Moolenaar
41613955d011SMarcel Moolenaar	* main.c (main): added support for getenv(MAKESYSPATH).
41623955d011SMarcel Moolenaar
41633955d011SMarcel MoolenaarMon Apr  2 16:25:13 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
41643955d011SMarcel Moolenaar
41653955d011SMarcel Moolenaar	* Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set.
41663955d011SMarcel Moolenaar	This avoids objdir having a different value depending on how a
41673955d011SMarcel Moolenaar	directory was reached (via command line, or subdir.mk).
41683955d011SMarcel Moolenaar
41693955d011SMarcel Moolenaar	* If FORCE_MACHINE is defined, ignore getenv("MACHINE").
41703955d011SMarcel Moolenaar
41713955d011SMarcel MoolenaarMon Apr  2 23:15:31 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
41723955d011SMarcel Moolenaar
41733955d011SMarcel Moolenaar	* Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if
41743955d011SMarcel Moolenaar	MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not.
41753955d011SMarcel Moolenaar	I've been testing this in NetBSD's make for some weeks.
41763955d011SMarcel Moolenaar
41773955d011SMarcel Moolenaar	* Turn Makefile into Makefile.in and make it useful.
41783955d011SMarcel Moolenaar
41793955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty  <sjg@zen.quick.com.au>
41803955d011SMarcel Moolenaar
41813955d011SMarcel Moolenaar	* Imported NetBSD's -current make(1) and resolve conflicts.
41823955d011SMarcel Moolenaar
41833955d011SMarcel Moolenaar	* Applied autoconf patches from bmake v2
41843955d011SMarcel Moolenaar
41853955d011SMarcel Moolenaar	* Imported clean code base from NetBSD-1.0
4186