xref: /freebsd/contrib/bmake/ChangeLog (revision c59c3bf34db360695f07735bebc76a768cac5afc)
1*c59c3bf3SSimon J. Gerraty2024-03-10  Simon J Gerraty  <sjg@beast.crufty.net>
2*c59c3bf3SSimon J. Gerraty
3*c59c3bf3SSimon J. Gerraty	* boot-strap: tests can take a long time; use a cookie to
4*c59c3bf3SSimon J. Gerraty	skip them if bmake has not been updated since tests last
5*c59c3bf3SSimon J. Gerraty	ran successfully.
6*c59c3bf3SSimon J. Gerraty
7*c59c3bf3SSimon J. Gerraty	* Makefile: Cygwin handles MANTARGET man
8*c59c3bf3SSimon J. Gerraty
9*c59c3bf3SSimon J. Gerraty	* unit-tests/Makefile: set BROKEN_TESTS for Cygwin
10*c59c3bf3SSimon J. Gerraty
11*c59c3bf3SSimon J. Gerraty2024-03-09  Simon J Gerraty  <sjg@beast.crufty.net>
12*c59c3bf3SSimon J. Gerraty
13*c59c3bf3SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240309
14*c59c3bf3SSimon J. Gerraty	Merge with NetBSD make, pick up
15*c59c3bf3SSimon J. Gerraty	o set .ERROR_EXIT to the exit status of .ERROR_TARGET
16*c59c3bf3SSimon J. Gerraty	this allows a .ERROR target to ignore the case of
17*c59c3bf3SSimon J. Gerraty	.ERROR_EXIT==6 which just means that the build actually
18*c59c3bf3SSimon J. Gerraty	failed somewhere else.
19*c59c3bf3SSimon J. Gerraty
20*c59c3bf3SSimon J. Gerraty2024-03-04  Simon J Gerraty  <sjg@beast.crufty.net>
21*c59c3bf3SSimon J. Gerraty
22*c59c3bf3SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240303
23*c59c3bf3SSimon J. Gerraty
24*c59c3bf3SSimon J. Gerraty	* var.c: on IRIX we need both inttypes.h and stdint.h
25*c59c3bf3SSimon J. Gerraty
26*c59c3bf3SSimon J. Gerraty2024-03-01  Simon J Gerraty  <sjg@beast.crufty.net>
27*c59c3bf3SSimon J. Gerraty
28*c59c3bf3SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240301
29*c59c3bf3SSimon J. Gerraty	Merge with NetBSD make, pick up
30*c59c3bf3SSimon J. Gerraty	o export variables with value from target scope
31*c59c3bf3SSimon J. Gerraty	when appropriate.
32*c59c3bf3SSimon J. Gerraty
33*c59c3bf3SSimon J. Gerraty2024-02-12  Simon J Gerraty  <sjg@beast.crufty.net>
34*c59c3bf3SSimon J. Gerraty
35*c59c3bf3SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240212
36*c59c3bf3SSimon J. Gerraty	Merge with NetBSD make, pick up
37*c59c3bf3SSimon J. Gerraty	o remove unneeded conditional-compilation toggles
38*c59c3bf3SSimon J. Gerraty	INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB,
39*c59c3bf3SSimon J. Gerraty	GMAKEEXPORT NO_REGEX and SUNSHCMD
40*c59c3bf3SSimon J. Gerraty
41*c59c3bf3SSimon J. Gerraty	* configure.in: add check for regex.h
42*c59c3bf3SSimon J. Gerraty
43*c59c3bf3SSimon J. Gerraty	* var.c: replace use of NO_REGEX with HAVE_REGEX_H
44*c59c3bf3SSimon J. Gerraty
45*c59c3bf3SSimon J. Gerraty2024-02-04  Simon J Gerraty  <sjg@beast.crufty.net>
46*c59c3bf3SSimon J. Gerraty
47*c59c3bf3SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240204
48*c59c3bf3SSimon J. Gerraty	Merge with NetBSD make, pick up
49*c59c3bf3SSimon J. Gerraty	o var.c: fix some lint (-dL) mode parsing issues
50*c59c3bf3SSimon J. Gerraty
51*c59c3bf3SSimon J. Gerraty2024-02-02  Simon J Gerraty  <sjg@beast.crufty.net>
52*c59c3bf3SSimon J. Gerraty
53*c59c3bf3SSimon J. Gerraty	* VERSION: (_MAKE_VERSION): 20240202
54*c59c3bf3SSimon J. Gerraty	Merge with NetBSD make, pick up
55*c59c3bf3SSimon J. Gerraty	o make.1: note that arg to :D and :U can be empty
56*c59c3bf3SSimon J. Gerraty	o var.c: $$ is not a parse error when .MAKE.SAVE_DOLLARS=no
57*c59c3bf3SSimon J. Gerraty
58d5e0a182SSimon J. Gerraty2024-01-08  Simon J Gerraty  <sjg@beast.crufty.net>
59d5e0a182SSimon J. Gerraty
60d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240108
61d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
62d5e0a182SSimon J. Gerraty	o miscellaneous cleanups
63d5e0a182SSimon J. Gerraty
64d5e0a182SSimon J. Gerraty2024-01-06  Simon J Gerraty  <sjg@beast.crufty.net>
65d5e0a182SSimon J. Gerraty
66d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240106
67d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
68d5e0a182SSimon J. Gerraty	o fix duplicate progname when reporting an unknown target
69d5e0a182SSimon J. Gerraty	o unit tests for Cmd_Exec using temp file
70d5e0a182SSimon J. Gerraty
71d5e0a182SSimon J. Gerraty2024-01-05  Simon J Gerraty  <sjg@beast.crufty.net>
72d5e0a182SSimon J. Gerraty
73d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240105
74d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
75d5e0a182SSimon J. Gerraty	o main.c: Cmd_Exec write cmd to a file if too big
76d5e0a182SSimon J. Gerraty	avoid blowing commandline/env limits
77d5e0a182SSimon J. Gerraty
78d5e0a182SSimon J. Gerraty2024-01-02  Simon J Gerraty  <sjg@beast.crufty.net>
79d5e0a182SSimon J. Gerraty
80d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20240101
81d5e0a182SSimon J. Gerraty	o util.c: flesh out more of strftime
82d5e0a182SSimon J. Gerraty	* configure.in: add --with-bmake-strftime
83d5e0a182SSimon J. Gerraty	it is not a full implementation but enough to pass all
84d5e0a182SSimon J. Gerraty	the unit-tests.
85d5e0a182SSimon J. Gerraty	* parse.c: LoadFile do not append \n to empty buffer.
86d5e0a182SSimon J. Gerraty
87d5e0a182SSimon J. Gerraty2023-12-30  Simon J Gerraty  <sjg@beast.crufty.net>
88d5e0a182SSimon J. Gerraty
89d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20231230
90d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
91d5e0a182SSimon J. Gerraty	o simplify memory allocation for string buffers
92d5e0a182SSimon J. Gerraty	o fix declared types of list nodes
93d5e0a182SSimon J. Gerraty	o suff.c: clean up freeing of suffixes
94d5e0a182SSimon J. Gerraty	o var.c: simplify debug message for the ':@var@...@' modifier
95d5e0a182SSimon J. Gerraty	clean up variable handling
96d5e0a182SSimon J. Gerraty
97d5e0a182SSimon J. Gerraty2023-12-26  Simon J Gerraty  <sjg@beast.crufty.net>
98d5e0a182SSimon J. Gerraty
99d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20231226
100d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
101d5e0a182SSimon J. Gerraty	o compat.c: ensure make's output is correctly ordered with that of
102d5e0a182SSimon J. Gerraty	the target when not going to a tty
103d5e0a182SSimon J. Gerraty	o main.c: check for shellPath whether to call Shell_Init()
104d5e0a182SSimon J. Gerraty
105d5e0a182SSimon J. Gerraty2023-12-24  Simon J Gerraty  <sjg@beast.crufty.net>
106d5e0a182SSimon J. Gerraty
107d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20231224
108d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
109d5e0a182SSimon J. Gerraty	o compat.c: check for shellPath whether to call Shell_Init()
110d5e0a182SSimon J. Gerraty	tweak the unit test to detect the bug thus fixed.
111d5e0a182SSimon J. Gerraty	o make.1: do not claim .SHELL is only used by jobs mode.
112d5e0a182SSimon J. Gerraty
113d5e0a182SSimon J. Gerraty2023-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
114d5e0a182SSimon J. Gerraty
115d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20231220
116d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
117d5e0a182SSimon J. Gerraty	o str.c: speed up pattern matching in the ':M' modifier
118d5e0a182SSimon J. Gerraty	o var.c: fix confusing debug logging when deleting a variable
119d5e0a182SSimon J. Gerraty	use consistent debug messages style when ignoring variables
120d5e0a182SSimon J. Gerraty
121d5e0a182SSimon J. Gerraty2023-12-10  Simon J Gerraty  <sjg@beast.crufty.net>
122d5e0a182SSimon J. Gerraty
123d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20231210
124d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
125d5e0a182SSimon J. Gerraty	o var.c: avoid segfault on empty :C match expression
126d5e0a182SSimon J. Gerraty	explain in debug log why variable assignment is ignored.
127d5e0a182SSimon J. Gerraty
128d5e0a182SSimon J. Gerraty2023-12-08  Simon J Gerraty  <sjg@beast.crufty.net>
129d5e0a182SSimon J. Gerraty
130d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20231208
131d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
132d5e0a182SSimon J. Gerraty	o var.c: ensure fromCmd is set correctly for variables set on
133d5e0a182SSimon J. Gerraty	command line.
134d5e0a182SSimon J. Gerraty
135d5e0a182SSimon J. Gerraty2023-11-26  Simon J Gerraty  <sjg@beast.crufty.net>
136d5e0a182SSimon J. Gerraty
137d5e0a182SSimon J. Gerraty	* configure.in: disable generation of 'makefile' for
138d5e0a182SSimon J. Gerraty	Darwin by default.
139d5e0a182SSimon J. Gerraty
140d5e0a182SSimon J. Gerraty	* boot-strap: docuement --without-makefile
141d5e0a182SSimon J. Gerraty
142d5e0a182SSimon J. Gerraty2023-11-24  Simon J Gerraty  <sjg@beast.crufty.net>
143d5e0a182SSimon J. Gerraty
144d5e0a182SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20231124
145d5e0a182SSimon J. Gerraty	Merge with NetBSD make, pick up
146d5e0a182SSimon J. Gerraty	o main.c: cleanup processing of -j
147d5e0a182SSimon J. Gerraty	fix lint warning about strchr
148d5e0a182SSimon J. Gerraty	o var.c: more accurate error message for invalid ':mtime' argument
149d5e0a182SSimon J. Gerraty	cleanup :[...] modifier
150d5e0a182SSimon J. Gerraty	avoid reading beyond substring when comparing
151d5e0a182SSimon J. Gerraty	o unit-tests cover all cases of :mtime, test and explain exporting
152d5e0a182SSimon J. Gerraty	of variables
153d5e0a182SSimon J. Gerraty	o cleanup comments
154d5e0a182SSimon J. Gerraty
155d5e0a182SSimon J. Gerraty2023-09-17  Simon J Gerraty  <sjg@beast.crufty.net>
156d5e0a182SSimon J. Gerraty
157d5e0a182SSimon J. Gerraty	* bsd.after-import.mk (ECHO_TAG): FreeBSD no longer uses
158d5e0a182SSimon J. Gerraty	$FreeBSD$ tag, so avoid adding it.
159d5e0a182SSimon J. Gerraty
16098875883SSimon J. Gerraty2023-09-09  Simon J Gerraty  <sjg@beast.crufty.net>
16198875883SSimon J. Gerraty
16298875883SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230909
16398875883SSimon J. Gerraty	Merge with NetBSD make, pick up
16498875883SSimon J. Gerraty	o main.c: allow -j to compute a multiple of ncpu
16598875883SSimon J. Gerraty	If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating
16698875883SSimon J. Gerraty	point number or ends in 'C' compute .MAKE.JOBS as a multiple of
16798875883SSimon J. Gerraty	_SC_NPROCESSORS_ONLN
16898875883SSimon J. Gerraty	.MAKE.JOBS.C will be "yes" if -jC is supported
16998875883SSimon J. Gerraty
17098875883SSimon J. Gerraty2023-08-20  Simon J Gerraty  <sjg@beast.crufty.net>
17198875883SSimon J. Gerraty
17298875883SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230820
17398875883SSimon J. Gerraty	Merge with NetBSD make, pick up
17498875883SSimon J. Gerraty	o make.1: note that :localtime is better for %s
17598875883SSimon J. Gerraty	o parse.c: improve error messages for invalid input.
17698875883SSimon J. Gerraty	o var.c: fix for %s:L:gmtime - set TZ=UTC and use localtime to get
17798875883SSimon J. Gerraty	correct result, it is still better to use %s:L:localtime.
17898875883SSimon J. Gerraty
17998875883SSimon J. Gerraty2023-08-18  Simon J Gerraty  <sjg@beast.crufty.net>
18098875883SSimon J. Gerraty
18198875883SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230818
18298875883SSimon J. Gerraty	Merge with NetBSD make, pick up
18398875883SSimon J. Gerraty	o meta.c: meta_ignore - check raw path against metaIgnorePaths
18498875883SSimon J. Gerraty	to potentially skip call to realpath.
18598875883SSimon J. Gerraty	o var.c: be strict when parsing the argument of the ':mtime' modifier
18698875883SSimon J. Gerraty	o unit-tests/varmod-mtime.mk: document why '${%s:L:localtime}'
18798875883SSimon J. Gerraty	should be used to get an equivalent value to time(3).
18898875883SSimon J. Gerraty
18998875883SSimon J. Gerraty2023-08-16  Simon J Gerraty  <sjg@beast.crufty.net>
19098875883SSimon J. Gerraty
19198875883SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230816
19298875883SSimon J. Gerraty	Merge with NetBSD make, pick up
19398875883SSimon J. Gerraty	o cond.c: clean up multiple-inclusion guards
19498875883SSimon J. Gerraty
19598875883SSimon J. Gerraty2023-07-25  Simon J Gerraty  <sjg@beast.crufty.net>
19698875883SSimon J. Gerraty
19798875883SSimon J. Gerraty	* unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS
19898875883SSimon J. Gerraty	if configure cannot work out how to control TZ.
19998875883SSimon J. Gerraty	Remove varmod-localtime from BROKEN_TESTS for IRIX*
20098875883SSimon J. Gerraty
20198875883SSimon J. Gerraty2023-07-24  Simon J Gerraty  <sjg@beast.crufty.net>
20298875883SSimon J. Gerraty
20398875883SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230723
20498875883SSimon J. Gerraty
20598875883SSimon J. Gerraty	* configure.in: fix the test for wether TZ=Europe/Berlin works.
20698875883SSimon J. Gerraty	Depending on the time of year, if run between 22:00 and 00:00 UTC
20798875883SSimon J. Gerraty	the check in configure would fail incorrectly.
20898875883SSimon J. Gerraty	Take the day into account as well.
20998875883SSimon J. Gerraty
21098875883SSimon J. Gerraty2023-07-18  Simon J Gerraty  <sjg@beast.crufty.net>
21198875883SSimon J. Gerraty
21298875883SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230711
21398875883SSimon J. Gerraty	Merge with NetBSD make, pick up
21498875883SSimon J. Gerraty	o make.1: clean up wording, clarify scope of '!' in conditions
21598875883SSimon J. Gerraty
21698875883SSimon J. Gerraty2023-07-15  Simon J Gerraty  <sjg@beast.crufty.net>
21798875883SSimon J. Gerraty
21898875883SSimon J. Gerraty	* make-bootstrap.sh.in: set prefix
21998875883SSimon J. Gerraty	If configure is run using ksh we get unexpanded ${prefix} in
22098875883SSimon J. Gerraty	DEFAULT_SYS_PATH, by ensuring prefix is set we should still get
22198875883SSimon J. Gerraty	correct result.
22298875883SSimon J. Gerraty
22398875883SSimon J. Gerraty2023-07-13  Simon J Gerraty  <sjg@beast.crufty.net>
22498875883SSimon J. Gerraty
22598875883SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230711
22698875883SSimon J. Gerraty	bump version for IRIX tweaks
22798875883SSimon J. Gerraty
22898875883SSimon J. Gerraty	* make.h: undef OP_NONE if defined
22998875883SSimon J. Gerraty
23098875883SSimon J. Gerraty	* unit-tests/Makefile: set BROKEN_TESTS for IRIX
23198875883SSimon J. Gerraty
23298875883SSimon J. Gerraty	* configure.in: override INSTALL on IRIX
23398875883SSimon J. Gerraty
23498875883SSimon J. Gerraty2023-06-27  Simon J Gerraty  <sjg@beast.crufty.net>
23598875883SSimon J. Gerraty
23698875883SSimon J. Gerraty	* boot-strap op_test: ensure we set TEST_MAKE as we want it.
23798875883SSimon J. Gerraty
238148ee845SSimon J. Gerraty2023-06-22  Simon J Gerraty  <sjg@beast.crufty.net>
239148ee845SSimon J. Gerraty
240148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230622
241148ee845SSimon J. Gerraty	Merge with NetBSD make, pick up
242148ee845SSimon J. Gerraty	o optimize string matching for ':M' and ':N'
243148ee845SSimon J. Gerraty	o warn about malformed patterns in ':M', ':N' and '.if make(...)'
244148ee845SSimon J. Gerraty
245148ee845SSimon J. Gerraty2023-06-21  Simon J Gerraty  <sjg@beast.crufty.net>
246148ee845SSimon J. Gerraty
247148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230621
248148ee845SSimon J. Gerraty	Merge with NetBSD make, pick up
249148ee845SSimon J. Gerraty	o more extensive tests for include guards
250148ee845SSimon J. Gerraty	o parse.c: if a guard is already defined a file that uses the same
251148ee845SSimon J. Gerraty	guard is still guarded by it.
252148ee845SSimon J. Gerraty
253148ee845SSimon J. Gerraty2023-06-20  Simon J Gerraty  <sjg@beast.crufty.net>
254148ee845SSimon J. Gerraty
255148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230620
256148ee845SSimon J. Gerraty	Merge with NetBSD make, pick up
257148ee845SSimon J. Gerraty	o allow guards to be targets as well as variables
258148ee845SSimon J. Gerraty	The guard targets may include variable references like
259148ee845SSimon J. Gerraty	__${.PARSEDIR:tA}/${.PARSEFILE}__
260148ee845SSimon J. Gerraty
261148ee845SSimon J. Gerraty2023-06-19  Simon J Gerraty  <sjg@beast.crufty.net>
262148ee845SSimon J. Gerraty
263148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230619
264148ee845SSimon J. Gerraty	Merge with NetBSD make, pick up
265148ee845SSimon J. Gerraty	o unit test for .undef of readOnly vars
266148ee845SSimon J. Gerraty	o optimization for makefiles protected from multiple-inclusion
267148ee845SSimon J. Gerraty	skip even opening the file after first include.
268148ee845SSimon J. Gerraty	Initially this only handles makefiles guarded by a variable
269148ee845SSimon J. Gerraty	target guards are next.
270148ee845SSimon J. Gerraty
271148ee845SSimon J. Gerraty2023-06-16  Simon J Gerraty  <sjg@beast.crufty.net>
272148ee845SSimon J. Gerraty
273148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230616
274148ee845SSimon J. Gerraty	Merge with NetBSD make, pick up
275148ee845SSimon J. Gerraty	o var.c: do not allow delete of readOnly variable
276148ee845SSimon J. Gerraty
277148ee845SSimon J. Gerraty2023-06-03  Simon J Gerraty  <sjg@beast.crufty.net>
278148ee845SSimon J. Gerraty
279148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230601
280148ee845SSimon J. Gerraty	Merge with NetBSD make, pick up
281148ee845SSimon J. Gerraty	o parse.c: .break takes no args
282148ee845SSimon J. Gerraty	o lots of unit test updates
283148ee845SSimon J. Gerraty
284148ee845SSimon J. Gerraty2023-05-29  Simon J Gerraty  <sjg@beast.crufty.net>
285148ee845SSimon J. Gerraty
286148ee845SSimon J. Gerraty	* unit-tests/Makefile: skip tests that require /dev/filemon
287148ee845SSimon J. Gerraty	if it does not exists - issue a warning.
288148ee845SSimon J. Gerraty
289148ee845SSimon J. Gerraty2023-05-22  Simon J Gerraty  <sjg@beast.crufty.net>
290148ee845SSimon J. Gerraty
291148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230522
292148ee845SSimon J. Gerraty	Fix building on darwin ppc
293148ee845SSimon J. Gerraty
294148ee845SSimon J. Gerraty	* os.sh (MACHINE): Darwin powerpc cannot use `uname -m`
295148ee845SSimon J. Gerraty	also recent NetBSD uses x86_64 for MACHINE_ARCH so conform.
296148ee845SSimon J. Gerraty
297148ee845SSimon J. Gerraty2023-05-15  Simon J Gerraty  <sjg@beast.crufty.net>
298148ee845SSimon J. Gerraty
299148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230515
300148ee845SSimon J. Gerraty
301148ee845SSimon J. Gerraty	* Makefile (COPTS.filemon_ktrace.c): NetBSD 7 needs help to
302148ee845SSimon J. Gerraty	compile filemon_ktrace.c
303148ee845SSimon J. Gerraty
304148ee845SSimon J. Gerraty2023-05-13  Simon J Gerraty  <sjg@beast.crufty.net>
305148ee845SSimon J. Gerraty
306148ee845SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230512
307148ee845SSimon J. Gerraty	o sys.dirdeps.mk - broke after-import target
308148ee845SSimon J. Gerraty
309c1d01b5fSSimon J. Gerraty2023-05-10  Simon J Gerraty  <sjg@beast.crufty.net>
310c1d01b5fSSimon J. Gerraty
311c1d01b5fSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230510
312c1d01b5fSSimon J. Gerraty	Merge with NetBSD make, pick up
313c1d01b5fSSimon J. Gerraty	o parse.c: don't print null filename in stack traces
314c1d01b5fSSimon J. Gerraty	o var.c: :mtime operate on each word in variable value
315c1d01b5fSSimon J. Gerraty
316c1d01b5fSSimon J. Gerraty2023-05-09  Simon J Gerraty  <sjg@beast.crufty.net>
317c1d01b5fSSimon J. Gerraty
318c1d01b5fSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230509
319c1d01b5fSSimon J. Gerraty	Merge with NetBSD make, pick up
320c1d01b5fSSimon J. Gerraty	o for.c: skip syntactically wrong .for loops
321c1d01b5fSSimon J. Gerraty	o var.c: allow for :gmtime=${mtime}
322c1d01b5fSSimon J. Gerraty	add :mtime[=timestamp] where timestamp is used if stat(2)
323c1d01b5fSSimon J. Gerraty	fails, if :mtime=error stat(2) failure causes error.
324c1d01b5fSSimon J. Gerraty
325c1d01b5fSSimon J. Gerraty2023-05-05  Simon J Gerraty  <sjg@beast.crufty.net>
326c1d01b5fSSimon J. Gerraty
327c1d01b5fSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230504
328c1d01b5fSSimon J. Gerraty	Merge with NetBSD make, pick up
329c1d01b5fSSimon J. Gerraty	o compat.c: fix compile on NetBSD 7.2
330c1d01b5fSSimon J. Gerraty	o make.1: fix documentation of .PREFIX to match reality and POSIX
331c1d01b5fSSimon J. Gerraty	o unit-tests: improved var-scope-local
332c1d01b5fSSimon J. Gerraty
3338c973ee2SSimon J. Gerraty2023-04-14  Simon J Gerraty  <sjg@beast.crufty.net>
3348c973ee2SSimon J. Gerraty
3358c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230414
3368c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
3378c973ee2SSimon J. Gerraty	o minor cleanup
3388c973ee2SSimon J. Gerraty
3398c973ee2SSimon J. Gerraty2023-03-25  Simon J Gerraty  <sjg@beast.crufty.net>
3408c973ee2SSimon J. Gerraty
3418c973ee2SSimon J. Gerraty	* main.c: on some systems (eg OS/X) setting RLIMIT_NOFILE to
3428c973ee2SSimon J. Gerraty	unlimited results in an insane number (0x7fffffffffffffff).
3438c973ee2SSimon J. Gerraty	If BMAKE_NOFILE_MAX is defined, use that instead.
3448c973ee2SSimon J. Gerraty
3458c973ee2SSimon J. Gerraty2023-03-22  Simon J Gerraty  <sjg@beast.crufty.net>
3468c973ee2SSimon J. Gerraty
3478c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230321
3488c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
3498c973ee2SSimon J. Gerraty	* make.1: document seemingly unexplained Error code 6.
3508c973ee2SSimon J. Gerraty
3518c973ee2SSimon J. Gerraty2023-03-18  Simon J Gerraty  <sjg@beast.crufty.net>
3528c973ee2SSimon J. Gerraty
3538c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230317
3548c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
3558c973ee2SSimon J. Gerraty	o compat.c: CompatDeleteTarget skip .PHONY targets to be
3568c973ee2SSimon J. Gerraty	consistent with JobDeleteTarget.
3578c973ee2SSimon J. Gerraty	o job.c: fix memory leak in handling sysv :from=to modifiers
3588c973ee2SSimon J. Gerraty
3598c973ee2SSimon J. Gerraty2023-03-04  Simon J Gerraty  <sjg@beast.crufty.net>
3608c973ee2SSimon J. Gerraty
3618c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230303
3628c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
3638c973ee2SSimon J. Gerraty	o several updated unit-tests
3648c973ee2SSimon J. Gerraty
3658c973ee2SSimon J. Gerraty2023-02-22  Simon J Gerraty  <sjg@beast.crufty.net>
3668c973ee2SSimon J. Gerraty
3678c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230222
3688c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
3698c973ee2SSimon J. Gerraty	o unit tests for .MAKE.META.IGNORE_{FILTER,PATHS,PATTERNS}
3708c973ee2SSimon J. Gerraty
3718c973ee2SSimon J. Gerraty2023-02-20  Simon J Gerraty  <sjg@beast.crufty.net>
3728c973ee2SSimon J. Gerraty
3738c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230218
3748c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
3758c973ee2SSimon J. Gerraty	o var.c: fix parsing of unevaluated subexpressions with
3768c973ee2SSimon J. Gerraty	unbalanced '{}'
3778c973ee2SSimon J. Gerraty
3788c973ee2SSimon J. Gerraty2023-02-17  Simon J Gerraty  <sjg@beast.crufty.net>
3798c973ee2SSimon J. Gerraty
3808c973ee2SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230215
3818c973ee2SSimon J. Gerraty	Merge with NetBSD make, pick up
3828c973ee2SSimon J. Gerraty	o inline macros for some variable names
3838c973ee2SSimon J. Gerraty	o cond.c: reduce complexity of evaluating expressions
3848c973ee2SSimon J. Gerraty
385dc1b8c9aSSimon J. Gerraty2023-02-08  Simon J Gerraty  <sjg@beast.crufty.net>
386dc1b8c9aSSimon J. Gerraty
387dc1b8c9aSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230208
388dc1b8c9aSSimon J. Gerraty	Merge with NetBSD make, pick up
389dc1b8c9aSSimon J. Gerraty	o var.c: always use SCOPE_GLOBAL for :_ to avoid problems
390dc1b8c9aSSimon J. Gerraty	when it has been used within conditional expressions
391dc1b8c9aSSimon J. Gerraty
392dc1b8c9aSSimon J. Gerraty2023-01-27  Simon J Gerraty  <sjg@beast.crufty.net>
393dc1b8c9aSSimon J. Gerraty
394dc1b8c9aSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230127
395dc1b8c9aSSimon J. Gerraty
396dc1b8c9aSSimon J. Gerraty	* install-sh: if making directories ensure umask is set
397dc1b8c9aSSimon J. Gerraty	to match mode.
398dc1b8c9aSSimon J. Gerraty
399dc1b8c9aSSimon J. Gerraty	* Makefile: use DIRMODE for directories and
400dc1b8c9aSSimon J. Gerraty	NONBINMODE for man pages and mk files
401dc1b8c9aSSimon J. Gerraty
4024fde40d9SSimon J. Gerraty2023-01-26  Simon J Gerraty  <sjg@beast.crufty.net>
4034fde40d9SSimon J. Gerraty
4044fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230126
4054fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4064fde40d9SSimon J. Gerraty	o variables like .newline and .MAKE.{GID,PID,PPID,UID}
4074fde40d9SSimon J. Gerraty	should be read-only.
4084fde40d9SSimon J. Gerraty
4094fde40d9SSimon J. Gerraty2023-01-23  Simon J Gerraty  <sjg@beast.crufty.net>
4104fde40d9SSimon J. Gerraty
4114fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230123
4124fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4134fde40d9SSimon J. Gerraty	o .[NO]READONLY: for control of read-only variables
4144fde40d9SSimon J. Gerraty	o .SYSPATH: for controlling the path searched for makefiles
4154fde40d9SSimon J. Gerraty
4164fde40d9SSimon J. Gerraty2023-01-20  Simon J Gerraty  <sjg@beast.crufty.net>
4174fde40d9SSimon J. Gerraty
4184fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230120
4194fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4204fde40d9SSimon J. Gerraty	o allow for white-space between command specifiers @+-
4214fde40d9SSimon J. Gerraty	o add more details to warning 'Extra targets ignored'
4224fde40d9SSimon J. Gerraty
4234fde40d9SSimon J. Gerraty2023-01-12  Simon J Gerraty  <sjg@beast.crufty.net>
4244fde40d9SSimon J. Gerraty
4254fde40d9SSimon J. Gerraty	* machine.sh: leverage os.sh rather than duplicate
4264fde40d9SSimon J. Gerraty	also dispence with the $OS.$MACHINE values - we have $HOST_TARGET
4274fde40d9SSimon J. Gerraty	for that purpose for the past decade or so.
4284fde40d9SSimon J. Gerraty	We invariably get MACHINE and MACHINE_ARCH at runtime anyway.
4294fde40d9SSimon J. Gerraty
4304fde40d9SSimon J. Gerraty2023-01-02  Simon J Gerraty  <sjg@beast.crufty.net>
4314fde40d9SSimon J. Gerraty
4324fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20230101
4334fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4344fde40d9SSimon J. Gerraty	o cleanup comments, inline some LazyBuf_ methods
4354fde40d9SSimon J. Gerraty	o unit-tests/ add/improve comments in tests
4364fde40d9SSimon J. Gerraty	o make.1: sync list of built-in variables with reality
4374fde40d9SSimon J. Gerraty	sort list of built-in variables
4384fde40d9SSimon J. Gerraty	reduce indentation of the long list of variable names
4394fde40d9SSimon J. Gerraty	use consistent markup for boolean flags
4404fde40d9SSimon J. Gerraty	move description of .MAKE.MODE below the .MAKE.META block
4414fde40d9SSimon J. Gerraty	clarify in which case an expression may omit braces
4424fde40d9SSimon J. Gerraty
4434fde40d9SSimon J. Gerraty2022-11-08  Simon J Gerraty  <sjg@beast.crufty.net>
4444fde40d9SSimon J. Gerraty
4454fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20221024
4464fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4474fde40d9SSimon J. Gerraty	o change return type of unlink_file back to int
4484fde40d9SSimon J. Gerraty
4494fde40d9SSimon J. Gerraty2022-10-07  Simon J Gerraty  <sjg@beast.crufty.net>
4504fde40d9SSimon J. Gerraty
4514fde40d9SSimon J. Gerraty	* Makefile: Darwin and Linux can handle MANTARGET=man
4524fde40d9SSimon J. Gerraty
4534fde40d9SSimon J. Gerraty2022-09-28  Simon J Gerraty  <sjg@beast.crufty.net>
4544fde40d9SSimon J. Gerraty
4554fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220928
4564fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4574fde40d9SSimon J. Gerraty	o fix more ignored returns from snprintf
4584fde40d9SSimon J. Gerraty	o compile with higher warnings
4594fde40d9SSimon J. Gerraty
4604fde40d9SSimon J. Gerraty2022-09-26  Simon J Gerraty  <sjg@beast.crufty.net>
4614fde40d9SSimon J. Gerraty
4624fde40d9SSimon J. Gerraty	* main.c meta.c: do not ignore return from snprintf
4634fde40d9SSimon J. Gerraty
4644fde40d9SSimon J. Gerraty	* meta.c strlcpy.c: we need prototype for strlcpy
4654fde40d9SSimon J. Gerraty
4664fde40d9SSimon J. Gerraty	* sigcompat.c: fix unused function warnings
4674fde40d9SSimon J. Gerraty
4684fde40d9SSimon J. Gerraty2022-09-24  Simon J Gerraty  <sjg@beast.crufty.net>
4694fde40d9SSimon J. Gerraty
4704fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220924
4714fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4724fde40d9SSimon J. Gerraty	o fix bug in .break reset of conditional depth
4734fde40d9SSimon J. Gerraty	o overhaul and simplify tracking of conditional depth
4744fde40d9SSimon J. Gerraty
4754fde40d9SSimon J. Gerraty2022-09-17  Simon J Gerraty  <sjg@beast.crufty.net>
4764fde40d9SSimon J. Gerraty
4774fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220912
4784fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4794fde40d9SSimon J. Gerraty	o man page updates
4804fde40d9SSimon J. Gerraty
4814fde40d9SSimon J. Gerraty2022-09-09  Simon J Gerraty  <sjg@beast.crufty.net>
4824fde40d9SSimon J. Gerraty
4834fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220909
4844fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4854fde40d9SSimon J. Gerraty	o update unit-tests to handle deprecation of egrep
4864fde40d9SSimon J. Gerraty	o cond.c: add more details to error message for numeric comparison
4874fde40d9SSimon J. Gerraty
4884fde40d9SSimon J. Gerraty	* configure.in: allow for deprecation of egrep
4894fde40d9SSimon J. Gerraty
4904fde40d9SSimon J. Gerraty	* Makefile: Linux can handle MANTARGET=man
4914fde40d9SSimon J. Gerraty
4924fde40d9SSimon J. Gerraty2022-09-03  Simon J Gerraty  <sjg@beast.crufty.net>
4934fde40d9SSimon J. Gerraty
4944fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220903
4954fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
4964fde40d9SSimon J. Gerraty	o job.c: fix handling of null bytes in output
4974fde40d9SSimon J. Gerraty
4984fde40d9SSimon J. Gerraty2022-09-02  Simon J Gerraty  <sjg@beast.crufty.net>
4994fde40d9SSimon J. Gerraty
5004fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220902
5014fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
5024fde40d9SSimon J. Gerraty	o Allow .break to terminate a .for loop early
5034fde40d9SSimon J. Gerraty
5044fde40d9SSimon J. Gerraty2022-09-01  Simon J Gerraty  <sjg@beast.crufty.net>
5054fde40d9SSimon J. Gerraty
5064fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220901
5074fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
5084fde40d9SSimon J. Gerraty	o var.c: fix out-of-bounds errors when parsing
5094fde40d9SSimon J. Gerraty
5104fde40d9SSimon J. Gerraty2022-08-24  Simon J Gerraty  <sjg@beast.crufty.net>
5114fde40d9SSimon J. Gerraty
5124fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220824
5134fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
5144fde40d9SSimon J. Gerraty	o var.c: revert change to modifier parsing that breaks
5154fde40d9SSimon J. Gerraty	shell variable references within ':@var@body@'
5164fde40d9SSimon J. Gerraty	o adjust unit-tests
5174fde40d9SSimon J. Gerraty
5184fde40d9SSimon J. Gerraty2022-08-18  Simon J Gerraty  <sjg@beast.crufty.net>
5194fde40d9SSimon J. Gerraty
5204fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220818
5214fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
5224fde40d9SSimon J. Gerraty	o fix exit status for '-q' (since 1994)
5234fde40d9SSimon J. Gerraty
5244fde40d9SSimon J. Gerraty2022-08-08  Simon J Gerraty  <sjg@beast.crufty.net>
5254fde40d9SSimon J. Gerraty
5264fde40d9SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220808
5274fde40d9SSimon J. Gerraty	Merge with NetBSD make, pick up
5284fde40d9SSimon J. Gerraty	o var.c: fix parsing of modifiers containing unbalanced subexpressions
5294fde40d9SSimon J. Gerraty	extract parsing of ':D' and ':U' modifiers into separate function
5304fde40d9SSimon J. Gerraty
531532d4fbfSSimon J. Gerraty2022-07-26  Simon J Gerraty  <sjg@beast.crufty.net>
532532d4fbfSSimon J. Gerraty
533532d4fbfSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220726
534532d4fbfSSimon J. Gerraty
535532d4fbfSSimon J. Gerraty	* Auto-create objdir for bmake/unit-tests if appropriate
536532d4fbfSSimon J. Gerraty
537954401e6SSimon J. Gerraty2022-07-24  Simon J Gerraty  <sjg@beast.crufty.net>
538954401e6SSimon J. Gerraty
539954401e6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220724
540954401e6SSimon J. Gerraty	Merge with NetBSD make, pick up
541954401e6SSimon J. Gerraty	o make.1: describe variable assignment and evaluation more precisely
542954401e6SSimon J. Gerraty	o parse.c: fix out-of-bounds read when parsing an invalid line
543954401e6SSimon J. Gerraty	o var.c: simplify return type of IsShortVarnameValid
544954401e6SSimon J. Gerraty
545954401e6SSimon J. Gerraty2022-06-12  Simon J Gerraty  <sjg@beast.crufty.net>
546954401e6SSimon J. Gerraty
547954401e6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220612
548954401e6SSimon J. Gerraty	Merge with NetBSD make, pick up
549954401e6SSimon J. Gerraty	o allow to randomize build order of targets
550954401e6SSimon J. Gerraty	.MAKE.MODE += randomize-targets can help uncover dependency bugs
551954401e6SSimon J. Gerraty	within a makefile.
552954401e6SSimon J. Gerraty	o compat.c: rename Compat_Run to Compat_MakeAll
553954401e6SSimon J. Gerraty	o make.c: inline MakeBuildParent
554954401e6SSimon J. Gerraty	inline make_abort, improve error details
555954401e6SSimon J. Gerraty	o parse.c: reorganize Parse_Error
556954401e6SSimon J. Gerraty	fix memory leak in wildcard targets and sources
557954401e6SSimon J. Gerraty	separate cases in HandleDependencyTargetMundane
558954401e6SSimon J. Gerraty	extract HandleSingleDependencyTargetMundane
559954401e6SSimon J. Gerraty	rename loadfile to LoadFile
560954401e6SSimon J. Gerraty	split IncludeFile into separate functions
561954401e6SSimon J. Gerraty	condense code for searching a file in the paths
562954401e6SSimon J. Gerraty	fix off-by-one error in buffer for .WAIT nodes
563954401e6SSimon J. Gerraty	o str.c: condense Str_Match
564954401e6SSimon J. Gerraty	make code for string matching syntactically more consistent
565954401e6SSimon J. Gerraty
5662f2a5ecdSSimon J. Gerraty2022-04-18  Simon J Gerraty  <sjg@beast.crufty.net>
5672f2a5ecdSSimon J. Gerraty
5682f2a5ecdSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220418
5692f2a5ecdSSimon J. Gerraty	Merge with NetBSD make, pick up
5702f2a5ecdSSimon J. Gerraty	o ignore '.POSIX:' if not in first non-comment line
5712f2a5ecdSSimon J. Gerraty	of Makefile as specified by POSIX.
5722f2a5ecdSSimon J. Gerraty	add unit-tests for above.
5732f2a5ecdSSimon J. Gerraty	o meta.c: make it easier to find usage of identifiers
5742f2a5ecdSSimon J. Gerraty	o targ.c: add .USEBEFORE to Targ_PrintType
5752f2a5ecdSSimon J. Gerraty
5762f2a5ecdSSimon J. Gerraty2022-04-14  Simon J Gerraty  <sjg@beast.crufty.net>
5772f2a5ecdSSimon J. Gerraty
5782f2a5ecdSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220414
5792f2a5ecdSSimon J. Gerraty
5802f2a5ecdSSimon J. Gerraty	* unit-tests/Makefile: simplify checks for shells with
5812f2a5ecdSSimon J. Gerraty	BROKEN_TESTS, this helps with other Linux distros that
5822f2a5ecdSSimon J. Gerraty	use dash.
5832f2a5ecdSSimon J. Gerraty
5841d3f2ddcSSimon J. Gerraty2022-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
5851d3f2ddcSSimon J. Gerraty
5861d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220330
5871d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
5881d3f2ddcSSimon J. Gerraty	o var.c: fix spacing, and a typo in a test
5891d3f2ddcSSimon J. Gerraty
5901d3f2ddcSSimon J. Gerraty2022-03-26  Simon J Gerraty  <sjg@beast.crufty.net>
5911d3f2ddcSSimon J. Gerraty
5921d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220326
5931d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
5941d3f2ddcSSimon J. Gerraty	o parse.c: try to include 'posix.mk' the first time
5951d3f2ddcSSimon J. Gerraty	.POSIX: is encountered, to allow for beter POSIX compliance.
5961d3f2ddcSSimon J. Gerraty	o var.c: make debug logs more readable
5971d3f2ddcSSimon J. Gerraty	prefer 'long long' over 'long' on 32-bit C99 platforms
5981d3f2ddcSSimon J. Gerraty	fix crash on .undef of an environment variable
5991d3f2ddcSSimon J. Gerraty
6001d3f2ddcSSimon J. Gerraty2022-03-03  Simon J Gerraty  <sjg@beast.crufty.net>
6011d3f2ddcSSimon J. Gerraty
6021d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220303
6031d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
6041d3f2ddcSSimon J. Gerraty	o tell meta mode unit tests not to expect filemon
6051d3f2ddcSSimon J. Gerraty	o cond.c: make debug logging for comparisons less technical
6061d3f2ddcSSimon J. Gerraty	o lst.c: fix mem leak in Lst_Remove
6071d3f2ddcSSimon J. Gerraty	o str.c: make code for string matching syntactically more consistent
6081d3f2ddcSSimon J. Gerraty	o var.c: simplify ParseModifier_Match
6091d3f2ddcSSimon J. Gerraty
6101d3f2ddcSSimon J. Gerraty2022-02-14  Simon J Gerraty  <sjg@beast.crufty.net>
6111d3f2ddcSSimon J. Gerraty
6121d3f2ddcSSimon J. Gerraty	* unit-tests/Makefile: control MAKESYSPATH for deptgt-phony
6131d3f2ddcSSimon J. Gerraty
6141d3f2ddcSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220214
6151d3f2ddcSSimon J. Gerraty	Merge with NetBSD make, pick up
6161d3f2ddcSSimon J. Gerraty	o cond.c: simplify control flow in CondParser_Comparison
6171d3f2ddcSSimon J. Gerraty	o job.c: fix echoing of command with '-' in silent target in jobs mode
6181d3f2ddcSSimon J. Gerraty	o main.c: prefix the warning about read-only .OBJDIR with a colon
6191d3f2ddcSSimon J. Gerraty	o parse.c: remove redundant conditions
6201d3f2ddcSSimon J. Gerraty	o var.c: simplify control flow in ModifyWord_SysVSubst
6211d3f2ddcSSimon J. Gerraty
622a6f0e10bSSimon J. Gerraty2022-02-08  Simon J Gerraty  <sjg@beast.crufty.net>
623a6f0e10bSSimon J. Gerraty
624a6f0e10bSSimon J. Gerraty	* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
625a6f0e10bSSimon J. Gerraty	is any chance we have dash as .SHELL
626a6f0e10bSSimon J. Gerraty
627a6f0e10bSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220208
628a6f0e10bSSimon J. Gerraty	Merge with NetBSD make, pick up
629a6f0e10bSSimon J. Gerraty	o more unit tests
630a6f0e10bSSimon J. Gerraty	o meta.c: use a variable to hold command line to be filtered
631a6f0e10bSSimon J. Gerraty	to avoid any side effects from content of command line.
632a6f0e10bSSimon J. Gerraty
6339f45a3c8SSimon J. Gerraty2022-02-04  Simon J Gerraty  <sjg@beast.crufty.net>
6349f45a3c8SSimon J. Gerraty
6359f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220204
6369f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
6379f45a3c8SSimon J. Gerraty	o use unsigned consistently for line numbers, avoid the need for %z
6389f45a3c8SSimon J. Gerraty	o parse.c: do not step off end of input in Parse_IsVar
6399f45a3c8SSimon J. Gerraty	when checking for target local variable assignments
6409f45a3c8SSimon J. Gerraty
6419f45a3c8SSimon J. Gerraty2022-02-02  Simon J Gerraty  <sjg@beast.crufty.net>
6429f45a3c8SSimon J. Gerraty
6439f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220202
6449f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
6459f45a3c8SSimon J. Gerraty	o remove redundant declaration of HashIter_Init
6469f45a3c8SSimon J. Gerraty	o make DEBUG0 simpler
6479f45a3c8SSimon J. Gerraty
6489f45a3c8SSimon J. Gerraty2022-01-30  Simon J Gerraty  <sjg@beast.crufty.net>
6499f45a3c8SSimon J. Gerraty
6509f45a3c8SSimon J. Gerraty	* cast gn->lineno to avoid %z
6519f45a3c8SSimon J. Gerraty
6529f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220130
6539f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
6549f45a3c8SSimon J. Gerraty	o more unit tests
6559f45a3c8SSimon J. Gerraty	o make GNode lineno unsigned to please lint
6569f45a3c8SSimon J. Gerraty	o print location of recursive variable references in commands
6579f45a3c8SSimon J. Gerraty	o print "stack trace" (makefile includes) on fatal errors
6589f45a3c8SSimon J. Gerraty	o make.1: refine documentation for target local assignments
6599f45a3c8SSimon J. Gerraty
6609f45a3c8SSimon J. Gerraty2022-01-28  Simon J Gerraty  <sjg@beast.crufty.net>
6619f45a3c8SSimon J. Gerraty
6629f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220128
6639f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
6649f45a3c8SSimon J. Gerraty	o inline functions called only once
6659f45a3c8SSimon J. Gerraty	o for.c: clean up AddEscape for building the body of a .for loop
6669f45a3c8SSimon J. Gerraty	o hash.c: merge duplicate code for finding an entry in a hash table
6679f45a3c8SSimon J. Gerraty	replace HashEntry_KeyEquals with strncmp
6689f45a3c8SSimon J. Gerraty	o make.1: document quirks of target local variable assignments.
6699f45a3c8SSimon J. Gerraty	o parse.c: cleanup white-space
6709f45a3c8SSimon J. Gerraty
6719f45a3c8SSimon J. Gerraty2022-01-26  Simon J Gerraty  <sjg@beast.crufty.net>
6729f45a3c8SSimon J. Gerraty
6739f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220126
6749f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
6759f45a3c8SSimon J. Gerraty	o allow setting target local variables
6769f45a3c8SSimon J. Gerraty	o more unit tests
6779f45a3c8SSimon J. Gerraty	o add missing newline after "cannot continue" message
6789f45a3c8SSimon J. Gerraty	o meta.c: clean up eat_dots
6799f45a3c8SSimon J. Gerraty	o parse.c: fix filename in warning about duplicate script
6809f45a3c8SSimon J. Gerraty	o var.c: when expanding nested variables, check simple things first
6819f45a3c8SSimon J. Gerraty
6829f45a3c8SSimon J. Gerraty2022-01-16  Simon J Gerraty  <sjg@beast.crufty.net>
6839f45a3c8SSimon J. Gerraty
6849f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220116
6859f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
6869f45a3c8SSimon J. Gerraty	o fix for unit-tests/varname-makeflags on non-BSD systems
6879f45a3c8SSimon J. Gerraty	o use Var_Exists rather than Var_Value where appropriate
6889f45a3c8SSimon J. Gerraty	o remove unnecessary functions for expanding variable names
6899f45a3c8SSimon J. Gerraty	o cond.c: inline EvalBare
6909f45a3c8SSimon J. Gerraty	o main.c: lint cleanup
6919f45a3c8SSimon J. Gerraty	o parse.c: condense code in Parse_IsVar
6929f45a3c8SSimon J. Gerraty	use islower for parsing directives (none have upper case)
6939f45a3c8SSimon J. Gerraty
6949f45a3c8SSimon J. Gerraty2022-01-12  Simon J Gerraty  <sjg@beast.crufty.net>
6959f45a3c8SSimon J. Gerraty
6969f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220112
6979f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
6989f45a3c8SSimon J. Gerraty	o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before
6999f45a3c8SSimon J. Gerraty	comparion, rarely needed but useful when it is.
7009f45a3c8SSimon J. Gerraty
7019f45a3c8SSimon J. Gerraty2022-01-10  Simon J Gerraty  <sjg@beast.crufty.net>
7029f45a3c8SSimon J. Gerraty
7039f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220110
7049f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
7059f45a3c8SSimon J. Gerraty	o inline Buf_Clear
7069f45a3c8SSimon J. Gerraty	o remove redundant braces
7079f45a3c8SSimon J. Gerraty	o rename and inline Targ_Precious
7089f45a3c8SSimon J. Gerraty	o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf
7099f45a3c8SSimon J. Gerraty	o for.c: clean up handling of .for loops
7109f45a3c8SSimon J. Gerraty	fix reported line numbers of continuation lines
7119f45a3c8SSimon J. Gerraty	add details about .for loop variables to stack traces
7129f45a3c8SSimon J. Gerraty	o job.c: reduce code for initializing error handling in shell
7139f45a3c8SSimon J. Gerraty	o main.c: in Cmd_Exec, return error message instead of format string
7149f45a3c8SSimon J. Gerraty	have as few statements as possible between va_start and va_end
7159f45a3c8SSimon J. Gerraty	add debug logging for capturing the output of external commands
7169f45a3c8SSimon J. Gerraty	o make.c: use consistent variable names for varargs
7179f45a3c8SSimon J. Gerraty	o make_malloc.c: remove duplicate code from bmake_strdup
7189f45a3c8SSimon J. Gerraty	o parse.c: add missing printflike annotations
7199f45a3c8SSimon J. Gerraty	remove redundant lines from stack traces
7209f45a3c8SSimon J. Gerraty	fix stack traces in -dp mode
7219f45a3c8SSimon J. Gerraty	reduce confusing code in ParseForLoop
7229f45a3c8SSimon J. Gerraty	fix line number in debug log after returning from a file
7239f45a3c8SSimon J. Gerraty	rename IFile and its fields to match their actual content
7249f45a3c8SSimon J. Gerraty	clean up ParseDependencySources
7259f45a3c8SSimon J. Gerraty	o var.c: shorten ApplyModifier_Assign
7269f45a3c8SSimon J. Gerraty	rename is_shell_metachar, fix character conversion warning
7279f45a3c8SSimon J. Gerraty	merge calls to ApplyModifier_Time
7289f45a3c8SSimon J. Gerraty	merge duplicate code for modifiers 'gmtime' and 'localtime'
7299f45a3c8SSimon J. Gerraty
7309f45a3c8SSimon J. Gerraty2022-01-04  Simon J Gerraty  <sjg@beast.crufty.net>
7319f45a3c8SSimon J. Gerraty
7329f45a3c8SSimon J. Gerraty	* parse.c: loadfile restore extra byte in buffer.
7339f45a3c8SSimon J. Gerraty
7349f45a3c8SSimon J. Gerraty2022-01-01  Simon J Gerraty  <sjg@beast.crufty.net>
7359f45a3c8SSimon J. Gerraty
7369f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20220101
7379f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
7389f45a3c8SSimon J. Gerraty	o more unit-tests
7399f45a3c8SSimon J. Gerraty	o remove unnecessary words from command line options in CmdOpts
7409f45a3c8SSimon J. Gerraty	o rename eunlink to unlink_file
7419f45a3c8SSimon J. Gerraty	o cond.c: make ParseWord in condition parser simpler
7429f45a3c8SSimon J. Gerraty	internally return false for irrelevant leaves in conditions
7439f45a3c8SSimon J. Gerraty	replace table for function lookup in conditions with simple code
7449f45a3c8SSimon J. Gerraty	merge duplicate types CondEvalResult and CondResult
7459f45a3c8SSimon J. Gerraty	o for.c: clean up handling of .for loops and .include directives
7469f45a3c8SSimon J. Gerraty	o main.c: constify cached_realpath
7479f45a3c8SSimon J. Gerraty	clean up Cmd_Exec
7489f45a3c8SSimon J. Gerraty	o parse.c: sync API documentation
7499f45a3c8SSimon J. Gerraty	fix error message when reading more than 1 GB from stdin
7509f45a3c8SSimon J. Gerraty	clean up parsing of makefiles
7519f45a3c8SSimon J. Gerraty	fix line number in error message about open conditionals
7529f45a3c8SSimon J. Gerraty	unexport types VarAssignOp and VarAssign
7539f45a3c8SSimon J. Gerraty	clean up function names
7549f45a3c8SSimon J. Gerraty	remove redundant parameters in dependency parsing functions
7559f45a3c8SSimon J. Gerraty	reduce scope of the list of wildcard target names
7569f45a3c8SSimon J. Gerraty	extract OP_NOTARGET into separate function
7579f45a3c8SSimon J. Gerraty	clean up variable names for parsing dependency lines
7589f45a3c8SSimon J. Gerraty	make debug logging a bit more human-friendly
7599f45a3c8SSimon J. Gerraty	o var.c: condense code in ApplyModifier_Assign
7609f45a3c8SSimon J. Gerraty
7619f45a3c8SSimon J. Gerraty2021-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
7629f45a3c8SSimon J. Gerraty
7639f45a3c8SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211221
7649f45a3c8SSimon J. Gerraty	Merge with NetBSD make, pick up
7659f45a3c8SSimon J. Gerraty	o more unit-tests
7669f45a3c8SSimon J. Gerraty	o style cleanup
7679f45a3c8SSimon J. Gerraty	o in CLEANUP mode, free interned strings at the very end
7689f45a3c8SSimon J. Gerraty	o fix memory leak for filenames in .for loops
7699f45a3c8SSimon J. Gerraty	o buf.c: avoid memory leak
7709f45a3c8SSimon J. Gerraty	o cond.c: condense CondParser_ComparisonOp
7719f45a3c8SSimon J. Gerraty	o hash.c: change return type of HashTable_Set to void
7729f45a3c8SSimon J. Gerraty	o job.c: change return type of Compat_RunCommand from int to bool
7739f45a3c8SSimon J. Gerraty	o main.c: remove bmake_free
7749f45a3c8SSimon J. Gerraty	o parse.c: condense repetetive code in ParseDirective
7759f45a3c8SSimon J. Gerraty	remove dead code for handling traditional include directives
7769f45a3c8SSimon J. Gerraty	clean up parsing of variable assignments
7779f45a3c8SSimon J. Gerraty	remove unreachable code for parsing the dependency operator
7789f45a3c8SSimon J. Gerraty	clean up loading of files
7799f45a3c8SSimon J. Gerraty	fix memory leak in IncludeFile
7809f45a3c8SSimon J. Gerraty	o var.c: fix memory leak when parsing a variable name
7819f45a3c8SSimon J. Gerraty	fix memory leak from ${.SUFFIXES}
7829f45a3c8SSimon J. Gerraty	reduce memory allocation in modifier ':?' and ':C'
7839f45a3c8SSimon J. Gerraty	condense RegexReplace for the modifier ':C' and avoid strlen
7849f45a3c8SSimon J. Gerraty	merge duplicate code for memory handling in Var_Parse
7859f45a3c8SSimon J. Gerraty	distinguish between short-lived and environment variables
7869f45a3c8SSimon J. Gerraty	rename VarFreeEnv to VarFreeShortLived
7879f45a3c8SSimon J. Gerraty
78812904384SSimon J. Gerraty2021-12-15  Simon J Gerraty  <sjg@beast.crufty.net>
78912904384SSimon J. Gerraty
79012904384SSimon J. Gerraty	* cond.c: fix mem leak in CondParser_Leaf
79112904384SSimon J. Gerraty
79212904384SSimon J. Gerraty2021-12-12  Simon J Gerraty  <sjg@beast.crufty.net>
79312904384SSimon J. Gerraty
79412904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211212
79512904384SSimon J. Gerraty	Merge with NetBSD make, pick up
79612904384SSimon J. Gerraty	o rename Parse_SetInput to Parse_PushInput
79712904384SSimon J. Gerraty	o remove remove period from end of error messages and warnings
79812904384SSimon J. Gerraty	to be more consistent
79912904384SSimon J. Gerraty	o arch.c: use simpler memory management for parsing archive members
80012904384SSimon J. Gerraty	o cond.c: rework and reduce recursion
80112904384SSimon J. Gerraty	o for.c: rename some functions to better reflect purpose
80212904384SSimon J. Gerraty	o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string.
80312904384SSimon J. Gerraty	o var.c: in parse errors, mark whitespace more clearly
80412904384SSimon J. Gerraty	inline ParseEmptyArg into CondParser_FuncCallEmpty
80512904384SSimon J. Gerraty	minimize calls to LazyBuf_Get in ParseVarnameLong
80612904384SSimon J. Gerraty	treat .SUFFIXES as a read-only variable
80712904384SSimon J. Gerraty
80812904384SSimon J. Gerraty2021-12-07  Simon J Gerraty  <sjg@beast.crufty.net>
80912904384SSimon J. Gerraty
81012904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211207
81112904384SSimon J. Gerraty	Merge with NetBSD make, pick up
81212904384SSimon J. Gerraty	o inline HashIter_Init
81312904384SSimon J. Gerraty	o parse.c: inline common subexpression in ParseRawLine
81412904384SSimon J. Gerraty	o var.c: merge branches for modifiers ':D' and ':U'
81512904384SSimon J. Gerraty	extract common code into Expr_Words
81612904384SSimon J. Gerraty	extract common code into Expr_Str
81712904384SSimon J. Gerraty	move low-level implementation details out of Var_Parse
81812904384SSimon J. Gerraty
81912904384SSimon J. Gerraty2021-12-06  Simon J Gerraty  <sjg@beast.crufty.net>
82012904384SSimon J. Gerraty
82112904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211206
82212904384SSimon J. Gerraty	Merge with NetBSD make, pick up
82312904384SSimon J. Gerraty	o add unit-tests/varmod-loop-delete
82412904384SSimon J. Gerraty	o for.c: inline Str_Words - reduce memory allocation
82512904384SSimon J. Gerraty	o parse.c: do not try to expand fixed variable names
82612904384SSimon J. Gerraty	only allocate the name of an included file if necessary
82712904384SSimon J. Gerraty	clean up ParseInclude
82812904384SSimon J. Gerraty	o var.c: fix use-after-free in modifier ':@'
82912904384SSimon J. Gerraty	save a memory allocation in each modifier ':O' and ':u'
83012904384SSimon J. Gerraty	save a memory allocation in the modifier ':[...]'
83112904384SSimon J. Gerraty	in UnexportVars, replace Str_Words with Substring_Words to
83212904384SSimon J. Gerraty	reduce allocations and copying.
83312904384SSimon J. Gerraty
83412904384SSimon J. Gerraty2021-12-04  Simon J Gerraty  <sjg@beast.crufty.net>
83512904384SSimon J. Gerraty
83612904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211204
83712904384SSimon J. Gerraty	Merge with NetBSD make, pick up
83812904384SSimon J. Gerraty	o flesh out a number of tests
83912904384SSimon J. Gerraty	o replace enums with bitfields, this simplifies a lot of code.
84012904384SSimon J. Gerraty	o var.c: refactor ParseModifierPartSubst
84112904384SSimon J. Gerraty
84212904384SSimon J. Gerraty2021-10-24  Simon J Gerraty  <sjg@beast.crufty.net>
84312904384SSimon J. Gerraty
84412904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211024
84512904384SSimon J. Gerraty	Merge with NetBSD make, pick up
84612904384SSimon J. Gerraty	o Punt on write errors - ENOSPC etc.
84712904384SSimon J. Gerraty
84812904384SSimon J. Gerraty2021-10-22  Simon J Gerraty  <sjg@beast.crufty.net>
84912904384SSimon J. Gerraty
85012904384SSimon J. Gerraty	* configure.in: use_defshell, set both DEFSHELL_INDEX
85112904384SSimon J. Gerraty	and defshell_path if appropriate.
85212904384SSimon J. Gerraty	This makes it easier to use say the KSH specification with
85312904384SSimon J. Gerraty	and alternate path for the shell.
85412904384SSimon J. Gerraty
85512904384SSimon J. Gerraty	* configure.in compat.c: for SCO we need to force UseShell
85612904384SSimon J. Gerraty
85712904384SSimon J. Gerraty	* configure.in: SCO /bin/sh is not usable, provide a list of
85812904384SSimon J. Gerraty	alternatives for use as .SHELL.
85912904384SSimon J. Gerraty	We still have to mark some tests as broken, plus more if we end up
86012904384SSimon J. Gerraty	with ksh as .SHELL.
86112904384SSimon J. Gerraty	Issue a warning about skipped tests.
86212904384SSimon J. Gerraty
86312904384SSimon J. Gerraty	* boot-strap: leave TOOL_DIFF to configure
86412904384SSimon J. Gerraty
86512904384SSimon J. Gerraty	* configure.in: on SCO native cc is not usable,
86612904384SSimon J. Gerraty	gcc is to be found in /usr/gnu/bin
86712904384SSimon J. Gerraty	and while ancient is at least able to compile bmake.
86812904384SSimon J. Gerraty	Thus we add /usr/gnu/bin to PATH if it exists, and later
86912904384SSimon J. Gerraty	check if $CC would have been found via $PATH.
87012904384SSimon J. Gerraty	If not we set CC to the full path of $CC.
87112904384SSimon J. Gerraty	Also gnu diff is known to support -u, so if it exists use it.
87212904384SSimon J. Gerraty
87312904384SSimon J. Gerraty	* configure.in: move getopt to AC_REPLACE_FUNCS
87412904384SSimon J. Gerraty	also add AC_C_INLINE - in an attempt to compile using
87512904384SSimon J. Gerraty	native cc on SCO.
87612904384SSimon J. Gerraty
87712904384SSimon J. Gerraty	* configure.in: check for stresep as well as strsep, since we
87812904384SSimon J. Gerraty	define the later to the former if necessary, and if we have to
87912904384SSimon J. Gerraty	provide stresep we also need to provide a prototype.
88012904384SSimon J. Gerraty
88112904384SSimon J. Gerraty	* configure.in: we no longer need to worry about
88212904384SSimon J. Gerraty	sys/cdefs.h providing __RCSID which simplifies things quite a bit.
88312904384SSimon J. Gerraty
88412904384SSimon J. Gerraty	* make.h: make sure we have __RCSID
88512904384SSimon J. Gerraty
88612904384SSimon J. Gerraty	* unit-tests/Makefile.config.in: add TOOL_DIFF so configure
88712904384SSimon J. Gerraty	can control it.
88812904384SSimon J. Gerraty
88912904384SSimon J. Gerraty2021-10-20  Simon J Gerraty  <sjg@beast.crufty.net>
89012904384SSimon J. Gerraty
89112904384SSimon J. Gerraty	* VERSION: 20211020
89212904384SSimon J. Gerraty	Merge with NetBSD make, pick up
89312904384SSimon J. Gerraty	o confirm sync of unit-tests
89412904384SSimon J. Gerraty
89512904384SSimon J. Gerraty2021-10-18  Simon J Gerraty  <sjg@beast.crufty.net>
89612904384SSimon J. Gerraty
89712904384SSimon J. Gerraty	* configure.in: check if timezone Europe/Berlin is supported
89812904384SSimon J. Gerraty	if not try UTC-1
89912904384SSimon J. Gerraty	* configure.in: if .OBJDIR is $srcdir/obj we need to create a
90012904384SSimon J. Gerraty	symlink unit-tests -> ../unit-tests/obj so that
90112904384SSimon J. Gerraty	unit-tests/Makefile.config is put in the right place.
90212904384SSimon J. Gerraty	* refine filtering of .OBJDIR in unit-tests
90312904384SSimon J. Gerraty
90412904384SSimon J. Gerraty2021-10-16  Simon J Gerraty  <sjg@beast.crufty.net>
90512904384SSimon J. Gerraty
90612904384SSimon J. Gerraty	* Fix unit-tests on Minix 3.2.0
90712904384SSimon J. Gerraty	o job.c: do not punt if read of token pipe fails for EAGAIN.
90812904384SSimon J. Gerraty	On Minix at least, we are not ready to read the childExitJob pipe
90912904384SSimon J. Gerraty	when poll says we are.
91012904384SSimon J. Gerraty	There should actually be no reason for this pipe to be
91112904384SSimon J. Gerraty	non-blocking, but while that works fine on {Net,Free}BSD it
91212904384SSimon J. Gerraty	breaks another test case on Minix.
91312904384SSimon J. Gerraty	o unit-tests/Makefile: deal with variants of error messages
91412904384SSimon J. Gerraty	  and use of obj as .OBJDIR
91512904384SSimon J. Gerraty
91612904384SSimon J. Gerraty2021-10-14  Simon J Gerraty  <sjg@beast.crufty.net>
91712904384SSimon J. Gerraty
91812904384SSimon J. Gerraty	* configure.in: add sigaction to AC_REPLACE_FUNCS
91912904384SSimon J. Gerraty	we also need to check for sigaddset etc just for the benefit of
92012904384SSimon J. Gerraty	sigact.c
92112904384SSimon J. Gerraty
92212904384SSimon J. Gerraty	* Add sigact.c as sigaction.c so this "just works".
92312904384SSimon J. Gerraty	This should have been done back when bmake_signal started using
92412904384SSimon J. Gerraty	sigaction (I only just noticed that sigact.c wasn't here ;-)
92512904384SSimon J. Gerraty	Note: I no longer have access to any system where this would matter.
92612904384SSimon J. Gerraty
92712904384SSimon J. Gerraty2021-10-13  Simon J Gerraty  <sjg@beast.crufty.net>
92812904384SSimon J. Gerraty
92912904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211011
93012904384SSimon J. Gerraty
93112904384SSimon J. Gerraty	* Makefile: cleanup a little
93212904384SSimon J. Gerraty
93312904384SSimon J. Gerraty	* configure.in: check for sigsetmask
93412904384SSimon J. Gerraty
93512904384SSimon J. Gerraty2021-10-01  Simon J Gerraty  <sjg@beast.crufty.net>
93612904384SSimon J. Gerraty
93712904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20211001
93812904384SSimon J. Gerraty	Merge with NetBSD make, pick up
93912904384SSimon J. Gerraty	o reduce locations reducing text size
94012904384SSimon J. Gerraty	o remove unnecessary const
94112904384SSimon J. Gerraty	o cond.c: fix lint warning on i386
94212904384SSimon J. Gerraty	do not allow unquoted 'left == right' after modifier ':?'
94312904384SSimon J. Gerraty	o hash.c: fix build for DEBUG_HASH_LOOKUP
94412904384SSimon J. Gerraty	o var.c: fix memory leak in error case of the ':?' modifier
94512904384SSimon J. Gerraty
94612904384SSimon J. Gerraty2021-09-11  Simon J Gerraty  <sjg@beast.crufty.net>
94712904384SSimon J. Gerraty
94812904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210911
94912904384SSimon J. Gerraty	Merge with NetBSD make, pick up
95012904384SSimon J. Gerraty	o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval
95112904384SSimon J. Gerraty
95212904384SSimon J. Gerraty2021-09-08  Simon J Gerraty  <sjg@beast.crufty.net>
95312904384SSimon J. Gerraty
95412904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210906
95512904384SSimon J. Gerraty	Merge with NetBSD make, pick up
95612904384SSimon J. Gerraty	o more unit tests
95712904384SSimon J. Gerraty	o lint cleanup
95812904384SSimon J. Gerraty	o rename some functions to better fit purpose
95912904384SSimon J. Gerraty	o for.c: cleanup - remove unnecessary optimization
96012904384SSimon J. Gerraty	  fix embedded newlines
96112904384SSimon J. Gerraty	o parse.c: correct case for CVS/RCS
96212904384SSimon J. Gerraty
96312904384SSimon J. Gerraty2021-08-11  Simon J Gerraty  <sjg@beast.crufty.net>
96412904384SSimon J. Gerraty
96512904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210808
96612904384SSimon J. Gerraty	Merge with NetBSD make, pick up
96712904384SSimon J. Gerraty	o var.c: remove redundant initialization in ApplyModifier_Order
96812904384SSimon J. Gerraty
96912904384SSimon J. Gerraty	* mk/options.mk: issue warning for incorrect usage
97012904384SSimon J. Gerraty
97112904384SSimon J. Gerraty2021-08-03  Simon J Gerraty  <sjg@beast.crufty.net>
97212904384SSimon J. Gerraty
97312904384SSimon J. Gerraty	* var.c: use long for :On if we don't have a 64bit int type
97412904384SSimon J. Gerraty
97512904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210803
97612904384SSimon J. Gerraty	Merge with NetBSD make, pick up
97712904384SSimon J. Gerraty	o rework varmod-order tests to avoid qsort instability
97812904384SSimon J. Gerraty	o make.1: clarify :On entry
97912904384SSimon J. Gerraty
98012904384SSimon J. Gerraty2021-07-31  Simon J Gerraty  <sjg@beast.crufty.net>
98112904384SSimon J. Gerraty
98212904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210731
98312904384SSimon J. Gerraty	Merge with NetBSD make, pick up
98412904384SSimon J. Gerraty	o fix some lint issues
98512904384SSimon J. Gerraty	o more unit tests
98612904384SSimon J. Gerraty	o var.c: rework of ApplyModifier_Order
98712904384SSimon J. Gerraty
98812904384SSimon J. Gerraty2021-07-30  Simon J Gerraty  <sjg@beast.crufty.net>
98912904384SSimon J. Gerraty
99012904384SSimon J. Gerraty	* util.c: add strto*l if HAVE_STRTO*L not defined
99112904384SSimon J. Gerraty
99212904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210730
99312904384SSimon J. Gerraty	Merge with NetBSD make, pick up
99412904384SSimon J. Gerraty	o var.c: add :On and :Orn for numeric sort
99512904384SSimon J. Gerraty	  disabled if no 64bit type available.
99612904384SSimon J. Gerraty	o _strtol.h: to implement strto*l functions
99712904384SSimon J. Gerraty
99812904384SSimon J. Gerraty2021-07-04  Simon J Gerraty  <sjg@beast.crufty.net>
99912904384SSimon J. Gerraty
100012904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210704
100112904384SSimon J. Gerraty	Merge with NetBSD make, pick up
100212904384SSimon J. Gerraty	o unit-tests: fix some tests to be more portable
100312904384SSimon J. Gerraty	- job-output-null not all shells do the same number of write calls
100412904384SSimon J. Gerraty	- objdir-writable if TMPDIR is set; /tmp may not be usable
100512904384SSimon J. Gerraty
100612904384SSimon J. Gerraty2021-07-01  Simon J Gerraty  <sjg@beast.crufty.net>
100712904384SSimon J. Gerraty
100812904384SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210701
100912904384SSimon J. Gerraty	Merge with NetBSD make, pick up
101012904384SSimon J. Gerraty	o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped;
101112904384SSimon J. Gerraty	some tests just cannot work in some environments.
101212904384SSimon J. Gerraty	o buf.c: simpler upper bound for length in Buf_AddInt
101312904384SSimon J. Gerraty	o cond.c: fix grammar in error message for malformed conditional
101412904384SSimon J. Gerraty	o for.c: prevent newline injection (from ${.newline}) in .for loops
101512904384SSimon J. Gerraty	o var.c: use more practical data type in RegexReplace
101612904384SSimon J. Gerraty	(avoid need for %zu)
101712904384SSimon J. Gerraty	extract RegexReplace from ModifyWord_SubstRegex
101812904384SSimon J. Gerraty
1019b0c40a00SSimon J. Gerraty2021-06-21  Simon J Gerraty  <sjg@beast.crufty.net>
1020b0c40a00SSimon J. Gerraty
1021b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210621
1022b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
1023b0c40a00SSimon J. Gerraty	o var.c: only report error for unmatched regex subexpression
1024b0c40a00SSimon J. Gerraty	when linting (-dL) since we cannot tell when an unmatched
1025b0c40a00SSimon J. Gerraty	subexpression is an expected result.
1026b0c40a00SSimon J. Gerraty	o move unmatched regex subexpression tests to
1027b0c40a00SSimon J. Gerraty	varmod-subst-regex.mk and enable strict (lint) mode
1028b0c40a00SSimon J. Gerraty
1029b0c40a00SSimon J. Gerraty2021-06-16  Simon J Gerraty  <sjg@beast.crufty.net>
1030b0c40a00SSimon J. Gerraty
1031b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210616
1032b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
1033b0c40a00SSimon J. Gerraty	o more unit tests
1034b0c40a00SSimon J. Gerraty	o cond.c: rename If_Eval to EvalBare
1035b0c40a00SSimon J. Gerraty	improve function names for parsing conditions
1036b0c40a00SSimon J. Gerraty	o job.c: fix error handling of targets that cannot be made
1037b0c40a00SSimon J. Gerraty	o var.c: uncompress code in ApplyModifier_Unique
1038b0c40a00SSimon J. Gerraty
1039b0c40a00SSimon J. Gerraty2021-05-18  Simon J Gerraty  <sjg@beast.crufty.net>
1040b0c40a00SSimon J. Gerraty
1041b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210518
1042b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
1043b0c40a00SSimon J. Gerraty	o fix unit-tests/opt-chdir to cope with /nonexistent existing.
1044b0c40a00SSimon J. Gerraty	o job.c: Print -de error information when running multiple jobs
1045b0c40a00SSimon J. Gerraty
1046b0c40a00SSimon J. Gerraty2021-04-20  Simon J Gerraty  <sjg@beast.crufty.net>
1047b0c40a00SSimon J. Gerraty
1048b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210420
1049b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
1050b0c40a00SSimon J. Gerraty	o use C99 bool type
1051b0c40a00SSimon J. Gerraty	o convert VarEvalFlags back into an enum
1052b0c40a00SSimon J. Gerraty	o cond.c: do not complain when skipping the condition 'no >= 10'
1053b0c40a00SSimon J. Gerraty	o hash.c: avoid allocating memory for simple variable names
1054b0c40a00SSimon J. Gerraty	o job.c: use distinct wording for writing to the shell commands file
1055b0c40a00SSimon J. Gerraty	remove type name for the abort status in job handling
1056b0c40a00SSimon J. Gerraty	rename PrintOutput to PrintFilteredOutput to avoid confusion
1057b0c40a00SSimon J. Gerraty	o main.c: avoid double slash in name of temporary directory
1058b0c40a00SSimon J. Gerraty	o var.c: use straight quotes for error 'Bad conditional expression'
1059b0c40a00SSimon J. Gerraty	reduce memory allocations in the modifiers ':D' and ':U'
1060b0c40a00SSimon J. Gerraty	rename members of ModifyWord_LoopArgs
1061b0c40a00SSimon J. Gerraty	clean up pattern flags for the modifiers ':S' and ':C'
1062b0c40a00SSimon J. Gerraty	reduce memory allocation and strlen calls in modifier ':from=to'
1063b0c40a00SSimon J. Gerraty	in the ':Q' modifier, only allocate memory if necessary
1064b0c40a00SSimon J. Gerraty	improve performance for LazyBuf
1065b0c40a00SSimon J. Gerraty	remove redundant parameter from ParseVarnameLong
1066b0c40a00SSimon J. Gerraty	migrate ParseModifierPart to use Substring
1067b0c40a00SSimon J. Gerraty	avoid unnecessary calls to strlen when evaluating modifiers
1068b0c40a00SSimon J. Gerraty	migrate ModifyWord functions to use Substring
1069b0c40a00SSimon J. Gerraty	migrate handling of the modifier ':S,from,to,' to Substring
1070b0c40a00SSimon J. Gerraty	reduce debug logging and memory allocation for ${:U...}
1071b0c40a00SSimon J. Gerraty	reduce verbosity of the -dv debug logging for standard cases
1072b0c40a00SSimon J. Gerraty	clean up debug logging for ':M' and ':N'
1073b0c40a00SSimon J. Gerraty	disallow '$' in the variable name of the modifier ':@'
1074b0c40a00SSimon J. Gerraty	simplify access to the name of an expression during evaluation
1075b0c40a00SSimon J. Gerraty
1076b0c40a00SSimon J. Gerraty2021-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
1077b0c40a00SSimon J. Gerraty
1078b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210330
1079b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
1080b0c40a00SSimon J. Gerraty	o replace enum bit-field with struct bit-field for VarEvalFlags
1081b0c40a00SSimon J. Gerraty	o rename VARE_NONE to VARE_PARSE_ONLY
1082b0c40a00SSimon J. Gerraty	o var.c: rename ApplyModifiersState to ModChain
1083b0c40a00SSimon J. Gerraty	fix double varname expansion in the variable modifier '::='
1084b0c40a00SSimon J. Gerraty	change debug log for variable evaluation flags to lowercase
1085b0c40a00SSimon J. Gerraty
1086b0c40a00SSimon J. Gerraty2021-03-14  Simon J Gerraty  <sjg@beast.crufty.net>
1087b0c40a00SSimon J. Gerraty
1088b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210314
1089b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
1090b0c40a00SSimon J. Gerraty	o var.c: avoid evaluating many modifiers in parse only mode
1091b0c40a00SSimon J. Gerraty	in strict mode (-dL) many variable references are parsed twice,
1092b0c40a00SSimon J. Gerraty	the first time just to report parse errors early, so we want to
1093b0c40a00SSimon J. Gerraty	avoid side effects and wasted effort to the extent possible.
1094b0c40a00SSimon J. Gerraty
1095b0c40a00SSimon J. Gerraty2021-02-26  Simon J Gerraty  <sjg@beast.crufty.net>
1096b0c40a00SSimon J. Gerraty
1097b0c40a00SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210226
1098b0c40a00SSimon J. Gerraty	Merge with NetBSD make, pick up
1099b0c40a00SSimon J. Gerraty	o remove freestanding freeIt variables
1100b0c40a00SSimon J. Gerraty	link via FStr
1101b0c40a00SSimon J. Gerraty	o var.c: restructure code in ParseVarname to target human readers
1102b0c40a00SSimon J. Gerraty	improve error message for;
1103b0c40a00SSimon J. Gerraty	  bad modifier in variable expression
1104b0c40a00SSimon J. Gerraty	  unclosed modifier
1105b0c40a00SSimon J. Gerraty	  unknown modifier
1106b0c40a00SSimon J. Gerraty	remove redundant parameter of ApplySingleModifier
1107b0c40a00SSimon J. Gerraty	explain non-obvious code around indirect variable modifiers
1108b0c40a00SSimon J. Gerraty	quote ':S' in error message about missing delimiter
1109b0c40a00SSimon J. Gerraty	extract ParseModifier_Match into separate function
1110b0c40a00SSimon J. Gerraty	add context information to error message about ':range' modifier
1111b0c40a00SSimon J. Gerraty	add quotes around variable name in an error message
1112b0c40a00SSimon J. Gerraty	reorder code in ModifyWords
1113b0c40a00SSimon J. Gerraty	use more common parameter order for VarSelectWords
1114b0c40a00SSimon J. Gerraty	make ModifyWord_Subst a little easier to understand
1115b0c40a00SSimon J. Gerraty	do not expand variable name from the command line twice
1116b0c40a00SSimon J. Gerraty	extract ExistsInCmdline from Var_SetWithFlags
1117b0c40a00SSimon J. Gerraty	save a hash map lookup when defining a cmdline variable
1118b0c40a00SSimon J. Gerraty	clean up VarAdd, Var_Delete, Var_ReexportVars
1119b0c40a00SSimon J. Gerraty	use bit-shift expressions for VarFlags constants
1120b0c40a00SSimon J. Gerraty	rename constants for VarFlags
1121b0c40a00SSimon J. Gerraty	rename ExprDefined constants for debug logging
1122b0c40a00SSimon J. Gerraty	rename ExprStatus to ExprDefined
1123b0c40a00SSimon J. Gerraty	split parameters for evaluating variable expressions
1124b0c40a00SSimon J. Gerraty	reduce redundant code around ModifyWords
1125b0c40a00SSimon J. Gerraty	print error about failed shell command before overwriting variable
1126b0c40a00SSimon J. Gerraty	clean up ValidShortVarname, ParseVarnameShort
1127b0c40a00SSimon J. Gerraty	rename VarExprStatus to ExprStatus
1128b0c40a00SSimon J. Gerraty	add functions for assigning the value of an expression
1129b0c40a00SSimon J. Gerraty	rename ApplyModifiersState_Define to Expr_Define
1130b0c40a00SSimon J. Gerraty	condense the code for parsing :S and :C modifiers
1131b0c40a00SSimon J. Gerraty
1132dba7b0efSSimon J. Gerraty2021-02-06  Simon J Gerraty  <sjg@beast.crufty.net>
1133dba7b0efSSimon J. Gerraty
1134dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210206
1135dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
1136dba7b0efSSimon J. Gerraty	o unit-tests: use private TMPDIR to avoid errors from other users
1137dba7b0efSSimon J. Gerraty
1138dba7b0efSSimon J. Gerraty2021-02-05  Simon J Gerraty  <sjg@beast.crufty.net>
1139dba7b0efSSimon J. Gerraty
1140dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210205
1141dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
1142dba7b0efSSimon J. Gerraty	o avoid strdup in mkTempFile
1143dba7b0efSSimon J. Gerraty	o always use vfork
1144dba7b0efSSimon J. Gerraty	o rename context and ctxt to scope
1145dba7b0efSSimon J. Gerraty	o rename some VAR constants to SCOPE
1146dba7b0efSSimon J. Gerraty	o Var_ functions, move the scope to the front
1147dba7b0efSSimon J. Gerraty	o use shortcut functions Global_Set and Global_Append
1148dba7b0efSSimon J. Gerraty	o add shortcut Global_Delete for deleting a global variable
1149dba7b0efSSimon J. Gerraty	o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete
1150dba7b0efSSimon J. Gerraty	o compat.c: when exiting due to an error, print graph information
1151dba7b0efSSimon J. Gerraty	o enum.c: remove overengineered Enum_ValueToString
1152dba7b0efSSimon J. Gerraty	o make.c: remove unused INTERNAL flag
1153dba7b0efSSimon J. Gerraty	remove unused return type of MakeBuildParent
1154dba7b0efSSimon J. Gerraty	o parse.c: replace parse error "Need an operator" with better message
1155dba7b0efSSimon J. Gerraty	o var.c: improve documentation about variable scopes
1156dba7b0efSSimon J. Gerraty	rename Var_ValueDirect to GNode_ValueDirect
1157dba7b0efSSimon J. Gerraty	rename old Var_SetWithFlags to Var_SetExpandWithFlags
1158dba7b0efSSimon J. Gerraty	merge SetVar into Var_SetWithFlags
1159dba7b0efSSimon J. Gerraty	split Var_Exists into plain Var_Exists and Var_ExistsExpand
1160dba7b0efSSimon J. Gerraty	split Var_Append into Var_Append and Var_AppendExpand
1161dba7b0efSSimon J. Gerraty	replace enum bit-set with bit-field
1162dba7b0efSSimon J. Gerraty	o unit-tests/var-op-shell: use kill rather than kill -14
1163dba7b0efSSimon J. Gerraty	which broke on darwin with recent update.
1164dba7b0efSSimon J. Gerraty
1165dba7b0efSSimon J. Gerraty2021-02-01  Simon J Gerraty  <sjg@beast.crufty.net>
1166dba7b0efSSimon J. Gerraty
1167dba7b0efSSimon J. Gerraty	* configure.in: check for sig_atomic_t and define it as 'int'
1168dba7b0efSSimon J. Gerraty	if missing.
1169dba7b0efSSimon J. Gerraty
1170dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210201
1171dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
1172dba7b0efSSimon J. Gerraty	o use sig_atomic_t for caught_sigchld
1173dba7b0efSSimon J. Gerraty
1174dba7b0efSSimon J. Gerraty2021-01-30  Simon J Gerraty  <sjg@beast.crufty.net>
1175dba7b0efSSimon J. Gerraty
1176dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210130
1177dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
1178dba7b0efSSimon J. Gerraty	o more unit tests
1179dba7b0efSSimon J. Gerraty	o convert SearchPath to struct
1180dba7b0efSSimon J. Gerraty	o split Buf_Destroy into Buf_Done and Buf_DoneData
1181dba7b0efSSimon J. Gerraty	o for.c: split For_Eval into separate functions
1182dba7b0efSSimon J. Gerraty	rename struct For to struct ForLoop
1183dba7b0efSSimon J. Gerraty	o job.c: do not create empty shell files in jobs mode
1184dba7b0efSSimon J. Gerraty	rename JobOpenTmpFile to JobWriteShellCommands
1185dba7b0efSSimon J. Gerraty	reduce unnecessary calls to waitpid
1186dba7b0efSSimon J. Gerraty	o parse.c: in -dp mode, print stack trace with each diagnostic
1187dba7b0efSSimon J. Gerraty
1188dba7b0efSSimon J. Gerraty2021-01-23  Simon J Gerraty  <sjg@beast.crufty.net>
1189dba7b0efSSimon J. Gerraty
1190dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210123
1191dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
1192dba7b0efSSimon J. Gerraty	o rename Dir_Expand to SearchPath_Expand
1193dba7b0efSSimon J. Gerraty	o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags
1194dba7b0efSSimon J. Gerraty	o cond.c: fix debug output for comparison operators in conditionals
1195dba7b0efSSimon J. Gerraty	o dir.c: split Dir_FindFile into separate functions
1196dba7b0efSSimon J. Gerraty
1197dba7b0efSSimon J. Gerraty2021-01-20  Simon J Gerraty  <sjg@beast.crufty.net>
1198dba7b0efSSimon J. Gerraty
1199dba7b0efSSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210120
1200dba7b0efSSimon J. Gerraty	Merge with NetBSD make, pick up
1201dba7b0efSSimon J. Gerraty	o fix some more lint nits
1202dba7b0efSSimon J. Gerraty	o refine some unit tests for portability
1203dba7b0efSSimon J. Gerraty	o cond.c: rework parsing
1204dba7b0efSSimon J. Gerraty
120506b9b3e0SSimon J. Gerraty2021-01-10  Simon J Gerraty  <sjg@beast.crufty.net>
120606b9b3e0SSimon J. Gerraty
120706b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210110
120806b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
120906b9b3e0SSimon J. Gerraty	o fix lint warnings
121006b9b3e0SSimon J. Gerraty	o consistently use boolean expressions in conditions
121106b9b3e0SSimon J. Gerraty
121206b9b3e0SSimon J. Gerraty2021-01-08  Simon J Gerraty  <sjg@beast.crufty.net>
121306b9b3e0SSimon J. Gerraty
121406b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210108
121506b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
121606b9b3e0SSimon J. Gerraty	o job.c: back to polling token pipe if we want a token
121706b9b3e0SSimon J. Gerraty	o main.c: always print 'stopped in' on first call
121806b9b3e0SSimon J. Gerraty	The execption is if we bail because of an abort token
121906b9b3e0SSimon J. Gerraty	in which case just exit 6.
122006b9b3e0SSimon J. Gerraty
122106b9b3e0SSimon J. Gerraty2021-01-01  Simon J Gerraty  <sjg@beast.crufty.net>
122206b9b3e0SSimon J. Gerraty
122306b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210101
122406b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
122506b9b3e0SSimon J. Gerraty	o Happy New Year!
122606b9b3e0SSimon J. Gerraty	o rename CmdOpts.lint to strict
122706b9b3e0SSimon J. Gerraty	o exit 2 on technical errors
122806b9b3e0SSimon J. Gerraty	o replace pointers in controlling conditions with booleans
122906b9b3e0SSimon J. Gerraty	o replace global preserveUndefined with VARE_KEEP_UNDEF
123006b9b3e0SSimon J. Gerraty	o compat.c: re-export variables from the actual make process
123106b9b3e0SSimon J. Gerraty	if using vfork this is the effect anyway
123206b9b3e0SSimon J. Gerraty	o cond.c: clean up VarParseResult constants
123306b9b3e0SSimon J. Gerraty	o for.c: fix undefined behavior in SubstVarLong
123406b9b3e0SSimon J. Gerraty	make control flow in SubstVarLong of .for loops more obvious
123506b9b3e0SSimon J. Gerraty	clean up SubstVarShort in .for loops
123606b9b3e0SSimon J. Gerraty	extract ForSubstBody from ForReadMore
123706b9b3e0SSimon J. Gerraty	clean up ForReadMore
123806b9b3e0SSimon J. Gerraty	simplify termination condition for .for loop
123906b9b3e0SSimon J. Gerraty	add error handling for .for loop items
124006b9b3e0SSimon J. Gerraty	job.c: re-export variables from the actual make process
124106b9b3e0SSimon J. Gerraty	parse.c: remove mmap for loading files, only allow files < 1 GiB
124206b9b3e0SSimon J. Gerraty	fix edge case in := with undefined in variable name
124306b9b3e0SSimon J. Gerraty	skip variable expansion in ParseDependencyTargetWord
124406b9b3e0SSimon J. Gerraty	var.c: split ExportVar into separate functions
124506b9b3e0SSimon J. Gerraty	clean up code in extracted ExportVar functions
124606b9b3e0SSimon J. Gerraty	remove dead code from ApplyModifiersIndirect
124706b9b3e0SSimon J. Gerraty	split Var_Subst into easily understandable functions
124806b9b3e0SSimon J. Gerraty	clean up VarParseResult constants
124906b9b3e0SSimon J. Gerraty
125006b9b3e0SSimon J. Gerraty2020-12-25  Simon J Gerraty  <sjg@beast.crufty.net>
125106b9b3e0SSimon J. Gerraty
125206b9b3e0SSimon J. Gerraty	* main.c: use .MAKE.DEPENDFILE as set by makefiles
125306b9b3e0SSimon J. Gerraty
125406b9b3e0SSimon J. Gerraty2020-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
125506b9b3e0SSimon J. Gerraty
125606b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201222
125706b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
125806b9b3e0SSimon J. Gerraty	o make DEBUG macro return boolean
125906b9b3e0SSimon J. Gerraty	o parse.c: fix assertion failure for files without trailing newline
126006b9b3e0SSimon J. Gerraty	o var.c: allow .undef to undefine multiple variables at once
126106b9b3e0SSimon J. Gerraty	remove excess newline from parse errors
126206b9b3e0SSimon J. Gerraty
126306b9b3e0SSimon J. Gerraty2020-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
126406b9b3e0SSimon J. Gerraty
126506b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201221
126606b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
126706b9b3e0SSimon J. Gerraty	o some unit-test updates
126806b9b3e0SSimon J. Gerraty
126906b9b3e0SSimon J. Gerraty2020-12-20  Simon J Gerraty  <sjg@beast.crufty.net>
127006b9b3e0SSimon J. Gerraty
127106b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201220
127206b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
127306b9b3e0SSimon J. Gerraty	o more unit tests
127406b9b3e0SSimon J. Gerraty	o return FStr from Var_Parse and Var_Value
127506b9b3e0SSimon J. Gerraty	o spell nonexistent consistently
127606b9b3e0SSimon J. Gerraty	o add str_basename to reduce duplicate code
127706b9b3e0SSimon J. Gerraty	o compat.c: fix .ERROR_TARGET in compat -k mode
127806b9b3e0SSimon J. Gerraty	extract InitSignals from Compat_Run
127906b9b3e0SSimon J. Gerraty	extract UseShell from Compat_RunCommand
128006b9b3e0SSimon J. Gerraty	o cond.c: error out if an '.endif' or '.else' contain extraneous text
128106b9b3e0SSimon J. Gerraty	o for.c: rename ForIterate to ForReadMore
128206b9b3e0SSimon J. Gerraty	o hash.c: clean up hash function for HashTable
128306b9b3e0SSimon J. Gerraty	o lst.c: rename Vector.priv_cap to cap
128406b9b3e0SSimon J. Gerraty	o main.c: remove constant parameter from MakeMode
128506b9b3e0SSimon J. Gerraty	o make.c: use symbolic time for 0 in Make_Recheck
128606b9b3e0SSimon J. Gerraty	extract MakeChildren from MakeStartJobs
128706b9b3e0SSimon J. Gerraty	o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar
128806b9b3e0SSimon J. Gerraty	fix error message for .info/.warning/.error without argument
128906b9b3e0SSimon J. Gerraty	extract Var_Undef from ParseDirective
129006b9b3e0SSimon J. Gerraty	extract ParseSkippedBranches, ParseForLoop from ParseReadLine
129106b9b3e0SSimon J. Gerraty	rename mode constants for ParseGetLine to be more expressive
129206b9b3e0SSimon J. Gerraty	reduce debugging details in Parse_SetInput
129306b9b3e0SSimon J. Gerraty	fix line numbers in .for loops
129406b9b3e0SSimon J. Gerraty	split ParseGetLine into separate functions
129506b9b3e0SSimon J. Gerraty	fix garbled output for failed shell command
129606b9b3e0SSimon J. Gerraty	var.c: remove redundant assignment in ApplyModifier_SysV
129706b9b3e0SSimon J. Gerraty	error out on unknown variable modifiers at parse time
129806b9b3e0SSimon J. Gerraty	remove wrong error message for indirect modifier in lint mode
129906b9b3e0SSimon J. Gerraty	extract ApplySingleModifier from ApplyModifiers
130006b9b3e0SSimon J. Gerraty	use FStr for memory management in Var_SetWithFlags
130106b9b3e0SSimon J. Gerraty	extract SetVar from Var_SetWithFlags
130206b9b3e0SSimon J. Gerraty	use FStr in VarNew
130306b9b3e0SSimon J. Gerraty	extract string functions from ApplyModifier_To
130406b9b3e0SSimon J. Gerraty	error out if .undef has not exactly 1 argument
130506b9b3e0SSimon J. Gerraty	extract Var_DeleteVar from Var_Delete
130606b9b3e0SSimon J. Gerraty	extract Var_Undef from ParseDirective
130706b9b3e0SSimon J. Gerraty	clean up memory management for expanding variable expressions
130806b9b3e0SSimon J. Gerraty
130906b9b3e0SSimon J. Gerraty2020-12-12  Simon J Gerraty  <sjg@beast.crufty.net>
131006b9b3e0SSimon J. Gerraty
131106b9b3e0SSimon J. Gerraty	* avoid %zu
131206b9b3e0SSimon J. Gerraty
131306b9b3e0SSimon J. Gerraty	* lst.c: avoid anonymous union
131406b9b3e0SSimon J. Gerraty
131506b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201212
131606b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
131706b9b3e0SSimon J. Gerraty	o more unit tests
131806b9b3e0SSimon J. Gerraty	o inline Targ_Ignore and Targ_Silent
131906b9b3e0SSimon J. Gerraty	o split JobFlags into separate fields
132006b9b3e0SSimon J. Gerraty	o remove const from function parameters (left overs from refactoring)
132106b9b3e0SSimon J. Gerraty	o eliminate boolean argument of Var_Export
132206b9b3e0SSimon J. Gerraty	o make API of Buf_Init simpler
132306b9b3e0SSimon J. Gerraty	o rename ParseRunOptions to ParseCommandFlags
132406b9b3e0SSimon J. Gerraty	o replace *line with line[0]
132506b9b3e0SSimon J. Gerraty	o compat.c: fix wrong exit status for multiple failed main targets
132606b9b3e0SSimon J. Gerraty	refactor Compat_Run to show the error condition more clearly
132706b9b3e0SSimon J. Gerraty	don't make .END if the main targets already failed (-k mode)
132806b9b3e0SSimon J. Gerraty	fix exit status in -k mode if a dependency fails
132906b9b3e0SSimon J. Gerraty	o for.c: clean up Buf_AddEscaped in .for loops
133006b9b3e0SSimon J. Gerraty	o job.c: extract ShellWriter_ErrOn from JobPrintCommand
133106b9b3e0SSimon J. Gerraty	make Job_Touch simpler
133206b9b3e0SSimon J. Gerraty	refactor JobFinish
133306b9b3e0SSimon J. Gerraty	rename Shell.exitFlag to errFlag
133406b9b3e0SSimon J. Gerraty	move Job.xtraced to ShellWriter
133506b9b3e0SSimon J. Gerraty	make printing of shell commands independent from the job
133606b9b3e0SSimon J. Gerraty	rename shell flags in struct Shell
133706b9b3e0SSimon J. Gerraty	extract JobOpenTmpFile from JobStart
133806b9b3e0SSimon J. Gerraty	rename RunFlags to CommandFlags
133906b9b3e0SSimon J. Gerraty	split various Job.* into separate fields
134006b9b3e0SSimon J. Gerraty	rename commandShell to shell
134106b9b3e0SSimon J. Gerraty	extract InitShellNameAndPath from Shell_Init
134206b9b3e0SSimon J. Gerraty	replace signal handling macros with local functions
134306b9b3e0SSimon J. Gerraty	replace macro MESSAGE with local function
134406b9b3e0SSimon J. Gerraty	parse.c: error out on null bytes in makefiles
134506b9b3e0SSimon J. Gerraty	error out on misspelled directives
134606b9b3e0SSimon J. Gerraty	rename IFile.nextbuf to readMore
134706b9b3e0SSimon J. Gerraty	fix undefined behavior in ParseEOF
134806b9b3e0SSimon J. Gerraty	str.c: remove redundant call to strlen in Str_Words
134906b9b3e0SSimon J. Gerraty	var.c: error out on misspelled .unexport-env
135006b9b3e0SSimon J. Gerraty	error out on misspelled .export directives
135106b9b3e0SSimon J. Gerraty	extract ExportVars from Var_Export
135206b9b3e0SSimon J. Gerraty	extract ExportVarsExpand from Var_Export
135306b9b3e0SSimon J. Gerraty	eliminate boolean argument of Var_Export
135406b9b3e0SSimon J. Gerraty	fix undefined behavior when exporting ${:U }
135506b9b3e0SSimon J. Gerraty	rename Var_ExportVars to Var_ReexportVars
135606b9b3e0SSimon J. Gerraty	rename Var_Export1 to ExportVar
135706b9b3e0SSimon J. Gerraty
135806b9b3e0SSimon J. Gerraty2020-12-06  Simon J Gerraty  <sjg@beast.crufty.net>
135906b9b3e0SSimon J. Gerraty
136006b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201206
136106b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
136206b9b3e0SSimon J. Gerraty	o more unit tests
136306b9b3e0SSimon J. Gerraty	o inline macros for debug logging
136406b9b3e0SSimon J. Gerraty	o use consistent variable names for list nodes
136506b9b3e0SSimon J. Gerraty	o define constants for enum zero-values
136606b9b3e0SSimon J. Gerraty	o dir.c: use fixed format for debug output of the directory cache
136706b9b3e0SSimon J. Gerraty	remove Dir_InitDir
136806b9b3e0SSimon J. Gerraty	o lst.c: inline Lst_Enqueue, Vector_Done
136906b9b3e0SSimon J. Gerraty	o meta.c: remove unused parameter from meta_needed
137006b9b3e0SSimon J. Gerraty	o parse.c: rename parse functions
137106b9b3e0SSimon J. Gerraty	o suff.c: extract ExpandChildrenRegular from ExpandChildren
137206b9b3e0SSimon J. Gerraty	o targ.c: don't concatenate identifiers in Targ_PrintType
137306b9b3e0SSimon J. Gerraty	o var.c: remove comment decoration
137406b9b3e0SSimon J. Gerraty	extract UnexportVars from Var_UnExport
137506b9b3e0SSimon J. Gerraty	extract GetVarnamesToUnexport from Var_UnExport
137606b9b3e0SSimon J. Gerraty	extract UnexportEnv from Var_UnExport
137706b9b3e0SSimon J. Gerraty	extract UnexportVar from Var_UnExport
137806b9b3e0SSimon J. Gerraty	move CleanEnv to UnexportVars
137906b9b3e0SSimon J. Gerraty	replace pointer comparisons with enum
138006b9b3e0SSimon J. Gerraty	add FStr to var.c to make memory handling simpler
138106b9b3e0SSimon J. Gerraty	use FStr in Var_UnExport
138206b9b3e0SSimon J. Gerraty	move type definitions in var.c to the top
138306b9b3e0SSimon J. Gerraty	extract FreeEnvVar from Var_Parse
138406b9b3e0SSimon J. Gerraty	extract ShuffleStrings from ApplyModifier_Order
138506b9b3e0SSimon J. Gerraty
138606b9b3e0SSimon J. Gerraty2020-11-30  Simon J Gerraty  <sjg@beast.crufty.net>
138706b9b3e0SSimon J. Gerraty
138806b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201130
138906b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
139006b9b3e0SSimon J. Gerraty	o add unit tests for META MODE
139106b9b3e0SSimon J. Gerraty	o reduce memory allocation for dirSearchPath, GNode.parents,
139206b9b3e0SSimon J. Gerraty	GNode.children, OpenDirs
139306b9b3e0SSimon J. Gerraty	o reduce pointer indirection for GNode.cohorts and
139406b9b3e0SSimon J. Gerraty	GNode.implicitParents
139506b9b3e0SSimon J. Gerraty	o remove pointer indirection from GNode.commands
139606b9b3e0SSimon J. Gerraty	o inline Lst_ForEachUntil in meta mode
139706b9b3e0SSimon J. Gerraty	o dir.c: fix memory leak for lstat cache in -DCLEANUP mode
139806b9b3e0SSimon J. Gerraty	clean up memory management for CachedDirs
139906b9b3e0SSimon J. Gerraty	fix the reference count of dotLast going negative
140006b9b3e0SSimon J. Gerraty	add debug logging for OpenDirs_Done
140106b9b3e0SSimon J. Gerraty	extract CacheNewDir from Dir_AddDir
140206b9b3e0SSimon J. Gerraty	add debug logging for reference counting of CachedDir
140306b9b3e0SSimon J. Gerraty	rename some Dir functions to SearchPath
140406b9b3e0SSimon J. Gerraty	o job.c: rename some global variables
140506b9b3e0SSimon J. Gerraty	o main.c: reduce memory allocation in ReadBuiltinRules
140606b9b3e0SSimon J. Gerraty	reduce memory allocation in CmdOpts.create, CmdOpts.variables,
140706b9b3e0SSimon J. Gerraty	CmdOpts.makefiles
140806b9b3e0SSimon J. Gerraty	Add .MAKE.UID and .MAKE.GID
140906b9b3e0SSimon J. Gerraty	o make.c: reduce memory allocation for/in toBeMade,
141006b9b3e0SSimon J. Gerraty	Make_ProcessWait, Make_ExpandUse
141106b9b3e0SSimon J. Gerraty	o meta.c: reduce memory allocation in meta_oodate
141206b9b3e0SSimon J. Gerraty	o parse.c: reduce memory allocations for parsing dependencies and
141306b9b3e0SSimon J. Gerraty	targets
141406b9b3e0SSimon J. Gerraty	o suff.c: reduce memory allocation in suffix handling
141506b9b3e0SSimon J. Gerraty
141606b9b3e0SSimon J. Gerraty2020-11-24  Simon J Gerraty  <sjg@beast.crufty.net>
141706b9b3e0SSimon J. Gerraty
141806b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201124
141906b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
142006b9b3e0SSimon J. Gerraty	o .MAKE.{UID,GID} represent uid and gid running make.
142106b9b3e0SSimon J. Gerraty	o fix error handling for .BEGIN and .END dependency in -k mode
142206b9b3e0SSimon J. Gerraty	o fix missing "Stop." after failed .END node in -k mode
142306b9b3e0SSimon J. Gerraty	o use properly typed comparisons in boolean contexts
142406b9b3e0SSimon J. Gerraty	o replace a few HashTable_CreateEntry with HashTable_Set
142506b9b3e0SSimon J. Gerraty	o add HashSet type
142606b9b3e0SSimon J. Gerraty	o compat.c: split Compat_Make into smaller functions
142706b9b3e0SSimon J. Gerraty	extract DebugFailedTarget from Compat_RunCommand
142806b9b3e0SSimon J. Gerraty	o dir.c: refactor Dir_UpdateMTime
142906b9b3e0SSimon J. Gerraty	migrate CachedDir.files from HashTable to HashSet
143006b9b3e0SSimon J. Gerraty	o make.c: add high-level API for GNode.made
143106b9b3e0SSimon J. Gerraty
143206b9b3e0SSimon J. Gerraty2020-11-22  Simon J Gerraty  <sjg@beast.crufty.net>
143306b9b3e0SSimon J. Gerraty
143406b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201122
143506b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
143606b9b3e0SSimon J. Gerraty	o rename GNode.context to vars
143706b9b3e0SSimon J. Gerraty	o suff.c: cleanup and refactor
143806b9b3e0SSimon J. Gerraty	rename some functions and vars to better reflect usage
143906b9b3e0SSimon J. Gerraty	add high-level API for CandidateSearcher
144006b9b3e0SSimon J. Gerraty	o targ.c: add more debug logging for suffix handling
144106b9b3e0SSimon J. Gerraty	o more unit tests
144206b9b3e0SSimon J. Gerraty	o add debug logging for setting and resetting the main target
144306b9b3e0SSimon J. Gerraty
1444e2eeea75SSimon J. Gerraty2020-11-17  Simon J Gerraty  <sjg@beast.crufty.net>
1445e2eeea75SSimon J. Gerraty
1446e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201117
1447e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
144806b9b3e0SSimon J. Gerraty	o fix some unit-tests when .SHELL is dash
1449e2eeea75SSimon J. Gerraty	o rename Targ_NewGN to GNode_New
1450e2eeea75SSimon J. Gerraty	o make some GNode functions const
1451e2eeea75SSimon J. Gerraty	o main.c: call Targ_Init before Var_Init
1452e2eeea75SSimon J. Gerraty	cleanup PrintOnError, getTmpdir and ParseBoolean
1453e2eeea75SSimon J. Gerraty	o var.c: fix error message of failed :!cmd! modifier
1454e2eeea75SSimon J. Gerraty
1455e2eeea75SSimon J. Gerraty2020-11-14  Simon J Gerraty  <sjg@beast.crufty.net>
1456e2eeea75SSimon J. Gerraty
1457e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201114
1458e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
1459e2eeea75SSimon J. Gerraty	o replace a few HashTable_CreateEntry with HashTable_Set
1460e2eeea75SSimon J. Gerraty	o clean up cached_stats
1461e2eeea75SSimon J. Gerraty	o rename DEFAULT to defaultNode
1462e2eeea75SSimon J. Gerraty	o remove redundant struct make_stat
1463e2eeea75SSimon J. Gerraty	o cond.c: in lint mode, check for ".else <cond>"
1464e2eeea75SSimon J. Gerraty	use bitset for IfState
1465e2eeea75SSimon J. Gerraty	replace large switch with if-else in Cond_EvalLine
1466e2eeea75SSimon J. Gerraty	o job.c: clean up JobExec, JobStart, JobDoOutput
1467e2eeea75SSimon J. Gerraty	use stderr for error message about failed touch
1468e2eeea75SSimon J. Gerraty	clean up Job_Touch
1469e2eeea75SSimon J. Gerraty	replace macro DBPRINTF with JobPrintln
1470e2eeea75SSimon J. Gerraty	rename JobState to JobStatus
1471e2eeea75SSimon J. Gerraty	main.c: switch cache for realpath from GNode to HashTable
1472e2eeea75SSimon J. Gerraty	clean up Fatal
1473e2eeea75SSimon J. Gerraty	clean up InitDefSysIncPath
1474e2eeea75SSimon J. Gerraty	use progname instead of hard-coded 'make' in warning
1475e2eeea75SSimon J. Gerraty	rename Main_SetVarObjdir to SetVarObjdir
1476e2eeea75SSimon J. Gerraty	make.1: document the -S option
1477e2eeea75SSimon J. Gerraty	make.c: fix debug output for GNode details
1478e2eeea75SSimon J. Gerraty	use symbolic names in debug output of GNodes
1479e2eeea75SSimon J. Gerraty
1480e2eeea75SSimon J. Gerraty2020-11-12  Simon J Gerraty  <sjg@beast.crufty.net>
1481e2eeea75SSimon J. Gerraty
1482e2eeea75SSimon J. Gerraty	* configure.in: fix --with-force-machine-arch
1483e2eeea75SSimon J. Gerraty
1484e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201112
1485e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
1486e2eeea75SSimon J. Gerraty	o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
1487e2eeea75SSimon J. Gerraty	checks in InitObjdir.  Explicit .OBJDIR target always allows
1488e2eeea75SSimon J. Gerraty	read-only directory.
1489e2eeea75SSimon J. Gerraty	o cond.c: clean up Cond_EvalLine
1490e2eeea75SSimon J. Gerraty
1491e2eeea75SSimon J. Gerraty2020-11-11  Simon J Gerraty  <sjg@beast.crufty.net>
1492e2eeea75SSimon J. Gerraty
1493e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201111
1494e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
1495e2eeea75SSimon J. Gerraty	o more unit-tests
1496e2eeea75SSimon J. Gerraty	o style cleanup
1497e2eeea75SSimon J. Gerraty	remove redundant parentheses from sizeof operator
1498e2eeea75SSimon J. Gerraty	replace character literal 0 with '\0'.
1499e2eeea75SSimon J. Gerraty	replace pointer literal 0 with NULL.
1500e2eeea75SSimon J. Gerraty	remove redundant parentheses.
1501e2eeea75SSimon J. Gerraty	replace (expr & mask) == 0 with !(expr & mask).
1502e2eeea75SSimon J. Gerraty	use strict typing in conditions of the form !var
1503e2eeea75SSimon J. Gerraty	o rename Make_OODate to GNode_IsOODate
1504e2eeea75SSimon J. Gerraty	o rename Make_TimeStamp to GNode_UpdateYoungestChild
1505e2eeea75SSimon J. Gerraty	o rename Var_Set_with_flags to Var_SetWithFlags
1506e2eeea75SSimon J. Gerraty	o rename dieQuietly to shouldDieQuietly
1507e2eeea75SSimon J. Gerraty	o buf.c: make API of Buf_Init simpler
1508e2eeea75SSimon J. Gerraty	o compat.c: clean up Compat_Make, Compat_RunCommand,
1509e2eeea75SSimon J. Gerraty	CompatDeleteTarget and CompatInterrupt
1510e2eeea75SSimon J. Gerraty	o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|'
1511e2eeea75SSimon J. Gerraty	clean up CondParser_Comparison
1512e2eeea75SSimon J. Gerraty	o main.c: rename getBoolean and s2Boolean
1513e2eeea75SSimon J. Gerraty	rename MAKEFILE_PREFERENCE for consistency
1514e2eeea75SSimon J. Gerraty	o parse.c: replace strstr in ParseMaybeSubMake with optimized code
1515e2eeea75SSimon J. Gerraty	o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR
1516e2eeea75SSimon J. Gerraty	replace emptyString with allocated empty string
1517e2eeea75SSimon J. Gerraty	error out on unclosed expressions after the colon
1518e2eeea75SSimon J. Gerraty
1519956e45f6SSimon J. Gerraty2020-11-01  Simon J Gerraty  <sjg@beast.crufty.net>
1520956e45f6SSimon J. Gerraty
1521956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201101
1522956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1523956e45f6SSimon J. Gerraty	o negate NoExecute to GNode_ShouldExecute
1524956e45f6SSimon J. Gerraty	o job.c: rename JobMatchShell to FindShellByName
1525956e45f6SSimon J. Gerraty	extract EscapeShellDblQuot from JobPrintCommand
1526956e45f6SSimon J. Gerraty	extract ParseRunOptions from JobPrintCommand
1527956e45f6SSimon J. Gerraty	o var.c: extract ApplyModifiersIndirect from ApplyModifiers
1528956e45f6SSimon J. Gerraty	treat malformed :range, :ts and :[...] as errors
1529956e45f6SSimon J. Gerraty	add tests for the variable modifiers :[words] and :range
1530956e45f6SSimon J. Gerraty
1531956e45f6SSimon J. Gerraty2020-10-31  Simon J Gerraty  <sjg@beast.crufty.net>
1532956e45f6SSimon J. Gerraty
1533956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201031
1534956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1535956e45f6SSimon J. Gerraty	o format #include directives consistently
1536956e45f6SSimon J. Gerraty	o do not look up local variables like .TARGET anywhere else
1537956e45f6SSimon J. Gerraty	o main.c: Main_SetObjdir is first called for curdir which may be
1538956e45f6SSimon J. Gerraty	readonly
1539956e45f6SSimon J. Gerraty	reduce the scope where recursive expressions are detected
1540956e45f6SSimon J. Gerraty	remove redundant :tl from getBoolean
1541956e45f6SSimon J. Gerraty	clean up mkTempFile
1542956e45f6SSimon J. Gerraty	o meta.c: simplify memory allocation in meta_create and meta_oodate
1543956e45f6SSimon J. Gerraty	o parse.c: extract loadedfile_mmap from loadfile
1544956e45f6SSimon J. Gerraty	o trace.c: document possible undefined behavior with .CURDIR
1545956e45f6SSimon J. Gerraty	o var.c: make parsing of the :gmtime and :localtime modifiers stricter
1546956e45f6SSimon J. Gerraty	rename ismeta to is_shell_metachar
1547956e45f6SSimon J. Gerraty	remove debug logging for the :Q variable modifier
1548956e45f6SSimon J. Gerraty	rename VarIsDynamic to VarnameIsDynamic
1549956e45f6SSimon J. Gerraty	use consistent parameter order in varname parsing functions
1550956e45f6SSimon J. Gerraty	extract ParseVarnameLong from Var_Parse
1551956e45f6SSimon J. Gerraty	extract ParseVarnameShort from Var_Parse
1552956e45f6SSimon J. Gerraty	fix type of ParseModifierPart parameter delim
1553956e45f6SSimon J. Gerraty	extract IsEscapedModifierPart from ParseModifierPart
1554956e45f6SSimon J. Gerraty	clean up ModifyWords
1555956e45f6SSimon J. Gerraty	add test for combining the :@ and :? variable modifiers
1556956e45f6SSimon J. Gerraty
1557956e45f6SSimon J. Gerraty2020-10-30  Simon J Gerraty  <sjg@beast.crufty.net>
1558956e45f6SSimon J. Gerraty
1559956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201030
1560956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1561956e45f6SSimon J. Gerraty	o change char * to void * in Var_Value
1562956e45f6SSimon J. Gerraty	o make iterating over HashTable simpler
1563956e45f6SSimon J. Gerraty	o rename VAR_CMD to VAR_CMDLINE
1564956e45f6SSimon J. Gerraty	o cond.c: clean up is_separator
1565956e45f6SSimon J. Gerraty	fix parse error in string literal in conditional
1566956e45f6SSimon J. Gerraty	o main.c: do not use objdir that is not writable
1567956e45f6SSimon J. Gerraty	in lint mode, exit with error status on errors
1568956e45f6SSimon J. Gerraty	o  parse.c: clean up StrContainsWord
1569956e45f6SSimon J. Gerraty	fix out-of-bounds pointer in ParseTrackInput
1570956e45f6SSimon J. Gerraty	o var.c: rename Str_SYSVMatch and its parameters
1571956e45f6SSimon J. Gerraty	remove unsatisfiable conditions in Var_Set_with_flags
1572956e45f6SSimon J. Gerraty	document where the variable name is expanded
1573956e45f6SSimon J. Gerraty	fix documentation for VARP_SUB_ONE
1574956e45f6SSimon J. Gerraty	rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME
1575956e45f6SSimon J. Gerraty	document VAR_READONLY
1576956e45f6SSimon J. Gerraty	prevent appending to read-only variables
1577956e45f6SSimon J. Gerraty	extract MayExport from Var_Export1
1578956e45f6SSimon J. Gerraty	remove redundant evaluations in VarFind
1579956e45f6SSimon J. Gerraty	replace VarFindFlags with a simple Boolean
1580956e45f6SSimon J. Gerraty	rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE
1581956e45f6SSimon J. Gerraty
1582956e45f6SSimon J. Gerraty2020-10-28  Simon J Gerraty  <sjg@beast.crufty.net>
1583956e45f6SSimon J. Gerraty
1584956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201028
1585956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1586956e45f6SSimon J. Gerraty	o rename defIncPath to defSysIncPath
1587956e45f6SSimon J. Gerraty	o initialize all CmdOpts fields
1588956e45f6SSimon J. Gerraty	o lst.c: inline Vector_Get
1589956e45f6SSimon J. Gerraty	o main.c: refactor main extract
1590956e45f6SSimon J. Gerraty	InitMaxJobs,InitObjdir,InitVarMake,InitRandom,
1591956e45f6SSimon J. Gerraty	ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules,
1592956e45f6SSimon J. Gerraty	InitDefIncPath,CmdOpts_Init,UnlimitFiles
1593956e45f6SSimon J. Gerraty	o parse.c: merge curFile into includes
1594956e45f6SSimon J. Gerraty	rename predecessor to order_pred
1595956e45f6SSimon J. Gerraty	sort ParseSpecial alphabetically
1596956e45f6SSimon J. Gerraty	remove unused, undocumented .NOEXPORT
1597956e45f6SSimon J. Gerraty	rename ParseSpecial enum values consistently
1598956e45f6SSimon J. Gerraty	rename some fields of struct IFile
1599956e45f6SSimon J. Gerraty
1600956e45f6SSimon J. Gerraty2020-10-26  Simon J Gerraty  <sjg@beast.crufty.net>
1601956e45f6SSimon J. Gerraty
1602956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201026
1603956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1604956e45f6SSimon J. Gerraty	o group the command line options and arguments into a struct
1605956e45f6SSimon J. Gerraty	o rename GNode.cmgn to youngestChild
1606956e45f6SSimon J. Gerraty	o rename hash functions to identify the type name
1607956e45f6SSimon J. Gerraty	o negate OP_NOP and rename it to GNode_IsTarget
1608956e45f6SSimon J. Gerraty	o add GNode_Path to access the path of a GNode
1609956e45f6SSimon J. Gerraty	o remove macros MIN and MAX
1610956e45f6SSimon J. Gerraty	o remove unused Lst_Find and Lst_FindFrom
1611956e45f6SSimon J. Gerraty	o arch.c: and make Arch_FindLib simpler
1612956e45f6SSimon J. Gerraty	clean up code layout
1613956e45f6SSimon J. Gerraty	make Arch_ParseArchive simpler
1614956e45f6SSimon J. Gerraty	o cond.c: inline CondFindStrMatch into FuncMake
1615956e45f6SSimon J. Gerraty	o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath
1616956e45f6SSimon J. Gerraty	omit trailing space in debug output for expanding file patterns
1617956e45f6SSimon J. Gerraty	refactor DirMatchFiles
1618956e45f6SSimon J. Gerraty	document that the SearchPath of Dir_FindFile may be NULL
1619956e45f6SSimon J. Gerraty	remove UNCONST from Dir_Expand
1620956e45f6SSimon J. Gerraty	inline DirFindName
1621956e45f6SSimon J. Gerraty	o for.c: clean up code for handling .for loops
1622956e45f6SSimon J. Gerraty	o hash.c: print hash in debug log with fixed width
1623956e45f6SSimon J. Gerraty	clean up hash table functions
1624956e45f6SSimon J. Gerraty	reduce amount of string hashing
1625956e45f6SSimon J. Gerraty	o job.c: refactor JobDeleteTarget
1626956e45f6SSimon J. Gerraty	use proper enum constants for aborting
1627956e45f6SSimon J. Gerraty	convert result of JobStart from macros to enum
1628956e45f6SSimon J. Gerraty	convert abort reason macros to enum
1629956e45f6SSimon J. Gerraty	rework Job_CheckCommands to reduce indentation
1630956e45f6SSimon J. Gerraty	rename Shell fields
1631956e45f6SSimon J. Gerraty	add field names in declaration of DEFSHELL_CUSTOM
1632956e45f6SSimon J. Gerraty	convert JobState and JobFlags to enum types
1633956e45f6SSimon J. Gerraty	move handling of the "..." command to JobPrintCommands
1634956e45f6SSimon J. Gerraty	o lst.c: clean up
1635956e45f6SSimon J. Gerraty	refactor LstNodeNew
1636956e45f6SSimon J. Gerraty	remove Lst_Open, Lst_Next, Lst_Close
1637956e45f6SSimon J. Gerraty	remove code for circular lists from Lst_Next
1638956e45f6SSimon J. Gerraty	o main.c: do not attempt to read .MAKE.DEPENFILE if set to
1639956e45f6SSimon J. Gerraty	/dev/null or anything starting with "no"
1640956e45f6SSimon J. Gerraty	convert macros for debug flags into enum
1641956e45f6SSimon J. Gerraty	o make.c: inline Lst_Copy in Make_ExpandUse
1642956e45f6SSimon J. Gerraty	o meta.c: inline Lst_Find in meta_oodate
1643956e45f6SSimon J. Gerraty	make Lst_RemoveIf simpler in meta_oodate
1644956e45f6SSimon J. Gerraty	o parse.c: convert error level for Parse_Error to an enum
1645956e45f6SSimon J. Gerraty	o suff.c: properly terminate debug output with newline
1646956e45f6SSimon J. Gerraty	add more details to DEBUG_SRC log
1647956e45f6SSimon J. Gerraty	replace Dir_CopyDir with Dir_CopyDirSearchPath
1648956e45f6SSimon J. Gerraty	don't modify GNode name while rebuilding the suffix graph
1649956e45f6SSimon J. Gerraty	o var.c: reduce duplicate code in VarFind
1650956e45f6SSimon J. Gerraty
1651956e45f6SSimon J. Gerraty2020-10-22  Simon J Gerraty  <sjg@beast.crufty.net>
1652956e45f6SSimon J. Gerraty
1653956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201022
1654956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1655956e45f6SSimon J. Gerraty	o more refactoring and simplification to reduce code size
1656956e45f6SSimon J. Gerraty	o var.c: extract CanonicalVarname from VarFind
1657956e45f6SSimon J. Gerraty	o make.c: extract UpdateImplicitParentsVars from Make_Update
1658956e45f6SSimon J. Gerraty	o main.c: extract PrintVar from doPrintVars
1659956e45f6SSimon J. Gerraty	extract HandlePWD from main
1660956e45f6SSimon J. Gerraty	o lst.c: inline simple Lst getters
1661956e45f6SSimon J. Gerraty	remove unused Lst_ForEach
1662956e45f6SSimon J. Gerraty	o job.c: move struct Shell from job.h to job.c
1663956e45f6SSimon J. Gerraty	o more unit tests
1664956e45f6SSimon J. Gerraty
1665956e45f6SSimon J. Gerraty2020-10-19  Simon J Gerraty  <sjg@beast.crufty.net>
1666956e45f6SSimon J. Gerraty
1667956e45f6SSimon J. Gerraty	* configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT
1668956e45f6SSimon J. Gerraty
1669956e45f6SSimon J. Gerraty2020-10-18  Simon J Gerraty  <sjg@beast.crufty.net>
1670956e45f6SSimon J. Gerraty
1671956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201018
1672956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1673956e45f6SSimon J. Gerraty	o remove USE_IOVEC
1674956e45f6SSimon J. Gerraty	o rename some Hash_* apis to Hash*
1675956e45f6SSimon J. Gerraty	o replace execError with execDie
1676956e45f6SSimon J. Gerraty	o rename Lst_Init to Lst_New
1677956e45f6SSimon J. Gerraty	o add tags to enum types
1678956e45f6SSimon J. Gerraty	o rename Stack to Vector
1679956e45f6SSimon J. Gerraty	o parse.c: more refactoring
1680956e45f6SSimon J. Gerraty	o unit-tests: make some tests use line buffered stdout
1681956e45f6SSimon J. Gerraty	o unit-tests/Makefile: in meta mode do not make all tests depend on
1682956e45f6SSimon J. Gerraty	Makefile, it isn't necessary.
1683956e45f6SSimon J. Gerraty
1684956e45f6SSimon J. Gerraty2020-10-10  Simon J Gerraty  <sjg@beast.crufty.net>
1685956e45f6SSimon J. Gerraty
1686956e45f6SSimon J. Gerraty	* main.c: check for CTL_HW being defined.
1687956e45f6SSimon J. Gerraty	* unit-tests/Makefile: ensure export tests output are POSIX compliant
1688956e45f6SSimon J. Gerraty	disable opt-debug-jobs test until it works on ubuntu
1689956e45f6SSimon J. Gerraty
1690956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201010
1691956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1692956e45f6SSimon J. Gerraty	o dir.c: remove pathname limit for Dir_FindHereOrAbove
1693956e45f6SSimon J. Gerraty	o hash.c: replace strcpy with memcpy in Hash_CreateEntry
1694956e45f6SSimon J. Gerraty	o main.c: extract init_machine and init_machine_arch from main
1695956e45f6SSimon J. Gerraty	allow to disable debug logging options
1696956e45f6SSimon J. Gerraty	o parse.c: enable format string truncation warnings
1697956e45f6SSimon J. Gerraty	extract parsing of sources from ParseDoDependency
1698956e45f6SSimon J. Gerraty	split ParseDoSrc into smaller functions
1699956e45f6SSimon J. Gerraty	hide implementation details from Parse_DoVar
1700956e45f6SSimon J. Gerraty	clean up parsing of variable assignments
1701956e45f6SSimon J. Gerraty	split Parse_DoVar into manageable pieces
1702956e45f6SSimon J. Gerraty	don't modify the given line during Parse_DoVar
1703956e45f6SSimon J. Gerraty	fix out-of-bounds memory access in Parse_DoVar
1704956e45f6SSimon J. Gerraty	fix parsing of the :sh assignment modifier
1705956e45f6SSimon J. Gerraty	o var.c: rework memory allocation for the name of variables
1706956e45f6SSimon J. Gerraty	extract ApplyModifier_Literal into separate function
1707956e45f6SSimon J. Gerraty	in lint mode, reject modifiers without delimiter
1708956e45f6SSimon J. Gerraty	do not export variable names starting with '-'
1709956e45f6SSimon J. Gerraty	o fix double-free bug in -DCLEANUP mode
1710956e45f6SSimon J. Gerraty	o more cleanup to enable higher warnings level
1711956e45f6SSimon J. Gerraty	o more unit tests
1712956e45f6SSimon J. Gerraty
1713956e45f6SSimon J. Gerraty2020-10-02  Simon J Gerraty  <sjg@beast.crufty.net>
1714956e45f6SSimon J. Gerraty
1715956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201002
1716956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1717956e45f6SSimon J. Gerraty	o dir.c: use hash table for looking up open directories by name
1718956e45f6SSimon J. Gerraty	o main.c: clean up option handling
1719956e45f6SSimon J. Gerraty	o parse.c: add missing const for Parse_AddIncludeDir
1720956e45f6SSimon J. Gerraty	o var.c: ApplyModifier_To, update pp in each branch
1721956e45f6SSimon J. Gerraty	o remove redundant function prototypes
1722956e45f6SSimon J. Gerraty	o more unit tests
1723956e45f6SSimon J. Gerraty
1724956e45f6SSimon J. Gerraty2020-10-01  Simon J Gerraty  <sjg@beast.crufty.net>
1725956e45f6SSimon J. Gerraty
1726956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201001
1727956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1728956e45f6SSimon J. Gerraty	o compat.c: comment about "..."
1729956e45f6SSimon J. Gerraty
1730956e45f6SSimon J. Gerraty2020-09-30  Simon J Gerraty  <sjg@beast.crufty.net>
1731956e45f6SSimon J. Gerraty
1732956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200930
1733956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1734956e45f6SSimon J. Gerraty	o job.c: split Job.jobPipe into 2 separate fields
1735956e45f6SSimon J. Gerraty	replace Lst_Open with direct iteration
1736956e45f6SSimon J. Gerraty	o lst.c: remove redundant assertions
1737956e45f6SSimon J. Gerraty	o targ.c: replace Lst_Open with direct iteration
1738956e45f6SSimon J. Gerraty	o var.c: fix bug in evaluation of indirect variable modifiers
1739956e45f6SSimon J. Gerraty	extract ApplyModifier_Quote into separate function
1740956e45f6SSimon J. Gerraty	o make debug logging simpler
1741956e45f6SSimon J. Gerraty
1742956e45f6SSimon J. Gerraty2020-09-27  Simon J Gerraty  <sjg@beast.crufty.net>
1743956e45f6SSimon J. Gerraty
1744956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200927
1745956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1746956e45f6SSimon J. Gerraty	o parse.c: ensure parse errors result in 'stopped in' message.
1747956e45f6SSimon J. Gerraty	o compat.c: make parameter of Compat_RunCommand const
1748956e45f6SSimon J. Gerraty	o main.c: extract InitVarTarget from main
1749956e45f6SSimon J. Gerraty	o parse.c: rename ParseFinishLine to FinishDependencyGroup
1750956e45f6SSimon J. Gerraty	refactor ParseDoDependency
1751956e45f6SSimon J. Gerraty	o var.c: Var_Subst no longer returns string result
1752956e45f6SSimon J. Gerraty	rename Var_ParsePP back to Var_Parse
1753956e45f6SSimon J. Gerraty	in lint mode, improve error handling for undefined variables
1754956e45f6SSimon J. Gerraty	extract ParseVarname from Var_Parse
1755956e45f6SSimon J. Gerraty	o rename Lst_ForEach to Lst_ForEachUntil
1756956e45f6SSimon J. Gerraty	o inline Lst_ForEachUntil in several cases
1757956e45f6SSimon J. Gerraty	o clean up API for finding and creating GNodes
1758956e45f6SSimon J. Gerraty	o fix assertion failure in -j mode with .END node
1759956e45f6SSimon J. Gerraty	o inline and remove LstNode_Prev and LstNode_Next
1760956e45f6SSimon J. Gerraty	o use fine-grained type names for lists and their nodes
1761956e45f6SSimon J. Gerraty	o more unit tests
1762956e45f6SSimon J. Gerraty
1763956e45f6SSimon J. Gerraty2020-09-11  Simon J Gerraty  <sjg@beast.crufty.net>
1764956e45f6SSimon J. Gerraty
1765956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200911
1766956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
1767956e45f6SSimon J. Gerraty	o cond.c: split EvalComparison into smaller functions
1768956e45f6SSimon J. Gerraty	reorder parameters of condition parsing functions
1769956e45f6SSimon J. Gerraty	reduce code size in CondParser_Eval
1770956e45f6SSimon J. Gerraty	rename CondGetString to CondParser_String
1771956e45f6SSimon J. Gerraty	add CondLexer_SkipWhitespace
1772956e45f6SSimon J. Gerraty	group the condition parsing state into a struct
1773956e45f6SSimon J. Gerraty	in CondGetString, replace repeated Buf_Add with Buf_AddStr
1774956e45f6SSimon J. Gerraty	o migrate Var_Parse to Var_ParsePP
1775956e45f6SSimon J. Gerraty	o add wrappers around ctype.h functions
1776956e45f6SSimon J. Gerraty	o lst.c: use a stack instead of a list for the nested include path
1777956e45f6SSimon J. Gerraty	o more unit tests
1778956e45f6SSimon J. Gerraty
1779956e45f6SSimon J. Gerraty2020-09-04  Simon J Gerraty  <sjg@beast.crufty.net>
1780956e45f6SSimon J. Gerraty
1781956e45f6SSimon J. Gerraty	* make-bootstrap.sh.in: adjust object list
1782956e45f6SSimon J. Gerraty
17832c3632d1SSimon J. Gerraty2020-09-02  Simon J Gerraty  <sjg@beast.crufty.net>
17842c3632d1SSimon J. Gerraty
17852c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200902
17862c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
17872c3632d1SSimon J. Gerraty	o use make_stat to ensure no confusion over valid fields
17882c3632d1SSimon J. Gerraty	returned by cached_stat
17892c3632d1SSimon J. Gerraty	o var.c: make VarQuote const-correct
17902c3632d1SSimon J. Gerraty	o add unit tests for .for
17912c3632d1SSimon J. Gerraty
17922c3632d1SSimon J. Gerraty2020-09-01  Simon J Gerraty  <sjg@beast.crufty.net>
17932c3632d1SSimon J. Gerraty
17942c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200901
17952c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
17962c3632d1SSimon J. Gerraty	o rename Hash_Table fields
17972c3632d1SSimon J. Gerraty	o make data types in Dir_HasWildcards more precise
17982c3632d1SSimon J. Gerraty
17992c3632d1SSimon J. Gerraty2020-08-31  Simon J Gerraty  <sjg@beast.crufty.net>
18002c3632d1SSimon J. Gerraty
18012c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200831
18022c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18032c3632d1SSimon J. Gerraty	o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds
18042c3632d1SSimon J. Gerraty	o lst.c: Lst_Open renable assert that list isn't open
18052c3632d1SSimon J. Gerraty	o unit test for .TARGET dependent flags
18062c3632d1SSimon J. Gerraty	o var.c: fix aliasing bug in VarUniq
18072c3632d1SSimon J. Gerraty	o more unit tests for :u
18082c3632d1SSimon J. Gerraty
18092c3632d1SSimon J. Gerraty2020-08-30  Simon J Gerraty  <sjg@beast.crufty.net>
18102c3632d1SSimon J. Gerraty
18112c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200830
18122c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18132c3632d1SSimon J. Gerraty	o allow for strict type checking for Boolean
18142c3632d1SSimon J. Gerraty	o Var_Parse never returns NULL
18152c3632d1SSimon J. Gerraty	o Var_Subst never returns NULL
18162c3632d1SSimon J. Gerraty	o Lst_Find now takes boolean match function
18172c3632d1SSimon J. Gerraty	o rename Lst_Memeber to Lst_FindDatum
18182c3632d1SSimon J. Gerraty	o rename LstNode functions to match their type
18192c3632d1SSimon J. Gerraty	o rename GNode.iParents to implicitParents
18202c3632d1SSimon J. Gerraty	o fix assertion failure for .SUFFIXES in archives
18212c3632d1SSimon J. Gerraty	o compat.c: clean up documentation for CompatInterrupt and Compat_Run
18222c3632d1SSimon J. Gerraty	remove unreachable code from CompatRunCommand
18232c3632d1SSimon J. Gerraty	o main.c: simplify getBoolean
18242c3632d1SSimon J. Gerraty	o stc.c: replace brk_string with simpler Str_Words
18252c3632d1SSimon J. Gerraty	o suff.c: add debug macros
18262c3632d1SSimon J. Gerraty
18272c3632d1SSimon J. Gerraty2020-08-28  Simon J Gerraty  <sjg@beast.crufty.net>
18282c3632d1SSimon J. Gerraty
18292c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200828
18302c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18312c3632d1SSimon J. Gerraty	o lst.c: inline LstIsValid and LstNodeIsValid
18322c3632d1SSimon J. Gerraty	o remove trailing S from Lst function names after migration complete
18332c3632d1SSimon J. Gerraty	o more comment cleanup/clarification
18342c3632d1SSimon J. Gerraty	o suff.c: clean up suffix handling
18352c3632d1SSimon J. Gerraty	o more unit tests
18362c3632d1SSimon J. Gerraty
18372c3632d1SSimon J. Gerraty2020-08-26  Simon J Gerraty  <sjg@beast.crufty.net>
18382c3632d1SSimon J. Gerraty
18392c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200826
18402c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18412c3632d1SSimon J. Gerraty	o enum.c: distinguish between bitsets containing flags and
18422c3632d1SSimon J. Gerraty	ordinary enums
18432c3632d1SSimon J. Gerraty	o var.c: fix error message for ::!= modifier with shell error
18442c3632d1SSimon J. Gerraty	o fix bugs in -DCLEANUP mode
18452c3632d1SSimon J. Gerraty
18462c3632d1SSimon J. Gerraty2020-08-24  Simon J Gerraty  <sjg@beast.crufty.net>
18472c3632d1SSimon J. Gerraty
18482c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200824
18492c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18502c3632d1SSimon J. Gerraty	o in debug mode, print GNode details in symbols
18512c3632d1SSimon J. Gerraty
18522c3632d1SSimon J. Gerraty2020-08-23  Simon J Gerraty  <sjg@beast.crufty.net>
18532c3632d1SSimon J. Gerraty
18542c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200823
18552c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18562c3632d1SSimon J. Gerraty	o lst.c: more asserts,
18572c3632d1SSimon J. Gerraty	make args to Lst_Find match others.
18582c3632d1SSimon J. Gerraty	o var.c: pass flags to VarAdd
18592c3632d1SSimon J. Gerraty	o arch.c: use Buffer
18602c3632d1SSimon J. Gerraty	o str.c: brk_string return size_t for nwords
18612c3632d1SSimon J. Gerraty	o more unit tests
18622c3632d1SSimon J. Gerraty
18632c3632d1SSimon J. Gerraty2020-08-22  Simon J Gerraty  <sjg@beast.crufty.net>
18642c3632d1SSimon J. Gerraty
18652c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION):
18662c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18672c3632d1SSimon J. Gerraty	o var.c: support for read-only variables eg .SHELL
18682c3632d1SSimon J. Gerraty	being the shell used to run scripts.
18692c3632d1SSimon J. Gerraty	o lst.c: more simplification
18702c3632d1SSimon J. Gerraty	o more documentation and style cleanup
18712c3632d1SSimon J. Gerraty	o more unit tests
18722c3632d1SSimon J. Gerraty	o ensure unit-test/Makefile is run by TEST_MAKE
18732c3632d1SSimon J. Gerraty	o reduce duplication of header inclusion
18742c3632d1SSimon J. Gerraty
18752c3632d1SSimon J. Gerraty2020-08-21  Simon J Gerraty  <sjg@beast.crufty.net>
18762c3632d1SSimon J. Gerraty
18772c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200821
18782c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18792c3632d1SSimon J. Gerraty	o lst.c: revert invalid assertion - but document it
18802c3632d1SSimon J. Gerraty	o dir.c: split Dir_Init into two functions
18812c3632d1SSimon J. Gerraty
18822c3632d1SSimon J. Gerraty2020-08-20  Simon J Gerraty  <sjg@beast.crufty.net>
18832c3632d1SSimon J. Gerraty
18842c3632d1SSimon J. Gerraty	* lst.c: needs inttypes.h on Linux
18852c3632d1SSimon J. Gerraty
18862c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200820
18872c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18882c3632d1SSimon J. Gerraty	o make.1: clarify some passages
18892c3632d1SSimon J. Gerraty	o var.c: more cleanup, clarify comments
18902c3632d1SSimon J. Gerraty	o make_malloc.c: remove unreachable code
18912c3632d1SSimon J. Gerraty	o cond.c: make CondGetString easier to debug
18922c3632d1SSimon J. Gerraty	o simplify list usage
18932c3632d1SSimon J. Gerraty	o unit-tests: more
18942c3632d1SSimon J. Gerraty
18952c3632d1SSimon J. Gerraty2020-08-16  Simon J Gerraty  <sjg@beast.crufty.net>
18962c3632d1SSimon J. Gerraty
18972c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200816
18982c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
18992c3632d1SSimon J. Gerraty	o refactor unit-tests to be more fine grained
19002c3632d1SSimon J. Gerraty	  not all tests moved yet
19012c3632d1SSimon J. Gerraty
19022c3632d1SSimon J. Gerraty2020-08-14  Simon J Gerraty  <sjg@beast.crufty.net>
19032c3632d1SSimon J. Gerraty
19042c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200814
19052c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19062c3632d1SSimon J. Gerraty	o more str_concat variants
19072c3632d1SSimon J. Gerraty	o more enums for flags
19082c3632d1SSimon J. Gerraty	o var.c: cleanup for higher warnings level
19092c3632d1SSimon J. Gerraty
19102c3632d1SSimon J. Gerraty2020-08-10  Simon J Gerraty  <sjg@beast.crufty.net>
19112c3632d1SSimon J. Gerraty
19122c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200810
19132c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19142c3632d1SSimon J. Gerraty	o more unit tests
19152c3632d1SSimon J. Gerraty	o general comment and style cleanup
19162c3632d1SSimon J. Gerraty
19172c3632d1SSimon J. Gerraty2020-08-08  Simon J Gerraty  <sjg@beast.crufty.net>
19182c3632d1SSimon J. Gerraty
19192c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200808
19202c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19212c3632d1SSimon J. Gerraty	o enum.[ch]: streamline, enums for use in flags and debug output
19222c3632d1SSimon J. Gerraty	o cond.c: cleanup
19232c3632d1SSimon J. Gerraty	o var.c: reduce duplicate code for modifiers
19242c3632d1SSimon J. Gerraty	debug logging for Var_Parse
19252c3632d1SSimon J. Gerraty	more detailed debug output
19262c3632d1SSimon J. Gerraty	o more unit tests
19272c3632d1SSimon J. Gerraty
19282c3632d1SSimon J. Gerraty2020-08-06  Simon J Gerraty  <sjg@beast.crufty.net>
19292c3632d1SSimon J. Gerraty
19302c3632d1SSimon J. Gerraty	* unit-tests/Makefile: -r for recursive and include Makefile.inc
19312c3632d1SSimon J. Gerraty	so I can run tests in meta mode
19322c3632d1SSimon J. Gerraty	supress extra noise if in meta mode
19332c3632d1SSimon J. Gerraty
19342c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200806
19352c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19362c3632d1SSimon J. Gerraty	o parse.c: remove VARE_WANTRES for LINT
19372c3632d1SSimon J. Gerraty	we just want to check parsing (for now).
19382c3632d1SSimon J. Gerraty
19392c3632d1SSimon J. Gerraty2020-08-05  Simon J Gerraty  <sjg@beast.crufty.net>
19402c3632d1SSimon J. Gerraty
19412c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200805
19422c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19432c3632d1SSimon J. Gerraty	o make.1: Rework the description of dependence operators
19442c3632d1SSimon J. Gerraty
19452c3632d1SSimon J. Gerraty2020-08-03  Simon J Gerraty  <sjg@beast.crufty.net>
19462c3632d1SSimon J. Gerraty
19472c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200803
19482c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19492c3632d1SSimon J. Gerraty	o revert some C99 usage, for max portability
19502c3632d1SSimon J. Gerraty	o unit-tests/lint
19512c3632d1SSimon J. Gerraty
19522c3632d1SSimon J. Gerraty2020-08-02  Simon J Gerraty  <sjg@beast.crufty.net>
19532c3632d1SSimon J. Gerraty
19542c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200802
19552c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19562c3632d1SSimon J. Gerraty	o more unit tests
19572c3632d1SSimon J. Gerraty
19582c3632d1SSimon J. Gerraty2020-08-01  Simon J Gerraty  <sjg@beast.crufty.net>
19592c3632d1SSimon J. Gerraty
19602c3632d1SSimon J. Gerraty	* Remove NetBSD specific plumbing from unit-tests/Makefile
19612c3632d1SSimon J. Gerraty
19622c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200801
19632c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19642c3632d1SSimon J. Gerraty	o make Var_Value return const
19652c3632d1SSimon J. Gerraty	o size_t for buf sizes
19662c3632d1SSimon J. Gerraty	o optimize some buffer operations - avoid strlen
19672c3632d1SSimon J. Gerraty
19682c3632d1SSimon J. Gerraty2020-07-31  Simon J Gerraty  <sjg@beast.crufty.net>
19692c3632d1SSimon J. Gerraty
19702c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200731
19712c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19722c3632d1SSimon J. Gerraty	o var.c: fix undefinded behavior for incomplete :t modifier
19732c3632d1SSimon J. Gerraty	  fixes unit-test/moderrs on Ubuntu
19742c3632d1SSimon J. Gerraty	o parse.c: When parsing variable assignments other than :=
19752c3632d1SSimon J. Gerraty	  if DEBUG(LINT) test substition of value, so we get a file and
19762c3632d1SSimon J. Gerraty	  line number in the resulting error.
19772c3632d1SSimon J. Gerraty	o dir.c: fix parsing of nested braces in dependency lines
19782c3632d1SSimon J. Gerraty	  add unit-tests
19792c3632d1SSimon J. Gerraty
19802c3632d1SSimon J. Gerraty2020-07-30  Simon J Gerraty  <sjg@beast.crufty.net>
19812c3632d1SSimon J. Gerraty
19822c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200730
19832c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19842c3632d1SSimon J. Gerraty	o var.c: minor cleanup
19852c3632d1SSimon J. Gerraty	o unit-tests: more tests to improve code coverage
19862c3632d1SSimon J. Gerraty
19872c3632d1SSimon J. Gerraty2020-07-28  Simon J Gerraty  <sjg@beast.crufty.net>
19882c3632d1SSimon J. Gerraty
19892c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200728
19902c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19912c3632d1SSimon J. Gerraty	o var.c: more optimizations
19922c3632d1SSimon J. Gerraty
19932c3632d1SSimon J. Gerraty2020-07-26  Simon J Gerraty  <sjg@beast.crufty.net>
19942c3632d1SSimon J. Gerraty
19952c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200726
19962c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
19972c3632d1SSimon J. Gerraty	o collapse lsd.lib into lst.c - reduce code size and allow inlining
19982c3632d1SSimon J. Gerraty	o lots of function comment updates
19992c3632d1SSimon J. Gerraty	o var.c: more optimizations
20002c3632d1SSimon J. Gerraty	o make return of Var_Parse const
20012c3632d1SSimon J. Gerraty
20022c3632d1SSimon J. Gerraty2020-07-20  Simon J Gerraty  <sjg@beast.crufty.net>
20032c3632d1SSimon J. Gerraty
20042c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200720
20052c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
20062c3632d1SSimon J. Gerraty	o DEBUG_HASH report stats at end and tone down the noise
20072c3632d1SSimon J. Gerraty	o var.c: each flag type gets its own prefix.
20082c3632d1SSimon J. Gerraty	move SysV string matching to var.c
20092c3632d1SSimon J. Gerraty	make ampersand in ${VAR:from=to&} an ordinary character
20102c3632d1SSimon J. Gerraty	cleanup and simplify implementation of modifiers
20112c3632d1SSimon J. Gerraty	o make.1: move documentation for assignment modifiers
20122c3632d1SSimon J. Gerraty
20132c3632d1SSimon J. Gerraty2020-07-18  Simon J Gerraty  <sjg@beast.crufty.net>
20142c3632d1SSimon J. Gerraty
20152c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200718
20162c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
20172c3632d1SSimon J. Gerraty	o DEBUG_HASH to see how well the hash tables are working
20182c3632d1SSimon J. Gerraty
20192c3632d1SSimon J. Gerraty2020-07-11  Simon J Gerraty  <sjg@beast.crufty.net>
20202c3632d1SSimon J. Gerraty
20212c3632d1SSimon J. Gerraty	* bsd.after-import.mk: make sure we update unit-tests/Makefile
20222c3632d1SSimon J. Gerraty
20233841c287SSimon J. Gerraty2020-07-10  Simon J Gerraty  <sjg@beast.crufty.net>
20243841c287SSimon J. Gerraty
20253841c287SSimon J. Gerraty	* configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC
20263841c287SSimon J. Gerraty
20273841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200710
20283841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
20293841c287SSimon J. Gerraty	o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall
20303841c287SSimon J. Gerraty	o meta.c: target flagged .META is out-of-date if meta file missing
20313841c287SSimon J. Gerraty
20323841c287SSimon J. Gerraty2020-07-09  Simon J Gerraty  <sjg@beast.crufty.net>
20333841c287SSimon J. Gerraty
20343841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200709
20353841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
20363841c287SSimon J. Gerraty	o cond.c: fix for compare_expression when doEval=0
20373841c287SSimon J. Gerraty	o unit-tests/Makefile: rework
20383841c287SSimon J. Gerraty	o filemon/filemon_dev.c: ensure filemon fd is closed on exec.
20393841c287SSimon J. Gerraty
20403841c287SSimon J. Gerraty2020-07-04  Simon J Gerraty  <sjg@beast.crufty.net>
20413841c287SSimon J. Gerraty
20423841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200704
20433841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
20443841c287SSimon J. Gerraty	(most of this by rillig@)
20453841c287SSimon J. Gerraty	o lots of style and white-space cleanup
20463841c287SSimon J. Gerraty	o lots more unit tests for variable modifiers
20473841c287SSimon J. Gerraty	o simplified description of some functions
20483841c287SSimon J. Gerraty	o str.c: refactor Str_Match
20493841c287SSimon J. Gerraty	o var.c: debugging output for :@
20503841c287SSimon J. Gerraty	  constify VarModify parameter
20513841c287SSimon J. Gerraty	  fix :hash modifier on 16-bit platforms
20523841c287SSimon J. Gerraty	  remove unnecessary forward declarations
20533841c287SSimon J. Gerraty	  refactor ApplyModifier_SysV to have less indentation
20543841c287SSimon J. Gerraty	  simplify code for :E and :R
20553841c287SSimon J. Gerraty	  clean up code for :H and :T
20563841c287SSimon J. Gerraty	  refactor ApplyModifiers
20573841c287SSimon J. Gerraty
20583841c287SSimon J. Gerraty	* var.c: we need stdint.h on some platforms to get uint32_t
20593841c287SSimon J. Gerraty	* unit-test/Makefile: we need to supress the specific error
20603841c287SSimon J. Gerraty	for RE substitution error in modmisc, since it varies accross
20613841c287SSimon J. Gerraty	different OS.
20623841c287SSimon J. Gerraty
20633841c287SSimon J. Gerraty2020-07-02  Simon J Gerraty  <sjg@beast.crufty.net>
20643841c287SSimon J. Gerraty
20653841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200702
20663841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
20673841c287SSimon J. Gerraty	o var.c: more improvements to avoiding unnecessary evaluation
20683841c287SSimon J. Gerraty	use enums for flags
20693841c287SSimon J. Gerraty	o remove flags arg to Var_Set which outside of var.c is always 0
20703841c287SSimon J. Gerraty
20713841c287SSimon J. Gerraty2020-07-01  Simon J Gerraty  <sjg@beast.crufty.net>
20723841c287SSimon J. Gerraty
20733841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200701
20743841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
20753841c287SSimon J. Gerraty	o var.c: with change to cond.c; ensure that nested variables
20763841c287SSimon J. Gerraty	within a variable name are expanded.
20773841c287SSimon J. Gerraty	o unit-tests/varmisc.mk: test for nested varname
20783841c287SSimon J. Gerraty
20793841c287SSimon J. Gerraty2020-06-29  Simon J Gerraty  <sjg@beast.crufty.net>
20803841c287SSimon J. Gerraty
20813841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200629
20823841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
20833841c287SSimon J. Gerraty	o cond.c: do not eval unnecessary terms of conditionals.
20843841c287SSimon J. Gerraty
20853841c287SSimon J. Gerraty2020-06-25  Simon J Gerraty  <sjg@beast.crufty.net>
20863841c287SSimon J. Gerraty
20873841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200625
20883841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
20893841c287SSimon J. Gerraty	o meta.c: report error if lseek in filemon_read fails
20903841c287SSimon J. Gerraty
20913841c287SSimon J. Gerraty2020-06-22  Simon J Gerraty  <sjg@beast.crufty.net>
20923841c287SSimon J. Gerraty
20933841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200622
20943841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
20953841c287SSimon J. Gerraty	o dieQuietly: ignore OP_SUBMAKE as too aggressive
20963841c287SSimon J. Gerraty
20973841c287SSimon J. Gerraty2020-06-19  Simon J Gerraty  <sjg@beast.crufty.net>
20983841c287SSimon J. Gerraty
20993841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200619
21003841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
21013841c287SSimon J. Gerraty	o str.c: performance improvement for Str_Match for multiple '*'
21023841c287SSimon J. Gerraty	o dieQuietly: supress the failure output from make
21033841c287SSimon J. Gerraty	when failing node is a sub-make or a sibling failed.
21043841c287SSimon J. Gerraty	This cuts down greatly on unhelpful noise at the end of
21053841c287SSimon J. Gerraty	build log.  Disabled by -dj or .MAKE.DIE_QUIETLY=no
21063841c287SSimon J. Gerraty
21073841c287SSimon J. Gerraty2020-06-10  Simon J Gerraty  <sjg@beast.crufty.net>
21083841c287SSimon J. Gerraty
21093841c287SSimon J. Gerraty	* FILES: add LICENSE to appease some packagers.
21103841c287SSimon J. Gerraty	This is an attempt to fairly represent the license on almost
21113841c287SSimon J. Gerraty	200 files, which are almost all BSD-3-Clause
21123841c287SSimon J. Gerraty	The few exceptions being more liberal.
21133841c287SSimon J. Gerraty
21143841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200610
21153841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
21163841c287SSimon J. Gerraty	o unit test for :Or
21173841c287SSimon J. Gerraty
2118ef0b2538SSimon J. Gerraty2020-06-06  Simon J Gerraty  <sjg@beast.crufty.net>
2119ef0b2538SSimon J. Gerraty
2120ef0b2538SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200606
2121ef0b2538SSimon J. Gerraty	Merge with NetBSD make, pick up
2122ef0b2538SSimon J. Gerraty	o make.1: cleanup
2123ef0b2538SSimon J. Gerraty
2124ef0b2538SSimon J. Gerraty	* Makefile: fix depends for main.o which broke MAKE_VERSION
2125ef0b2538SSimon J. Gerraty
2126ef0b2538SSimon J. Gerraty2020-06-05  Simon J Gerraty  <sjg@beast.crufty.net>
2127ef0b2538SSimon J. Gerraty
2128ef0b2538SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200605
2129ef0b2538SSimon J. Gerraty	Merge with NetBSD make, pick up
2130ef0b2538SSimon J. Gerraty	o dir.c: cached_stats - don't confuse stat and lstat results.
2131ef0b2538SSimon J. Gerraty	o var.c: add :Or for reverse sort.
2132ef0b2538SSimon J. Gerraty
2133ef0b2538SSimon J. Gerraty2020-05-24  Simon J Gerraty  <sjg@beast.crufty.net>
2134ef0b2538SSimon J. Gerraty
2135ef0b2538SSimon J. Gerraty	* configure.in: add AC_PROG_CC_C99 for mipspro compiler
2136ef0b2538SSimon J. Gerraty	also if --with-filemon= specifies path to filemon.h
2137ef0b2538SSimon J. Gerraty	set use_filemon=dev
2138ef0b2538SSimon J. Gerraty	* dirname.c: remove include of namespace.h
2139ef0b2538SSimon J. Gerraty
214049caa483SSimon J. Gerraty2020-05-17  Simon J Gerraty  <sjg@beast.crufty.net>
214149caa483SSimon J. Gerraty
214249caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200517
214349caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
214449caa483SSimon J. Gerraty	o modified dollar tests to avoid shell dependencies
214549caa483SSimon J. Gerraty	o new tests for .INCLUDEFROM
214649caa483SSimon J. Gerraty
214749caa483SSimon J. Gerraty2020-05-16  Simon J Gerraty  <sjg@beast.crufty.net>
214849caa483SSimon J. Gerraty
214949caa483SSimon J. Gerraty	* unit-tests/dollar.mk: tweak  '1 dollar literal' test
215049caa483SSimon J. Gerraty	to not depend so much on shell behavior
215149caa483SSimon J. Gerraty
215249caa483SSimon J. Gerraty2020-05-10  Simon J Gerraty  <sjg@beast.crufty.net>
215349caa483SSimon J. Gerraty
215449caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200510
215549caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
215649caa483SSimon J. Gerraty	o unit test for dollar handling
215749caa483SSimon J. Gerraty
215849caa483SSimon J. Gerraty2020-05-06  Simon J Gerraty  <sjg@beast.crufty.net>
215949caa483SSimon J. Gerraty
216049caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200506
216149caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
216249caa483SSimon J. Gerraty	o str.c: empty string does not match % pattern
216349caa483SSimon J. Gerraty	  plus unit-test changes
216449caa483SSimon J. Gerraty
216549caa483SSimon J. Gerraty2020-05-04  Simon J Gerraty  <sjg@beast.crufty.net>
216649caa483SSimon J. Gerraty
216749caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200504
216849caa483SSimon J. Gerraty	May the 4th be with you
216949caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
217049caa483SSimon J. Gerraty	o var.c: import handling of old sysV style modifier using '%'
217149caa483SSimon J. Gerraty	o str.c: refactor brk_string
217249caa483SSimon J. Gerraty	o unit-tests: add test case for lazy conditions
217349caa483SSimon J. Gerraty
217449caa483SSimon J. Gerraty2020-04-18  Simon J Gerraty  <sjg@beast.crufty.net>
217549caa483SSimon J. Gerraty
217649caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200418
217749caa483SSimon J. Gerraty
217849caa483SSimon J. Gerraty	* configure.in: use_makefile=no for cygwin et al.
217949caa483SSimon J. Gerraty	case insensitive filesystems just don't work if both
218049caa483SSimon J. Gerraty	makefile and Makefile exist.
218149caa483SSimon J. Gerraty	NOTE: bmake does not support cygwin and likely never will,
218249caa483SSimon J. Gerraty	but if brave souls want to try it - help them out.
218349caa483SSimon J. Gerraty
218449caa483SSimon J. Gerraty2020-04-02  Simon J Gerraty  <sjg@beast.crufty.net>
218549caa483SSimon J. Gerraty
218649caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200402
218749caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
218849caa483SSimon J. Gerraty	o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD
218949caa483SSimon J. Gerraty	  a blank command is perfectly valid.
219049caa483SSimon J. Gerraty
219149caa483SSimon J. Gerraty2020-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
219249caa483SSimon J. Gerraty
219349caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200330
219449caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
219549caa483SSimon J. Gerraty	o make.h: extern debug_file
219649caa483SSimon J. Gerraty
219749caa483SSimon J. Gerraty2020-03-18  Simon J Gerraty  <sjg@beast.crufty.net>
219849caa483SSimon J. Gerraty
219949caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200318
220049caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
220149caa483SSimon J. Gerraty	o meta.c: meta_oodate, check for corrupted meta file
220249caa483SSimon J. Gerraty	  earlier and more often.
220349caa483SSimon J. Gerraty
220449caa483SSimon J. Gerraty2020-02-20  Simon J Gerraty  <sjg@beast.crufty.net>
220549caa483SSimon J. Gerraty
220649caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200220
220749caa483SSimon J. Gerraty
220849caa483SSimon J. Gerraty2020-02-19  Simon J Gerraty  <sjg@beast.crufty.net>
220949caa483SSimon J. Gerraty
221049caa483SSimon J. Gerraty	* boot-strap: unset MAKEFLAGS
221149caa483SSimon J. Gerraty
221249caa483SSimon J. Gerraty2020-02-12  Simon J Gerraty  <sjg@beast.crufty.net>
221349caa483SSimon J. Gerraty
221449caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200212
221549caa483SSimon J. Gerraty	* meta.c: meta_compat_parent check for USE_FILEMON
221649caa483SSimon J. Gerraty	  patch from Soeren Tempel
221749caa483SSimon J. Gerraty
221849caa483SSimon J. Gerraty2020-02-05  Simon J Gerraty  <sjg@beast.crufty.net>
221949caa483SSimon J. Gerraty
222049caa483SSimon J. Gerraty	* VERSION: 20200205
222149caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
222249caa483SSimon J. Gerraty	o meta.c: fix compat mode, need to call meta_job_output()
222349caa483SSimon J. Gerraty	o job.c: extra fds for meta mode not needed if using filemon_dev
222449caa483SSimon J. Gerraty
222549caa483SSimon J. Gerraty2020-01-22  Simon J Gerraty  <sjg@beast.crufty.net>
222649caa483SSimon J. Gerraty
222749caa483SSimon J. Gerraty	* VERSION: 20200122
222849caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
222949caa483SSimon J. Gerraty	o meta.c: avoid passing NULL to filemon_*() when meta_needed()
223049caa483SSimon J. Gerraty	  returns FALSE.
223149caa483SSimon J. Gerraty
223249caa483SSimon J. Gerraty2020-01-21  Simon J Gerraty  <sjg@beast.crufty.net>
223349caa483SSimon J. Gerraty
223449caa483SSimon J. Gerraty	* VERSION: 20200121
223549caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
223649caa483SSimon J. Gerraty	o filemon/filemon_{dev,ktrace}.c: allow selection of
223749caa483SSimon J. Gerraty	  filemon implementation.  filemon_dev.c uses the kernel module
223849caa483SSimon J. Gerraty	  while filemon_ktrace.c leverages the fktrace api available in
223949caa483SSimon J. Gerraty	  NetBSD.  filemon_ktrace.c can hopefully form the basis for
224049caa483SSimon J. Gerraty	  adding support for other tracing mechanisms such as strace on
224149caa483SSimon J. Gerraty	  Linux.
224249caa483SSimon J. Gerraty	o meta.c: when target is out-of-date per normal make rules
224349caa483SSimon J. Gerraty	  record value of .OODATE in meta file.
224449caa483SSimon J. Gerraty
224549caa483SSimon J. Gerraty2019-09-26  Simon J Gerraty  <sjg@beast.crufty.net>
224649caa483SSimon J. Gerraty
224749caa483SSimon J. Gerraty	* VERSION: 20190926
224849caa483SSimon J. Gerraty	  Merge with NetBSD make, pick up
224949caa483SSimon J. Gerraty	  o parse.c: don't pass NULL to realpath(3)
225049caa483SSimon J. Gerraty	    some versions cannot handle it.
225149caa483SSimon J. Gerraty
225249caa483SSimon J. Gerraty2019-04-09  Simon J Gerraty  <sjg@beast.crufty.net>
225349caa483SSimon J. Gerraty
225449caa483SSimon J. Gerraty	* VERSION: 20190409
225549caa483SSimon J. Gerraty	  Merge with NetBSD make, pick up
225649caa483SSimon J. Gerraty	  o parse.c: ParseDoDependency: free paths rather than assert
225749caa483SSimon J. Gerraty
225849caa483SSimon J. Gerraty2018-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
225949caa483SSimon J. Gerraty
226049caa483SSimon J. Gerraty	* VERSION: 20181222
226149caa483SSimon J. Gerraty
226249caa483SSimon J. Gerraty	* configure.in: add --without-makefile to avoid generating
226349caa483SSimon J. Gerraty	  makefile and make-bootstrap.sh
226449caa483SSimon J. Gerraty
226549caa483SSimon J. Gerraty	* include Makefile.inc if it exists
226649caa483SSimon J. Gerraty
226749caa483SSimon J. Gerraty	* Use Makefile and Makefile.config.in in unit-tests
226849caa483SSimon J. Gerraty	  so we can use just: make obj && make && make test
226949caa483SSimon J. Gerraty	  when bmake is already available.
227049caa483SSimon J. Gerraty	  We add --without-makefile to CONFIGURE_ARGS in this case.
227149caa483SSimon J. Gerraty
227249caa483SSimon J. Gerraty	* tweak bsd.after-import.mk (captures Makefile.config etc
227349caa483SSimon J. Gerraty	  after import to FreeBSD for example) to cope with all the above.
227449caa483SSimon J. Gerraty
2275dfd669abSSimon J. Gerraty2018-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
2276dfd669abSSimon J. Gerraty
2277dfd669abSSimon J. Gerraty	* VERSION: 20181221
2278dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
2279dfd669abSSimon J. Gerraty	  o parse.c: ParseVErrorInternal use .PARSEDIR
2280dfd669abSSimon J. Gerraty	    and apply if relative, and then use .PARSEFILE
2281dfd669abSSimon J. Gerraty	    for consistent result.
2282dfd669abSSimon J. Gerraty
2283dfd669abSSimon J. Gerraty2018-12-20  Simon J Gerraty  <sjg@beast.crufty.net>
2284dfd669abSSimon J. Gerraty
2285dfd669abSSimon J. Gerraty	* VERSION: 20181220
2286dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
2287dfd669abSSimon J. Gerraty	  o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR
2288dfd669abSSimon J. Gerraty	    is relative
2289dfd669abSSimon J. Gerraty	  o var.c: avoid SEGFAULT in .unexport-env
2290dfd669abSSimon J. Gerraty	    when MAKELEVEL is not set
2291dfd669abSSimon J. Gerraty
2292dfd669abSSimon J. Gerraty2018-12-16  Simon J Gerraty  <sjg@beast.crufty.net>
2293dfd669abSSimon J. Gerraty
2294dfd669abSSimon J. Gerraty	* VERSION: 20181216
2295dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
2296dfd669abSSimon J. Gerraty	  o fix for unit-tests/varquote.mk on Debian
2297dfd669abSSimon J. Gerraty
22982eae894cSSimon J. Gerraty2018-09-21  Simon J. Gerraty  <sjg@bad.crufty.net>
22992eae894cSSimon J. Gerraty
23002eae894cSSimon J. Gerraty	* VERSION: 20180919
23012eae894cSSimon J. Gerraty	  Merge with NetBSD make, pick up
23022eae894cSSimon J. Gerraty	  o var.c: add :q
23032eae894cSSimon J. Gerraty	  o dir.c: cleanup caching of stats
23042eae894cSSimon J. Gerraty
23052eae894cSSimon J. Gerraty2018-09-21  Simon J Gerraty  <sjg@beast.crufty.net>
23062eae894cSSimon J. Gerraty
23072eae894cSSimon J. Gerraty	* Makefile.config.in: use += where it makes sense.
23082eae894cSSimon J. Gerraty
2309494f7191SSimon J. Gerraty2018-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
2310494f7191SSimon J. Gerraty
2311494f7191SSimon J. Gerraty	* VERSION: 20180512
2312494f7191SSimon J. Gerraty	  Merge with NetBSD make, pick up
2313494f7191SSimon J. Gerraty	  o job.c: skip polling job token pipe
2314494f7191SSimon J. Gerraty
2315494f7191SSimon J. Gerraty2018-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
2316494f7191SSimon J. Gerraty
2317494f7191SSimon J. Gerraty	* VERSION: 20180405
2318494f7191SSimon J. Gerraty	  Merge with NetBSD make, pick up
2319494f7191SSimon J. Gerraty	  o parse.c: be more cautious about detecting depenency line
2320494f7191SSimon J. Gerraty	    rather than sysV style include.
2321494f7191SSimon J. Gerraty
232250d2e745SSimon J. Gerraty2018-02-22  Simon J. Gerraty  <sjg@bad.crufty.net>
232350d2e745SSimon J. Gerraty
232450d2e745SSimon J. Gerraty	* VERSION: 20180222
232550d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
232650d2e745SSimon J. Gerraty	  o parse.c: avoid calling sysconf for every call to loadfile
232750d2e745SSimon J. Gerraty
232850d2e745SSimon J. Gerraty2018-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
232950d2e745SSimon J. Gerraty
233050d2e745SSimon J. Gerraty	* VERSION: 20180218
233150d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
233250d2e745SSimon J. Gerraty	  o var.c: Var_Set handle NULL value anytime.
233350d2e745SSimon J. Gerraty
233450d2e745SSimon J. Gerraty2018-02-12  Simon J. Gerraty  <sjg@bad.crufty.net>
233550d2e745SSimon J. Gerraty
233650d2e745SSimon J. Gerraty	* VERSION: 20180212
233750d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
233850d2e745SSimon J. Gerraty	  o parse.c: do not treat .info as warning with -W
233950d2e745SSimon J. Gerraty
234050d2e745SSimon J. Gerraty2017-12-07  Simon J. Gerraty  <sjg@bad.crufty.net>
234150d2e745SSimon J. Gerraty
234250d2e745SSimon J. Gerraty	* VERSION: 20171207
234350d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
234450d2e745SSimon J. Gerraty	  o var.c: Var_Append use Var_Set if var not previously set
234550d2e745SSimon J. Gerraty	    so that VAR_CMD is handled correctly.
234650d2e745SSimon J. Gerraty	    Add a suitable unit-test.
234750d2e745SSimon J. Gerraty
234850d2e745SSimon J. Gerraty2017-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
234950d2e745SSimon J. Gerraty
235050d2e745SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20171126
235150d2e745SSimon J. Gerraty
235250d2e745SSimon J. Gerraty	* aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__
235350d2e745SSimon J. Gerraty	  since AC_TRY_COMPILE puts input inside main()
235450d2e745SSimon J. Gerraty	  which upsets modern compilers.
235550d2e745SSimon J. Gerraty
235650d2e745SSimon J. Gerraty2017-11-18  Simon J. Gerraty  <sjg@bad.crufty.net>
235750d2e745SSimon J. Gerraty
235850d2e745SSimon J. Gerraty	* VERSION: 20171118
235950d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
236050d2e745SSimon J. Gerraty	  o var.c: do not append to variable set on command line
236150d2e745SSimon J. Gerraty	    add unit-test to catch this.
236250d2e745SSimon J. Gerraty
2363e22fef7dSSimon J. Gerraty2017-10-28  Simon J. Gerraty  <sjg@bad.crufty.net>
2364e22fef7dSSimon J. Gerraty
2365e22fef7dSSimon J. Gerraty	* VERSION: 20171028
2366e22fef7dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2367e22fef7dSSimon J. Gerraty	  o main.c: ignore empty MAKEOBJDIR
2368e22fef7dSSimon J. Gerraty
2369e22fef7dSSimon J. Gerraty	* Makefile.config.in:
2370e22fef7dSSimon J. Gerraty	  make @prefix@ @machine*@ and @default_sys_path@ defaults.
2371e22fef7dSSimon J. Gerraty
2372e22fef7dSSimon J. Gerraty2017-10-05  Simon J. Gerraty  <sjg@bad.crufty.net>
2373e22fef7dSSimon J. Gerraty
2374e22fef7dSSimon J. Gerraty	* VERSION: 20171005
2375e22fef7dSSimon J. Gerraty
2376e22fef7dSSimon J. Gerraty	* unit-tests/dotwait.mk: redirect stderr through pipe for more
2377e22fef7dSSimon J. Gerraty	  consistent result on some platforms.
2378e22fef7dSSimon J. Gerraty
2379e22fef7dSSimon J. Gerraty2017-08-13  Simon J. Gerraty  <sjg@bad.crufty.net>
2380e22fef7dSSimon J. Gerraty
2381e22fef7dSSimon J. Gerraty	* machine.sh: entry for AIX
2382e22fef7dSSimon J. Gerraty
2383e22fef7dSSimon J. Gerraty2017-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
2384e22fef7dSSimon J. Gerraty
2385e22fef7dSSimon J. Gerraty	* VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION
2386e22fef7dSSimon J. Gerraty	  to a file that can be included by configure as well as make.
2387e22fef7dSSimon J. Gerraty	  This allows configure to set set _MAKE_VERSION in make-bootstrap.sh
2388e22fef7dSSimon J. Gerraty
2389e22fef7dSSimon J. Gerraty2017-08-10  Simon J. Gerraty  <sjg@bad.crufty.net>
2390e22fef7dSSimon J. Gerraty
2391e22fef7dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170810
2392e22fef7dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2393e22fef7dSSimon J. Gerraty	  o meta.c: if target is in subdir we only need subdir name in
2394e22fef7dSSimon J. Gerraty	    meta_name.
2395e22fef7dSSimon J. Gerraty
2396c7019bf7SSimon J. Gerraty2017-07-20  Simon J. Gerraty  <sjg@bad.crufty.net>
2397c7019bf7SSimon J. Gerraty
2398c7019bf7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170720
2399c7019bf7SSimon J. Gerraty	  Merge with NetBSD make, pick up
2400c7019bf7SSimon J. Gerraty	  o compat.c: pass SIGINT etc onto child and wait for it to exit
2401c7019bf7SSimon J. Gerraty	    before we self-terminate.
2402c7019bf7SSimon J. Gerraty
24038695518cSSimon J. Gerraty2017-07-11  Simon J. Gerraty  <sjg@bad.crufty.net>
24048695518cSSimon J. Gerraty
24058695518cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170711
24068695518cSSimon J. Gerraty	  forgot to update after merge on 20170708 ;-)
24078695518cSSimon J. Gerraty	  o main.c: refactor to reduce size of main function.
24088695518cSSimon J. Gerraty	    add -v option to always fully expand values.
24098695518cSSimon J. Gerraty	  o meta.c: ensure command output in meta file has ending newline
24108695518cSSimon J. Gerraty	    even when filemon not being used.
24118695518cSSimon J. Gerraty	    When matching ${.MAKE.META.IGNORE_PATTERNS} do not use
24128695518cSSimon J. Gerraty	    pathname via ':L' since any ':' in pathname breaks that.
24138695518cSSimon J. Gerraty	    Instead set a '${.p.}' to pathname in the target context and
24148695518cSSimon J. Gerraty	    use that.
24158695518cSSimon J. Gerraty
2416cac6fd11SSimon J. Gerraty2017-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
2417cac6fd11SSimon J. Gerraty
2418cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170510
2419cac6fd11SSimon J. Gerraty	  Merge with NetBSD make, pick up
2420cac6fd11SSimon J. Gerraty	  o main.c: Main_SetObjdir: ensure buf2 is in scope
2421cac6fd11SSimon J. Gerraty
2422cac6fd11SSimon J. Gerraty2017-05-08  Simon J. Gerraty  <sjg@bad.crufty.net>
2423cac6fd11SSimon J. Gerraty
2424cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170505
2425cac6fd11SSimon J. Gerraty	  see mk/ChangeLog
2426cac6fd11SSimon J. Gerraty
2427cac6fd11SSimon J. Gerraty2017-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
2428cac6fd11SSimon J. Gerraty
2429cac6fd11SSimon J. Gerraty	* parse.c: not everyone has stdint.h
2430cac6fd11SSimon J. Gerraty
2431cac6fd11SSimon J. Gerraty2017-05-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2432cac6fd11SSimon J. Gerraty
2433cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170501
2434cac6fd11SSimon J. Gerraty	  see mk/ChangeLog
2435cac6fd11SSimon J. Gerraty
2436cac6fd11SSimon J. Gerraty2017-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
2437cac6fd11SSimon J. Gerraty
2438cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170421
2439cac6fd11SSimon J. Gerraty	  Merge with NetBSD make, pick up
2440cac6fd11SSimon J. Gerraty	  o str.c: Str_Match: fix closure tests for [^] and add unit-test.
2441cac6fd11SSimon J. Gerraty
2442e1cee40dSSimon J. Gerraty2017-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
2443e1cee40dSSimon J. Gerraty
2444e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170420
2445e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2446e1cee40dSSimon J. Gerraty	  o main.c: only use -C arg "as is" if it contains no
2447e1cee40dSSimon J. Gerraty	    relative component.
2448e1cee40dSSimon J. Gerraty
2449e1cee40dSSimon J. Gerraty2017-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
2450e1cee40dSSimon J. Gerraty
2451e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170418
2452e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2453e1cee40dSSimon J. Gerraty	  o main.c: fix Main_SetObjdir() for relative paths (eg obj).
2454e1cee40dSSimon J. Gerraty
2455e1cee40dSSimon J. Gerraty2017-04-17  Simon J. Gerraty  <sjg@bad.crufty.net>
2456e1cee40dSSimon J. Gerraty
2457e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170417
2458e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
2459e1cee40dSSimon J. Gerraty	  o fixes a number of coverity complaints
2460e1cee40dSSimon J. Gerraty	    - check return value of fseek, fcntl
2461e1cee40dSSimon J. Gerraty	    - plug memory leak in Dir_FindFile, Var_LoopExpand,
2462e1cee40dSSimon J. Gerraty	      JobPrintCommand, ParseTraditionalInclude
2463e1cee40dSSimon J. Gerraty	    - use bmake_malloc() where NULL is not tollerated
2464e1cee40dSSimon J. Gerraty	    - use MAKE_ATTR_UNUSED rather that kludges like
2465e1cee40dSSimon J. Gerraty	      return(unused ? 0 : 0)
2466e1cee40dSSimon J. Gerraty	    - use purge_cached_realpaths() rather than abuse cached_realpath()
2467e1cee40dSSimon J. Gerraty
2468b46b9039SSimon J. Gerraty2017-04-13  Simon J. Gerraty  <sjg@bad.crufty.net>
2469b46b9039SSimon J. Gerraty
2470b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170413
2471b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
2472b46b9039SSimon J. Gerraty	  o main.c: when setting .OBJDIR ignore '$' in paths.
2473b46b9039SSimon J. Gerraty
2474b46b9039SSimon J. Gerraty	* job.c: use MALLOC_OPTIONS to set malloc_options.
2475b46b9039SSimon J. Gerraty
2476b46b9039SSimon J. Gerraty2017-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2477b46b9039SSimon J. Gerraty
2478b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170411
2479b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
2480b46b9039SSimon J. Gerraty	  o str.c: Str_Match: allow [^a-z] to behave as expected.
2481b46b9039SSimon J. Gerraty
2482b46b9039SSimon J. Gerraty2017-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2483b46b9039SSimon J. Gerraty
2484b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170326
2485b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
2486b46b9039SSimon J. Gerraty	  o main.c: purge relative paths from realpath cache when .OBJDIR
2487b46b9039SSimon J. Gerraty	    is changed.
2488b46b9039SSimon J. Gerraty
2489b46b9039SSimon J. Gerraty2017-03-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2490b46b9039SSimon J. Gerraty
2491b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170311
2492b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
2493b46b9039SSimon J. Gerraty          o main.c: only use -C arg "as is" if it starts with '/'.
2494b46b9039SSimon J. Gerraty
24951ce939a7SSimon J. Gerraty2017-03-01  Simon J. Gerraty  <sjg@bad.crufty.net>
24961ce939a7SSimon J. Gerraty
24971ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170301
24981ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
2499b46b9039SSimon J. Gerraty	  o main.c: use -C arg "as is" rather than getcwd()
25001ce939a7SSimon J. Gerraty	    if they identify the same directory.
25011ce939a7SSimon J. Gerraty	  o parse.c: ensure loadfile buffer is \n terminated in non-mmap case
25021ce939a7SSimon J. Gerraty
25031ce939a7SSimon J. Gerraty2017-02-01  Simon J. Gerraty  <sjg@bad.crufty.net>
25041ce939a7SSimon J. Gerraty
25051ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170201
25061ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
25071ce939a7SSimon J. Gerraty	  o var.c: allow :_=var and avoid use of special context.
25081ce939a7SSimon J. Gerraty
25091ce939a7SSimon J. Gerraty2017-01-30  Simon J. Gerraty  <sjg@bad.crufty.net>
25101ce939a7SSimon J. Gerraty
25111ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170130
25121ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
25131ce939a7SSimon J. Gerraty	  o var.c: add :range and :_
25141ce939a7SSimon J. Gerraty	  o main.c: partially initialize Dir_* before MainParseArgs()
25151ce939a7SSimon J. Gerraty	    can be called.
25161ce939a7SSimon J. Gerraty	    If -V, skip Main_ExportMAKEFLAGS()
25171ce939a7SSimon J. Gerraty
25181ce939a7SSimon J. Gerraty2017-01-14  Simon J. Gerraty  <sjg@bad.crufty.net>
25191ce939a7SSimon J. Gerraty
25201ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170114
25211ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
25221ce939a7SSimon J. Gerraty	  o var.c: allow specifying the utc value used by :{gm,local}time
25231ce939a7SSimon J. Gerraty
252445447996SSimon J. Gerraty2016-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
252545447996SSimon J. Gerraty
252645447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161212
252745447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
252845447996SSimon J. Gerraty          o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too.
252945447996SSimon J. Gerraty
253045447996SSimon J. Gerraty2016-12-09  Simon J. Gerraty  <sjg@bad.crufty.net>
253145447996SSimon J. Gerraty
253245447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161209
253345447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
253445447996SSimon J. Gerraty	  o main.c: cleanup setting of .OBJDIR
253545447996SSimon J. Gerraty	  o parse.c: avoid coredump from (var)=val
253645447996SSimon J. Gerraty
253745447996SSimon J. Gerraty2016-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
253845447996SSimon J. Gerraty
253945447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161126
254045447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
254145447996SSimon J. Gerraty	  o make.c: Make_OODate: report src node name if path not set
254245447996SSimon J. Gerraty
254345447996SSimon J. Gerraty2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
254445447996SSimon J. Gerraty
254545447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160926
254645447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
254745447996SSimon J. Gerraty	  o support for .DELETE_ON_ERROR: (remove targets that fail)
254845447996SSimon J. Gerraty
254945447996SSimon J. Gerraty2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
255045447996SSimon J. Gerraty
255145447996SSimon J. Gerraty	* Makefile MAN: tweak .Dt to match ${PROG}
255245447996SSimon J. Gerraty
255395e3ed2cSSimon J. Gerraty2016-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
255495e3ed2cSSimon J. Gerraty
255595e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160818
255695e3ed2cSSimon J. Gerraty	  its a neater number; pick up whitespace fixes to man page.
255795e3ed2cSSimon J. Gerraty
255895e3ed2cSSimon J. Gerraty2016-08-17  Simon J. Gerraty  <sjg@bad.crufty.net>
255995e3ed2cSSimon J. Gerraty
256095e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160817
256195e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
256295e3ed2cSSimon J. Gerraty	  o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore()
256395e3ed2cSSimon J. Gerraty	    so we can call it before adding entries to missingFiles.
256495e3ed2cSSimon J. Gerraty	    Thus we do not track files we have been told to ignore.
256595e3ed2cSSimon J. Gerraty
256695e3ed2cSSimon J. Gerraty2016-08-15  Simon J. Gerraty  <sjg@bad.crufty.net>
256795e3ed2cSSimon J. Gerraty
256895e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160815
256995e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
257095e3ed2cSSimon J. Gerraty	  o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to
257195e3ed2cSSimon J. Gerraty	    pathnames, and skip if the expansion is empty.
257295e3ed2cSSimon J. Gerraty	    Useful for dirdeps.mk when checking DIRDEPS_CACHE.
257395e3ed2cSSimon J. Gerraty
257495e3ed2cSSimon J. Gerraty2016-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
257595e3ed2cSSimon J. Gerraty
257695e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160812
257795e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
257895e3ed2cSSimon J. Gerraty	  o meta.c: remove all missingFiles entries that match a deleted
257995e3ed2cSSimon J. Gerraty	    dir.
258095e3ed2cSSimon J. Gerraty	  o main.c: set .ERROR_CMD if possible.
258195e3ed2cSSimon J. Gerraty
258239ac7ef4SSimon J. Gerraty2016-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
258339ac7ef4SSimon J. Gerraty
258439ac7ef4SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160606
258539ac7ef4SSimon J. Gerraty	  Merge with NetBSD make, pick up
258639ac7ef4SSimon J. Gerraty	  o dir.c: extend mtimes cache to others via cached_stat()
258739ac7ef4SSimon J. Gerraty
2588b778b302SSimon J. Gerraty2016-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
2589b778b302SSimon J. Gerraty
2590b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160604
2591b778b302SSimon J. Gerraty	  Merge with NetBSD make, pick up
2592b778b302SSimon J. Gerraty	  o meta.c: missing filemon data is only relevant if we read a
2593b778b302SSimon J. Gerraty	    meta file.
2594b778b302SSimon J. Gerraty	    Also do not return oodate for a missing metafile if gn->path
2595b778b302SSimon J. Gerraty	    points to .CURDIR
2596b778b302SSimon J. Gerraty
2597b778b302SSimon J. Gerraty2016-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
2598b778b302SSimon J. Gerraty
2599b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160602
2600b778b302SSimon J. Gerraty	  Merge with NetBSD make, pick up
2601b778b302SSimon J. Gerraty	  o cached_realpath(): avoid hitting filesystem more than necessary.
2602b778b302SSimon J. Gerraty	  o meta.c: refactor need_meta decision, add knobs for
2603b778b302SSimon J. Gerraty	    missing meta file and filemon data wrt out-of-datedness.
2604b778b302SSimon J. Gerraty
2605b778b302SSimon J. Gerraty2016-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
2606b778b302SSimon J. Gerraty
2607b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160528
2608b778b302SSimon J. Gerraty
2609b778b302SSimon J. Gerraty	* boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION
2610b778b302SSimon J. Gerraty
2611e48f47ddSSimon J. Gerraty2016-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
2612e48f47ddSSimon J. Gerraty
2613e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160512
2614e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2615e48f47ddSSimon J. Gerraty	  o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS
2616e48f47ddSSimon J. Gerraty	    this is useful for gcov builds.
2617e48f47ddSSimon J. Gerraty	  o propagate errors from filemon(4).
2618e48f47ddSSimon J. Gerraty
2619e48f47ddSSimon J. Gerraty2016-05-09  Simon J. Gerraty  <sjg@bad.crufty.net>
2620e48f47ddSSimon J. Gerraty
2621e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160509
2622e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2623e48f47ddSSimon J. Gerraty	  o remove use of non-standard types u_int etc.
2624e48f47ddSSimon J. Gerraty	  o meta.c: apply realpath() before matching against metaIgnorePaths
2625e48f47ddSSimon J. Gerraty
2626e48f47ddSSimon J. Gerraty2016-04-04  Simon J. Gerraty  <sjg@bad.crufty.net>
2627e48f47ddSSimon J. Gerraty
2628e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160404
2629e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
2630e48f47ddSSimon J. Gerraty	  o allow makefile to set .MAKE.JOBS
2631e48f47ddSSimon J. Gerraty
2632e48f47ddSSimon J. Gerraty	* Makefile (PROG_NAME): use ${_MAKE_VERSION}
2633e48f47ddSSimon J. Gerraty
26343bebe729SSimon J. Gerraty2016-03-15  Simon J. Gerraty  <sjg@bad.crufty.net>
26353bebe729SSimon J. Gerraty
26363bebe729SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160315
26373bebe729SSimon J. Gerraty	  Merge with NetBSD make, pick up
26383bebe729SSimon J. Gerraty	  o fix handling of archive members
26393bebe729SSimon J. Gerraty
26403bebe729SSimon J. Gerraty2016-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
26413bebe729SSimon J. Gerraty
26423bebe729SSimon J. Gerraty	* Makefile (_MAKE_VERSION): rename variable to avoid interference
26433bebe729SSimon J. Gerraty	  with checks for ${MAKE_VERSION}
26443bebe729SSimon J. Gerraty
26453bebe729SSimon J. Gerraty2016-03-10  Simon J. Gerraty  <sjg@bad.crufty.net>
26463bebe729SSimon J. Gerraty
26473bebe729SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160310
26483bebe729SSimon J. Gerraty	  Merge with NetBSD make, pick up
26493bebe729SSimon J. Gerraty	  o meta.c: treat missing Read file same as Write, incase we Delete it.
26503bebe729SSimon J. Gerraty
2651be19d90bSSimon J. Gerraty2016-03-07  Simon J. Gerraty  <sjg@bad.crufty.net>
2652be19d90bSSimon J. Gerraty
2653be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160307
2654be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2655be19d90bSSimon J. Gerraty	  o var.c: fix :ts\nnn to be octal by default.
2656be19d90bSSimon J. Gerraty	  o meta.c: meta_finish() to cleanup memory.
2657be19d90bSSimon J. Gerraty
2658be19d90bSSimon J. Gerraty2016-02-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2659be19d90bSSimon J. Gerraty
2660be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160226
2661be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2662be19d90bSSimon J. Gerraty	  o meta.c: allow meta file for makeDepend if makefiles want it.
2663be19d90bSSimon J. Gerraty
2664be19d90bSSimon J. Gerraty2016-02-19  Simon J. Gerraty  <sjg@bad.crufty.net>
2665be19d90bSSimon J. Gerraty
2666be19d90bSSimon J. Gerraty	* var.c: default .MAKE.SAVE_DOLLARS to FALSE
2667be19d90bSSimon J. Gerraty	  for backwards compatability.
2668be19d90bSSimon J. Gerraty
2669be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160220
2670be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2671be19d90bSSimon J. Gerraty	  o var.c: add knob to control handling of '$$' in :=
2672be19d90bSSimon J. Gerraty
2673be19d90bSSimon J. Gerraty2016-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
2674be19d90bSSimon J. Gerraty
2675be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160218
2676be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2677be19d90bSSimon J. Gerraty	  o var.c: add .export-literal allows us to fix sys.clean-env.mk
2678be19d90bSSimon J. Gerraty	    post the changes to Var_Subst.
2679be19d90bSSimon J. Gerraty	    Var_Subst now takes flags, and does not consume '$$' in :=
2680be19d90bSSimon J. Gerraty
2681be19d90bSSimon J. Gerraty2016-02-17  Simon J. Gerraty  <sjg@bad.crufty.net>
2682be19d90bSSimon J. Gerraty
2683be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160217
2684be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
2685be19d90bSSimon J. Gerraty	  o var.c: preserve '$$' in :=
2686be19d90bSSimon J. Gerraty	  o parse.c: add .dinclude for handling included
2687be19d90bSSimon J. Gerraty	    makefile like .depend
2688be19d90bSSimon J. Gerraty
26896e050540SSimon J. Gerraty2015-12-20  Simon J. Gerraty  <sjg@bad.crufty.net>
26906e050540SSimon J. Gerraty
26916e050540SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151220
26926e050540SSimon J. Gerraty	  Merge with NetBSD make, pick up
26936e050540SSimon J. Gerraty	  o suff.c: re-initialize suffNull when clearing suffixes.
26946e050540SSimon J. Gerraty
2695ac3446e9SSimon J. Gerraty2015-12-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2696ac3446e9SSimon J. Gerraty
2697ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151201
2698ac3446e9SSimon J. Gerraty	  Merge with NetBSD make, pick up
2699ac3446e9SSimon J. Gerraty	  o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
2700ac3446e9SSimon J. Gerraty	  o meta.c: meta_oodate: use lstat(2) for checking link target
2701ac3446e9SSimon J. Gerraty	    in case it is a symlink.
2702ac3446e9SSimon J. Gerraty	  o var.c: avoid calling brk_string and Var_Export1 with empty
2703ac3446e9SSimon J. Gerraty	    strings.
2704ac3446e9SSimon J. Gerraty
2705ac3446e9SSimon J. Gerraty2015-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2706ac3446e9SSimon J. Gerraty
2707ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151126
2708ac3446e9SSimon J. Gerraty	  Merge with NetBSD make, pick up
2709ac3446e9SSimon J. Gerraty	  o parse.c: ParseTrackInput don't access beyond
2710ac3446e9SSimon J. Gerraty	    end of old value.
2711ac3446e9SSimon J. Gerraty
2712ac3446e9SSimon J. Gerraty2015-10-22  Simon J. Gerraty  <sjg@bad.crufty.net>
2713ac3446e9SSimon J. Gerraty
2714ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151022
2715ac3446e9SSimon J. Gerraty
2716ac3446e9SSimon J. Gerraty	* Add support for BSD/OS which lacks inttypes.h
2717ac3446e9SSimon J. Gerraty	  and really needs sys/param.h for sys/sysctl.h
2718ac3446e9SSimon J. Gerraty	  also 'type' is not a shell builtin.
2719ac3446e9SSimon J. Gerraty
2720ac3446e9SSimon J. Gerraty	* var.c: eliminate uint32_t and need for inttypes.h
2721ac3446e9SSimon J. Gerraty
2722ac3446e9SSimon J. Gerraty	* main.c: PrintOnError flush stdout before run .ERROR
2723ac3446e9SSimon J. Gerraty
2724ac3446e9SSimon J. Gerraty	* parse.c: cope with _SC_PAGESIZE not being defined.
2725ac3446e9SSimon J. Gerraty
2726ac3446e9SSimon J. Gerraty
27274c620fe5SSimon J. Gerraty2015-10-20  Simon J. Gerraty  <sjg@bad.crufty.net>
27284c620fe5SSimon J. Gerraty
27294c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151020
27304c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
27314c620fe5SSimon J. Gerraty	  o var.c: fix uninitialized var
27324c620fe5SSimon J. Gerraty
27334c620fe5SSimon J. Gerraty2015-10-12  Simon J. Gerraty  <sjg@bad.crufty.net>
27344c620fe5SSimon J. Gerraty
27354c620fe5SSimon J. Gerraty	* var.c: the conditional expressions used with ':?' can be
27364c620fe5SSimon J. Gerraty	expensive, if already discarding do not evaluate or expand
27374c620fe5SSimon J. Gerraty	anything.
27384c620fe5SSimon J. Gerraty
27394c620fe5SSimon J. Gerraty2015-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
27404c620fe5SSimon J. Gerraty
27414c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151010
27424c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
27434c620fe5SSimon J. Gerraty	  o Add Boolean wantit flag to Var_Subst and Var_Parse
27444c620fe5SSimon J. Gerraty	    when FALSE we know we are discarding the result and can
27454c620fe5SSimon J. Gerraty	    skip operations like Cmd_Exec.
27464c620fe5SSimon J. Gerraty
27474c620fe5SSimon J. Gerraty2015-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
27484c620fe5SSimon J. Gerraty
27494c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151009
27504c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
27514c620fe5SSimon J. Gerraty	  o var.c: don't check for NULL before free()
27524c620fe5SSimon J. Gerraty	  o meta.c: meta_oodate, do not hard code ignore of makeDependfile
27534c620fe5SSimon J. Gerraty
27544c620fe5SSimon J. Gerraty2015-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
27554c620fe5SSimon J. Gerraty
27564c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150910
27574c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
27584c620fe5SSimon J. Gerraty	  o main.c: with -w print Enter/Leaving messages for objdir too
27594c620fe5SSimon J. Gerraty	    if necessary.
27604c620fe5SSimon J. Gerraty	  o centralize shell metachar handling
27614c620fe5SSimon J. Gerraty
27624c620fe5SSimon J. Gerraty	* FILES: add metachar.[ch]
27634c620fe5SSimon J. Gerraty
2764128a4105SSimon J. Gerraty2015-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
2765128a4105SSimon J. Gerraty
2766128a4105SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150606
2767128a4105SSimon J. Gerraty	  Merge with NetBSD make, pick up
2768128a4105SSimon J. Gerraty	  o make.1: document .OBJDIR target
2769128a4105SSimon J. Gerraty
277028a6bc81SSimon J. Gerraty2015-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
277128a6bc81SSimon J. Gerraty
277228a6bc81SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150505
277328a6bc81SSimon J. Gerraty	  Merge with NetBSD make, pick up
277428a6bc81SSimon J. Gerraty	  o cond.c: be strict about lhs of comparison when evaluating .if
277528a6bc81SSimon J. Gerraty	    but less so when called from variable expansion.
277628a6bc81SSimon J. Gerraty	  o unit-tests/cond2.mk: test various error conditions
277728a6bc81SSimon J. Gerraty
277828a6bc81SSimon J. Gerraty2015-05-04  Simon J. Gerraty  <sjg@bad.crufty.net>
277928a6bc81SSimon J. Gerraty
278028a6bc81SSimon J. Gerraty	* machine.sh (MACHINE): Add Bitrig
278128a6bc81SSimon J. Gerraty	  patch from joerg@netbsd.org
278228a6bc81SSimon J. Gerraty
2783db29cad8SSimon J. Gerraty2015-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
2784db29cad8SSimon J. Gerraty
2785db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150418
2786db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2787db29cad8SSimon J. Gerraty	  o job.c: use memmove() rather than memcpy()
2788db29cad8SSimon J. Gerraty
2789db29cad8SSimon J. Gerraty	* unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL
2790db29cad8SSimon J. Gerraty	  case, so skip it.
2791db29cad8SSimon J. Gerraty
2792db29cad8SSimon J. Gerraty2015-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2793db29cad8SSimon J. Gerraty
2794db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150411
2795db29cad8SSimon J. Gerraty	  bump version - only mk/ changes.
2796db29cad8SSimon J. Gerraty
2797db29cad8SSimon J. Gerraty2015-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
2798db29cad8SSimon J. Gerraty
2799db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150410
2800db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2801db29cad8SSimon J. Gerraty	  o document different handling of '-' in jobs mode vs compat
2802db29cad8SSimon J. Gerraty	  o fix jobs mode so that '-' only applies to whole job
2803db29cad8SSimon J. Gerraty	    when shell lacks hasErrCtl
2804db29cad8SSimon J. Gerraty	  o meta.c: use separate vars to track lcwd and latestdir (read)
2805db29cad8SSimon J. Gerraty	    per process
2806db29cad8SSimon J. Gerraty
2807db29cad8SSimon J. Gerraty2015-04-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2808db29cad8SSimon J. Gerraty
2809db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150401
2810db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2811db29cad8SSimon J. Gerraty	  o meta.c: close meta file in child
2812db29cad8SSimon J. Gerraty
2813db29cad8SSimon J. Gerraty	* Makefile: use BINDIR.bmake if set.
2814db29cad8SSimon J. Gerraty	  Same for MANDIR and SHAREDIR
2815db29cad8SSimon J. Gerraty	  Handy for testing release candidates
2816db29cad8SSimon J. Gerraty	  in various environments.
2817db29cad8SSimon J. Gerraty
2818db29cad8SSimon J. Gerraty2015-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
2819db29cad8SSimon J. Gerraty
2820db29cad8SSimon J. Gerraty	* move initialization of savederr to block where it is used
2821db29cad8SSimon J. Gerraty	  to avoid spurious warning from gcc5
2822db29cad8SSimon J. Gerraty
2823db29cad8SSimon J. Gerraty2014-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
2824db29cad8SSimon J. Gerraty
2825db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20141111
2826db29cad8SSimon J. Gerraty	  just a cooler number
2827db29cad8SSimon J. Gerraty
2828db29cad8SSimon J. Gerraty2014-11-05  Simon J. Gerraty  <sjg@bad.crufty.net>
2829db29cad8SSimon J. Gerraty
2830db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20141105
2831db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2832db29cad8SSimon J. Gerraty	  o revert major overhaul of suffix handling
2833db29cad8SSimon J. Gerraty	    and POSIX compliance - too much breakage
2834db29cad8SSimon J. Gerraty	    and impossible to make backwards compatible.
2835db29cad8SSimon J. Gerraty	  o we still have the new unit test structure which is ok.
2836db29cad8SSimon J. Gerraty	  o meta.c ensure "-- filemon" is at start of line.
2837db29cad8SSimon J. Gerraty
2838db29cad8SSimon J. Gerraty2014-09-17  Simon J. Gerraty  <sjg@bad.crufty.net>
2839db29cad8SSimon J. Gerraty
2840db29cad8SSimon J. Gerraty	* configure.in: test that result of getconf PATH_MAX is numeric
2841db29cad8SSimon J. Gerraty	  and discard if not.  Apparently needed for Hurd.
2842db29cad8SSimon J. Gerraty
2843db29cad8SSimon J. Gerraty2014-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
2844db29cad8SSimon J. Gerraty
2845db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140830
2846db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
2847db29cad8SSimon J. Gerraty	  o major overhaul of suffix handling
2848db29cad8SSimon J. Gerraty	  o improved POSIX compliance
2849db29cad8SSimon J. Gerraty	  o overhauled unit-tests
2850db29cad8SSimon J. Gerraty
28515bcb7424SSimon J. Gerraty2014-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
28525bcb7424SSimon J. Gerraty
28535bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140620
28545bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
2855db29cad8SSimon J. Gerraty	  o var.c return varNoError rather than var_Error for ::= modifiers.
28565bcb7424SSimon J. Gerraty
28575bcb7424SSimon J. Gerraty2014-05-22  Simon J. Gerraty  <sjg@bad.crufty.net>
28585bcb7424SSimon J. Gerraty
28595bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140522
28605bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
28615bcb7424SSimon J. Gerraty	  o var.c detect some parse errors.
28625bcb7424SSimon J. Gerraty
28635bcb7424SSimon J. Gerraty2014-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
28645bcb7424SSimon J. Gerraty
28655bcb7424SSimon J. Gerraty	* Fix spelling errors - patch from Pedro Giffuni
28665bcb7424SSimon J. Gerraty
28675bcb7424SSimon J. Gerraty2014-02-14  Simon J. Gerraty  <sjg@bad.crufty.net>
28685bcb7424SSimon J. Gerraty
28695bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140214
28705bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
28715bcb7424SSimon J. Gerraty	  o .INCLUDEFROM*
28725bcb7424SSimon J. Gerraty	  o use Var_Value to get MAKEOBJDIR[PREFIX]
28735bcb7424SSimon J. Gerraty	  o reduced realloc'ign in brk_string.
28745bcb7424SSimon J. Gerraty	* configure.in: add a check for compiler supporting __func__
28755bcb7424SSimon J. Gerraty
28760dede8b0SSimon J. Gerraty2014-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
28770dede8b0SSimon J. Gerraty
28780dede8b0SSimon J. Gerraty	* boot-strap: ignore mksrc=none
28790dede8b0SSimon J. Gerraty
28800dede8b0SSimon J. Gerraty2014-01-02  Simon J. Gerraty  <sjg@bad.crufty.net>
28810dede8b0SSimon J. Gerraty
28820dede8b0SSimon J. Gerraty	* Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk
28830dede8b0SSimon J. Gerraty
28840dede8b0SSimon J. Gerraty2014-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
28850dede8b0SSimon J. Gerraty
28860dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140101
28870dede8b0SSimon J. Gerraty	* configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024)
28880dede8b0SSimon J. Gerraty	* Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max
28890dede8b0SSimon J. Gerraty	* make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for
28900dede8b0SSimon J. Gerraty	  Hurd)
28910dede8b0SSimon J. Gerraty	* configure.in: Add AC_PREREQ and check for
28920dede8b0SSimon J. Gerraty	  sysctl; patch from Andrew Shadura andrewsh at debian.org
28930dede8b0SSimon J. Gerraty
28940dede8b0SSimon J. Gerraty2013-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
28950dede8b0SSimon J. Gerraty
28960dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20131010
28970dede8b0SSimon J. Gerraty	* lose the const from arg to systcl to avoid problems on older BSDs.
28980dede8b0SSimon J. Gerraty
28990dede8b0SSimon J. Gerraty2013-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
29000dede8b0SSimon J. Gerraty
29010dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20131001
29020dede8b0SSimon J. Gerraty	  Merge with NetBSD make, pick up
29030dede8b0SSimon J. Gerraty	  o main.c: for NATIVE build sysctl to get MACHINE_ARCH from
29040dede8b0SSimon J. Gerraty	    hw.machine_arch if necessary.
29050dede8b0SSimon J. Gerraty	  o meta.c: meta_oodate - need to look at src of Link and target
29060dede8b0SSimon J. Gerraty	    of Move as well.
29070dede8b0SSimon J. Gerraty	* main.c: check that CTL_HW and HW_MACHINE_ARCH exist.
29080dede8b0SSimon J. Gerraty	  provide __arraycount() if needed.
29090dede8b0SSimon J. Gerraty
29101bbe5942SSimon J. Gerraty2013-09-04  Simon J. Gerraty  <sjg@bad.crufty.net>
29111bbe5942SSimon J. Gerraty
29121bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130904
29131bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
29141bbe5942SSimon J. Gerraty	  o Add VAR_INTERNAL context, so that internal setting of
29151bbe5942SSimon J. Gerraty	    MAKEFILE does not override value set by makefiles.
29161bbe5942SSimon J. Gerraty
29171bbe5942SSimon J. Gerraty2013-09-02  Simon J. Gerraty  <sjg@bad.crufty.net>
29181bbe5942SSimon J. Gerraty
29191bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130902
29201bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
29211bbe5942SSimon J. Gerraty	  o CompatRunCommand: only apply shellErrFlag when errCheck is true
29221bbe5942SSimon J. Gerraty
29231bbe5942SSimon J. Gerraty2013-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
29241bbe5942SSimon J. Gerraty
29251bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130828
29261bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
29271bbe5942SSimon J. Gerraty	  o Fix VAR :sh = syntax from Will Andrews at freebsd.org
29281bbe5942SSimon J. Gerraty	  o Call Job_SetPrefix() from Job_Init() so makefiles have
29291bbe5942SSimon J. Gerraty	    opportunity to set .MAKE.JOB.PREFIX
29301bbe5942SSimon J. Gerraty
293151ee2c1cSSimon J. Gerraty2013-07-30  Simon J. Gerraty  <sjg@bad.crufty.net>
293251ee2c1cSSimon J. Gerraty
293351ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130730
293451ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
293551ee2c1cSSimon J. Gerraty	  o Allow suppression of --- job -- tokens by setting
293651ee2c1cSSimon J. Gerraty	    .MAKE.JOB.PREFIX empty.
293751ee2c1cSSimon J. Gerraty
293851ee2c1cSSimon J. Gerraty2013-07-16  Simon J. Gerraty  <sjg@bad.crufty.net>
293951ee2c1cSSimon J. Gerraty
294051ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130716
294151ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
29425bcb7424SSimon J. Gerraty	  o number of gmake compatibility tweaks
294351ee2c1cSSimon J. Gerraty	    -w for gmake style entering/leaving messages
294451ee2c1cSSimon J. Gerraty	    if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc.
294551ee2c1cSSimon J. Gerraty	    handle MAKEFLAGS containing only letters.
294651ee2c1cSSimon J. Gerraty	  o when overriding a GLOBAL variable on the command line,
294751ee2c1cSSimon J. Gerraty	    delete it from GLOBAL context so -V doesn't show the wrong
294851ee2c1cSSimon J. Gerraty	    value.
294951ee2c1cSSimon J. Gerraty
295051ee2c1cSSimon J. Gerraty2013-07-06  Simon J. Gerraty  <sjg@bad.crufty.net>
295151ee2c1cSSimon J. Gerraty
295251ee2c1cSSimon J. Gerraty	* configure.in: We don't need MAKE_LEVEL_SAFE anymore.
295351ee2c1cSSimon J. Gerraty
295451ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130706
295551ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
295651ee2c1cSSimon J. Gerraty	  o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is
295751ee2c1cSSimon J. Gerraty	    true so that CompatRunCommand() can use it, to ensure
295851ee2c1cSSimon J. Gerraty	    consistent behavior with jobs mode.
295951ee2c1cSSimon J. Gerraty	  o use MAKE_LEVEL_ENV to define the variable to propagate
296051ee2c1cSSimon J. Gerraty	    .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake).
296151ee2c1cSSimon J. Gerraty	  o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of
296251ee2c1cSSimon J. Gerraty	    paths to ignore.
296351ee2c1cSSimon J. Gerraty
296474d2e02bSSimon J. Gerraty2013-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
296574d2e02bSSimon J. Gerraty
296674d2e02bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130604
296774d2e02bSSimon J. Gerraty	  Merge with NetBSD make, pick up
296874d2e02bSSimon J. Gerraty	  o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's
296974d2e02bSSimon J. Gerraty	    to avoid leaking descriptors.
297074d2e02bSSimon J. Gerraty
297174d2e02bSSimon J. Gerraty2013-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
297274d2e02bSSimon J. Gerraty
297374d2e02bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130528
297474d2e02bSSimon J. Gerraty	  Merge with NetBSD make, pick up
297574d2e02bSSimon J. Gerraty	  o var.c: cleanup some left-overs in VarHash()
297674d2e02bSSimon J. Gerraty
297752d86256SSimon J. Gerraty2013-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
297852d86256SSimon J. Gerraty
297952d86256SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130520
298052d86256SSimon J. Gerraty	  generate manifest from component FILES rather than have to
298152d86256SSimon J. Gerraty	  update FILES when mk/FILES changes.
298252d86256SSimon J. Gerraty
298352d86256SSimon J. Gerraty2013-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
298452d86256SSimon J. Gerraty
298552d86256SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130518
298652d86256SSimon J. Gerraty	  Merge with NetBSD make, pick up
298752d86256SSimon J. Gerraty	  o suff.c: don't skip all processsing for .PHONY targets
298852d86256SSimon J. Gerraty	    else wildcard srcs do not get expanded.
298952d86256SSimon J. Gerraty	  o var.c: expand name of variable to delete if necessary.
299052d86256SSimon J. Gerraty
29911748de26SSimon J. Gerraty2013-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
29921748de26SSimon J. Gerraty
29931748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130330
29941748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
29951748de26SSimon J. Gerraty	  o meta.c: refine the handling of .OODATE in commands.
29961748de26SSimon J. Gerraty	    Rather than suppress command comparison for the entire script
29971748de26SSimon J. Gerraty	    as though .NOMETA_CMP had been used, only suppress it for the
29981748de26SSimon J. Gerraty	    one command line.
29991748de26SSimon J. Gerraty	    This allows something like ${.OODATE:M.NOMETA_CMP} to be used to
30001748de26SSimon J. Gerraty	    suppress comparison of a command without otherwise affecting it.
30011748de26SSimon J. Gerraty	  o make.1: document that
30021748de26SSimon J. Gerraty
30031748de26SSimon J. Gerraty2013-03-22  Simon J. Gerraty  <sjg@bad.crufty.net>
30041748de26SSimon J. Gerraty
30051748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130321
30061748de26SSimon J. Gerraty	  yes, not quite right but its a cooler number.
30071748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
30081748de26SSimon J. Gerraty	  o parse.c: fix ParseGmakeExport to be portable
30091748de26SSimon J. Gerraty	    and add a unit-test.
30101748de26SSimon J. Gerraty	* meta.c: call meta_init() before makefiles are read and if built
30111748de26SSimon J. Gerraty	  with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON
30121748de26SSimon J. Gerraty	  this let's makefiles test for support.
30131748de26SSimon J. Gerraty	  Call meta_mode_init() to process .MAKE.MODE.
30141748de26SSimon J. Gerraty
30151748de26SSimon J. Gerraty2013-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
30161748de26SSimon J. Gerraty
30171748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130305
30181748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
30191748de26SSimon J. Gerraty	  o run .STALE: target when a dependency from .depend is missing.
30201748de26SSimon J. Gerraty	  o job.c: add Job_RunTarget() for the above and .BEGIN
30211748de26SSimon J. Gerraty
30221748de26SSimon J. Gerraty2013-03-03  Simon J. Gerraty  <sjg@bad.crufty.net>
30231748de26SSimon J. Gerraty
30241748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130303
30251748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
30261748de26SSimon J. Gerraty	  o main.c: set .MAKE.OS to utsname.sysname
30271748de26SSimon J. Gerraty	  o job.c: more checks for read and poll errors
30281748de26SSimon J. Gerraty	  o var.c: lose VarChangeCase() saves 4% time
30291748de26SSimon J. Gerraty
30301748de26SSimon J. Gerraty2013-03-02  Simon J. Gerraty  <sjg@bad.crufty.net>
30311748de26SSimon J. Gerraty
30321748de26SSimon J. Gerraty	* boot-strap: remove MAKEOBJDIRPREFIX from environment since we
30331748de26SSimon J. Gerraty	  want to use MAKEOBJDIR
30341748de26SSimon J. Gerraty
30353cbdda60SSimon J. Gerraty2013-01-27  Simon J. Gerraty  <sjg@bad.crufty.net>
30363cbdda60SSimon J. Gerraty
30373cbdda60SSimon J. Gerraty	* Merge with NetBSD make, pick up
30383cbdda60SSimon J. Gerraty	  o make.1: more info on how shell commands are handled.
30393cbdda60SSimon J. Gerraty	  o job.c,main.c: detect write errors to job pipes.
30403cbdda60SSimon J. Gerraty
30413cbdda60SSimon J. Gerraty2013-01-25  Simon J. Gerraty  <sjg@bad.crufty.net>
30423cbdda60SSimon J. Gerraty
30433cbdda60SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130123
30443cbdda60SSimon J. Gerraty	  Merge with NetBSD make, pick up
30453cbdda60SSimon J. Gerraty	  o meta.c: if script uses .OODATE and meta_oodate() decides
30463cbdda60SSimon J. Gerraty	    rebuild is needed, .OODATE will be empty - set it to .ALLSRC.
30473cbdda60SSimon J. Gerraty	  o var.c: in debug output indicate which variabale modifiers
30483cbdda60SSimon J. Gerraty	    apply to.
30493cbdda60SSimon J. Gerraty	  o remove Check_Cwd logic the makefiles have been fixed.
30503cbdda60SSimon J. Gerraty
30513cbdda60SSimon J. Gerraty2012-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
30523cbdda60SSimon J. Gerraty
30533cbdda60SSimon J. Gerraty	* makefile.in: add a simple makefile for folk who insist on
30543cbdda60SSimon J. Gerraty	  ./configure; make; make install
30553cbdda60SSimon J. Gerraty	  it just runs boot-strap
30563cbdda60SSimon J. Gerraty	* include mk/* to accommodate the above
30573cbdda60SSimon J. Gerraty	* boot-strap:  re-work to accommodate the above
30583cbdda60SSimon J. Gerraty	  mksrc defaults to $Mydir/mk
30593cbdda60SSimon J. Gerraty	  allow op={configure,build,install,clean,all}
30603cbdda60SSimon J. Gerraty	  add options to facilitate install
30613cbdda60SSimon J. Gerraty	* Makefile.config.in: just the bits set by configure
30623cbdda60SSimon J. Gerraty	* Makefile: bump version to 20121212
30633cbdda60SSimon J. Gerraty	  abandon Makefile.in (NetBSD Makefile)
30643cbdda60SSimon J. Gerraty	  leverage mk/* instead
30653cbdda60SSimon J. Gerraty	* configure.in: ensure srcdir is absolute
30663cbdda60SSimon J. Gerraty
306759a02420SSimon J. Gerraty2012-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
306859a02420SSimon J. Gerraty
306959a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121111
307059a02420SSimon J. Gerraty	  fix generation of bmake.cat1
307159a02420SSimon J. Gerraty
307259a02420SSimon J. Gerraty2012-11-09  Simon J. Gerraty  <sjg@bad.crufty.net>
307359a02420SSimon J. Gerraty
307459a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121109
307559a02420SSimon J. Gerraty	  Merge with NetBSD make, pick up
307659a02420SSimon J. Gerraty	  o make.c: MakeBuildChild: return 0 so search continues if a
307759a02420SSimon J. Gerraty	    .ORDER dependency is detected.
307859a02420SSimon J. Gerraty	  o unit-tests/order: test the above
307959a02420SSimon J. Gerraty
308059a02420SSimon J. Gerraty2012-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
308159a02420SSimon J. Gerraty
308259a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121102
308359a02420SSimon J. Gerraty	  Merge with NetBSD make, pick up
308459a02420SSimon J. Gerraty	  o cond.c: allow cond_state[] to grow.
308559a02420SSimon J. Gerraty	    In meta mode with a very large tree, we can hit the limit
308659a02420SSimon J. Gerraty	    while processing dirdeps.
308759a02420SSimon J. Gerraty
308859a02420SSimon J. Gerraty2012-10-25  Simon J. Gerraty  <sjg@bad.crufty.net>
308959a02420SSimon J. Gerraty
309059a02420SSimon J. Gerraty	* Makefile.in: we need to use ${srcdir} not ${.CURDIR}
309159a02420SSimon J. Gerraty
309293036677SSimon J. Gerraty2012-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
309393036677SSimon J. Gerraty
309493036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121010
309593036677SSimon J. Gerraty	  o protect syntax that only bmake parses correctly.
309693036677SSimon J. Gerraty	  o remove auto setting of FORCE_MACHINE, use configure's
309793036677SSimon J. Gerraty	    --with-force-machine=whatever if that is desired.
309893036677SSimon J. Gerraty
309993036677SSimon J. Gerraty2012-10-08  Simon J. Gerraty  <sjg@bad.crufty.net>
310093036677SSimon J. Gerraty
310193036677SSimon J. Gerraty	* Makefile.in: do not lose history from make.1 when generating bmake.1
310293036677SSimon J. Gerraty
310393036677SSimon J. Gerraty2012-10-07  Simon J. Gerraty  <sjg@bad.crufty.net>
310493036677SSimon J. Gerraty
310593036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121007
310693036677SSimon J. Gerraty	  Merge with NetBSD make, pick up
310793036677SSimon J. Gerraty	  o compat.c: ignore empty commands - same as jobs mode.
310893036677SSimon J. Gerraty	  o make.1: document meta chars that cause use of shell
310993036677SSimon J. Gerraty
311093036677SSimon J. Gerraty2012-09-11  Simon J. Gerraty  <sjg@bad.crufty.net>
311193036677SSimon J. Gerraty
311293036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): bump version to 20120911
311393036677SSimon J. Gerraty	* bsd.after-import.mk: include Makefile.inc early and allow it to
311493036677SSimon J. Gerraty	  override PROG
311593036677SSimon J. Gerraty
31163955d011SMarcel Moolenaar2012-08-31  Simon J. Gerraty  <sjg@bad.crufty.net>
31173955d011SMarcel Moolenaar
31183955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120831
31193955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31203955d011SMarcel Moolenaar	  o cast sizeof() to int for comparison
31213955d011SMarcel Moolenaar	  o minor make.1 tweak
31223955d011SMarcel Moolenaar
31233955d011SMarcel Moolenaar2012-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
31243955d011SMarcel Moolenaar
31253955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120830
31263955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31273955d011SMarcel Moolenaar	  o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V
31283955d011SMarcel Moolenaar	  o debug flag -dV causes -V to show raw value regardless.
31293955d011SMarcel Moolenaar
31303955d011SMarcel Moolenaar2012-07-05  Simon J. Gerraty  <sjg@bad.crufty.net>
31313955d011SMarcel Moolenaar
31323955d011SMarcel Moolenaar	* bsd.after-import.mk (after-import): ensure unit-tests/Makefile
31333955d011SMarcel Moolenaar	  gets SRCTOP set.
31343955d011SMarcel Moolenaar
31353955d011SMarcel Moolenaar2012-07-04  Simon J. Gerraty  <sjg@bad.crufty.net>
31363955d011SMarcel Moolenaar
31373955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120704
31383955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31393955d011SMarcel Moolenaar	  o Job_ParseShell should call Shell_Init if it has been
31403955d011SMarcel Moolenaar	    previously called.
31413955d011SMarcel Moolenaar	* Makefile.in: set USE_META based on configure result.
31423955d011SMarcel Moolenaar	  also .PARSEDIR is safer indicator of bmake.
31433955d011SMarcel Moolenaar
31443955d011SMarcel Moolenaar2012-06-26  Simon J. Gerraty  <sjg@bad.crufty.net>
31453955d011SMarcel Moolenaar
31463955d011SMarcel Moolenaar	* Makefile.in: bump version to 20120626
31473955d011SMarcel Moolenaar	  ensure CPPFLAGS is in CFLAGS
31483955d011SMarcel Moolenaar	* meta.c: avoid nested externs
31493955d011SMarcel Moolenaar	* bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target
31503955d011SMarcel Moolenaar
31513955d011SMarcel Moolenaar2012-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
31523955d011SMarcel Moolenaar
31533955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120620
31543955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31553955d011SMarcel Moolenaar	  o make_malloc.c: avoid including make_malloc.h again
31563955d011SMarcel Moolenaar
31573955d011SMarcel Moolenaar	* Makefile.in: avoid bmake only syntax or protect with
31583955d011SMarcel Moolenaar	  .if defined(.MAKE.LEVEL)
31593955d011SMarcel Moolenaar	* bsd.after-import.mk: replace .-include with .sinclude
31603955d011SMarcel Moolenaar	  ensure? SRCTOP gets a value
31613955d011SMarcel Moolenaar	* configure.in: look for filemon.h in /usr/include/dev/filemon first.
31623955d011SMarcel Moolenaar
31633955d011SMarcel Moolenaar2012-06-19  Simon J. Gerraty  <sjg@bad.crufty.net>
31643955d011SMarcel Moolenaar
31653955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120612
31663955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31673955d011SMarcel Moolenaar	  o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler
31683955d011SMarcel Moolenaar	    for greater portability.
31693955d011SMarcel Moolenaar	  o unit-tests/forloop: check that .for works as expected wrt
31703955d011SMarcel Moolenaar	    number of times and with "quoted strings".
31713955d011SMarcel Moolenaar
31723955d011SMarcel Moolenaar2012-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
31733955d011SMarcel Moolenaar
31743955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120606
31753955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31763955d011SMarcel Moolenaar	  o compat.c: use kill(2) rather than raise(3).
31773955d011SMarcel Moolenaar	* configure.in: look for sys/dev/filemon
31783955d011SMarcel Moolenaar	* bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile
31793955d011SMarcel Moolenaar	  and pass BOOTSTRAP_XTRAS to boot-strap.
31803955d011SMarcel Moolenaar
31813955d011SMarcel Moolenaar2012-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
31823955d011SMarcel Moolenaar
31833955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120604
31843955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
31853955d011SMarcel Moolenaar	  o util.c and var.c share same var for tracking if environ
31863955d011SMarcel Moolenaar	    has been reallocated.
31873955d011SMarcel Moolenaar	  o util.c provide getenv with setenv.
31883955d011SMarcel Moolenaar	* Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL
31893955d011SMarcel Moolenaar	  when the shell actively strips .MAKE.* from the environment.
31903955d011SMarcel Moolenaar	  We still refer to the variable always as .MAKE.LEVEL
31913955d011SMarcel Moolenaar	* util.c fix bug in findenv() was finding prefix of name.
31923955d011SMarcel Moolenaar	* compat.c: re-raising SIGINT etc after running .INTERRUPT
31933955d011SMarcel Moolenaar	  results in more reliable termination of all activity on many
31943955d011SMarcel Moolenaar	  platforms.
31953955d011SMarcel Moolenaar
31963955d011SMarcel Moolenaar2012-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
31973955d011SMarcel Moolenaar
31983955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120602
31993955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32003955d011SMarcel Moolenaar	  o for.c: handle quoted items in .for list
32013955d011SMarcel Moolenaar
32023955d011SMarcel Moolenaar2012-05-30  Simon J. Gerraty  <sjg@bad.crufty.net>
32033955d011SMarcel Moolenaar
32043955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120530
32053955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32063955d011SMarcel Moolenaar	  o compat.c: ignore empty command.
32073955d011SMarcel Moolenaar
32083955d011SMarcel Moolenaar2012-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
32093955d011SMarcel Moolenaar
32103955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120524
32113955d011SMarcel Moolenaar	* FILES: add bsd.after-import.mk:
32123955d011SMarcel Moolenaar	  A simple means of integrating bmake into a BSD build system.
32133955d011SMarcel Moolenaar
32143955d011SMarcel Moolenaar2012-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
32153955d011SMarcel Moolenaar
32163955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120520
32173955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32183955d011SMarcel Moolenaar	  o increased limit for nested conditionals.
32193955d011SMarcel Moolenaar
32203955d011SMarcel Moolenaar2012-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
32213955d011SMarcel Moolenaar
32223955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120518
32233955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32243955d011SMarcel Moolenaar	  o use _exit(2) in signal hanlder
32253955d011SMarcel Moolenaar	  o Don't use the [dir] cache when building nodes that might have
32263955d011SMarcel Moolenaar	    changed since the last exec.
32273955d011SMarcel Moolenaar	  o Avoid nested extern declaration warnings.
32283955d011SMarcel Moolenaar
32293955d011SMarcel Moolenaar2012-04-27  Simon J. Gerraty  <sjg@bad.crufty.net>
32303955d011SMarcel Moolenaar
32313955d011SMarcel Moolenaar	* meta.c (fgetLine): avoid %z - not portable.
32323955d011SMarcel Moolenaar	* parse.c: Since we moved include of sys/mman.h
32333955d011SMarcel Moolenaar	  and def's of MAP_COPY etc. we got dups from a merge.
32343955d011SMarcel Moolenaar
32353955d011SMarcel Moolenaar2012-04-24  Simon J. Gerraty  <sjg@bad.crufty.net>
32363955d011SMarcel Moolenaar
32373955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120420
32383955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32393955d011SMarcel Moolenaar	  o restore duplicate supression in .MAKE.MAKEFILES
32403955d011SMarcel Moolenaar	    runtime saving can be significant.
32413955d011SMarcel Moolenaar	  o Var_Subst() uses Buf_DestroyCompact() to reduce memory
32423955d011SMarcel Moolenaar	    consumption up to 20%.
32433955d011SMarcel Moolenaar
32443955d011SMarcel Moolenaar2012-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
32453955d011SMarcel Moolenaar
32463955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120420
32473955d011SMarcel Moolenaar          Merge with NetBSD make, pick up
32483955d011SMarcel Moolenaar	  o remove duplicate supression in .MAKE.MAKEFILES
32493955d011SMarcel Moolenaar	  o improved dir cache behavior
32503955d011SMarcel Moolenaar	  o gmake'ish export command
32513955d011SMarcel Moolenaar
32523955d011SMarcel Moolenaar2012-03-25  Simon J. Gerraty  <sjg@bad.crufty.net>
32533955d011SMarcel Moolenaar
32543955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120325
32553955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32563955d011SMarcel Moolenaar	  o fix parsing of :[#] in conditionals.
32573955d011SMarcel Moolenaar
32583955d011SMarcel Moolenaar2012-02-10  Simon J. Gerraty  <sjg@bad.crufty.net>
32593955d011SMarcel Moolenaar
32603955d011SMarcel Moolenaar	* Makefile.in: replace use of .Nx in bmake.1 with NetBSD
32613955d011SMarcel Moolenaar	  since some systems cannot cope with .Nx <version>
32623955d011SMarcel Moolenaar
32633955d011SMarcel Moolenaar2011-11-14  Simon J. Gerraty  <sjg@bad.crufty.net>
32643955d011SMarcel Moolenaar
32653955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20111111
32663955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32673955d011SMarcel Moolenaar	  o debug output for .PARSEDIR and .PARSEFILE
32683955d011SMarcel Moolenaar
32693955d011SMarcel Moolenaar2011-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
32703955d011SMarcel Moolenaar
32713955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION):  bump version to 20111010
32723955d011SMarcel Moolenaar
32733955d011SMarcel Moolenaar2011-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
32743955d011SMarcel Moolenaar
32753955d011SMarcel Moolenaar	* boot-strap: check for an expected file in the dirs we look for.
32763955d011SMarcel Moolenaar	* make-bootstrap.sh: pass on LDSTATIC
32773955d011SMarcel Moolenaar
32783955d011SMarcel Moolenaar2011-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
32793955d011SMarcel Moolenaar
32803955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20111001
32813955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32823955d011SMarcel Moolenaar	  o ensure .PREFIX is set for .PHONY
32833955d011SMarcel Moolenaar	    and .TARGET set for .PHONY run via .END
32843955d011SMarcel Moolenaar	  o __dead used consistently
32853955d011SMarcel Moolenaar
32863955d011SMarcel Moolenaar2011-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
32873955d011SMarcel Moolenaar
32883955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): 20110909 is a better number ;-)
32893955d011SMarcel Moolenaar
32903955d011SMarcel Moolenaar2011-09-05  Simon J. Gerraty  <sjg@bad.crufty.net>
32913955d011SMarcel Moolenaar
32923955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110905
32933955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
32943955d011SMarcel Moolenaar	  o meta_oodate: ignore makeDependfile
32953955d011SMarcel Moolenaar
32963955d011SMarcel Moolenaar2011-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
32973955d011SMarcel Moolenaar
32983955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110828
32993955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33003955d011SMarcel Moolenaar	  o silent=yes in .MAKE.MODE causes meta mode to mark targets
33013955d011SMarcel Moolenaar	    as SILENT if a .meta file is created
33023955d011SMarcel Moolenaar
33033955d011SMarcel Moolenaar2011-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
33043955d011SMarcel Moolenaar
33053955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110818
33063955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33073955d011SMarcel Moolenaar	  o in meta mode, if target flagged .META a missing .meta file
33083955d011SMarcel Moolenaar	    means target is out-of-date
33093955d011SMarcel Moolenaar	  o fixes for gcc 4.5 warnings
33103955d011SMarcel Moolenaar	  o simplify job printing code
33113955d011SMarcel Moolenaar
33123955d011SMarcel Moolenaar2011-08-09  Simon J. Gerraty  <sjg@bad.crufty.net>
33133955d011SMarcel Moolenaar
33143955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110808
33153955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33163955d011SMarcel Moolenaar	  o do not touch OP_SPECIAL targets when doing make -t
33173955d011SMarcel Moolenaar
33183955d011SMarcel Moolenaar2011-06-22  Simon J. Gerraty  <sjg@bad.crufty.net>
33193955d011SMarcel Moolenaar
33203955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110622
33213955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33223955d011SMarcel Moolenaar	  o meta_oodate detect corrupted .meta file and declare oodate.
33233955d011SMarcel Moolenaar	* configure.in: add check for setsid
33243955d011SMarcel Moolenaar
33253955d011SMarcel Moolenaar2011-06-07  Simon J. Gerraty  <sjg@bad.crufty.net>
33263955d011SMarcel Moolenaar
33273955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
33283955d011SMarcel Moolenaar	  o unit-tests/modts now works on MirBSD
33293955d011SMarcel Moolenaar
33303955d011SMarcel Moolenaar2011-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
33313955d011SMarcel Moolenaar
33323955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110606
33333955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33343955d011SMarcel Moolenaar	  o ApplyModifiers: when we parse a variable which is not
33353955d011SMarcel Moolenaar	    the entire modifier string, or not followed by ':', do not
33363955d011SMarcel Moolenaar	    consider it as containing modifiers.
33373955d011SMarcel Moolenaar	  o loadfile: ensure newline at end of mapped file.
33383955d011SMarcel Moolenaar
33393955d011SMarcel Moolenaar2011-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
33403955d011SMarcel Moolenaar
33413955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110505
33423955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33433955d011SMarcel Moolenaar	  o .MAKE.META.BAILIWICK - list of prefixes which define the scope
33443955d011SMarcel Moolenaar	    of make's control.  In meta mode, any generated file within
33453955d011SMarcel Moolenaar	    said bailiwick, which  is found to be missing, causes current
33463955d011SMarcel Moolenaar	    target to be out-of-date.
33473955d011SMarcel Moolenaar
33483955d011SMarcel Moolenaar2011-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
33493955d011SMarcel Moolenaar
33503955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110411
33513955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33523955d011SMarcel Moolenaar	  o when long modifiers fail to match, check sysV style.
33533955d011SMarcel Moolenaar	    - add a test case
33543955d011SMarcel Moolenaar
33553955d011SMarcel Moolenaar2011-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
33563955d011SMarcel Moolenaar
33573955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110410
33583955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33593955d011SMarcel Moolenaar	  o :hash - cheap 32bit hash of value
33603955d011SMarcel Moolenaar	  o :localtime, :gmtime - use value as format string for strftime.
33613955d011SMarcel Moolenaar
33623955d011SMarcel Moolenaar2011-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
33633955d011SMarcel Moolenaar
33643955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110330
33653955d011SMarcel Moolenaar	  mostly because its a cooler version.
33663955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33673955d011SMarcel Moolenaar	  o NetBSD tags for meta.[ch]
33683955d011SMarcel Moolenaar	  o job.c call meta_job_finish() after meta_job_error().
33693955d011SMarcel Moolenaar	  o meta_job_error() should call meta_job_finish() to ensure
33703955d011SMarcel Moolenaar	    .meta file is closed, and safe to copy - if .ERROR target wants.
33713955d011SMarcel Moolenaar	   meta_job_finish() is safe to call repeatedly.
33723955d011SMarcel Moolenaar
33733955d011SMarcel Moolenaar2011-03-29  Simon J. Gerraty  <sjg@bad.crufty.net>
33743955d011SMarcel Moolenaar
33753955d011SMarcel Moolenaar	* unit-tests/modts: use printf if it is a builtin,
33763955d011SMarcel Moolenaar	  to save us from MirBSD
33773955d011SMarcel Moolenaar
33783955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110329
33793955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33803955d011SMarcel Moolenaar	  o fix for use after free() in CondDoExists().
33813955d011SMarcel Moolenaar	  o meta_oodate() report extra commands and return earlier.
33823955d011SMarcel Moolenaar
33833955d011SMarcel Moolenaar2011-03-27  Simon J. Gerraty  <sjg@bad.crufty.net>
33843955d011SMarcel Moolenaar
33853955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110327
33863955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33873955d011SMarcel Moolenaar	  o meta.c, if .MAKE.MODE contains curdirOk=yes
33883955d011SMarcel Moolenaar	    allow creating .meta files in .CURDIR
33893955d011SMarcel Moolenaar	* boot-strap (TOOL_DIFF): aparently at least on linux distro
33903955d011SMarcel Moolenaar	  formats the output of 'type' differently - so eat any "()"
33913955d011SMarcel Moolenaar
33923955d011SMarcel Moolenaar2011-03-06  Simon J. Gerraty  <sjg@bad.crufty.net>
33933955d011SMarcel Moolenaar
33943955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110306
33953955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
33963955d011SMarcel Moolenaar	  o meta.c, only do getcwd() once
33973955d011SMarcel Moolenaar
33983955d011SMarcel Moolenaar2011-03-05  Simon J. Gerraty  <sjg@bad.crufty.net>
33993955d011SMarcel Moolenaar
34003955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110305
34013955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34023955d011SMarcel Moolenaar	  o correct sysV substitution handling of empty lhs and variable
34033955d011SMarcel Moolenaar	  o correct exists() check for dir with trailing /
34043955d011SMarcel Moolenaar	  o correct handling of modifiers for non-existant variables
34053955d011SMarcel Moolenaar	    during evaluation of conditionals.
34063955d011SMarcel Moolenaar	  o ensure MAP_FILE is defined.
34073955d011SMarcel Moolenaar	  o meta.c use curdir[] now exported by main.c
34083955d011SMarcel Moolenaar
34093955d011SMarcel Moolenaar2011-02-25  Simon J. Gerraty  <sjg@bad.crufty.net>
34103955d011SMarcel Moolenaar
34113955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110225
34123955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34133955d011SMarcel Moolenaar	  o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after
34143955d011SMarcel Moolenaar	    makefiles have been read.
34153955d011SMarcel Moolenaar	  o fix example of :? modifier in man page.
34163955d011SMarcel Moolenaar
34173955d011SMarcel Moolenaar2011-02-13  Simon J. Gerraty  <sjg@bad.crufty.net>
34183955d011SMarcel Moolenaar
34193955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110214
34203955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34213955d011SMarcel Moolenaar	  o meta.c handle realpath() failing when generating meta file
34223955d011SMarcel Moolenaar	    name.
34233955d011SMarcel Moolenaar
34243955d011SMarcel Moolenaar	* sigcompat.c: convert to ansi so we can use higher warning levels.
34253955d011SMarcel Moolenaar
34263955d011SMarcel Moolenaar
34273955d011SMarcel Moolenaar2011-02-07  Simon J. Gerraty  <sjg@bad.crufty.net>
34283955d011SMarcel Moolenaar
34293955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110207
34303955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34313955d011SMarcel Moolenaar	  o fix for bug in meta mode.
34323955d011SMarcel Moolenaar
34333955d011SMarcel Moolenaar2011-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
34343955d011SMarcel Moolenaar
34353955d011SMarcel Moolenaar	* parse.c: SunOS 5.8 at least does not have MAP_FILE
34363955d011SMarcel Moolenaar
34373955d011SMarcel Moolenaar2011-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
34383955d011SMarcel Moolenaar
34393955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110101
34403955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34413955d011SMarcel Moolenaar	  o use mmap(2) if available, for reading makefiles
34423955d011SMarcel Moolenaar
34433955d011SMarcel Moolenaar2010-12-15  Simon J. Gerraty  <sjg@bad.crufty.net>
34443955d011SMarcel Moolenaar
34453955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101215
34463955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34473955d011SMarcel Moolenaar	  o ensure meta_job_error() does not report a previous .meta file
34483955d011SMarcel Moolenaar	    as being culprit.
34493955d011SMarcel Moolenaar
34503955d011SMarcel Moolenaar2010-12-10  Simon J. Gerraty  <sjg@bad.crufty.net>
34513955d011SMarcel Moolenaar
34523955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101210
34533955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34543955d011SMarcel Moolenaar	  o meta_oodate: track cwd per process, and only consider target
34553955d011SMarcel Moolenaar	    out-of-date if missing file is outside make's CWD.
34563955d011SMarcel Moolenaar	    Ignore files in /tmp/ etc.
34573955d011SMarcel Moolenaar	  o to ensure unit-tests results match, need to control LC_ALL
34583955d011SMarcel Moolenaar	    as well as LANG.
34593955d011SMarcel Moolenaar	  o fix for parsing bug in var.c
34603955d011SMarcel Moolenaar
34613955d011SMarcel Moolenaar2010-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
34623955d011SMarcel Moolenaar
34633955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101126
34643955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34653955d011SMarcel Moolenaar	  o if stale dependency is an IMPSRC, search via .PATH
34663955d011SMarcel Moolenaar	  o meta_oodate: if a referenced file is missing, target is
34673955d011SMarcel Moolenaar	    out-of-date.
34683955d011SMarcel Moolenaar	  o meta_oodate: if a target uses .OODATE in its commands,
34693955d011SMarcel Moolenaar	    it (.OODATE) needs to be recomputed.
34703955d011SMarcel Moolenaar	  o keep a pointer to youngest child node, rather than just its
34713955d011SMarcel Moolenaar	    mtime.
34723955d011SMarcel Moolenaar
34733955d011SMarcel Moolenaar2010-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
34743955d011SMarcel Moolenaar
34753955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101101
34763955d011SMarcel Moolenaar
34773955d011SMarcel Moolenaar2010-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
34783955d011SMarcel Moolenaar
34793955d011SMarcel Moolenaar	* machine.sh: like os.sh,
34803955d011SMarcel Moolenaar	allow for uname -p producing useless drivel
34813955d011SMarcel Moolenaar
34823955d011SMarcel Moolenaar2010-09-13  Simon J. Gerraty  <sjg@bad.crufty.net>
34833955d011SMarcel Moolenaar
34843955d011SMarcel Moolenaar	* boot-strap: document configure knobs for meta and filemon.
34853955d011SMarcel Moolenaar
34863955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100911
34873955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
34883955d011SMarcel Moolenaar	  o meta.c - meta mode
34893955d011SMarcel Moolenaar
34903955d011SMarcel Moolenaar	* make-bootstrap.sh.in: handle meta.c
34913955d011SMarcel Moolenaar	* configure.in: add knobs for use_meta and filemon_h
34923955d011SMarcel Moolenaar	  also, look for dirname, str[e]sep and strlcpy
34933955d011SMarcel Moolenaar	* util.c: add simple err[x] and warn[x]
34943955d011SMarcel Moolenaar
34953955d011SMarcel Moolenaar2010-08-08  Simon J. Gerraty  <sjg@bad.crufty.net>
34963955d011SMarcel Moolenaar
34973955d011SMarcel Moolenaar	* boot-strap (TOOL_DIFF): set this to ensure tests use
34983955d011SMarcel Moolenaar	  the same version of diff that configure tested
34993955d011SMarcel Moolenaar
35003955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100808
35013955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35023955d011SMarcel Moolenaar	  o in jobs mode, when we discover we cannot make something,
35033955d011SMarcel Moolenaar	    call PrintOnError before exit.
35043955d011SMarcel Moolenaar
35053955d011SMarcel Moolenaar2010-08-06  Simon J. Gerraty  <sjg@bad.crufty.net>
35063955d011SMarcel Moolenaar
35073955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100806
35083955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35093955d011SMarcel Moolenaar	  o formatting fixes for ignored errors
35103955d011SMarcel Moolenaar	  o ensure jobs are cleaned up regardless of where wait() was called.
35113955d011SMarcel Moolenaar
35123955d011SMarcel Moolenaar2010-06-28  Simon J. Gerraty  <sjg@bad.crufty.net>
35133955d011SMarcel Moolenaar
35143955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100618
35153955d011SMarcel Moolenaar	* os.sh (MACHINE_ARCH): watch out for drivel from uname -p
35163955d011SMarcel Moolenaar
35173955d011SMarcel Moolenaar2010-06-16  Simon J. Gerraty  <sjg@bad.crufty.net>
35183955d011SMarcel Moolenaar
35193955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100616
35203955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35213955d011SMarcel Moolenaar	  o man page update
35223955d011SMarcel Moolenaar	  o call PrintOnError from JobFinish when we detect an error we
35233955d011SMarcel Moolenaar	    are not ignoring.
35243955d011SMarcel Moolenaar
35253955d011SMarcel Moolenaar2010-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
35263955d011SMarcel Moolenaar
35273955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100606
35283955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35293955d011SMarcel Moolenaar	  o man page update
35303955d011SMarcel Moolenaar
35313955d011SMarcel Moolenaar2010-06-05  Simon J. Gerraty  <sjg@bad.crufty.net>
35323955d011SMarcel Moolenaar
35333955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100605
35343955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35353955d011SMarcel Moolenaar	  o use bmake_signal() which is a wrapper around sigaction()
35363955d011SMarcel Moolenaar	    in place of signal()
35373955d011SMarcel Moolenaar	  o add .export-env to allow exporting variables to environment
35383955d011SMarcel Moolenaar	    without tracking (so no re-export when the internal value is
35393955d011SMarcel Moolenaar	    changed).
35403955d011SMarcel Moolenaar
35413955d011SMarcel Moolenaar2010-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
35423955d011SMarcel Moolenaar
35433955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100524
35443955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35453955d011SMarcel Moolenaar	  o fix for .info et al being greedy.
35463955d011SMarcel Moolenaar
35473955d011SMarcel Moolenaar2010-05-23  Simon J. Gerraty  <sjg@bad.crufty.net>
35483955d011SMarcel Moolenaar
35493955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100520
35503955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35513955d011SMarcel Moolenaar	  o back to using realpath on argv[0]
35523955d011SMarcel Moolenaar	    but only if contains '/' and does not start with '/'.
35533955d011SMarcel Moolenaar
35543955d011SMarcel Moolenaar2010-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
35553955d011SMarcel Moolenaar
35563955d011SMarcel Moolenaar	* boot-strap: use absolute path for bmake when running tests.
35573955d011SMarcel Moolenaar
35583955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION):  bump version to 20100510
35593955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35603955d011SMarcel Moolenaar	  o revert use of realpath on argv[0]
35613955d011SMarcel Moolenaar	    too many corner cases.
35623955d011SMarcel Moolenaar	  o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target.
35633955d011SMarcel Moolenaar
35643955d011SMarcel Moolenaar2010-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
35653955d011SMarcel Moolenaar
35663955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100505
35673955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35683955d011SMarcel Moolenaar	  o fix for missed SIGCHLD when compiled with SunPRO
35693955d011SMarcel Moolenaar	    actually for bmake, defining FORCE_POSIX_SIGNALS would have
35703955d011SMarcel Moolenaar	    done the job.
35713955d011SMarcel Moolenaar
35723955d011SMarcel Moolenaar2010-04-30  Simon J. Gerraty  <sjg@bad.crufty.net>
35733955d011SMarcel Moolenaar
35743955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100430
35753955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35763955d011SMarcel Moolenaar	  o fflush stdout before writing to stdout
35773955d011SMarcel Moolenaar
35783955d011SMarcel Moolenaar2010-04-23  Simon J. Gerraty  <sjg@bad.crufty.net>
35793955d011SMarcel Moolenaar
35803955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100423
35813955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
35823955d011SMarcel Moolenaar	  o updated unit tests for Haiku (this time for sure).
35833955d011SMarcel Moolenaar	* boot-strap: based on patch from joerg
35843955d011SMarcel Moolenaar	  honor --with-default-sys-path better.
35853955d011SMarcel Moolenaar	* boot-strap: remove mention of --with-prefix-sys-path
35863955d011SMarcel Moolenaar
35873955d011SMarcel Moolenaar2010-04-22  Simon J. Gerraty  <sjg@bad.crufty.net>
35883955d011SMarcel Moolenaar
35893955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100422
35903955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
35913955d011SMarcel Moolenaar	  o fix for vfork() on Darwin.
35923955d011SMarcel Moolenaar	  o fix for bogus $TMPDIR.
35933955d011SMarcel Moolenaar	  o set .MAKE.MODE=compat for -B
35943955d011SMarcel Moolenaar	  o set .MAKE.JOBS=max_jobs for -j max_jobs
35953955d011SMarcel Moolenaar	  o allow unit-tests to run without any *.mk
35963955d011SMarcel Moolenaar	  o unit-tests/modmisc be more conservative in dirs presumed to exist.
35973955d011SMarcel Moolenaar	* boot-strap: ignore /usr/share/mk except on NetBSD.
35983955d011SMarcel Moolenaar	* unit-tests/Makefile.in: set LANG=C when running unit-tests to
35993955d011SMarcel Moolenaar	  ensure sort(1) behaves as expected.
36003955d011SMarcel Moolenaar
36013955d011SMarcel Moolenaar2010-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
36023955d011SMarcel Moolenaar
36033955d011SMarcel Moolenaar	* boot-strap: add FindHereOrAbove so we can use -m .../mk
36043955d011SMarcel Moolenaar
36053955d011SMarcel Moolenaar2010-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
36063955d011SMarcel Moolenaar
36073955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100420
36083955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
36093955d011SMarcel Moolenaar	  o fix for variable realpath() behavior.
36103955d011SMarcel Moolenaar	    we have to stat(2) the result to be sure.
36113955d011SMarcel Moolenaar	  o fix for .export (all) when nested vars use :sh
36123955d011SMarcel Moolenaar
36133955d011SMarcel Moolenaar2010-04-14  Simon J. Gerraty  <sjg@bad.crufty.net>
36143955d011SMarcel Moolenaar
36153955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100414
36163955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
36173955d011SMarcel Moolenaar	  o use realpath to resolve argv[0] (for .MAKE) if needed.
36183955d011SMarcel Moolenaar	  o add realpath from libc.
36193955d011SMarcel Moolenaar	  o add :tA to resolve variable via realpath(3) if possible.
36203955d011SMarcel Moolenaar
36213955d011SMarcel Moolenaar2010-04-08  Simon J. Gerraty  <sjg@bad.crufty.net>
36223955d011SMarcel Moolenaar
36233955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100408
36243955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
36253955d011SMarcel Moolenaar	  o unit tests for .ERROR, .error
36263955d011SMarcel Moolenaar	  o fix for .ERROR to ensure it cannot be default target.
36273955d011SMarcel Moolenaar
36283955d011SMarcel Moolenaar2010-04-06  Simon J. Gerraty  <sjg@bad.crufty.net>
36293955d011SMarcel Moolenaar
36303955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100406
36313955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
36323955d011SMarcel Moolenaar	  o fix for compat mode "Error code" going to debug_file.
36333955d011SMarcel Moolenaar	  o fix for .ALLSRC being populated twice.
36343955d011SMarcel Moolenaar	  o support for .info, .warning and .error directives
36353955d011SMarcel Moolenaar	  o .MAKE.MODE to control make's operational mode
36363955d011SMarcel Moolenaar	  o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile
36373955d011SMarcel Moolenaar	    name(s).
36383955d011SMarcel Moolenaar	  o .MAKE.DEPENDFILE to control the name of the depend file
36393955d011SMarcel Moolenaar	  o .ERROR target - run on failure.
36403955d011SMarcel Moolenaar
36413955d011SMarcel Moolenaar2010-03-18  Simon J. Gerraty  <sjg@bad.crufty.net>
36423955d011SMarcel Moolenaar
36433955d011SMarcel Moolenaar	* make-bootstrap.sh.in: extract MAKE_VERSION from Makefile
36443955d011SMarcel Moolenaar
36453955d011SMarcel Moolenaar	* os.sh,arch.c: patch for Haiku from joerg at netbsd
36463955d011SMarcel Moolenaar
36473955d011SMarcel Moolenaar2010-03-17  Simon J. Gerraty  <sjg@bad.crufty.net>
36483955d011SMarcel Moolenaar
36493955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100222
36503955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
36513955d011SMarcel Moolenaar	  o better error msg for .for with mutiple inter vars
36523955d011SMarcel Moolenaar
36533955d011SMarcel Moolenaar	* boot-strap:
36543955d011SMarcel Moolenaar	  o use make-bootstrap.sh from joerg at netbsd
36553955d011SMarcel Moolenaar	    to avoid the need for a native make when bootstrapping.
36563955d011SMarcel Moolenaar	  o add "" everywhere ;-)
36573955d011SMarcel Moolenaar	  o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1
36583955d011SMarcel Moolenaar	    otherwise the pre-formated version.
36593955d011SMarcel Moolenaar
36603955d011SMarcel Moolenaar2010-01-04  Simon J. Gerraty  <sjg@bad.crufty.net>
36613955d011SMarcel Moolenaar
36623955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100102
36633955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36643955d011SMarcel Moolenaar	  o fix for -m .../
36653955d011SMarcel Moolenaar
36663955d011SMarcel Moolenaar2009-11-18  Simon J. Gerraty  <sjg@void.crufty.net>
36673955d011SMarcel Moolenaar
36683955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20091118
36693955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36703955d011SMarcel Moolenaar	  o .unexport
36713955d011SMarcel Moolenaar	  o report lines that start with '.' and should have ':'
36723955d011SMarcel Moolenaar	    (catch typo's of .el*if).
36733955d011SMarcel Moolenaar
36743955d011SMarcel Moolenaar2009-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
36753955d011SMarcel Moolenaar
36763955d011SMarcel Moolenaar	* configure.in: Ensure that srcdir and mksrc are absolute paths.
36773955d011SMarcel Moolenaar
36783955d011SMarcel Moolenaar2009-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
36793955d011SMarcel Moolenaar
36803955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): fix version to 20091007
36813955d011SMarcel Moolenaar
36823955d011SMarcel Moolenaar2009-10-07  Simon J. Gerraty  <sjg@void.crufty.net>
36833955d011SMarcel Moolenaar
36843955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 200910007
36853955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36863955d011SMarcel Moolenaar	  o fix for parsing of :S;...;...; applied to .for loop iterator
36873955d011SMarcel Moolenaar	    appearing in a dependency line.
36883955d011SMarcel Moolenaar
36893955d011SMarcel Moolenaar2009-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
36903955d011SMarcel Moolenaar
36913955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090909
36923955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
36933955d011SMarcel Moolenaar	  o fix for -C, .CURDIR and .OBJDIR
36943955d011SMarcel Moolenaar	* boot-strap:
36953955d011SMarcel Moolenaar	  o allow share_dir to be set independent of prefix.
36963955d011SMarcel Moolenaar	  o select default share_dir better when prefix ends in $HOST_TARGET
36973955d011SMarcel Moolenaar	  o if FORCE_BSD_MK etc were set, include them in the suggested
36983955d011SMarcel Moolenaar	    install-mk command.
36993955d011SMarcel Moolenaar
37003955d011SMarcel Moolenaar2009-09-08  Simon J. Gerraty  <sjg@void.crufty.net>
37013955d011SMarcel Moolenaar
37023955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090908
37033955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37043955d011SMarcel Moolenaar	  o .MAKE.LEVEL for recursion tracking
37053955d011SMarcel Moolenaar	  o fix for :M scanning \:
37063955d011SMarcel Moolenaar
37073955d011SMarcel Moolenaar2009-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
37083955d011SMarcel Moolenaar
37093955d011SMarcel Moolenaar	* configure.in: Don't -D__EXTENSIONS__ if
37103955d011SMarcel Moolenaar	AC_USE_SYSTEM_EXTENSIONS says "no".
37113955d011SMarcel Moolenaar
37123955d011SMarcel Moolenaar2009-08-26  Simon J. Gerraty  <sjg@void.crufty.net>
37133955d011SMarcel Moolenaar
37143955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090826
37153955d011SMarcel Moolenaar	Simplify MAKE_VERSION to just the bare date.
37163955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37173955d011SMarcel Moolenaar	  o -C directory support.
37183955d011SMarcel Moolenaar	  o support for SIGINFO
37193955d011SMarcel Moolenaar	  o use $TMPDIR for temp files.
37203955d011SMarcel Moolenaar	  o child of vfork should be careful about modifying parent's state.
37213955d011SMarcel Moolenaar
37223955d011SMarcel Moolenaar
37233955d011SMarcel Moolenaar2009-03-26  Simon J. Gerraty  <sjg@void.crufty.net>
37243955d011SMarcel Moolenaar
37253955d011SMarcel Moolenaar	* Appy some patches for MiNT from David Brownlee
37263955d011SMarcel Moolenaar
37273955d011SMarcel Moolenaar2009-02-26  Simon J. Gerraty  <sjg@void.crufty.net>
37283955d011SMarcel Moolenaar
37293955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20090222
37303955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37313955d011SMarcel Moolenaar	  o Possible null pointer de-ref in Var_Set.
37323955d011SMarcel Moolenaar
37333955d011SMarcel Moolenaar2009-02-08  Simon J. Gerraty  <sjg@void.crufty.net>
37343955d011SMarcel Moolenaar
37353955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20090204
37363955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37373955d011SMarcel Moolenaar	  o bmake_malloc et al moved to their own .c
37383955d011SMarcel Moolenaar	  o Count both () and {} when looking for the end of a :M pattern
37393955d011SMarcel Moolenaar	  o Change 'Buffer' so that it is the actual struct, not a pointer to it.
37403955d011SMarcel Moolenaar	  o strlist.c - functions for processing extendable arrays of pointers to strings.
37413955d011SMarcel Moolenaar	  o ClientData replaced with void *, so const void * can be used.
37423955d011SMarcel Moolenaar	  o New debug flag C for DEBUG_CWD
37433955d011SMarcel Moolenaar
37443955d011SMarcel Moolenaar2008-11-11  Simon J. Gerraty  <sjg@void.crufty.net>
37453955d011SMarcel Moolenaar
37463955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081111
37473955d011SMarcel Moolenaar	  Apply patch from Joerg Sonnenberge to
37483955d011SMarcel Moolenaar	  configure.in:
37493955d011SMarcel Moolenaar	  o remove some redundant checks
37503955d011SMarcel Moolenaar	  o check for emlloc etc only in libutil and require the whole family.
37513955d011SMarcel Moolenaar	  util.c:
37523955d011SMarcel Moolenaar	  o remove [v]asprintf which is no longer used.
37533955d011SMarcel Moolenaar
37543955d011SMarcel Moolenaar2008-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
37553955d011SMarcel Moolenaar
37563955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081101
37573955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37583955d011SMarcel Moolenaar	  o util.c: avoid use of putenv() - christos
37593955d011SMarcel Moolenaar
37603955d011SMarcel Moolenaar2008-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
37613955d011SMarcel Moolenaar
37623955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081030
37633955d011SMarcel Moolenaar	  pick up man page tweaks.
37643955d011SMarcel Moolenaar
37653955d011SMarcel Moolenaar2008-10-29  Simon J. Gerraty  <sjg@void.crufty.net>
37663955d011SMarcel Moolenaar
37673955d011SMarcel Moolenaar	* Makefile.in: move processing of LIBOBJS to after is definition!
37683955d011SMarcel Moolenaar	  thus we'll have getenv.c in SRCS only if needed.
37693955d011SMarcel Moolenaar
37703955d011SMarcel Moolenaar	* make.1: add examples of how to use :?
37713955d011SMarcel Moolenaar
37723955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081029
37733955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37743955d011SMarcel Moolenaar	  o fix for .END processing with -j
37753955d011SMarcel Moolenaar	  o segfault from Parse_Error when no makefile is open
37763955d011SMarcel Moolenaar	  o handle numeric expressions in any variable expansion
37773955d011SMarcel Moolenaar	  o debug output now defaults to stderr, -dF to change it - apb
37783955d011SMarcel Moolenaar	  o make now uses bmake_malloc etc so that it can build natively
37793955d011SMarcel Moolenaar	    on A/UX - wasn't an issue for bmake, but we want to keep in sync.
37803955d011SMarcel Moolenaar
37813955d011SMarcel Moolenaar2008-09-27  Simon J. Gerraty  <sjg@void.crufty.net>
37823955d011SMarcel Moolenaar
37833955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080808
37843955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37853955d011SMarcel Moolenaar	  o fix for PR/38840: Pierre Pronchery: make crashes while parsing
37863955d011SMarcel Moolenaar	    long lines in Makefiles
37873955d011SMarcel Moolenaar	  o optimizations for VarQuote by joerg
37883955d011SMarcel Moolenaar	  o fix for PR/38756: dominik: make dumps core on invalid makefile
37893955d011SMarcel Moolenaar
37903955d011SMarcel Moolenaar2008-05-15  Simon J. Gerraty  <sjg@void.crufty.net>
37913955d011SMarcel Moolenaar
37923955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080515
37933955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
37943955d011SMarcel Moolenaar	  o fix skip setting vars in VAR_GLOBAL context, to handle
37953955d011SMarcel Moolenaar	    cases where VAR_CMD is used for other than command line vars.
37963955d011SMarcel Moolenaar
37973955d011SMarcel Moolenaar2008-05-14  Simon J. Gerraty  <sjg@void.crufty.net>
37983955d011SMarcel Moolenaar
37993955d011SMarcel Moolenaar	* boot-strap (make_version): we may need to look in
38003955d011SMarcel Moolenaar	$prefix/share/mk for sys.mk
38013955d011SMarcel Moolenaar
38023955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080514
38033955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38043955d011SMarcel Moolenaar	  o skip setting vars in VAR_GLOBAL context, when already set in
38053955d011SMarcel Moolenaar	  VAR_CMD which takes precedence.
38063955d011SMarcel Moolenaar
38073955d011SMarcel Moolenaar2008-03-30  Simon J. Gerraty  <sjg@void.crufty.net>
38083955d011SMarcel Moolenaar
38093955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump version to 20080330
38103955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38113955d011SMarcel Moolenaar	  o fix for ?= when LHS contains variable reference.
38123955d011SMarcel Moolenaar
38133955d011SMarcel Moolenaar2008-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
38143955d011SMarcel Moolenaar
38153955d011SMarcel Moolenaar	* merge some patches from NetBSD pkgsrc.
38163955d011SMarcel Moolenaar
38173955d011SMarcel Moolenaar	* makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
38183955d011SMarcel Moolenaar	the MAKSYSPATH used during bootstrap.
38193955d011SMarcel Moolenaar
38203955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080215
38213955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38223955d011SMarcel Moolenaar	  o warn if non-space chars follow 'empty' in a conditional.
38233955d011SMarcel Moolenaar
38243955d011SMarcel Moolenaar2008-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
38253955d011SMarcel Moolenaar
38263955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080118
38273955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38283955d011SMarcel Moolenaar	  o consider dependencies read from .depend as optional - dsl
38293955d011SMarcel Moolenaar	  o remember when buffer for reading makefile grows - dsl
38303955d011SMarcel Moolenaar	  o add -dl (aka LOUD) - David O'Brien
38313955d011SMarcel Moolenaar
38323955d011SMarcel Moolenaar2007-10-22  Simon J. Gerraty  <sjg@void.crufty.net>
38333955d011SMarcel Moolenaar
38343955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071022
38353955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38363955d011SMarcel Moolenaar	  o Allow .PATH<suffix> to be used for .include ""
38373955d011SMarcel Moolenaar
38383955d011SMarcel Moolenaar	* boot-strap: source default settings from .bmake-boot-strap.rc
38393955d011SMarcel Moolenaar
38403955d011SMarcel Moolenaar2007-10-16  Simon J. Gerraty  <sjg@void.crufty.net>
38413955d011SMarcel Moolenaar
38423955d011SMarcel Moolenaar	* Makefile.in: fix maninstall on various systems
38433955d011SMarcel Moolenaar	  provided that our man.mk is used.
38443955d011SMarcel Moolenaar	  For non-BSD systems we install the preformatted page
38453955d011SMarcel Moolenaar	  into $MANDIR/cat1
38463955d011SMarcel Moolenaar
38473955d011SMarcel Moolenaar2007-10-15  Simon J. Gerraty  <sjg@void.crufty.net>
38483955d011SMarcel Moolenaar
38493955d011SMarcel Moolenaar	* boot-strap: make bmake.1 too, so maninstall works.
38503955d011SMarcel Moolenaar
38513955d011SMarcel Moolenaar2007-10-14  Simon J. Gerraty  <sjg@void.crufty.net>
38523955d011SMarcel Moolenaar
38533955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071014
38543955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38553955d011SMarcel Moolenaar	  o revamped handling of defshell - configure no longer needs to
38563955d011SMarcel Moolenaar	    know the content of the shells array - apb
38573955d011SMarcel Moolenaar	  o stop Var_Subst modifying its input - apb
38583955d011SMarcel Moolenaar	  o avoid calling ParseTrackInput too often - dsl
38593955d011SMarcel Moolenaar
38603955d011SMarcel Moolenaar2007-10-11  Simon J. Gerraty  <sjg@void.crufty.net>
38613955d011SMarcel Moolenaar
38623955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071011
38633955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38643955d011SMarcel Moolenaar	  o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.
38653955d011SMarcel Moolenaar
38663955d011SMarcel Moolenaar	* sigcompat.c: some tweaks for HP-UX 11.x based on
38673955d011SMarcel Moolenaar	  patch from Tobias Nygren
38683955d011SMarcel Moolenaar
38693955d011SMarcel Moolenaar	* configure.in: update handling of --with-defshell to match
38703955d011SMarcel Moolenaar	  new make behavior.  --with-defshell=/usr/xpg4/bin/sh
38713955d011SMarcel Moolenaar	  will now do what one might hope - provided the chosen shell
38723955d011SMarcel Moolenaar	  behaves enough like sh.
38733955d011SMarcel Moolenaar
38743955d011SMarcel Moolenaar2007-10-08  Simon J. Gerraty  <sjg@void.crufty.net>
38753955d011SMarcel Moolenaar
38763955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20071008
38773955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38783955d011SMarcel Moolenaar	  o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
38793955d011SMarcel Moolenaar	  o .export/.MAKE.EXPORTED - export of variables - sjg
38803955d011SMarcel Moolenaar	  o .MAKE.MAKEFILES - track all makefiles read - sjg
38813955d011SMarcel Moolenaar	  o performance improvements - dsl
38823955d011SMarcel Moolenaar	  o revamp parallel job scheduling - dsl
38833955d011SMarcel Moolenaar
38843955d011SMarcel Moolenaar2006-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
38853955d011SMarcel Moolenaar
38863955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060728
38873955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38883955d011SMarcel Moolenaar	  o extra debug info during variable and cond processing - sjg
38893955d011SMarcel Moolenaar	  o shell definition now covers newline - rillig
38903955d011SMarcel Moolenaar	  o minor mem leak in PrintOnError - sjg
38913955d011SMarcel Moolenaar
38923955d011SMarcel Moolenaar2006-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
38933955d011SMarcel Moolenaar
38943955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump to 20060511
38953955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
38963955d011SMarcel Moolenaar	  o more memory leaks - coverity
38973955d011SMarcel Moolenaar	  o possible overflow in ArchFindMember - coverity
38983955d011SMarcel Moolenaar	  o extract variable modifier code out of Var_Parse()
38993955d011SMarcel Moolenaar	    so it can be called recursively - sjg
39003955d011SMarcel Moolenaar	  o unit-tests/moderrs - sjg
39013955d011SMarcel Moolenaar
39023955d011SMarcel Moolenaar2006-04-12  Simon J. Gerraty  <sjg@void.crufty.net>
39033955d011SMarcel Moolenaar
39043955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060412
39053955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
39063955d011SMarcel Moolenaar	  o fixes for some memory leaks - coverity
39073955d011SMarcel Moolenaar	  o only read first sys.mk etc when searching sysIncPath - sjg
39083955d011SMarcel Moolenaar
39093955d011SMarcel Moolenaar	* main.c (ReadMakefile): remove hack for __INTERIX that prevented
39103955d011SMarcel Moolenaar	setting ${MAKEFILE} - OBATA Akio
39113955d011SMarcel Moolenaar
39123955d011SMarcel Moolenaar2006-03-18  Simon J. Gerraty  <sjg@void.crufty.net>
39133955d011SMarcel Moolenaar
39143955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060318
39153955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
39163955d011SMarcel Moolenaar	  o cleanup of job.c to remove remote handling, distcc is more
39173955d011SMarcel Moolenaar	    useful and this code was likely bit-rotting - dsl
39183955d011SMarcel Moolenaar	  o fix for :P modifier - sjg
39193955d011SMarcel Moolenaar	* boot-strap: set default prefix to something reasonable
39203955d011SMarcel Moolenaar	  (for me anyway).
39213955d011SMarcel Moolenaar
39223955d011SMarcel Moolenaar2006-03-01  Simon J. Gerraty  <sjg@void.crufty.net>
39233955d011SMarcel Moolenaar
39243955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060301
39253955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
39263955d011SMarcel Moolenaar	  o make .WAIT apply recursively, document and test case - apb
39273955d011SMarcel Moolenaar	  o allow variable modifiers in a variable appear anywhere in
39283955d011SMarcel Moolenaar	    modifier list, document and test case - sjg
39293955d011SMarcel Moolenaar
39303955d011SMarcel Moolenaar2006-02-22  Simon J. Gerraty  <sjg@void.crufty.net>
39313955d011SMarcel Moolenaar
39323955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060222
39333955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
39343955d011SMarcel Moolenaar	  o improved job token handling - dsl
39353955d011SMarcel Moolenaar	  o SIG_DFL the correct signal before exec - dsl
39363955d011SMarcel Moolenaar	  o more debug info during parsing - dsl
39373955d011SMarcel Moolenaar	  o allow variable modifiers to be specified via variable - sjg
39383955d011SMarcel Moolenaar	* boot-strap: explain why we died if no mksrc
39393955d011SMarcel Moolenaar
39403955d011SMarcel Moolenaar2005-11-05  Simon J. Gerraty  <sjg@void.crufty.net>
39413955d011SMarcel Moolenaar
39423955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051105
39433955d011SMarcel Moolenaar	* configure.in: always set default_sys_path
39443955d011SMarcel Moolenaar	  default is ${prefix}/share/mk
39453955d011SMarcel Moolenaar	  - remove prefix_sys_path, anyone wanting more than above
39463955d011SMarcel Moolenaar	    needs to set it manually.
39473955d011SMarcel Moolenaar
39483955d011SMarcel Moolenaar2005-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
39493955d011SMarcel Moolenaar
39503955d011SMarcel Moolenaar	* boot-strap: make this a bit easier for pkgsrc folk.
39513955d011SMarcel Moolenaar	  bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
39523955d011SMarcel Moolenaar	  'mips' while pkgsrc wants 'mipseb' or 'mipsel'
39533955d011SMarcel Moolenaar
39543955d011SMarcel Moolenaar2005-11-02  Simon J. Gerraty  <sjg@void.crufty.net>
39553955d011SMarcel Moolenaar
39563955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051102
39573955d011SMarcel Moolenaar	* job.c (JobFinish): fix likely ancient merge lossage
39583955d011SMarcel Moolenaar	fix from Todd Vierling.
39593955d011SMarcel Moolenaar	* boot-strap (srcdir): allow setting mksrc=none
39603955d011SMarcel Moolenaar
39613955d011SMarcel Moolenaar2005-10-31  Simon J. Gerraty  <sjg@void.crufty.net>
39623955d011SMarcel Moolenaar
39633955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051031
39643955d011SMarcel Moolenaar	* ranlib.h: skip on OSF too.
39653955d011SMarcel Moolenaar	  (NetBSD PR 31864)
39663955d011SMarcel Moolenaar
39673955d011SMarcel Moolenaar2005-10-10  Simon J. Gerraty  <sjg@void.crufty.net>
39683955d011SMarcel Moolenaar
39693955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051002
39703955d011SMarcel Moolenaar	  fix a silly typo
39713955d011SMarcel Moolenaar
39723955d011SMarcel Moolenaar2005-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
39733955d011SMarcel Moolenaar
39743955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051001
39753955d011SMarcel Moolenaar	  support for UnixWare and some other systems,
39763955d011SMarcel Moolenaar	  based on patches from pkgsrc/bootstrap
39773955d011SMarcel Moolenaar
39783955d011SMarcel Moolenaar2005-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
39793955d011SMarcel Moolenaar
39803955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050901
39813955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
39823955d011SMarcel Moolenaar	  o possible parse error causing us to wander off.
39833955d011SMarcel Moolenaar
39843955d011SMarcel Moolenaar2005-06-06  Simon J. Gerraty  <sjg@void.crufty.net>
39853955d011SMarcel Moolenaar
39863955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050606
39873955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
39883955d011SMarcel Moolenaar	  o :0x modifier for randomizing a list
39893955d011SMarcel Moolenaar	  o fixes for a number of -Wuninitialized issues.
39903955d011SMarcel Moolenaar
39913955d011SMarcel Moolenaar2005-05-30  Simon J. Gerraty  <sjg@void.crufty.net>
39923955d011SMarcel Moolenaar
39933955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050530
39943955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
39953955d011SMarcel Moolenaar	  o Handle dependencies for .BEGIN, .END and .INTERRUPT
39963955d011SMarcel Moolenaar
39973955d011SMarcel Moolenaar	* README: was seriously out of date.
39983955d011SMarcel Moolenaar
39993955d011SMarcel Moolenaar2005-03-22  Simon J. Gerraty  <sjg@void.crufty.net>
40003955d011SMarcel Moolenaar
40013955d011SMarcel Moolenaar	* Important to use .MAKE rather than MAKE.
40023955d011SMarcel Moolenaar
40033955d011SMarcel Moolenaar2005-03-15  Simon J. Gerraty  <sjg@void.crufty.net>
40043955d011SMarcel Moolenaar
40053955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050315
40063955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
40073955d011SMarcel Moolenaar	  o don't mistake .elsefoo for .else
40083955d011SMarcel Moolenaar	  o use suffix-specific search path correctly
40093955d011SMarcel Moolenaar	  o bunch of style nits
40103955d011SMarcel Moolenaar
40113955d011SMarcel Moolenaar2004-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
40123955d011SMarcel Moolenaar
40133955d011SMarcel Moolenaar	* boot-strap:
40143955d011SMarcel Moolenaar	o ensure that args to --src and --with-mksrc
40153955d011SMarcel Moolenaar	  are resolved before giving them to configure.
40163955d011SMarcel Moolenaar	o add -o "objdir" so that builder can control it,
40173955d011SMarcel Moolenaar	  default is $OS as determined by os.sh
40183955d011SMarcel Moolenaar	o add -q to suppress all the install instructions.
40193955d011SMarcel Moolenaar
40203955d011SMarcel Moolenaar2004-05-08  Simon J. Gerraty  <sjg@void.crufty.net>
40213955d011SMarcel Moolenaar
40223955d011SMarcel Moolenaar	* Remove __IDSTRING()
40233955d011SMarcel Moolenaar
40243955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040508
40253955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
40263955d011SMarcel Moolenaar	  o posix fixes
40273955d011SMarcel Moolenaar	    - remove '-e' from compat mode
40283955d011SMarcel Moolenaar	    - add support for '+' command-line prefix.
40293955d011SMarcel Moolenaar	  o fix for handling '--' on command-line.
40303955d011SMarcel Moolenaar	  o fix include in lst.lib/lstInt.h to simplify '-I's
40313955d011SMarcel Moolenaar	  o we also picked up replacement of MAKE_BOOTSTRAP
40323955d011SMarcel Moolenaar	    with !MAKE_NATIVE which is a noop, but possibly confusing.
40333955d011SMarcel Moolenaar
40343955d011SMarcel Moolenaar2004-04-14  Simon J. Gerraty  <sjg@void.crufty.net>
40353955d011SMarcel Moolenaar
40363955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040414
40373955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
40383955d011SMarcel Moolenaar	  o allow quoted strings on lhs of conditionals
40393955d011SMarcel Moolenaar	  o issue warning when extra .else is seen
40403955d011SMarcel Moolenaar	  o print line numer when errors encountered during parsing from
40413955d011SMarcel Moolenaar	  string.
40423955d011SMarcel Moolenaar
40433955d011SMarcel Moolenaar2004-02-20  Simon J. Gerraty  <sjg@void.crufty.net>
40443955d011SMarcel Moolenaar
40453955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump to 20040220
40463955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
40473955d011SMarcel Moolenaar	  o fix for old :M parsing bug.
40483955d011SMarcel Moolenaar	  o re-jigged unit-tests
40493955d011SMarcel Moolenaar
40503955d011SMarcel Moolenaar2004-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
40513955d011SMarcel Moolenaar
40523955d011SMarcel Moolenaar	* Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,}
40533955d011SMarcel Moolenaar	so that './bmake -f Makefile test' works.
40543955d011SMarcel Moolenaar
40553955d011SMarcel Moolenaar2004-02-14  Simon J. Gerraty  <sjg@void.crufty.net>
40563955d011SMarcel Moolenaar
40573955d011SMarcel Moolenaar	* Makefile.in: (BMAKE_VERSION): bump to 20040214
40583955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
40593955d011SMarcel Moolenaar	  o search upwards for *.mk
40603955d011SMarcel Moolenaar	  o fix for double free of var substitution buffers
40613955d011SMarcel Moolenaar	  o use of getopt replaced with custom code, since the usage
40623955d011SMarcel Moolenaar	  (re-scanning) isn't posix compatible.
40633955d011SMarcel Moolenaar
40643955d011SMarcel Moolenaar2004-02-12  Simon J. Gerraty  <sjg@void.crufty.net>
40653955d011SMarcel Moolenaar
40663955d011SMarcel Moolenaar	* arch.c: don't include ranlib.h on ELF systems
40673955d011SMarcel Moolenaar	(thanks to Chuck Cranor <chuck@ece.cmu.edu>).
40683955d011SMarcel Moolenaar
40693955d011SMarcel Moolenaar2004-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
40703955d011SMarcel Moolenaar
40713955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040118
40723955d011SMarcel Moolenaar
40733955d011SMarcel Moolenaar	* boot-strap (while): export vars we assign to on cmdline
40743955d011SMarcel Moolenaar	* unit-test/Makefile.in: ternary is .PHONY
40753955d011SMarcel Moolenaar
40763955d011SMarcel Moolenaar2004-01-08  Simon J. Gerraty  <sjg@void.crufty.net>
40773955d011SMarcel Moolenaar
40783955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20040108
40793955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
40803955d011SMarcel Moolenaar	  o fix for ternary modifier
40813955d011SMarcel Moolenaar
40823955d011SMarcel Moolenaar2004-01-06  Simon J. Gerraty  <sjg@void.crufty.net>
40833955d011SMarcel Moolenaar
40843955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20040105
40853955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
40863955d011SMarcel Moolenaar	  o fix for cond.c to handle compound expressions better
40873955d011SMarcel Moolenaar	  o variable expansion within sysV style replacements
40883955d011SMarcel Moolenaar
40893955d011SMarcel Moolenaar2003-12-22  Simon J. Gerraty  <sjg@void.crufty.net>
40903955d011SMarcel Moolenaar
40913955d011SMarcel Moolenaar	* Make portable snprintf safer - output to /dev/null first to
40923955d011SMarcel Moolenaar	check space needed.
40933955d011SMarcel Moolenaar
40943955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20031222
40953955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
40963955d011SMarcel Moolenaar	  o -dg3 to show input graph when things go wrong.
40973955d011SMarcel Moolenaar	  o explicitly look for makefiles in objdir if not found in curdir so
40983955d011SMarcel Moolenaar	    that errors in .depend etc will be reported accurarely.
40993955d011SMarcel Moolenaar	  o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
41003955d011SMarcel Moolenaar	    instead as it more accurately reflects the expected behavior and
41013955d011SMarcel Moolenaar	    is more consistently implemented.
41023955d011SMarcel Moolenaar	  o avoid use of asprintf.
41033955d011SMarcel Moolenaar
41043955d011SMarcel Moolenaar2003-09-28  Simon J. Gerraty  <sjg@void.crufty.net>
41053955d011SMarcel Moolenaar
41063955d011SMarcel Moolenaar	* util.c: Add asprintf and vasprintf.
41073955d011SMarcel Moolenaar
41083955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030928
41093955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
41103955d011SMarcel Moolenaar	:[] modifier - allows picking words from a variable.
41113955d011SMarcel Moolenaar	:tW modifier - allows treating value as one big word.
41123955d011SMarcel Moolenaar	W flag for :C and :S - allows treating value as one big word.
41133955d011SMarcel Moolenaar
41143955d011SMarcel Moolenaar2003-09-12  Simon J. Gerraty  <sjg@void.crufty.net>
41153955d011SMarcel Moolenaar
41163955d011SMarcel Moolenaar	* Merge with NetBSD make
41173955d011SMarcel Moolenaar	pick up -de flag to enable printing failed command.
41183955d011SMarcel Moolenaar	don't skip 1st two dir entries (normally . and ..) since
41193955d011SMarcel Moolenaar	coda does not have them.
41203955d011SMarcel Moolenaar
41213955d011SMarcel Moolenaar2003-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
41223955d011SMarcel Moolenaar
41233955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030909
41243955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
41253955d011SMarcel Moolenaar	- changes for -V '${VAR}' to print fully expanded value
41263955d011SMarcel Moolenaar	  cf. -V VAR
41273955d011SMarcel Moolenaar	- CompatRunCommand now prints the command that failed.
41283955d011SMarcel Moolenaar	- several files got updated 3 clause Berkeley license.
41293955d011SMarcel Moolenaar
41303955d011SMarcel Moolenaar2003-08-02  Simon J. Gerraty  <sjg@void.crufty.net>
41313955d011SMarcel Moolenaar
41323955d011SMarcel Moolenaar	* boot-strap: Allow setting configure args on command line.
41333955d011SMarcel Moolenaar
41343955d011SMarcel Moolenaar2003-07-31  Simon J. Gerraty  <sjg@void.crufty.net>
41353955d011SMarcel Moolenaar
41363955d011SMarcel Moolenaar	* configure.in: add --with-defshell to allow sh or ksh
41373955d011SMarcel Moolenaar	to be selected as default shell.
41383955d011SMarcel Moolenaar
41393955d011SMarcel Moolenaar	* Makefile.in: bump version to 20030731
41403955d011SMarcel Moolenaar
41413955d011SMarcel Moolenaar	* Merge with NetBSD make
41423955d011SMarcel Moolenaar	Pick up .SHELL spec for ksh and associate man page changes.
41433955d011SMarcel Moolenaar	Also compat mode now uses the same shell specs.
41443955d011SMarcel Moolenaar
41453955d011SMarcel Moolenaar2003-07-29  Simon J. Gerraty  <sjg@void.crufty.net>
41463955d011SMarcel Moolenaar
41473955d011SMarcel Moolenaar	* var.c (Var_Parse): ensure delim is initialized.
41483955d011SMarcel Moolenaar
41493955d011SMarcel Moolenaar	* unit-tests/Makefile.in: use single quotes to avoid problems from
41503955d011SMarcel Moolenaar	some shells.
41513955d011SMarcel Moolenaar
41523955d011SMarcel Moolenaar	* makefile.boot.in:
41533955d011SMarcel Moolenaar	Run the unit-tests as part of the bootstrap procedure.
41543955d011SMarcel Moolenaar
41553955d011SMarcel Moolenaar2003-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
41563955d011SMarcel Moolenaar
41573955d011SMarcel Moolenaar	* unit-tests/Makefile.in: always force complaints from
41583955d011SMarcel Moolenaar	${TEST_MAKE} to be from 'make'.
41593955d011SMarcel Moolenaar
41603955d011SMarcel Moolenaar	* configure.in: add check for 'diff -u'
41613955d011SMarcel Moolenaar	also fix some old autoconf'isms
41623955d011SMarcel Moolenaar
41633955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030728.
41643955d011SMarcel Moolenaar	if using GCC add -Wno-cast-qual to CFLAGS for var.o
41653955d011SMarcel Moolenaar
41663955d011SMarcel Moolenaar	* Merge with NetBSD make
41673955d011SMarcel Moolenaar	Pick up fix for :ts parsing error in some cases.
41683955d011SMarcel Moolenaar	Pick unit-tests.
41693955d011SMarcel Moolenaar
41703955d011SMarcel Moolenaar2003-07-23  Simon J. Gerraty  <sjg@void.crufty.net>
41713955d011SMarcel Moolenaar
41723955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030723.
41733955d011SMarcel Moolenaar
41743955d011SMarcel Moolenaar	* var.c (Var_Parse): fix bug in :ts modifier, after const
41753955d011SMarcel Moolenaar	correctness fixes, must pass nstr to VarModify.
41763955d011SMarcel Moolenaar
41773955d011SMarcel Moolenaar2003-07-14  Simon J. Gerraty  <sjg@void.crufty.net>
41783955d011SMarcel Moolenaar
41793955d011SMarcel Moolenaar	* Makefile.in: BMAKE_VERSION switch to a date based version.
41803955d011SMarcel Moolenaar	We'll generally use the date of last import from NetBSD.
41813955d011SMarcel Moolenaar
41823955d011SMarcel Moolenaar	* Merge with NetBSD make
41833955d011SMarcel Moolenaar	Pick up fixes for const-correctness, now passes WARNS=3 on
41843955d011SMarcel Moolenaar	NetBSD.
41853955d011SMarcel Moolenaar	Pick up :ts modifier, allows controlling the separator used
41863955d011SMarcel Moolenaar	between words in variable expansion.
41873955d011SMarcel Moolenaar
41883955d011SMarcel Moolenaar2003-07-11  Simon J. Gerraty  <sjg@void.crufty.net>
41893955d011SMarcel Moolenaar
41903955d011SMarcel Moolenaar	* FILES: include boot-strap and os.sh
41913955d011SMarcel Moolenaar
41923955d011SMarcel Moolenaar	* Makefile.in: only set WARNS if we are NetBSD, the effect on
41933955d011SMarcel Moolenaar	FreeBSD is known to be bad.
41943955d011SMarcel Moolenaar
41953955d011SMarcel Moolenaar	* makefile.boot.in (bootstrap): make this the default target.
41963955d011SMarcel Moolenaar
41973955d011SMarcel Moolenaar	* Makefile.in: bump version to 3.1.19
41983955d011SMarcel Moolenaar
41993955d011SMarcel Moolenaar	* machine.sh: avoid A-Z with tr as it is bound to lose.
42003955d011SMarcel Moolenaar
42013955d011SMarcel Moolenaar2003-07-10  Simon J. Gerraty  <sjg@void.crufty.net>
42023955d011SMarcel Moolenaar
42033955d011SMarcel Moolenaar	* Merge with NetBSD make
42043955d011SMarcel Moolenaar	Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
42053955d011SMarcel Moolenaar	Plus some doc fixes.
42063955d011SMarcel Moolenaar
42073955d011SMarcel Moolenaar2003-04-27  Simon J. Gerraty  <sjg@void.crufty.net>
42083955d011SMarcel Moolenaar
42093955d011SMarcel Moolenaar	* Merge with NetBSD make
42103955d011SMarcel Moolenaar	Pick up fix for PR/1523 - don't count a library as built, if there
42113955d011SMarcel Moolenaar	is no way to build it
42123955d011SMarcel Moolenaar
42133955d011SMarcel Moolenaar	* Bump version to 3.1.18
42143955d011SMarcel Moolenaar
42153955d011SMarcel Moolenaar2003-03-23  Simon J. Gerraty  <sjg@void.crufty.net>
42163955d011SMarcel Moolenaar
42173955d011SMarcel Moolenaar	* Merge with NetBSD make
42183955d011SMarcel Moolenaar	Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT
42193955d011SMarcel Moolenaar	appears in src list.
42203955d011SMarcel Moolenaar
42213955d011SMarcel Moolenaar2003-03-21  Simon J. Gerraty  <sjg@void.crufty.net>
42223955d011SMarcel Moolenaar
42233955d011SMarcel Moolenaar	* Merge with NetBSD make (mmm 10th anniversary!)
42243955d011SMarcel Moolenaar	pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828)
42253955d011SMarcel Moolenaar	pick up -X which tells us to not export VAR=val via setenv if
42263955d011SMarcel Moolenaar	we are already doing so via MAKEFLAGS.  This saves valuable env
42273955d011SMarcel Moolenaar	space on systems like Darwin.
42283955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.17
42293955d011SMarcel Moolenaar
42303955d011SMarcel Moolenaar	* parse.c: pix up fix for suffix rules
42313955d011SMarcel Moolenaar
42323955d011SMarcel Moolenaar2003-03-06  Simon J. Gerraty  <sjg@void.crufty.net>
42333955d011SMarcel Moolenaar
42343955d011SMarcel Moolenaar	* Merge with NetBSD make.
42353955d011SMarcel Moolenaar	pick up fix for propagating -B via MAKEFLAGS.
42363955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.16
42373955d011SMarcel Moolenaar
42383955d011SMarcel Moolenaar	* Apply some patches from pkgsrc-bootstrap/bmake
42393955d011SMarcel Moolenaar	Originally by Grant Beattie <grant@netbsd.org>
42403955d011SMarcel Moolenaar	I may have missed some - since they are based on bmake-3.1.12
42413955d011SMarcel Moolenaar
42423955d011SMarcel Moolenaar2002-12-03  Simon J. Gerraty  <sjg@void.crufty.net>
42433955d011SMarcel Moolenaar
42443955d011SMarcel Moolenaar	* makefile.boot.in (bmake): update install targets for those that
42453955d011SMarcel Moolenaar	use them, also clear MAKEFLAGS when invoking bmake.boot to avoid
42463955d011SMarcel Moolenaar	havoc from gmake -w.  Thanks to Harlan Stenn <hstenn@cisco.com>.
42473955d011SMarcel Moolenaar
42483955d011SMarcel Moolenaar	* bmake.cat1: update the pre-formatted man page!
42493955d011SMarcel Moolenaar
42503955d011SMarcel Moolenaar2002-11-30  Simon J. Gerraty  <sjg@void.crufty.net>
42513955d011SMarcel Moolenaar
42523955d011SMarcel Moolenaar	* Merge with NetBSD make.
42533955d011SMarcel Moolenaar	pick up fix for premature free of pointer used in call
42543955d011SMarcel Moolenaar	to Dir_InitCur().
42553955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.15
42563955d011SMarcel Moolenaar
42573955d011SMarcel Moolenaar2002-11-26  Simon J. Gerraty  <sjg@void.crufty.net>
42583955d011SMarcel Moolenaar
42593955d011SMarcel Moolenaar	* configure.in: determine suitable value for MKSRC.
42603955d011SMarcel Moolenaar	override using --with-mksrc=PATH.
42613955d011SMarcel Moolenaar
42623955d011SMarcel Moolenaar	* machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems.
42633955d011SMarcel Moolenaar	configs(8) will use 'sun4' as an alias for 'sparc'.
42643955d011SMarcel Moolenaar
42653955d011SMarcel Moolenaar2002-11-25  Simon J. Gerraty  <sjg@void.crufty.net>
42663955d011SMarcel Moolenaar
42673955d011SMarcel Moolenaar	* Merge with NetBSD make.
42683955d011SMarcel Moolenaar	pick up ${.PATH}
42693955d011SMarcel Moolenaar	pick up fix for finding ../cat.c via .PATH when .CURDIR=..
42703955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.14
42713955d011SMarcel Moolenaar	add configure checks for killpg and sys/socket.h
42723955d011SMarcel Moolenaar
42733955d011SMarcel Moolenaar2002-09-16  Simon J. Gerraty  <sjg@void.crufty.net>
42743955d011SMarcel Moolenaar
42753955d011SMarcel Moolenaar	* tag bmake-3-1-13
42763955d011SMarcel Moolenaar
42773955d011SMarcel Moolenaar	* makefile.boot.in (bmake): use install-mk
42783955d011SMarcel Moolenaar	Also setup ./mk before trying to invoke bmake.boot incase we
42793955d011SMarcel Moolenaar	needed install-mk to create a sys.mk for us.
42803955d011SMarcel Moolenaar
42813955d011SMarcel Moolenaar	* configure.in: If we need to add -I${srcdir}/missing, make it an
42823955d011SMarcel Moolenaar	absolute path so that it works for lst.lib too.
42833955d011SMarcel Moolenaar
42843955d011SMarcel Moolenaar	* make.h: always include sys/cdefs.h since we provide one if the
42853955d011SMarcel Moolenaar	host does not.
42863955d011SMarcel Moolenaar
42873955d011SMarcel Moolenaar	* Makefile.in (install-mk):
42883955d011SMarcel Moolenaar	use MKSRC/install-mk which will do the right thing.
42893955d011SMarcel Moolenaar	use uname -p for ARCH if possible.
42903955d011SMarcel Moolenaar	since install-mk will setup links bsd.prog.mk -> prog.mk if
42913955d011SMarcel Moolenaar	needed, just .include bsd.prog.mk
42923955d011SMarcel Moolenaar
42933955d011SMarcel Moolenaar	* Merge with NetBSD make (NetBSD-1.6)
42943955d011SMarcel Moolenaar	Code is ansi-C only now.
42953955d011SMarcel Moolenaar	Bug in handling of dotLast is fixed.
42963955d011SMarcel Moolenaar	Can now assign .OBJDIR and make will reset its notions of life.
42973955d011SMarcel Moolenaar	New modifiers :tu :tl for toUpper and toLower.
42983955d011SMarcel Moolenaar
42993955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
43003955d011SMarcel Moolenaar
43013955d011SMarcel Moolenaar	* Merge with NetBSD make
43023955d011SMarcel Moolenaar	pick up fix for .END failure in compat mode.
43033955d011SMarcel Moolenaar	pick up fix for extra va_end() in ParseVErrorInternal.
43043955d011SMarcel Moolenaar
43053955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
43063955d011SMarcel Moolenaar
43073955d011SMarcel Moolenaar	* configure.in: for systems that have sys/cdefs.h check if it is
43083955d011SMarcel Moolenaar	compatible.  If not, include the one under missing, but tell it to
43093955d011SMarcel Moolenaar	include the native one too - necessary on Linux.
43103955d011SMarcel Moolenaar
43113955d011SMarcel Moolenaar	* missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use
43123955d011SMarcel Moolenaar	include_next (for gcc) to get the native sys/cdefs.h
43133955d011SMarcel Moolenaar
43143955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
43153955d011SMarcel Moolenaar
43163955d011SMarcel Moolenaar	* job.c (JobFinish): Fix an earlier merge bug that resulted in
43173955d011SMarcel Moolenaar	leaking descriptors when using -jN.
43183955d011SMarcel Moolenaar
43193955d011SMarcel Moolenaar	* job.c (JobPrintCommand): See if "curdir" exists before
43203955d011SMarcel Moolenaar	attempting to chdir().  Doing the chdir directly in make (when in
43213955d011SMarcel Moolenaar	compat mode) fails silently, so let the -jN version do the same.
43223955d011SMarcel Moolenaar	This can happen when building kernels in an object tree and
43233955d011SMarcel Moolenaar	playing clever games to reset .CURDIR.
43243955d011SMarcel Moolenaar
43253955d011SMarcel Moolenaar	* Merged with NetBSD make
43263955d011SMarcel Moolenaar	pick up .USEBEFORE
43273955d011SMarcel Moolenaar
43283955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
43293955d011SMarcel Moolenaar
43303955d011SMarcel Moolenaar	* makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work.
43313955d011SMarcel Moolenaar
43323955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
43333955d011SMarcel Moolenaar
43343955d011SMarcel Moolenaar	* var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
43353955d011SMarcel Moolenaar	us not to export the iterator variable when using VAR_CMD context.
43363955d011SMarcel Moolenaar
43373955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
43383955d011SMarcel Moolenaar
43393955d011SMarcel Moolenaar	* job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
43403955d011SMarcel Moolenaar	its the wrong "fix".
43413955d011SMarcel Moolenaar
43423955d011SMarcel MoolenaarSat Jun  9 00:11:24 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
43433955d011SMarcel Moolenaar
43443955d011SMarcel Moolenaar	* Redesigned export of VAR_CMD's via MAKEFLAGS.
43453955d011SMarcel Moolenaar	We now simply append the variable names to .MAKEOVERRIDES, and
43463955d011SMarcel Moolenaar	handle duplicate suppression and quoting in ExportMAKEFLAGS using:
43473955d011SMarcel Moolenaar	${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
43483955d011SMarcel Moolenaar	Apart from fixing quoting bugs in previous version, this allows us
43493955d011SMarcel Moolenaar	to export vars to the environment by simply doing:
43503955d011SMarcel Moolenaar	.MAKEOVERRIDES+= PATH
43513955d011SMarcel Moolenaar	Merged again with NetBSD make, but the above is the only change.
43523955d011SMarcel Moolenaar
43533955d011SMarcel Moolenaar	* configure.in: added
43543955d011SMarcel Moolenaar	--disable-pwd-override		disable $PWD overriding getcwd()
43553955d011SMarcel Moolenaar	--disable-check-make-chdir	disable make trying to guess
43563955d011SMarcel Moolenaar		when it should automatically cd ${.CURDIR}
43573955d011SMarcel Moolenaar
43583955d011SMarcel Moolenaar	* Merge with NetBSD make, changes include:
43593955d011SMarcel Moolenaar	parse.c (ParseDoDependency): Spot that the syntax error is
43603955d011SMarcel Moolenaar	caused by an unresolved cvs/rcs conflict and say so.
43613955d011SMarcel Moolenaar	var.c: most of Var* functions now take a ctxt as 1st arg.
43623955d011SMarcel Moolenaar	now does variable substituion on rhs of sysv style modifiers.
43633955d011SMarcel Moolenaar
43643955d011SMarcel Moolenaar	* var.c (Var_Set): exporting of command line variables (VAR_CMD)
43653955d011SMarcel Moolenaar	is now done here.  We append the name='value' to .MAKEOVERRIDES
43663955d011SMarcel Moolenaar	rather than directly into MAKEFLAGS as this allows a Makefile to
43673955d011SMarcel Moolenaar	use .MAKEOVERRIDES= to disable this behaviour.  GNU make uses a
43683955d011SMarcel Moolenaar	very similar mechanism.  Note that in adding name='value' to
43693955d011SMarcel Moolenaar	.MAKEOVERRIDES we do the moral equivalent of:
43703955d011SMarcel Moolenaar	.MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
43713955d011SMarcel Moolenaar
43723955d011SMarcel MoolenaarFri Jun  1 14:08:02 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
43733955d011SMarcel Moolenaar
43743955d011SMarcel Moolenaar	* make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H
43753955d011SMarcel Moolenaar
43763955d011SMarcel Moolenaar	* Merged with NetBSD make
43773955d011SMarcel Moolenaar	make -dx can now be used to run commands via sh -x
43783955d011SMarcel Moolenaar	better error messages on exec failures.
43793955d011SMarcel Moolenaar
43803955d011SMarcel MoolenaarThu May 31 01:44:54 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
43813955d011SMarcel Moolenaar
43823955d011SMarcel Moolenaar	* Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that
43833955d011SMarcel Moolenaar	MAKE_VERSION gets updated.  Also don't use ?= for MAKE_VERSION,
43843955d011SMarcel Moolenaar	MACHINE etc otherwise they propagate from the previous bmake.
43853955d011SMarcel Moolenaar
43863955d011SMarcel Moolenaar	* configure.in (machine): allow --with-machine=generic to make
43873955d011SMarcel Moolenaar	configure use machine.sh to set MACHINE.
43883955d011SMarcel Moolenaar
43893955d011SMarcel Moolenaar	* job.c (JobInterrupt): convert to using WAIT_T and friends.
43903955d011SMarcel Moolenaar
43913955d011SMarcel Moolenaar	* Makefile.in: mention in bmake.1 that we use autoconf.
43923955d011SMarcel Moolenaar
43933955d011SMarcel Moolenaar	* make.1: mention MAKE_PRINT_VAR_ON_ERROR.
43943955d011SMarcel Moolenaar
43953955d011SMarcel MoolenaarWed May 30 23:17:18 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
43963955d011SMarcel Moolenaar
43973955d011SMarcel Moolenaar	* main.c (ReadMakefile): don't set MAKEFILE if reading ".depend"
43983955d011SMarcel Moolenaar	as that rather defeats the usefulness of ${MAKEFILE}.
43993955d011SMarcel Moolenaar
44003955d011SMarcel Moolenaar	* main.c (MainParseArgs): append command line variable assignments
44013955d011SMarcel Moolenaar	to MAKEFLAGS so that they get propagated to child make's.
44023955d011SMarcel Moolenaar	Apparently this is required POSIX behaviour?  Its useful anyway.
44033955d011SMarcel Moolenaar
44043955d011SMarcel MoolenaarTue May 29 02:20:07 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
44053955d011SMarcel Moolenaar
44063955d011SMarcel Moolenaar	* compat.c (CompatRunCommand): don't use perror() since stdio may
44073955d011SMarcel Moolenaar	cause problems in child of vfork().
44083955d011SMarcel Moolenaar
44093955d011SMarcel Moolenaar	* compat.c, main.c: Call PrintOnError() when we are going to bail.
44103955d011SMarcel Moolenaar	This routine prints out the .curdir where we stopped and will also
44113955d011SMarcel Moolenaar	display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}.
44123955d011SMarcel Moolenaar
44133955d011SMarcel Moolenaar	* main.c: add ${.newline} to hold a "\n" - sometimes handy in
44143955d011SMarcel Moolenaar	:@ expansion.
44153955d011SMarcel Moolenaar
44163955d011SMarcel Moolenaar	* var.c: VarLoopExpand: ignore addSpace if a \n is present.
44173955d011SMarcel Moolenaar
44183955d011SMarcel Moolenaar	* Added RCSid's for the files we've touched.
44193955d011SMarcel Moolenaar
44203955d011SMarcel MoolenaarThu May 24 15:41:37 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
44213955d011SMarcel Moolenaar
44223955d011SMarcel Moolenaar	* configure.in:	Thanks to some clues from mdb@juniper.net,
44233955d011SMarcel Moolenaar	added autoconf magic to control setting of MACHINE, MACHINE_ARCH
44243955d011SMarcel Moolenaar	as well as what ends up in _PATH_DEFSYSPATH.  We now have:
44253955d011SMarcel Moolenaar
44263955d011SMarcel Moolenaar  --with-machine=MACHINE  explicitly set MACHINE
44273955d011SMarcel Moolenaar  --with-force-machine=MACHINE  set FORCE_MACHINE
44283955d011SMarcel Moolenaar  --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
44293955d011SMarcel Moolenaar  --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
44303955d011SMarcel Moolenaar  --with-prefix-sys-path=PATH:DIR:LIST  prefix _PATH_PREFIX_SYSPATH
44313955d011SMarcel Moolenaar  --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
44323955d011SMarcel Moolenaar
44333955d011SMarcel Moolenaar	If _PATH_OBJDIRPREFIX is set to "no" we won't define it.
44343955d011SMarcel Moolenaar
44353955d011SMarcel Moolenaar	* makefile: added a pathetically simple makefile to drive
44363955d011SMarcel Moolenaar	bootstrapping.  Running configure by hand is more useful.
44373955d011SMarcel Moolenaar
44383955d011SMarcel Moolenaar	* Makefile.in: added MAKE_VERSION, and reworked things to be less
44393955d011SMarcel Moolenaar	dependent on NetBSD bsd.*.mk
44403955d011SMarcel Moolenaar
44413955d011SMarcel Moolenaar	* pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining
44423955d011SMarcel Moolenaar	_PATH_OBJDIRPREFIX for those that don't want a default.
44433955d011SMarcel Moolenaar	construct _PATH_DEFSYSPATH from the info we get from configure.
44443955d011SMarcel Moolenaar
44453955d011SMarcel Moolenaar	* main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION}
44463955d011SMarcel Moolenaar	if MAKE_VERSION is defined.
44473955d011SMarcel Moolenaar
44483955d011SMarcel Moolenaar	* compat.c: when we bail, print out the .CURDIR we were in.
44493955d011SMarcel Moolenaar
44503955d011SMarcel MoolenaarSat May 12 00:34:12 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
44513955d011SMarcel Moolenaar
44523955d011SMarcel Moolenaar	* Merged with NetBSD make
44533955d011SMarcel Moolenaar
44543955d011SMarcel Moolenaar	* var.c: fixed a bug in the handling of the modifier :P
44553955d011SMarcel Moolenaar	if the node as found but the path was null, we segfault trying to
44563955d011SMarcel Moolenaar	duplicate it.
44573955d011SMarcel Moolenaar
44583955d011SMarcel MoolenaarMon Mar  5 16:20:33 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
44593955d011SMarcel Moolenaar
44603955d011SMarcel Moolenaar	* Merged with NetBSD make
44613955d011SMarcel Moolenaar
44623955d011SMarcel Moolenaar	* make.c: Make_OODate's test for a library out of date was using
44633955d011SMarcel Moolenaar	cmtime where it should have used mtime (my bug).
44643955d011SMarcel Moolenaar
44653955d011SMarcel Moolenaar	* compat.c: Use perror() to tell us what really went wrong when we
44663955d011SMarcel Moolenaar	cannot exec a command.
44673955d011SMarcel Moolenaar
44683955d011SMarcel MoolenaarFri Dec 15 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
44693955d011SMarcel Moolenaar
44703955d011SMarcel Moolenaar	* Merged with NetBSD make
44713955d011SMarcel Moolenaar
44723955d011SMarcel MoolenaarSat Jun 10 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
44733955d011SMarcel Moolenaar
44743955d011SMarcel Moolenaar	* Merged with NetBSD make
44753955d011SMarcel Moolenaar
44763955d011SMarcel MoolenaarThu Jun  1 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
44773955d011SMarcel Moolenaar
44783955d011SMarcel Moolenaar	* Merged with NetBSD make
44793955d011SMarcel Moolenaar
44803955d011SMarcel MoolenaarTue May 30 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
44813955d011SMarcel Moolenaar
44823955d011SMarcel Moolenaar	* Merged with NetBSD make
44833955d011SMarcel Moolenaar
44843955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
44853955d011SMarcel Moolenaar
44863955d011SMarcel Moolenaar	* util.c: don't provide signal() since we use sigcompat.c
44873955d011SMarcel Moolenaar
44883955d011SMarcel Moolenaar	* Makefile.in: added a build target.
44893955d011SMarcel Moolenaar
44903955d011SMarcel Moolenaar	* var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :!
44913955d011SMarcel Moolenaar	These allow some quite clever magic.
44923955d011SMarcel Moolenaar
44933955d011SMarcel Moolenaar	* main.c (main): added support for getenv(MAKESYSPATH).
44943955d011SMarcel Moolenaar
44953955d011SMarcel MoolenaarMon Apr  2 16:25:13 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
44963955d011SMarcel Moolenaar
44973955d011SMarcel Moolenaar	* Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set.
44983955d011SMarcel Moolenaar	This avoids objdir having a different value depending on how a
44993955d011SMarcel Moolenaar	directory was reached (via command line, or subdir.mk).
45003955d011SMarcel Moolenaar
45013955d011SMarcel Moolenaar	* If FORCE_MACHINE is defined, ignore getenv("MACHINE").
45023955d011SMarcel Moolenaar
45033955d011SMarcel MoolenaarMon Apr  2 23:15:31 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
45043955d011SMarcel Moolenaar
45053955d011SMarcel Moolenaar	* Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if
45063955d011SMarcel Moolenaar	MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not.
45073955d011SMarcel Moolenaar	I've been testing this in NetBSD's make for some weeks.
45083955d011SMarcel Moolenaar
45093955d011SMarcel Moolenaar	* Turn Makefile into Makefile.in and make it useful.
45103955d011SMarcel Moolenaar
45113955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty  <sjg@zen.quick.com.au>
45123955d011SMarcel Moolenaar
45133955d011SMarcel Moolenaar	* Imported NetBSD's -current make(1) and resolve conflicts.
45143955d011SMarcel Moolenaar
45153955d011SMarcel Moolenaar	* Applied autoconf patches from bmake v2
45163955d011SMarcel Moolenaar
45173955d011SMarcel Moolenaar	* Imported clean code base from NetBSD-1.0
4518