ChangeLog revision 292068
12015-12-01  Simon J. Gerraty  <sjg@bad.crufty.net>
2
3	* Makefile (MAKE_VERSION): 20151201
4	  Merge with NetBSD make, pick up
5	  o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
6	  o meta.c: meta_oodate: use lstat(2) for checking link target
7	    in case it is a symlink.
8	  o var.c: avoid calling brk_string and Var_Export1 with empty
9	    strings.
10	
112015-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
12
13	* Makefile (MAKE_VERSION): 20151126
14	  Merge with NetBSD make, pick up
15	  o parse.c: ParseTrackInput don't access beyond 
16	    end of old value.
17	
182015-10-22  Simon J. Gerraty  <sjg@bad.crufty.net>
19
20	* Makefile (MAKE_VERSION): 20151022
21
22	* Add support for BSD/OS which lacks inttypes.h
23	  and really needs sys/param.h for sys/sysctl.h
24	  also 'type' is not a shell builtin.
25
26	* var.c: eliminate uint32_t and need for inttypes.h
27	
28	* main.c: PrintOnError flush stdout before run .ERROR
29
30	* parse.c: cope with _SC_PAGESIZE not being defined.
31
32	
332015-10-20  Simon J. Gerraty  <sjg@bad.crufty.net>
34
35	* Makefile (MAKE_VERSION): 20151020
36	  Merge with NetBSD make, pick up
37	  o var.c: fix uninitialized var 
38
392015-10-12  Simon J. Gerraty  <sjg@bad.crufty.net>
40
41	* var.c: the conditional expressions used with ':?' can be
42	expensive, if already discarding do not evaluate or expand
43	anything. 
44
452015-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
46
47	* Makefile (MAKE_VERSION): 20151010
48	  Merge with NetBSD make, pick up
49	  o Add Boolean wantit flag to Var_Subst and Var_Parse
50	    when FALSE we know we are discarding the result and can
51	    skip operations like Cmd_Exec.
52
532015-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
54
55	* Makefile (MAKE_VERSION): 20151009
56	  Merge with NetBSD make, pick up
57	  o var.c: don't check for NULL before free()
58	  o meta.c: meta_oodate, do not hard code ignore of makeDependfile
59
602015-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
61
62	* Makefile (MAKE_VERSION): 20150910
63	  Merge with NetBSD make, pick up
64	  o main.c: with -w print Enter/Leaving messages for objdir too
65	    if necessary.
66	  o centralize shell metachar handling
67	
68	* FILES: add metachar.[ch]
69
702015-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
71
72	* Makefile (MAKE_VERSION): 20150606
73	  Merge with NetBSD make, pick up
74	  o make.1: document .OBJDIR target
75
762015-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
77
78	* Makefile (MAKE_VERSION): 20150505
79	  Merge with NetBSD make, pick up
80	  o cond.c: be strict about lhs of comparison when evaluating .if
81	    but less so when called from variable expansion.
82	  o unit-tests/cond2.mk: test various error conditions
83
842015-05-04  Simon J. Gerraty  <sjg@bad.crufty.net>
85
86	* machine.sh (MACHINE): Add Bitrig 
87	  patch from joerg@netbsd.org
88
892015-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
90
91	* Makefile (MAKE_VERSION): 20150418
92	  Merge with NetBSD make, pick up
93	  o job.c: use memmove() rather than memcpy()
94
95	* unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL
96	  case, so skip it.
97
982015-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
99
100	* Makefile (MAKE_VERSION): 20150411
101	  bump version - only mk/ changes.
102	
1032015-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
104
105	* Makefile (MAKE_VERSION): 20150410
106	  Merge with NetBSD make, pick up
107	  o document different handling of '-' in jobs mode vs compat
108	  o fix jobs mode so that '-' only applies to whole job
109	    when shell lacks hasErrCtl
110	  o meta.c: use separate vars to track lcwd and latestdir (read)
111	    per process
112	
1132015-04-01  Simon J. Gerraty  <sjg@bad.crufty.net>
114
115	* Makefile (MAKE_VERSION): 20150401
116	  Merge with NetBSD make, pick up
117	  o meta.c: close meta file in child
118	
119	* Makefile: use BINDIR.bmake if set.
120	  Same for MANDIR and SHAREDIR
121	  Handy for testing release candidates
122	  in various environments.
123	
1242015-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
125
126	* move initialization of savederr to block where it is used
127	  to avoid spurious warning from gcc5
128
1292014-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
130
131	* Makefile (MAKE_VERSION): 20141111
132	  just a cooler number
133
1342014-11-05  Simon J. Gerraty  <sjg@bad.crufty.net>
135
136	* Makefile (MAKE_VERSION): 20141105
137	  Merge with NetBSD make, pick up
138	  o revert major overhaul of suffix handling
139	    and POSIX compliance - too much breakage
140	    and impossible to make backwards compatible.
141	  o we still have the new unit test structure which is ok.
142	  o meta.c ensure "-- filemon" is at start of line.
143
1442014-09-17  Simon J. Gerraty  <sjg@bad.crufty.net>
145
146	* configure.in: test that result of getconf PATH_MAX is numeric
147	  and discard if not.  Apparently needed for Hurd.
148
1492014-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
150
151	* Makefile (MAKE_VERSION): 20140830
152	  Merge with NetBSD make, pick up
153	  o major overhaul of suffix handling
154	  o improved POSIX compliance
155	  o overhauled unit-tests
156
1572014-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
158
159	* Makefile (MAKE_VERSION): 20140620
160	  Merge with NetBSD make, pick up
161	  o var.c return varNoError rather than var_Error for ::= modifiers.
162
1632014-05-22  Simon J. Gerraty  <sjg@bad.crufty.net>
164
165	* Makefile (MAKE_VERSION): 20140522
166	  Merge with NetBSD make, pick up
167	  o var.c detect some parse errors.
168
1692014-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
170
171	* Fix spelling errors - patch from Pedro Giffuni
172
1732014-02-14  Simon J. Gerraty  <sjg@bad.crufty.net>
174
175	* Makefile (MAKE_VERSION): 20140214
176	  Merge with NetBSD make, pick up
177	  o .INCLUDEFROM*
178	  o use Var_Value to get MAKEOBJDIR[PREFIX]
179	  o reduced realloc'ign in brk_string.
180	* configure.in: add a check for compiler supporting __func__
181
1822014-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
183
184	* boot-strap: ignore mksrc=none
185
1862014-01-02  Simon J. Gerraty  <sjg@bad.crufty.net>
187
188	* Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk
189
1902014-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
191	
192	* Makefile (MAKE_VERSION): 20140101
193	* configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024)
194	* Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max
195	* make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for
196	  Hurd) 
197	* configure.in: Add AC_PREREQ and check for
198	  sysctl; patch from Andrew Shadura andrewsh at debian.org
199
2002013-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
201
202	* Makefile (MAKE_VERSION): 20131010
203	* lose the const from arg to systcl to avoid problems on older BSDs.
204
2052013-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
206
207	* Makefile (MAKE_VERSION): 20131001
208	  Merge with NetBSD make, pick up
209	  o main.c: for NATIVE build sysctl to get MACHINE_ARCH from
210	    hw.machine_arch if necessary.
211	  o meta.c: meta_oodate - need to look at src of Link and target
212	    of Move as well.
213	* main.c: check that CTL_HW and HW_MACHINE_ARCH exist.
214	  provide __arraycount() if needed.
215
2162013-09-04  Simon J. Gerraty  <sjg@bad.crufty.net>
217
218	* Makefile (MAKE_VERSION): 20130904
219	  Merge with NetBSD make, pick up
220	  o Add VAR_INTERNAL context, so that internal setting of
221	    MAKEFILE does not override value set by makefiles.
222
2232013-09-02  Simon J. Gerraty  <sjg@bad.crufty.net>
224
225	* Makefile (MAKE_VERSION): 20130902
226	  Merge with NetBSD make, pick up
227	  o CompatRunCommand: only apply shellErrFlag when errCheck is true
228
2292013-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
230
231	* Makefile (MAKE_VERSION): 20130828
232	  Merge with NetBSD make, pick up
233	  o Fix VAR :sh = syntax from Will Andrews at freebsd.org
234	  o Call Job_SetPrefix() from Job_Init() so makefiles have
235	    opportunity to set .MAKE.JOB.PREFIX
236
2372013-07-30  Simon J. Gerraty  <sjg@bad.crufty.net>
238
239	* Makefile (MAKE_VERSION): 20130730
240	  Merge with NetBSD make, pick up
241	  o Allow suppression of --- job -- tokens by setting
242	    .MAKE.JOB.PREFIX empty.
243
2442013-07-16  Simon J. Gerraty  <sjg@bad.crufty.net>
245
246	* Makefile (MAKE_VERSION): 20130716
247	  Merge with NetBSD make, pick up
248	  o number of gmake compatibility tweaks
249	    -w for gmake style entering/leaving messages
250	    if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc.
251	    handle MAKEFLAGS containing only letters.
252	  o when overriding a GLOBAL variable on the command line,
253	    delete it from GLOBAL context so -V doesn't show the wrong
254	    value.
255	
2562013-07-06  Simon J. Gerraty  <sjg@bad.crufty.net>
257
258	* configure.in: We don't need MAKE_LEVEL_SAFE anymore.
259
260	* Makefile (MAKE_VERSION): 20130706
261	  Merge with NetBSD make, pick up
262	  o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is
263	    true so that CompatRunCommand() can use it, to ensure
264	    consistent behavior with jobs mode.
265	  o use MAKE_LEVEL_ENV to define the variable to propagate
266	    .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake).
267	  o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of
268	    paths to ignore.
269
2702013-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
271
272	* Makefile (MAKE_VERSION): 20130604
273	  Merge with NetBSD make, pick up
274	  o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's
275	    to avoid leaking descriptors.
276
2772013-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
278
279	* Makefile (MAKE_VERSION): 20130528
280	  Merge with NetBSD make, pick up
281	  o var.c: cleanup some left-overs in VarHash()
282
2832013-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
284
285	* Makefile (MAKE_VERSION): 20130520
286	  generate manifest from component FILES rather than have to
287	  update FILES when mk/FILES changes.
288
2892013-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
290
291	* Makefile (MAKE_VERSION): 20130518
292	  Merge with NetBSD make, pick up
293	  o suff.c: don't skip all processsing for .PHONY targets
294	    else wildcard srcs do not get expanded.
295	  o var.c: expand name of variable to delete if necessary.
296
2972013-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
298
299	* Makefile (MAKE_VERSION): 20130330
300	  Merge with NetBSD make, pick up
301	  o meta.c: refine the handling of .OODATE in commands.
302	    Rather than suppress command comparison for the entire script
303	    as though .NOMETA_CMP had been used, only suppress it for the
304	    one command line.
305	    This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 
306	    suppress comparison of a command without otherwise affecting it.
307	  o make.1: document that
308
3092013-03-22  Simon J. Gerraty  <sjg@bad.crufty.net>
310
311	* Makefile (MAKE_VERSION): 20130321
312	  yes, not quite right but its a cooler number.
313	  Merge with NetBSD make, pick up
314	  o parse.c: fix ParseGmakeExport to be portable 
315	    and add a unit-test.
316	* meta.c: call meta_init() before makefiles are read and if built
317	  with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON
318	  this let's makefiles test for support.
319	  Call meta_mode_init() to process .MAKE.MODE.
320
3212013-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
322
323	* Makefile (MAKE_VERSION): 20130305
324	  Merge with NetBSD make, pick up
325	  o run .STALE: target when a dependency from .depend is missing.
326	  o job.c: add Job_RunTarget() for the above and .BEGIN
327
3282013-03-03  Simon J. Gerraty  <sjg@bad.crufty.net>
329
330	* Makefile (MAKE_VERSION): 20130303
331	  Merge with NetBSD make, pick up
332	  o main.c: set .MAKE.OS to utsname.sysname
333	  o job.c: more checks for read and poll errors
334	  o var.c: lose VarChangeCase() saves 4% time
335
3362013-03-02  Simon J. Gerraty  <sjg@bad.crufty.net>
337
338	* boot-strap: remove MAKEOBJDIRPREFIX from environment since we
339	  want to use MAKEOBJDIR
340
3412013-01-27  Simon J. Gerraty  <sjg@bad.crufty.net>
342
343	* Merge with NetBSD make, pick up
344	  o make.1: more info on how shell commands are handled.
345	  o job.c,main.c: detect write errors to job pipes.
346
3472013-01-25  Simon J. Gerraty  <sjg@bad.crufty.net>
348
349	* Makefile (MAKE_VERSION): 20130123
350	  Merge with NetBSD make, pick up
351	  o meta.c: if script uses .OODATE and meta_oodate() decides
352	    rebuild is needed, .OODATE will be empty - set it to .ALLSRC.
353	  o var.c: in debug output indicate which variabale modifiers
354	    apply to.
355	  o remove Check_Cwd logic the makefiles have been fixed.
356	
3572012-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
358
359	* makefile.in: add a simple makefile for folk who insist on
360	  ./configure; make; make install
361	  it just runs boot-strap
362	* include mk/* to accommodate the above
363	* boot-strap:  re-work to accommodate the above
364	  mksrc defaults to $Mydir/mk
365	  allow op={configure,build,install,clean,all}
366	  add options to facilitate install
367	* Makefile.config.in: just the bits set by configure
368	* Makefile: bump version to 20121212
369	  abandon Makefile.in (NetBSD Makefile)
370	  leverage mk/* instead
371	* configure.in: ensure srcdir is absolute
372
3732012-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
374
375	* Makefile.in (MAKE_VERSION): 20121111
376	  fix generation of bmake.cat1
377
3782012-11-09  Simon J. Gerraty  <sjg@bad.crufty.net>
379
380	* Makefile.in (MAKE_VERSION): 20121109
381	  Merge with NetBSD make, pick up
382	  o make.c: MakeBuildChild: return 0 so search continues if a
383	    .ORDER dependency is detected.
384	  o unit-tests/order: test the above
385	
3862012-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
387
388	* Makefile.in (MAKE_VERSION): 20121102
389	  Merge with NetBSD make, pick up
390	  o cond.c: allow cond_state[] to grow.
391	    In meta mode with a very large tree, we can hit the limit
392	    while processing dirdeps.
393	
3942012-10-25  Simon J. Gerraty  <sjg@bad.crufty.net>
395
396	* Makefile.in: we need to use ${srcdir} not ${.CURDIR}
397
3982012-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
399
400	* Makefile.in (MAKE_VERSION): 20121010
401	  o protect syntax that only bmake parses correctly.
402	  o remove auto setting of FORCE_MACHINE, use configure's
403	    --with-force-machine=whatever if that is desired.
404	
4052012-10-08  Simon J. Gerraty  <sjg@bad.crufty.net>
406
407	* Makefile.in: do not lose history from make.1 when generating bmake.1
408
4092012-10-07  Simon J. Gerraty  <sjg@bad.crufty.net>
410
411	* Makefile.in (MAKE_VERSION): 20121007
412	  Merge with NetBSD make, pick up
413	  o compat.c: ignore empty commands - same as jobs mode.
414	  o make.1: document meta chars that cause use of shell
415
4162012-09-11  Simon J. Gerraty  <sjg@bad.crufty.net>
417
418	* Makefile.in (MAKE_VERSION): bump version to 20120911
419	* bsd.after-import.mk: include Makefile.inc early and allow it to
420	  override PROG
421
4222012-08-31  Simon J. Gerraty  <sjg@bad.crufty.net>
423
424	* Makefile.in (MAKE_VERSION): bump version to 20120831
425	  Merge with NetBSD make, pick up
426	  o cast sizeof() to int for comparison
427	  o minor make.1 tweak
428
4292012-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
430
431	* Makefile.in (MAKE_VERSION): bump version to 20120830
432	  Merge with NetBSD make, pick up
433	  o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V
434	  o debug flag -dV causes -V to show raw value regardless.
435	
4362012-07-05  Simon J. Gerraty  <sjg@bad.crufty.net>
437
438	* bsd.after-import.mk (after-import): ensure unit-tests/Makefile
439	  gets SRCTOP set.
440
4412012-07-04  Simon J. Gerraty  <sjg@bad.crufty.net>
442
443	* Makefile.in (MAKE_VERSION): bump version to 20120704
444	  Merge with NetBSD make, pick up
445	  o Job_ParseShell should call Shell_Init if it has been
446	    previously called.
447	* Makefile.in: set USE_META based on configure result.
448	  also .PARSEDIR is safer indicator of bmake.
449
4502012-06-26  Simon J. Gerraty  <sjg@bad.crufty.net>
451
452	* Makefile.in: bump version to 20120626
453	  ensure CPPFLAGS is in CFLAGS
454	* meta.c: avoid nested externs
455	* bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target
456	
4572012-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
458
459	* Makefile.in (MAKE_VERSION): bump version to 20120620
460	  Merge with NetBSD make, pick up
461	  o make_malloc.c: avoid including make_malloc.h again
462
463	* Makefile.in: avoid bmake only syntax or protect with
464	  .if defined(.MAKE.LEVEL)
465	* bsd.after-import.mk: replace .-include with .sinclude
466	  ensure? SRCTOP gets a value
467	* configure.in: look for filemon.h in /usr/include/dev/filemon first.
468
4692012-06-19  Simon J. Gerraty  <sjg@bad.crufty.net>
470
471	* Makefile.in (MAKE_VERSION): bump version to 20120612
472	  Merge with NetBSD make, pick up
473	  o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler
474	    for greater portability.
475	  o unit-tests/forloop: check that .for works as expected wrt
476	    number of times and with "quoted strings".
477	
4782012-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
479
480	* Makefile.in (MAKE_VERSION): bump version to 20120606
481	  Merge with NetBSD make, pick up
482	  o compat.c: use kill(2) rather than raise(3).
483	* configure.in: look for sys/dev/filemon
484	* bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile
485	  and pass BOOTSTRAP_XTRAS to boot-strap.
486
4872012-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
488
489	* Makefile.in (MAKE_VERSION): bump version to 20120604
490	  Merge with NetBSD make, pick up
491	  o util.c and var.c share same var for tracking if environ
492	    has been reallocated.
493	  o util.c provide getenv with setenv.
494	* Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL
495	  when the shell actively strips .MAKE.* from the environment.
496	  We still refer to the variable always as .MAKE.LEVEL
497	* util.c fix bug in findenv() was finding prefix of name.
498	* compat.c: re-raising SIGINT etc after running .INTERRUPT
499	  results in more reliable termination of all activity on many
500	  platforms.
501
5022012-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
503
504	* Makefile.in (MAKE_VERSION): bump version to 20120602
505	  Merge with NetBSD make, pick up
506	  o for.c: handle quoted items in .for list
507
5082012-05-30  Simon J. Gerraty  <sjg@bad.crufty.net>
509
510	* Makefile.in (MAKE_VERSION): bump version to 20120530
511	  Merge with NetBSD make, pick up
512	  o compat.c: ignore empty command.
513
5142012-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
515
516	* Makefile.in (MAKE_VERSION): bump version to 20120524
517	* FILES: add bsd.after-import.mk:
518	  A simple means of integrating bmake into a BSD build system.
519
5202012-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
521
522	* Makefile.in (MAKE_VERSION): bump version to 20120520
523	  Merge with NetBSD make, pick up
524	  o increased limit for nested conditionals.
525	
5262012-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
527
528	* Makefile.in (MAKE_VERSION): bump version to 20120518
529	  Merge with NetBSD make, pick up
530	  o use _exit(2) in signal hanlder
531	  o Don't use the [dir] cache when building nodes that might have
532	    changed since the last exec.
533	  o Avoid nested extern declaration warnings.
534
5352012-04-27  Simon J. Gerraty  <sjg@bad.crufty.net>
536
537	* meta.c (fgetLine): avoid %z - not portable.
538	* parse.c: Since we moved include of sys/mman.h
539	  and def's of MAP_COPY etc. we got dups from a merge.
540
5412012-04-24  Simon J. Gerraty  <sjg@bad.crufty.net>
542
543	* Makefile.in (MAKE_VERSION): bump version to 20120420
544	  Merge with NetBSD make, pick up
545	  o restore duplicate supression in .MAKE.MAKEFILES
546	    runtime saving can be significant.
547	  o Var_Subst() uses Buf_DestroyCompact() to reduce memory
548	    consumption up to 20%. 
549
5502012-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
551
552	* Makefile.in (MAKE_VERSION): bump version to 20120420
553          Merge with NetBSD make, pick up
554	  o remove duplicate supression in .MAKE.MAKEFILES
555	  o improved dir cache behavior
556	  o gmake'ish export command
557	
5582012-03-25  Simon J. Gerraty  <sjg@bad.crufty.net>
559
560	* Makefile.in (MAKE_VERSION): bump version to 20120325
561	  Merge with NetBSD make, pick up
562	  o fix parsing of :[#] in conditionals.
563
5642012-02-10  Simon J. Gerraty  <sjg@bad.crufty.net>
565
566	* Makefile.in: replace use of .Nx in bmake.1 with NetBSD
567	  since some systems cannot cope with .Nx <version>
568
5692011-11-14  Simon J. Gerraty  <sjg@bad.crufty.net>
570
571	* Makefile.in (MAKE_VERSION): bump version to 20111111
572	  Merge with NetBSD make, pick up
573	  o debug output for .PARSEDIR and .PARSEFILE
574
5752011-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
576
577	* Makefile.in (MAKE_VERSION):  bump version to 20111010
578
5792011-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
580
581	* boot-strap: check for an expected file in the dirs we look for.
582	* make-bootstrap.sh: pass on LDSTATIC
583
5842011-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
585
586	* Makefile.in (MAKE_VERSION): bump version to 20111001
587	  Merge with NetBSD make, pick up
588	  o ensure .PREFIX is set for .PHONY
589	    and .TARGET set for .PHONY run via .END
590	  o __dead used consistently
591	
5922011-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
593
594	* Makefile.in (MAKE_VERSION): 20110909 is a better number ;-)
595
5962011-09-05  Simon J. Gerraty  <sjg@bad.crufty.net>
597
598	* Makefile.in (MAKE_VERSION): bump version to 20110905
599	  Merge with NetBSD make, pick up
600	  o meta_oodate: ignore makeDependfile
601	
6022011-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
603
604	* Makefile.in (MAKE_VERSION): bump version to 20110828
605	  Merge with NetBSD make, pick up
606	  o silent=yes in .MAKE.MODE causes meta mode to mark targets 
607	    as SILENT if a .meta file is created
608
6092011-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
610
611	* Makefile.in (MAKE_VERSION): bump version to 20110818
612	  Merge with NetBSD make, pick up
613	  o in meta mode, if target flagged .META a missing .meta file
614	    means target is out-of-date
615	  o fixes for gcc 4.5 warnings
616	  o simplify job printing code
617	
6182011-08-09  Simon J. Gerraty  <sjg@bad.crufty.net>
619
620	* Makefile.in (MAKE_VERSION): bump version to 20110808
621	  Merge with NetBSD make, pick up
622	  o do not touch OP_SPECIAL targets when doing make -t
623	
6242011-06-22  Simon J. Gerraty  <sjg@bad.crufty.net>
625
626	* Makefile.in (MAKE_VERSION): bump version to 20110622
627	  Merge with NetBSD make, pick up
628	  o meta_oodate detect corrupted .meta file and declare oodate.
629	* configure.in: add check for setsid
630	
6312011-06-07  Simon J. Gerraty  <sjg@bad.crufty.net>
632
633	* Merge with NetBSD make, pick up
634	  o unit-tests/modts now works on MirBSD
635
6362011-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
637
638	* Makefile.in (MAKE_VERSION): bump version to 20110606
639	  Merge with NetBSD make, pick up
640	  o ApplyModifiers: when we parse a variable which is not
641	    the entire modifier string, or not followed by ':', do not
642	    consider it as containing modifiers.
643	  o loadfile: ensure newline at end of mapped file.
644
6452011-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
646
647	* Makefile.in (MAKE_VERSION): bump version to 20110505
648	  Merge with NetBSD make, pick up
649	  o .MAKE.META.BAILIWICK - list of prefixes which define the scope
650	    of make's control.  In meta mode, any generated file within
651	    said bailiwick, which  is found to be missing, causes current
652	    target to be out-of-date. 
653	
6542011-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
655
656	* Makefile.in (MAKE_VERSION): bump version to 20110411
657	  Merge with NetBSD make, pick up
658	  o when long modifiers fail to match, check sysV style.
659	    - add a test case
660	
6612011-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
662
663	* Makefile.in (MAKE_VERSION): bump version to 20110410
664	  Merge with NetBSD make, pick up
665	  o :hash - cheap 32bit hash of value
666	  o :localtime, :gmtime - use value as format string for strftime.
667	
6682011-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
669
670	* Makefile.in (MAKE_VERSION): bump version to 20110330
671	  mostly because its a cooler version.
672	  Merge with NetBSD make, pick up
673	  o NetBSD tags for meta.[ch]
674	  o job.c call meta_job_finish() after meta_job_error().
675	  o meta_job_error() should call meta_job_finish() to ensure
676	    .meta file is closed, and safe to copy - if .ERROR target wants.
677	   meta_job_finish() is safe to call repeatedly.
678	
6792011-03-29  Simon J. Gerraty  <sjg@bad.crufty.net>
680
681	* unit-tests/modts: use printf if it is a builtin, 
682	  to save us from MirBSD
683
684	* Makefile.in (MAKE_VERSION): bump version to 20110329
685	  Merge with NetBSD make, pick up
686	  o fix for use after free() in CondDoExists().
687	  o meta_oodate() report extra commands and return earlier.
688	
6892011-03-27  Simon J. Gerraty  <sjg@bad.crufty.net>
690
691	* Makefile.in (MAKE_VERSION): bump version to 20110327
692	  Merge with NetBSD make, pick up
693	  o meta.c, if .MAKE.MODE contains curdirOk=yes
694	    allow creating .meta files in .CURDIR
695	* boot-strap (TOOL_DIFF): aparently at least on linux distro
696	  formats the output of 'type' differently - so eat any "()"
697
6982011-03-06  Simon J. Gerraty  <sjg@bad.crufty.net>
699
700	* Makefile.in (MAKE_VERSION): bump version to 20110306
701	  Merge with NetBSD make, pick up
702	  o meta.c, only do getcwd() once
703	
7042011-03-05  Simon J. Gerraty  <sjg@bad.crufty.net>
705
706	* Makefile.in (MAKE_VERSION): bump version to 20110305
707	  Merge with NetBSD make, pick up
708	  o correct sysV substitution handling of empty lhs and variable
709	  o correct exists() check for dir with trailing /
710	  o correct handling of modifiers for non-existant variables
711	    during evaluation of conditionals.
712	  o ensure MAP_FILE is defined.
713	  o meta.c use curdir[] now exported by main.c
714	
7152011-02-25  Simon J. Gerraty  <sjg@bad.crufty.net>
716
717	* Makefile.in (MAKE_VERSION): bump version to 20110225
718	  Merge with NetBSD make, pick up
719	  o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after
720	    makefiles have been read.
721	  o fix example of :? modifier in man page.
722	
7232011-02-13  Simon J. Gerraty  <sjg@bad.crufty.net>
724
725	* Makefile.in (MAKE_VERSION): bump version to 20110214
726	  Merge with NetBSD make, pick up
727	  o meta.c handle realpath() failing when generating meta file
728	    name.
729
730	* sigcompat.c: convert to ansi so we can use higher warning levels.
731
732
7332011-02-07  Simon J. Gerraty  <sjg@bad.crufty.net>
734
735	* Makefile.in (MAKE_VERSION): bump version to 20110207
736	  Merge with NetBSD make, pick up
737	  o fix for bug in meta mode.
738	
7392011-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
740
741	* parse.c: SunOS 5.8 at least does not have MAP_FILE
742
7432011-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
744
745	* Makefile.in (MAKE_VERSION): bump version to 20110101
746	  Merge with NetBSD make, pick up
747	  o use mmap(2) if available, for reading makefiles
748
7492010-12-15  Simon J. Gerraty  <sjg@bad.crufty.net>
750
751	* Makefile.in (MAKE_VERSION): bump version to 20101215
752	  Merge with NetBSD make, pick up
753	  o ensure meta_job_error() does not report a previous .meta file
754	    as being culprit.
755
7562010-12-10  Simon J. Gerraty  <sjg@bad.crufty.net>
757
758	* Makefile.in (MAKE_VERSION): bump version to 20101210
759	  Merge with NetBSD make, pick up
760	  o meta_oodate: track cwd per process, and only consider target
761	    out-of-date if missing file is outside make's CWD.
762	    Ignore files in /tmp/ etc.
763	  o to ensure unit-tests results match, need to control LC_ALL
764	    as well as LANG.
765	  o fix for parsing bug in var.c
766
7672010-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
768
769	* Makefile.in (MAKE_VERSION): bump version to 20101126
770	  Merge with NetBSD make, pick up
771	  o if stale dependency is an IMPSRC, search via .PATH
772	  o meta_oodate: if a referenced file is missing, target is
773	    out-of-date.
774	  o meta_oodate: if a target uses .OODATE in its commands,
775	    it (.OODATE) needs to be recomputed.
776	  o keep a pointer to youngest child node, rather than just its
777	    mtime.
778	
7792010-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
780
781	* Makefile.in (MAKE_VERSION): bump version to 20101101
782
7832010-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
784
785	* machine.sh: like os.sh, 
786	allow for uname -p producing useless drivel
787
7882010-09-13  Simon J. Gerraty  <sjg@bad.crufty.net>
789
790	* boot-strap: document configure knobs for meta and filemon.
791
792	* Makefile.in (MAKE_VERSION): bump version to 20100911
793	  Merge with NetBSD make, pick up
794	  o meta.c - meta mode
795
796	* make-bootstrap.sh.in: handle meta.c
797	* configure.in: add knobs for use_meta and filemon_h
798	  also, look for dirname, str[e]sep and strlcpy
799	* util.c: add simple err[x] and warn[x]
800
8012010-08-08  Simon J. Gerraty  <sjg@bad.crufty.net>
802
803	* boot-strap (TOOL_DIFF): set this to ensure tests use
804	  the same version of diff that configure tested
805
806	* Makefile.in (MAKE_VERSION): bump version to 20100808
807	  Merge with NetBSD make, pick up
808	  o in jobs mode, when we discover we cannot make something,
809	    call PrintOnError before exit.
810	
8112010-08-06  Simon J. Gerraty  <sjg@bad.crufty.net>
812
813	* Makefile.in (MAKE_VERSION): bump version to 20100806
814	  Merge with NetBSD make, pick up
815	  o formatting fixes for ignored errors
816	  o ensure jobs are cleaned up regardless of where wait() was called.
817
8182010-06-28  Simon J. Gerraty  <sjg@bad.crufty.net>
819
820	* Makefile.in (MAKE_VERSION): bump version to 20100618
821	* os.sh (MACHINE_ARCH): watch out for drivel from uname -p
822
8232010-06-16  Simon J. Gerraty  <sjg@bad.crufty.net>
824
825	* Makefile.in (MAKE_VERSION): bump version to 20100616
826	  Merge with NetBSD make, pick up
827	  o man page update
828	  o call PrintOnError from JobFinish when we detect an error we
829	    are not ignoring. 
830	
8312010-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
832
833	* Makefile.in (MAKE_VERSION): bump version to 20100606
834	  Merge with NetBSD make, pick up
835	  o man page update
836
8372010-06-05  Simon J. Gerraty  <sjg@bad.crufty.net>
838
839	* Makefile.in (MAKE_VERSION): bump version to 20100605
840	  Merge with NetBSD make, pick up
841	  o use bmake_signal() which is a wrapper around sigaction() 
842	    in place of signal()
843	  o add .export-env to allow exporting variables to environment
844	    without tracking (so no re-export when the internal value is
845	    changed).
846	
8472010-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
848
849	* Makefile.in (MAKE_VERSION): bump version to 20100524
850	  Merge with NetBSD make, pick up
851	  o fix for .info et al being greedy.
852
8532010-05-23  Simon J. Gerraty  <sjg@bad.crufty.net>
854
855	* Makefile.in (MAKE_VERSION): bump version to 20100520
856	  Merge with NetBSD make, pick up
857	  o back to using realpath on argv[0] 
858	    but only if contains '/' and does not start with '/'.
859
8602010-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
861
862	* boot-strap: use absolute path for bmake when running tests.
863
864	* Makefile.in (MAKE_VERSION):  bump version to 20100510
865	  Merge with NetBSD make, pick up
866	  o revert use of realpath on argv[0]
867	    too many corner cases.
868	  o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target.
869
8702010-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
871
872	* Makefile.in (MAKE_VERSION): bump version to 20100505
873	  Merge with NetBSD make, pick up
874	  o fix for missed SIGCHLD when compiled with SunPRO
875	    actually for bmake, defining FORCE_POSIX_SIGNALS would have
876	    done the job.
877
8782010-04-30  Simon J. Gerraty  <sjg@bad.crufty.net>
879
880	* Makefile.in (MAKE_VERSION): bump version to 20100430
881	  Merge with NetBSD make, pick up
882	  o fflush stdout before writing to stdout
883	
8842010-04-23  Simon J. Gerraty  <sjg@bad.crufty.net>
885
886	* Makefile.in (MAKE_VERSION): bump version to 20100423
887	  Merge with NetBSD make, pick up
888	  o updated unit tests for Haiku (this time for sure).
889	* boot-strap: based on patch from joerg 
890	  honor --with-default-sys-path better.
891	* boot-strap: remove mention of --with-prefix-sys-path
892	
8932010-04-22  Simon J. Gerraty  <sjg@bad.crufty.net>
894
895	* Makefile.in (MAKE_VERSION): bump version to 20100422
896	* Merge with NetBSD make, pick up
897	  o fix for vfork() on Darwin.
898	  o fix for bogus $TMPDIR.
899	  o set .MAKE.MODE=compat for -B
900	  o set .MAKE.JOBS=max_jobs for -j max_jobs
901	  o allow unit-tests to run without any *.mk
902	  o unit-tests/modmisc be more conservative in dirs presumed to exist.
903	* boot-strap: ignore /usr/share/mk except on NetBSD.
904	* unit-tests/Makefile.in: set LANG=C when running unit-tests to
905	  ensure sort(1) behaves as expected. 
906	
9072010-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
908
909	* boot-strap: add FindHereOrAbove so we can use -m .../mk
910
9112010-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
912
913	* Makefile.in (MAKE_VERSION): bump version to 20100420
914	* Merge with NetBSD make, pick up
915	  o fix for variable realpath() behavior.
916	    we have to stat(2) the result to be sure.
917	  o fix for .export (all) when nested vars use :sh
918	
9192010-04-14  Simon J. Gerraty  <sjg@bad.crufty.net>
920
921	* Makefile.in (MAKE_VERSION): bump version to 20100414
922	* Merge with NetBSD make, pick up
923	  o use realpath to resolve argv[0] (for .MAKE) if needed.
924	  o add realpath from libc.
925	  o add :tA to resolve variable via realpath(3) if possible.
926
9272010-04-08  Simon J. Gerraty  <sjg@bad.crufty.net>
928
929	* Makefile.in (MAKE_VERSION): bump version to 20100408
930	* Merge with NetBSD make, pick up
931	  o unit tests for .ERROR, .error
932	  o fix for .ERROR to ensure it cannot be default target.
933
9342010-04-06  Simon J. Gerraty  <sjg@bad.crufty.net>
935
936	* Makefile.in (MAKE_VERSION): bump version to 20100406
937	* Merge with NetBSD make, pick up
938	  o fix for compat mode "Error code" going to debug_file.
939	  o fix for .ALLSRC being populated twice.
940	  o support for .info, .warning and .error directives
941	  o .MAKE.MODE to control make's operational mode
942	  o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile
943	    name(s).
944	  o .MAKE.DEPENDFILE to control the name of the depend file
945	  o .ERROR target - run on failure.
946	
9472010-03-18  Simon J. Gerraty  <sjg@bad.crufty.net>
948
949	* make-bootstrap.sh.in: extract MAKE_VERSION from Makefile
950
951	* os.sh,arch.c: patch for Haiku from joerg at netbsd
952
9532010-03-17  Simon J. Gerraty  <sjg@bad.crufty.net>
954
955	* Makefile.in (MAKE_VERSION): bump version to 20100222
956	* Merge with NetBSD make, pick up
957	  o better error msg for .for with mutiple inter vars
958	
959	* boot-strap: 
960	  o use make-bootstrap.sh from joerg at netbsd
961	    to avoid the need for a native make when bootstrapping.
962	  o add "" everywhere ;-)
963	  o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1
964	    otherwise the pre-formated version.
965
9662010-01-04  Simon J. Gerraty  <sjg@bad.crufty.net>
967
968	* Makefile.in (MAKE_VERSION): bump version to 20100102
969	* Merge with NetBSD make, pick up:
970	  o fix for -m .../
971
9722009-11-18  Simon J. Gerraty  <sjg@void.crufty.net>
973
974	* Makefile.in (MAKE_VERSION): bump version to 20091118
975	* Merge with NetBSD make, pick up:
976	  o .unexport
977	  o report lines that start with '.' and should have ':'
978	    (catch typo's of .el*if).
979	
9802009-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
981
982	* configure.in: Ensure that srcdir and mksrc are absolute paths.
983
9842009-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
985
986	* Makefile.in (MAKE_VERSION): fix version to 20091007
987
9882009-10-07  Simon J. Gerraty  <sjg@void.crufty.net>
989
990	* Makefile.in (MAKE_VERSION): bump version to 200910007
991	* Merge with NetBSD make, pick up:
992	  o fix for parsing of :S;...;...; applied to .for loop iterator
993	    appearing in a dependency line. 
994	
9952009-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
996
997	* Makefile.in (MAKE_VERSION): bump version to 20090909
998	* Merge with NetBSD make, pick up:
999	  o fix for -C, .CURDIR and .OBJDIR
1000	* boot-strap: 
1001	  o allow share_dir to be set independent of prefix.
1002	  o select default share_dir better when prefix ends in $HOST_TARGET
1003	  o if FORCE_BSD_MK etc were set, include them in the suggested
1004	    install-mk command.
1005
10062009-09-08  Simon J. Gerraty  <sjg@void.crufty.net>
1007
1008	* Makefile.in (MAKE_VERSION): bump version to 20090908
1009	* Merge with NetBSD make, pick up:
1010	  o .MAKE.LEVEL for recursion tracking
1011	  o fix for :M scanning \:
1012
10132009-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
1014
1015	* configure.in: Don't -D__EXTENSIONS__ if
1016	AC_USE_SYSTEM_EXTENSIONS says "no".
1017
10182009-08-26  Simon J. Gerraty  <sjg@void.crufty.net>
1019
1020	* Makefile.in (MAKE_VERSION): bump version to 20090826
1021	Simplify MAKE_VERSION to just the bare date.
1022	* Merge with NetBSD make, pick up:
1023	  o -C directory support.
1024	  o support for SIGINFO
1025	  o use $TMPDIR for temp files.
1026	  o child of vfork should be careful about modifying parent's state.
1027	
1028
10292009-03-26  Simon J. Gerraty  <sjg@void.crufty.net>
1030
1031	* Appy some patches for MiNT from David Brownlee
1032
10332009-02-26  Simon J. Gerraty  <sjg@void.crufty.net>
1034
1035	* Makefile.in (BMAKE_VERSION): bump version to 20090222
1036	* Merge with NetBSD make, pick up:
1037	  o Possible null pointer de-ref in Var_Set.
1038
10392009-02-08  Simon J. Gerraty  <sjg@void.crufty.net>
1040
1041	* Makefile.in (BMAKE_VERSION): bump version to 20090204
1042	* Merge with NetBSD make, pick up:
1043	  o bmake_malloc et al moved to their own .c
1044	  o Count both () and {} when looking for the end of a :M pattern
1045	  o Change 'Buffer' so that it is the actual struct, not a pointer to it.
1046	  o strlist.c - functions for processing extendable arrays of pointers to strings.
1047	  o ClientData replaced with void *, so const void * can be used.
1048	  o New debug flag C for DEBUG_CWD
1049
10502008-11-11  Simon J. Gerraty  <sjg@void.crufty.net>
1051
1052	* Makefile.in (BMAKE_VERSION): bump version to 20081111
1053	  Apply patch from Joerg Sonnenberge to
1054	  configure.in:
1055	  o remove some redundant checks
1056	  o check for emlloc etc only in libutil and require the whole family.
1057	  util.c:
1058	  o remove [v]asprintf which is no longer used.
1059	
10602008-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
1061
1062	* Makefile.in (BMAKE_VERSION): bump version to 20081101
1063	* Merge with NetBSD make, pick up:
1064	  o util.c: avoid use of putenv() - christos
1065
10662008-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
1067
1068	* Makefile.in (BMAKE_VERSION): bump version to 20081030
1069	  pick up man page tweaks.
1070
10712008-10-29  Simon J. Gerraty  <sjg@void.crufty.net>
1072
1073	* Makefile.in: move processing of LIBOBJS to after is definition!
1074	  thus we'll have getenv.c in SRCS only if needed.
1075
1076	* make.1: add examples of how to use :?
1077
1078	* Makefile.in (BMAKE_VERSION): bump version to 20081029
1079	* Merge with NetBSD make, pick up:
1080	  o fix for .END processing with -j
1081	  o segfault from Parse_Error when no makefile is open
1082	  o handle numeric expressions in any variable expansion
1083	  o debug output now defaults to stderr, -dF to change it - apb
1084	  o make now uses bmake_malloc etc so that it can build natively 
1085	    on A/UX - wasn't an issue for bmake, but we want to keep in sync.
1086
10872008-09-27  Simon J. Gerraty  <sjg@void.crufty.net>
1088
1089	* Makefile.in (BMAKE_VERSION): bump version to 20080808
1090	* Merge with NetBSD make, pick up:
1091	  o fix for PR/38840: Pierre Pronchery: make crashes while parsing
1092	    long lines in Makefiles 
1093	  o optimizations for VarQuote by joerg
1094	  o fix for PR/38756: dominik: make dumps core on invalid makefile
1095	
10962008-05-15  Simon J. Gerraty  <sjg@void.crufty.net>
1097
1098	* Makefile.in (BMAKE_VERSION): bump version to 20080515
1099	* Merge with NetBSD make, pick up:
1100	  o fix skip setting vars in VAR_GLOBAL context, to handle
1101	    cases where VAR_CMD is used for other than command line vars.
1102
11032008-05-14  Simon J. Gerraty  <sjg@void.crufty.net>
1104
1105	* boot-strap (make_version): we may need to look in
1106	$prefix/share/mk for sys.mk 
1107
1108	* Makefile.in (BMAKE_VERSION): bump version to 20080514
1109	* Merge with NetBSD make, pick up:
1110	  o skip setting vars in VAR_GLOBAL context, when already set in
1111	  VAR_CMD which takes precedence.
1112
11132008-03-30  Simon J. Gerraty  <sjg@void.crufty.net>
1114
1115	* Makefile.in (BMAKE_VERSION):  bump version to 20080330
1116	* Merge with NetBSD make, pick up:
1117	  o fix for ?= when LHS contains variable reference.
1118
11192008-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
1120
1121	* merge some patches from NetBSD pkgsrc.
1122	
1123	* makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
1124	the MAKSYSPATH used during bootstrap. 
1125
1126	* Makefile.in (BMAKE_VERSION): bump version to 20080215
1127	* Merge with NetBSD make, pick up:
1128	  o warn if non-space chars follow 'empty' in a conditional.
1129
11302008-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
1131
1132	* Makefile.in (BMAKE_VERSION): bump version to 20080118
1133	* Merge with NetBSD make, pick up:
1134	  o consider dependencies read from .depend as optional - dsl
1135	  o remember when buffer for reading makefile grows - dsl
1136	  o add -dl (aka LOUD) - David O'Brien
1137
11382007-10-22  Simon J. Gerraty  <sjg@void.crufty.net>
1139
1140	* Makefile.in (BMAKE_VERSION): bump version to 20071022
1141	* Merge with NetBSD make, pick up:
1142	  o Allow .PATH<suffix> to be used for .include ""
1143
1144	* boot-strap: source default settings from .bmake-boot-strap.rc
1145
11462007-10-16  Simon J. Gerraty  <sjg@void.crufty.net>
1147
1148	* Makefile.in: fix maninstall on various systems 
1149	  provided that our man.mk is used.
1150	  For non-BSD systems we install the preformatted page
1151	  into $MANDIR/cat1
1152
11532007-10-15  Simon J. Gerraty  <sjg@void.crufty.net>
1154
1155	* boot-strap: make bmake.1 too, so maninstall works.
1156
11572007-10-14  Simon J. Gerraty  <sjg@void.crufty.net>
1158
1159	* Makefile.in (BMAKE_VERSION): bump version to 20071014
1160	* Merge with NetBSD make, pick up:
1161	  o revamped handling of defshell - configure no longer needs to
1162	    know the content of the shells array - apb
1163	  o stop Var_Subst modifying its input - apb
1164	  o avoid calling ParseTrackInput too often - dsl
1165
11662007-10-11  Simon J. Gerraty  <sjg@void.crufty.net>
1167
1168	* Makefile.in (BMAKE_VERSION): bump version to 20071011
1169	* Merge with NetBSD make, pick up:
1170	  o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.
1171
1172	* sigcompat.c: some tweaks for HP-UX 11.x based on 
1173	  patch from Tobias Nygren
1174
1175	* configure.in: update handling of --with-defshell to match
1176	  new make behavior.  --with-defshell=/usr/xpg4/bin/sh
1177	  will now do what one might hope - provided the chosen shell
1178	  behaves enough like sh.
1179
11802007-10-08  Simon J. Gerraty  <sjg@void.crufty.net>
1181
1182	* Makefile.in (BMAKE_VERSION): bump to 20071008
1183	* Merge with NetBSD make, pick up:
1184	  o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
1185	  o .export/.MAKE.EXPORTED - export of variables - sjg
1186	  o .MAKE.MAKEFILES - track all makefiles read - sjg
1187	  o performance improvements - dsl
1188	  o revamp parallel job scheduling - dsl
1189	
11902006-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
1191
1192	* Makefile.in (BMAKE_VERSION): bump to 20060728
1193	* Merge with NetBSD make, pick up:
1194	  o extra debug info during variable and cond processing - sjg
1195	  o shell definition now covers newline - rillig
1196	  o minor mem leak in PrintOnError - sjg
1197
11982006-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
1199
1200	* Makefile.in (BMAKE_VERSION):  bump to 20060511
1201	* Merge with NetBSD make, pick up:
1202	  o more memory leaks - coverity
1203	  o possible overflow in ArchFindMember - coverity
1204	  o extract variable modifier code out of Var_Parse()
1205	    so it can be called recursively - sjg
1206	  o unit-tests/moderrs - sjg
1207
12082006-04-12  Simon J. Gerraty  <sjg@void.crufty.net>
1209
1210	* Makefile.in (BMAKE_VERSION): bump to 20060412
1211	* Merge with NetBSD make, pick up:
1212	  o fixes for some memory leaks - coverity
1213	  o only read first sys.mk etc when searching sysIncPath - sjg
1214
1215	* main.c (ReadMakefile): remove hack for __INTERIX that prevented
1216	setting ${MAKEFILE} - OBATA Akio
1217
12182006-03-18  Simon J. Gerraty  <sjg@void.crufty.net>
1219
1220	* Makefile.in (BMAKE_VERSION): bump to 20060318
1221	* Merge with NetBSD make, pick up:
1222	  o cleanup of job.c to remove remote handling, distcc is more
1223	    useful and this code was likely bit-rotting - dsl
1224	  o fix for :P modifier - sjg
1225	* boot-strap: set default prefix to something reasonable 
1226	  (for me anyway). 
1227
12282006-03-01  Simon J. Gerraty  <sjg@void.crufty.net>
1229
1230	* Makefile.in (BMAKE_VERSION): bump to 20060301
1231	* Merge with NetBSD make, pick up:
1232	  o make .WAIT apply recursively, document and test case - apb
1233	  o allow variable modifiers in a variable appear anywhere in
1234	    modifier list, document and test case - sjg
1235
12362006-02-22  Simon J. Gerraty  <sjg@void.crufty.net>
1237
1238	* Makefile.in (BMAKE_VERSION): bump to 20060222
1239	* Merge with NetBSD make, pick up:
1240	  o improved job token handling - dsl
1241	  o SIG_DFL the correct signal before exec - dsl
1242	  o more debug info during parsing - dsl
1243	  o allow variable modifiers to be specified via variable - sjg
1244	* boot-strap: explain why we died if no mksrc
1245
12462005-11-05  Simon J. Gerraty  <sjg@void.crufty.net>
1247
1248	* Makefile.in (BMAKE_VERSION): bump to 20051105
1249	* configure.in: always set default_sys_path 
1250	  default is ${prefix}/share/mk
1251	  - remove prefix_sys_path, anyone wanting more than above
1252	    needs to set it manually.
1253
12542005-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
1255
1256	* boot-strap: make this a bit easier for pkgsrc folk.
1257	  bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
1258	  'mips' while pkgsrc wants 'mipseb' or 'mipsel'
1259
12602005-11-02  Simon J. Gerraty  <sjg@void.crufty.net>
1261
1262	* Makefile.in (BMAKE_VERSION): bump to 20051102
1263	* job.c (JobFinish): fix likely ancient merge lossage
1264	fix from Todd Vierling.
1265	* boot-strap (srcdir): allow setting mksrc=none
1266
12672005-10-31  Simon J. Gerraty  <sjg@void.crufty.net>
1268
1269	* Makefile.in (BMAKE_VERSION): bump to 20051031
1270	* ranlib.h: skip on OSF too.
1271	  (NetBSD PR 31864)
1272
12732005-10-10  Simon J. Gerraty  <sjg@void.crufty.net>
1274
1275	* Makefile.in (BMAKE_VERSION): bump to 20051002
1276	  fix a silly typo
1277
12782005-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
1279
1280	* Makefile.in (BMAKE_VERSION): bump to 20051001
1281	  support for UnixWare and some other systems,
1282	  based on patches from pkgsrc/bootstrap
1283
12842005-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
1285
1286	* Makefile.in (BMAKE_VERSION): bump to 20050901
1287	* Merge with NetBSD make, pick up:
1288	  o possible parse error causing us to wander off.
1289
12902005-06-06  Simon J. Gerraty  <sjg@void.crufty.net>
1291
1292	* Makefile.in (BMAKE_VERSION): bump to 20050606
1293	* Merge with NetBSD make, pick up:
1294	  o :0x modifier for randomizing a list
1295	  o fixes for a number of -Wuninitialized issues.
1296
12972005-05-30  Simon J. Gerraty  <sjg@void.crufty.net>
1298
1299	* Makefile.in (BMAKE_VERSION): bump to 20050530
1300	* Merge with NetBSD make, pick up:
1301	  o Handle dependencies for .BEGIN, .END and .INTERRUPT
1302
1303	* README: was seriously out of date.
1304	
13052005-03-22  Simon J. Gerraty  <sjg@void.crufty.net>
1306
1307	* Important to use .MAKE rather than MAKE.
1308
13092005-03-15  Simon J. Gerraty  <sjg@void.crufty.net>
1310
1311	* Makefile.in (BMAKE_VERSION): bump to 20050315
1312	* Merge with NetBSD make, pick up:
1313	  o don't mistake .elsefoo for .else
1314	  o use suffix-specific search path correctly
1315	  o bunch of style nits
1316
13172004-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
1318
1319	* boot-strap: 
1320	o ensure that args to --src and --with-mksrc
1321	  are resolved before giving them to configure.
1322	o add -o "objdir" so that builder can control it,
1323	  default is $OS as determined by os.sh
1324	o add -q to suppress all the install instructions.
1325
13262004-05-08  Simon J. Gerraty  <sjg@void.crufty.net>
1327
1328	* Remove __IDSTRING()
1329
1330	* Makefile.in (BMAKE_VERSION): bump to 20040508
1331	* Merge with NetBSD make, pick up:
1332	  o posix fixes
1333	    - remove '-e' from compat mode
1334	    - add support for '+' command-line prefix.
1335	  o fix for handling '--' on command-line.
1336	  o fix include in lst.lib/lstInt.h to simplify '-I's
1337	  o we also picked up replacement of MAKE_BOOTSTRAP 
1338	    with !MAKE_NATIVE which is a noop, but possibly confusing.
1339
13402004-04-14  Simon J. Gerraty  <sjg@void.crufty.net>
1341
1342	* Makefile.in (BMAKE_VERSION): bump to 20040414
1343	* Merge with NetBSD make, pick up:
1344	  o allow quoted strings on lhs of conditionals
1345	  o issue warning when extra .else is seen
1346	  o print line numer when errors encountered during parsing from
1347	  string.
1348
13492004-02-20  Simon J. Gerraty  <sjg@void.crufty.net>
1350
1351	* Makefile.in (BMAKE_VERSION):  bump to 20040220
1352	* Merge with NetBSD make, pick up:
1353	  o fix for old :M parsing bug.
1354	  o re-jigged unit-tests
1355
13562004-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
1357
1358	* Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,}
1359	so that './bmake -f Makefile test' works.
1360	
13612004-02-14  Simon J. Gerraty  <sjg@void.crufty.net>
1362
1363	* Makefile.in: (BMAKE_VERSION): bump to 20040214
1364	* Merge with NetBSD make, pick up:
1365	  o search upwards for *.mk
1366	  o fix for double free of var substitution buffers
1367	  o use of getopt replaced with custom code, since the usage
1368	  (re-scanning) isn't posix compatible.
1369
13702004-02-12  Simon J. Gerraty  <sjg@void.crufty.net>
1371
1372	* arch.c: don't include ranlib.h on ELF systems
1373	(thanks to Chuck Cranor <chuck@ece.cmu.edu>).
1374
13752004-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
1376
1377	* Makefile.in (BMAKE_VERSION): bump to 20040118
1378
1379	* boot-strap (while): export vars we assign to on cmdline
1380	* unit-test/Makefile.in: ternary is .PHONY
1381
13822004-01-08  Simon J. Gerraty  <sjg@void.crufty.net>
1383
1384	* Makefile.in (BMAKE_VERSION): bump version to 20040108
1385	* Merge with NetBSD make, pick up:
1386	  o fix for ternary modifier
1387
13882004-01-06  Simon J. Gerraty  <sjg@void.crufty.net>
1389
1390	* Makefile.in (BMAKE_VERSION): bump version to 20040105
1391	* Merge with NetBSD make, pick up:
1392	  o fix for cond.c to handle compound expressions better
1393	  o variable expansion within sysV style replacements
1394	  
13952003-12-22  Simon J. Gerraty  <sjg@void.crufty.net>
1396
1397	* Make portable snprintf safer - output to /dev/null first to
1398	check space needed.
1399
1400	* Makefile.in (BMAKE_VERSION): bump version to 20031222
1401	* Merge with NetBSD make, pick up:
1402	  o -dg3 to show input graph when things go wrong.
1403	  o explicitly look for makefiles in objdir if not found in curdir so
1404	    that errors in .depend etc will be reported accurarely. 
1405	  o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
1406	    instead as it more accurately reflects the expected behavior and
1407	    is more consistently implemented.
1408	  o avoid use of asprintf.
1409
14102003-09-28  Simon J. Gerraty  <sjg@void.crufty.net>
1411
1412	* util.c: Add asprintf and vasprintf.
1413
1414	* Makefile.in (BMAKE_VERSION): bump version to 20030928
1415	* Merge with NetBSD make, pick up:
1416	:[] modifier - allows picking words from a variable.
1417	:tW modifier - allows treating value as one big word.
1418	W flag for :C and :S - allows treating value as one big word.
1419	
14202003-09-12  Simon J. Gerraty  <sjg@void.crufty.net>
1421
1422	* Merge with NetBSD make
1423	pick up -de flag to enable printing failed command.
1424	don't skip 1st two dir entries (normally . and ..) since
1425	coda does not have them.
1426
14272003-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
1428
1429	* Makefile.in (BMAKE_VERSION): bump version to 20030909
1430	* Merge with NetBSD make, pick up:
1431	- changes for -V '${VAR}' to print fully expanded value
1432	  cf. -V VAR
1433	- CompatRunCommand now prints the command that failed.
1434	- several files got updated 3 clause Berkeley license.
1435	
14362003-08-02  Simon J. Gerraty  <sjg@void.crufty.net>
1437
1438	* boot-strap: Allow setting configure args on command line.
1439
14402003-07-31  Simon J. Gerraty  <sjg@void.crufty.net>
1441
1442	* configure.in: add --with-defshell to allow sh or ksh
1443	to be selected as default shell.
1444
1445	* Makefile.in: bump version to 20030731
1446
1447	* Merge with NetBSD make 
1448	Pick up .SHELL spec for ksh and associate man page changes.
1449	Also compat mode now uses the same shell specs.
1450
14512003-07-29  Simon J. Gerraty  <sjg@void.crufty.net>
1452
1453	* var.c (Var_Parse): ensure delim is initialized.
1454
1455	* unit-tests/Makefile.in: use single quotes to avoid problems from
1456	some shells.
1457
1458	* makefile.boot.in:
1459	Run the unit-tests as part of the bootstrap procedure.
1460
14612003-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
1462
1463	* unit-tests/Makefile.in: always force complaints from
1464	${TEST_MAKE} to be from 'make'.
1465
1466	* configure.in: add check for 'diff -u'
1467	also fix some old autoconf'isms
1468	
1469	* Makefile.in (BMAKE_VERSION): bump version to 20030728.
1470	if using GCC add -Wno-cast-qual to CFLAGS for var.o
1471
1472	* Merge with NetBSD make
1473	Pick up fix for :ts parsing error in some cases.
1474	Pick unit-tests.
1475
14762003-07-23  Simon J. Gerraty  <sjg@void.crufty.net>
1477
1478	* Makefile.in (BMAKE_VERSION): bump version to 20030723.
1479
1480	* var.c (Var_Parse): fix bug in :ts modifier, after const
1481	correctness fixes, must pass nstr to VarModify.
1482
14832003-07-14  Simon J. Gerraty  <sjg@void.crufty.net>
1484
1485	* Makefile.in: BMAKE_VERSION switch to a date based version.
1486	We'll generally use the date of last import from NetBSD.
1487
1488	* Merge with NetBSD make
1489	Pick up fixes for const-correctness, now passes WARNS=3 on
1490	NetBSD.
1491	Pick up :ts modifier, allows controlling the separator used
1492	between words in variable expansion.
1493
14942003-07-11  Simon J. Gerraty  <sjg@void.crufty.net>
1495
1496	* FILES: include boot-strap and os.sh
1497
1498	* Makefile.in: only set WARNS if we are NetBSD, the effect on
1499	FreeBSD is known to be bad.
1500
1501	* makefile.boot.in (bootstrap): make this the default target.
1502
1503	* Makefile.in: bump version to 3.1.19
1504
1505	* machine.sh: avoid A-Z with tr as it is bound to lose.
1506
15072003-07-10  Simon J. Gerraty  <sjg@void.crufty.net>
1508
1509	* Merge with NetBSD make
1510	Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
1511	Plus some doc fixes.
1512	
15132003-04-27  Simon J. Gerraty  <sjg@void.crufty.net>
1514
1515	* Merge with NetBSD make
1516	Pick up fix for PR/1523 - don't count a library as built, if there
1517	is no way to build it 
1518
1519	* Bump version to 3.1.18
1520
15212003-03-23  Simon J. Gerraty  <sjg@void.crufty.net>
1522
1523	* Merge with NetBSD make
1524	Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT
1525	appears in src list.
1526
15272003-03-21  Simon J. Gerraty  <sjg@void.crufty.net>
1528
1529	* Merge with NetBSD make (mmm 10th anniversary!)
1530	pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828)
1531	pick up -X which tells us to not export VAR=val via setenv if
1532	we are already doing so via MAKEFLAGS.  This saves valuable env
1533	space on systems like Darwin.
1534	set MAKE_VERSION to 3.1.17
1535
1536	* parse.c: pix up fix for suffix rules
1537
15382003-03-06  Simon J. Gerraty  <sjg@void.crufty.net>
1539
1540	* Merge with NetBSD make.
1541	pick up fix for propagating -B via MAKEFLAGS.
1542	set MAKE_VERSION to 3.1.16
1543
1544	* Apply some patches from pkgsrc-bootstrap/bmake
1545	Originally by Grant Beattie <grant@netbsd.org>
1546	I may have missed some - since they are based on bmake-3.1.12
1547	
15482002-12-03  Simon J. Gerraty  <sjg@void.crufty.net>
1549
1550	* makefile.boot.in (bmake): update install targets for those that
1551	use them, also clear MAKEFLAGS when invoking bmake.boot to avoid
1552	havoc from gmake -w.  Thanks to Harlan Stenn <hstenn@cisco.com>.
1553
1554	* bmake.cat1: update the pre-formatted man page!
1555
15562002-11-30  Simon J. Gerraty  <sjg@void.crufty.net>
1557
1558	* Merge with NetBSD make.
1559	pick up fix for premature free of pointer used in call
1560	to Dir_InitCur().
1561	set MAKE_VERSION to 3.1.15
1562
15632002-11-26  Simon J. Gerraty  <sjg@void.crufty.net>
1564
1565	* configure.in: determine suitable value for MKSRC.
1566	override using --with-mksrc=PATH.
1567
1568	* machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems.
1569	configs(8) will use 'sun4' as an alias for 'sparc'.
1570
15712002-11-25  Simon J. Gerraty  <sjg@void.crufty.net>
1572
1573	* Merge with NetBSD make.
1574	pick up ${.PATH}
1575	pick up fix for finding ../cat.c via .PATH when .CURDIR=..
1576	set MAKE_VERSION to 3.1.14
1577	add configure checks for killpg and sys/socket.h
1578
15792002-09-16  Simon J. Gerraty  <sjg@void.crufty.net>
1580
1581	* tag bmake-3-1-13
1582	
1583	* makefile.boot.in (bmake): use install-mk
1584	Also setup ./mk before trying to invoke bmake.boot incase we
1585	needed install-mk to create a sys.mk for us. 
1586
1587	* configure.in: If we need to add -I${srcdir}/missing, make it an
1588	absolute path so that it works for lst.lib too.
1589
1590	* make.h: always include sys/cdefs.h since we provide one if the
1591	host does not.
1592	
1593	* Makefile.in (install-mk): 
1594	use MKSRC/install-mk which will do the right thing.
1595	use uname -p for ARCH if possible.
1596	since install-mk will setup links bsd.prog.mk -> prog.mk if
1597	needed, just .include bsd.prog.mk
1598
1599	* Merge with NetBSD make (NetBSD-1.6)
1600	Code is ansi-C only now.
1601	Bug in handling of dotLast is fixed.
1602	Can now assign .OBJDIR and make will reset its notions of life.
1603	New modifiers :tu :tl for toUpper and toLower.
1604
1605Tue Oct 16 12:18:42 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
1606
1607	* Merge with NetBSD make
1608	pick up fix for .END failure in compat mode.
1609	pick up fix for extra va_end() in ParseVErrorInternal.
1610
1611Thu Oct 11 13:20:06 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
1612
1613	* configure.in: for systems that have sys/cdefs.h check if it is
1614	compatible.  If not, include the one under missing, but tell it to
1615	include the native one too - necessary on Linux.
1616
1617	* missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use
1618	include_next (for gcc) to get the native sys/cdefs.h
1619
1620Tue Aug 21 02:29:34 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1621
1622	* job.c (JobFinish): Fix an earlier merge bug that resulted in
1623	leaking descriptors when using -jN.
1624	
1625	* job.c (JobPrintCommand): See if "curdir" exists before
1626	attempting to chdir().  Doing the chdir directly in make (when in
1627	compat mode) fails silently, so let the -jN version do the same.
1628	This can happen when building kernels in an object tree and
1629	playing clever games to reset .CURDIR.
1630
1631	* Merged with NetBSD make
1632	pick up .USEBEFORE
1633
1634Tue Jun 26 23:45:11 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1635
1636	* makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work.
1637
1638Tue Jun 12 16:48:57 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1639
1640	* var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
1641	us not to export the iterator variable when using VAR_CMD context.
1642
1643Sun Jun 10 21:55:21 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1644
1645	* job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
1646	its the wrong "fix".
1647
1648Sat Jun  9 00:11:24 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1649
1650	* Redesigned export of VAR_CMD's via MAKEFLAGS.
1651	We now simply append the variable names to .MAKEOVERRIDES, and
1652	handle duplicate suppression and quoting in ExportMAKEFLAGS using:
1653	${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
1654	Apart from fixing quoting bugs in previous version, this allows us
1655	to export vars to the environment by simply doing:
1656	.MAKEOVERRIDES+= PATH 
1657	Merged again with NetBSD make, but the above is the only change.
1658
1659	* configure.in: added
1660	--disable-pwd-override		disable $PWD overriding getcwd()
1661	--disable-check-make-chdir	disable make trying to guess 
1662		when it should automatically cd ${.CURDIR}
1663
1664	* Merge with NetBSD make, changes include:
1665	parse.c (ParseDoDependency): Spot that the syntax error is
1666	caused by an unresolved cvs/rcs conflict and say so.
1667	var.c: most of Var* functions now take a ctxt as 1st arg.
1668	now does variable substituion on rhs of sysv style modifiers.
1669	
1670	* var.c (Var_Set): exporting of command line variables (VAR_CMD)
1671	is now done here.  We append the name='value' to .MAKEOVERRIDES
1672	rather than directly into MAKEFLAGS as this allows a Makefile to
1673	use .MAKEOVERRIDES= to disable this behaviour.  GNU make uses a
1674	very similar mechanism.  Note that in adding name='value' to
1675	.MAKEOVERRIDES we do the moral equivalent of:
1676	.MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
1677
1678Fri Jun  1 14:08:02 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1679
1680	* make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H
1681
1682	* Merged with NetBSD make
1683	make -dx can now be used to run commands via sh -x
1684	better error messages on exec failures.
1685
1686Thu May 31 01:44:54 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1687
1688	* Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that
1689	MAKE_VERSION gets updated.  Also don't use ?= for MAKE_VERSION,
1690	MACHINE etc otherwise they propagate from the previous bmake.
1691
1692	* configure.in (machine): allow --with-machine=generic to make
1693	configure use machine.sh to set MACHINE. 
1694
1695	* job.c (JobInterrupt): convert to using WAIT_T and friends.
1696
1697	* Makefile.in: mention in bmake.1 that we use autoconf.
1698
1699	* make.1: mention MAKE_PRINT_VAR_ON_ERROR.
1700
1701Wed May 30 23:17:18 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1702
1703	* main.c (ReadMakefile): don't set MAKEFILE if reading ".depend"
1704	as that rather defeats the usefulness of ${MAKEFILE}.
1705
1706	* main.c (MainParseArgs): append command line variable assignments
1707	to MAKEFLAGS so that they get propagated to child make's.
1708	Apparently this is required POSIX behaviour?  Its useful anyway.
1709
1710Tue May 29 02:20:07 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1711
1712	* compat.c (CompatRunCommand): don't use perror() since stdio may
1713	cause problems in child of vfork().
1714
1715	* compat.c, main.c: Call PrintOnError() when we are going to bail.
1716	This routine prints out the .curdir where we stopped and will also
1717	display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}.
1718
1719	* main.c: add ${.newline} to hold a "\n" - sometimes handy in
1720	:@ expansion.
1721
1722	* var.c: VarLoopExpand: ignore addSpace if a \n is present.
1723
1724	* Added RCSid's for the files we've touched.
1725	
1726Thu May 24 15:41:37 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1727
1728	* configure.in:	Thanks to some clues from mdb@juniper.net,
1729	added autoconf magic to control setting of MACHINE, MACHINE_ARCH
1730	as well as what ends up in _PATH_DEFSYSPATH.  We now have:
1731
1732  --with-machine=MACHINE  explicitly set MACHINE
1733  --with-force-machine=MACHINE  set FORCE_MACHINE
1734  --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
1735  --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
1736  --with-prefix-sys-path=PATH:DIR:LIST  prefix _PATH_PREFIX_SYSPATH
1737  --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
1738 	
1739	If _PATH_OBJDIRPREFIX is set to "no" we won't define it.
1740
1741	* makefile: added a pathetically simple makefile to drive
1742	bootstrapping.  Running configure by hand is more useful.
1743
1744	* Makefile.in: added MAKE_VERSION, and reworked things to be less
1745	dependent on NetBSD bsd.*.mk
1746	
1747	* pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining
1748	_PATH_OBJDIRPREFIX for those that don't want a default.
1749	construct _PATH_DEFSYSPATH from the info we get from configure.
1750
1751	* main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION}
1752	if MAKE_VERSION is defined.
1753	
1754	* compat.c: when we bail, print out the .CURDIR we were in.
1755	
1756Sat May 12 00:34:12 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1757
1758	* Merged with NetBSD make
1759
1760	* var.c: fixed a bug in the handling of the modifier :P
1761	if the node as found but the path was null, we segfault trying to
1762	duplicate it.
1763
1764Mon Mar  5 16:20:33 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1765
1766	* Merged with NetBSD make
1767	
1768	* make.c: Make_OODate's test for a library out of date was using
1769	cmtime where it should have used mtime (my bug).
1770
1771	* compat.c: Use perror() to tell us what really went wrong when we
1772	cannot exec a command.
1773	
1774Fri Dec 15 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1775
1776	* Merged with NetBSD make
1777	
1778Sat Jun 10 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1779
1780	* Merged with NetBSD make
1781	
1782Thu Jun  1 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1783
1784	* Merged with NetBSD make
1785	
1786Tue May 30 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1787
1788	* Merged with NetBSD make
1789	
1790Thu Apr 27 00:07:47 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1791
1792	* util.c: don't provide signal() since we use sigcompat.c
1793
1794	* Makefile.in: added a build target.
1795
1796	* var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :!
1797	These allow some quite clever magic.
1798
1799	* main.c (main): added support for getenv(MAKESYSPATH).
1800
1801Mon Apr  2 16:25:13 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1802
1803	* Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set.
1804	This avoids objdir having a different value depending on how a
1805	directory was reached (via command line, or subdir.mk).
1806
1807	* If FORCE_MACHINE is defined, ignore getenv("MACHINE").
1808	
1809Mon Apr  2 23:15:31 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1810
1811	* Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if
1812	MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not.
1813	I've been testing this in NetBSD's make for some weeks.
1814
1815	* Turn Makefile into Makefile.in and make it useful.
1816	
1817Tue Feb 29 22:08:00 2000 Simon J. Gerraty  <sjg@zen.quick.com.au>
1818
1819	* Imported NetBSD's -current make(1) and resolve conflicts.
1820	
1821	* Applied autoconf patches from bmake v2
1822
1823	* Imported clean code base from NetBSD-1.0
1824