ChangeLog revision 251422
1251422Ssjg2013-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
2251422Ssjg
3251422Ssjg	* Makefile (MAKE_VERSION): 20130604
4251422Ssjg	  Merge with NetBSD make, pick up
5251422Ssjg	  o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's
6251422Ssjg	    to avoid leaking descriptors.
7251422Ssjg
8251422Ssjg2013-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
9251422Ssjg
10251422Ssjg	* Makefile (MAKE_VERSION): 20130528
11251422Ssjg	  Merge with NetBSD make, pick up
12251422Ssjg	  o var.c: cleanup some left-overs in VarHash()
13251422Ssjg
14250837Ssjg2013-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
15250837Ssjg
16250837Ssjg	* Makefile (MAKE_VERSION): 20130520
17250837Ssjg	  generate manifest from component FILES rather than have to
18250837Ssjg	  update FILES when mk/FILES changes.
19250837Ssjg
20250837Ssjg2013-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
21250837Ssjg
22250837Ssjg	* Makefile (MAKE_VERSION): 20130518
23250837Ssjg	  Merge with NetBSD make, pick up
24250837Ssjg	  o suff.c: don't skip all processsing for .PHONY targets
25250837Ssjg	    else wildcard srcs do not get expanded.
26250837Ssjg	  o var.c: expand name of variable to delete if necessary.
27250837Ssjg
28249033Ssjg2013-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
29249033Ssjg
30249033Ssjg	* Makefile (MAKE_VERSION): 20130330
31249033Ssjg	  Merge with NetBSD make, pick up
32249033Ssjg	  o meta.c: refine the handling of .OODATE in commands.
33249033Ssjg	    Rather than suppress command comparison for the entire script
34249033Ssjg	    as though .NOMETA_CMP had been used, only suppress it for the
35249033Ssjg	    one command line.
36249033Ssjg	    This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 
37249033Ssjg	    suppress comparison of a command without otherwise affecting it.
38249033Ssjg	  o make.1: document that
39249033Ssjg
40249033Ssjg2013-03-22  Simon J. Gerraty  <sjg@bad.crufty.net>
41249033Ssjg
42249033Ssjg	* Makefile (MAKE_VERSION): 20130321
43249033Ssjg	  yes, not quite right but its a cooler number.
44249033Ssjg	  Merge with NetBSD make, pick up
45249033Ssjg	  o parse.c: fix ParseGmakeExport to be portable 
46249033Ssjg	    and add a unit-test.
47249033Ssjg	* meta.c: call meta_init() before makefiles are read and if built
48249033Ssjg	  with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON
49249033Ssjg	  this let's makefiles test for support.
50249033Ssjg	  Call meta_mode_init() to process .MAKE.MODE.
51249033Ssjg
52249033Ssjg2013-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
53249033Ssjg
54249033Ssjg	* Makefile (MAKE_VERSION): 20130305
55249033Ssjg	  Merge with NetBSD make, pick up
56249033Ssjg	  o run .STALE: target when a dependency from .depend is missing.
57249033Ssjg	  o job.c: add Job_RunTarget() for the above and .BEGIN
58249033Ssjg
59249033Ssjg2013-03-03  Simon J. Gerraty  <sjg@bad.crufty.net>
60249033Ssjg
61249033Ssjg	* Makefile (MAKE_VERSION): 20130303
62249033Ssjg	  Merge with NetBSD make, pick up
63249033Ssjg	  o main.c: set .MAKE.OS to utsname.sysname
64249033Ssjg	  o job.c: more checks for read and poll errors
65249033Ssjg	  o var.c: lose VarChangeCase() saves 4% time
66249033Ssjg
67249033Ssjg2013-03-02  Simon J. Gerraty  <sjg@bad.crufty.net>
68249033Ssjg
69249033Ssjg	* boot-strap: remove MAKEOBJDIRPREFIX from environment since we
70249033Ssjg	  want to use MAKEOBJDIR
71249033Ssjg
72246223Ssjg2013-01-27  Simon J. Gerraty  <sjg@bad.crufty.net>
73246223Ssjg
74246223Ssjg	* Merge with NetBSD make, pick up
75246223Ssjg	  o make.1: more info on how shell commands are handled.
76246223Ssjg	  o job.c,main.c: detect write errors to job pipes.
77246223Ssjg
78246223Ssjg2013-01-25  Simon J. Gerraty  <sjg@bad.crufty.net>
79246223Ssjg
80246223Ssjg	* Makefile (MAKE_VERSION): 20130123
81246223Ssjg	  Merge with NetBSD make, pick up
82246223Ssjg	  o meta.c: if script uses .OODATE and meta_oodate() decides
83246223Ssjg	    rebuild is needed, .OODATE will be empty - set it to .ALLSRC.
84246223Ssjg	  o var.c: in debug output indicate which variabale modifiers
85246223Ssjg	    apply to.
86246223Ssjg	  o remove Check_Cwd logic the makefiles have been fixed.
87246223Ssjg	
88246223Ssjg2012-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
89246223Ssjg
90246223Ssjg	* makefile.in: add a simple makefile for folk who insist on
91246223Ssjg	  ./configure; make; make install
92246223Ssjg	  it just runs boot-strap
93246223Ssjg	* include mk/* to accommodate the above
94246223Ssjg	* boot-strap:  re-work to accommodate the above
95246223Ssjg	  mksrc defaults to $Mydir/mk
96246223Ssjg	  allow op={configure,build,install,clean,all}
97246223Ssjg	  add options to facilitate install
98246223Ssjg	* Makefile.config.in: just the bits set by configure
99246223Ssjg	* Makefile: bump version to 20121212
100246223Ssjg	  abandon Makefile.in (NetBSD Makefile)
101246223Ssjg	  leverage mk/* instead
102246223Ssjg	* configure.in: ensure srcdir is absolute
103246223Ssjg
104243115Ssjg2012-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
105243115Ssjg
106243115Ssjg	* Makefile.in (MAKE_VERSION): 20121111
107243115Ssjg	  fix generation of bmake.cat1
108243115Ssjg
109243115Ssjg2012-11-09  Simon J. Gerraty  <sjg@bad.crufty.net>
110243115Ssjg
111243115Ssjg	* Makefile.in (MAKE_VERSION): 20121109
112243115Ssjg	  Merge with NetBSD make, pick up
113243115Ssjg	  o make.c: MakeBuildChild: return 0 so search continues if a
114243115Ssjg	    .ORDER dependency is detected.
115243115Ssjg	  o unit-tests/order: test the above
116243115Ssjg	
117243115Ssjg2012-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
118243115Ssjg
119243115Ssjg	* Makefile.in (MAKE_VERSION): 20121102
120243115Ssjg	  Merge with NetBSD make, pick up
121243115Ssjg	  o cond.c: allow cond_state[] to grow.
122243115Ssjg	    In meta mode with a very large tree, we can hit the limit
123243115Ssjg	    while processing dirdeps.
124243115Ssjg	
125243115Ssjg2012-10-25  Simon J. Gerraty  <sjg@bad.crufty.net>
126243115Ssjg
127243115Ssjg	* Makefile.in: we need to use ${srcdir} not ${.CURDIR}
128243115Ssjg
129242102Ssjg2012-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
130242102Ssjg
131242102Ssjg	* Makefile.in (MAKE_VERSION): 20121010
132242102Ssjg	  o protect syntax that only bmake parses correctly.
133242102Ssjg	  o remove auto setting of FORCE_MACHINE, use configure's
134242102Ssjg	    --with-force-machine=whatever if that is desired.
135242102Ssjg	
136242102Ssjg2012-10-08  Simon J. Gerraty  <sjg@bad.crufty.net>
137242102Ssjg
138242102Ssjg	* Makefile.in: do not lose history from make.1 when generating bmake.1
139242102Ssjg
140242102Ssjg2012-10-07  Simon J. Gerraty  <sjg@bad.crufty.net>
141242102Ssjg
142242102Ssjg	* Makefile.in (MAKE_VERSION): 20121007
143242102Ssjg	  Merge with NetBSD make, pick up
144242102Ssjg	  o compat.c: ignore empty commands - same as jobs mode.
145242102Ssjg	  o make.1: document meta chars that cause use of shell
146242102Ssjg
147242102Ssjg2012-09-11  Simon J. Gerraty  <sjg@bad.crufty.net>
148242102Ssjg
149242102Ssjg	* Makefile.in (MAKE_VERSION): bump version to 20120911
150242102Ssjg	* bsd.after-import.mk: include Makefile.inc early and allow it to
151242102Ssjg	  override PROG
152242102Ssjg
153240330Smarcel2012-08-31  Simon J. Gerraty  <sjg@bad.crufty.net>
154240330Smarcel
155240330Smarcel	* Makefile.in (MAKE_VERSION): bump version to 20120831
156240330Smarcel	  Merge with NetBSD make, pick up
157240330Smarcel	  o cast sizeof() to int for comparison
158240330Smarcel	  o minor make.1 tweak
159240330Smarcel
160240330Smarcel2012-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
161240330Smarcel
162240330Smarcel	* Makefile.in (MAKE_VERSION): bump version to 20120830
163240330Smarcel	  Merge with NetBSD make, pick up
164240330Smarcel	  o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V
165240330Smarcel	  o debug flag -dV causes -V to show raw value regardless.
166240330Smarcel	
167240330Smarcel2012-07-05  Simon J. Gerraty  <sjg@bad.crufty.net>
168240330Smarcel
169240330Smarcel	* bsd.after-import.mk (after-import): ensure unit-tests/Makefile
170240330Smarcel	  gets SRCTOP set.
171240330Smarcel
172238152Sobrien2012-07-04  Simon J. Gerraty  <sjg@bad.crufty.net>
173238152Sobrien
174238152Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120704
175238152Sobrien	  Merge with NetBSD make, pick up
176238152Sobrien	  o Job_ParseShell should call Shell_Init if it has been
177238152Sobrien	    previously called.
178238152Sobrien	* Makefile.in: set USE_META based on configure result.
179238152Sobrien	  also .PARSEDIR is safer indicator of bmake.
180238152Sobrien
181238152Sobrien2012-06-26  Simon J. Gerraty  <sjg@bad.crufty.net>
182238152Sobrien
183238152Sobrien	* Makefile.in: bump version to 20120626
184238152Sobrien	  ensure CPPFLAGS is in CFLAGS
185238152Sobrien	* meta.c: avoid nested externs
186238152Sobrien	* bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target
187238152Sobrien	
188237578Sobrien2012-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
189237578Sobrien
190237578Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120620
191237578Sobrien	  Merge with NetBSD make, pick up
192237578Sobrien	  o make_malloc.c: avoid including make_malloc.h again
193237578Sobrien
194237578Sobrien	* Makefile.in: avoid bmake only syntax or protect with
195237578Sobrien	  .if defined(.MAKE.LEVEL)
196237578Sobrien	* bsd.after-import.mk: replace .-include with .sinclude
197237578Sobrien	  ensure? SRCTOP gets a value
198237578Sobrien	* configure.in: look for filemon.h in /usr/include/dev/filemon first.
199237578Sobrien
200237578Sobrien2012-06-19  Simon J. Gerraty  <sjg@bad.crufty.net>
201237578Sobrien
202237578Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120612
203237578Sobrien	  Merge with NetBSD make, pick up
204237578Sobrien	  o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler
205237578Sobrien	    for greater portability.
206237578Sobrien	  o unit-tests/forloop: check that .for works as expected wrt
207237578Sobrien	    number of times and with "quoted strings".
208237578Sobrien	
209236769Sobrien2012-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
210236769Sobrien
211236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120606
212236769Sobrien	  Merge with NetBSD make, pick up
213236769Sobrien	  o compat.c: use kill(2) rather than raise(3).
214236769Sobrien	* configure.in: look for sys/dev/filemon
215236769Sobrien	* bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile
216236769Sobrien	  and pass BOOTSTRAP_XTRAS to boot-strap.
217236769Sobrien
218236769Sobrien2012-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
219236769Sobrien
220236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120604
221236769Sobrien	  Merge with NetBSD make, pick up
222236769Sobrien	  o util.c and var.c share same var for tracking if environ
223236769Sobrien	    has been reallocated.
224236769Sobrien	  o util.c provide getenv with setenv.
225236769Sobrien	* Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL
226236769Sobrien	  when the shell actively strips .MAKE.* from the environment.
227236769Sobrien	  We still refer to the variable always as .MAKE.LEVEL
228236769Sobrien	* util.c fix bug in findenv() was finding prefix of name.
229236769Sobrien	* compat.c: re-raising SIGINT etc after running .INTERRUPT
230236769Sobrien	  results in more reliable termination of all activity on many
231236769Sobrien	  platforms.
232236769Sobrien
233236769Sobrien2012-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
234236769Sobrien
235236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120602
236236769Sobrien	  Merge with NetBSD make, pick up
237236769Sobrien	  o for.c: handle quoted items in .for list
238236769Sobrien
239236769Sobrien2012-05-30  Simon J. Gerraty  <sjg@bad.crufty.net>
240236769Sobrien
241236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120530
242236769Sobrien	  Merge with NetBSD make, pick up
243236769Sobrien	  o compat.c: ignore empty command.
244236769Sobrien
245236769Sobrien2012-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
246236769Sobrien
247236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120524
248236769Sobrien	* FILES: add bsd.after-import.mk:
249236769Sobrien	  A simple means of integrating bmake into a BSD build system.
250236769Sobrien
251236769Sobrien2012-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
252236769Sobrien
253236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120520
254236769Sobrien	  Merge with NetBSD make, pick up
255236769Sobrien	  o increased limit for nested conditionals.
256236769Sobrien	
257236769Sobrien2012-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
258236769Sobrien
259236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120518
260236769Sobrien	  Merge with NetBSD make, pick up
261236769Sobrien	  o use _exit(2) in signal hanlder
262236769Sobrien	  o Don't use the [dir] cache when building nodes that might have
263236769Sobrien	    changed since the last exec.
264236769Sobrien	  o Avoid nested extern declaration warnings.
265236769Sobrien
266236769Sobrien2012-04-27  Simon J. Gerraty  <sjg@bad.crufty.net>
267236769Sobrien
268236769Sobrien	* meta.c (fgetLine): avoid %z - not portable.
269236769Sobrien	* parse.c: Since we moved include of sys/mman.h
270236769Sobrien	  and def's of MAP_COPY etc. we got dups from a merge.
271236769Sobrien
272236769Sobrien2012-04-24  Simon J. Gerraty  <sjg@bad.crufty.net>
273236769Sobrien
274236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120420
275236769Sobrien	  Merge with NetBSD make, pick up
276236769Sobrien	  o restore duplicate supression in .MAKE.MAKEFILES
277236769Sobrien	    runtime saving can be significant.
278236769Sobrien	  o Var_Subst() uses Buf_DestroyCompact() to reduce memory
279236769Sobrien	    consumption up to 20%. 
280236769Sobrien
281236769Sobrien2012-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
282236769Sobrien
283236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120420
284236769Sobrien          Merge with NetBSD make, pick up
285236769Sobrien	  o remove duplicate supression in .MAKE.MAKEFILES
286236769Sobrien	  o improved dir cache behavior
287236769Sobrien	  o gmake'ish export command
288236769Sobrien	
289236769Sobrien2012-03-25  Simon J. Gerraty  <sjg@bad.crufty.net>
290236769Sobrien
291236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120325
292236769Sobrien	  Merge with NetBSD make, pick up
293236769Sobrien	  o fix parsing of :[#] in conditionals.
294236769Sobrien
295236769Sobrien2012-02-10  Simon J. Gerraty  <sjg@bad.crufty.net>
296236769Sobrien
297236769Sobrien	* Makefile.in: replace use of .Nx in bmake.1 with NetBSD
298236769Sobrien	  since some systems cannot cope with .Nx <version>
299236769Sobrien
300236769Sobrien2011-11-14  Simon J. Gerraty  <sjg@bad.crufty.net>
301236769Sobrien
302236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20111111
303236769Sobrien	  Merge with NetBSD make, pick up
304236769Sobrien	  o debug output for .PARSEDIR and .PARSEFILE
305236769Sobrien
306236769Sobrien2011-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
307236769Sobrien
308236769Sobrien	* Makefile.in (MAKE_VERSION):  bump version to 20111010
309236769Sobrien
310236769Sobrien2011-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
311236769Sobrien
312236769Sobrien	* boot-strap: check for an expected file in the dirs we look for.
313236769Sobrien	* make-bootstrap.sh: pass on LDSTATIC
314236769Sobrien
315236769Sobrien2011-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
316236769Sobrien
317236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20111001
318236769Sobrien	  Merge with NetBSD make, pick up
319236769Sobrien	  o ensure .PREFIX is set for .PHONY
320236769Sobrien	    and .TARGET set for .PHONY run via .END
321236769Sobrien	  o __dead used consistently
322236769Sobrien	
323236769Sobrien2011-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
324236769Sobrien
325236769Sobrien	* Makefile.in (MAKE_VERSION): 20110909 is a better number ;-)
326236769Sobrien
327236769Sobrien2011-09-05  Simon J. Gerraty  <sjg@bad.crufty.net>
328236769Sobrien
329236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110905
330236769Sobrien	  Merge with NetBSD make, pick up
331236769Sobrien	  o meta_oodate: ignore makeDependfile
332236769Sobrien	
333236769Sobrien2011-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
334236769Sobrien
335236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110828
336236769Sobrien	  Merge with NetBSD make, pick up
337236769Sobrien	  o silent=yes in .MAKE.MODE causes meta mode to mark targets 
338236769Sobrien	    as SILENT if a .meta file is created
339236769Sobrien
340236769Sobrien2011-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
341236769Sobrien
342236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110818
343236769Sobrien	  Merge with NetBSD make, pick up
344236769Sobrien	  o in meta mode, if target flagged .META a missing .meta file
345236769Sobrien	    means target is out-of-date
346236769Sobrien	  o fixes for gcc 4.5 warnings
347236769Sobrien	  o simplify job printing code
348236769Sobrien	
349236769Sobrien2011-08-09  Simon J. Gerraty  <sjg@bad.crufty.net>
350236769Sobrien
351236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110808
352236769Sobrien	  Merge with NetBSD make, pick up
353236769Sobrien	  o do not touch OP_SPECIAL targets when doing make -t
354236769Sobrien	
355236769Sobrien2011-06-22  Simon J. Gerraty  <sjg@bad.crufty.net>
356236769Sobrien
357236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110622
358236769Sobrien	  Merge with NetBSD make, pick up
359236769Sobrien	  o meta_oodate detect corrupted .meta file and declare oodate.
360236769Sobrien	* configure.in: add check for setsid
361236769Sobrien	
362236769Sobrien2011-06-07  Simon J. Gerraty  <sjg@bad.crufty.net>
363236769Sobrien
364236769Sobrien	* Merge with NetBSD make, pick up
365236769Sobrien	  o unit-tests/modts now works on MirBSD
366236769Sobrien
367236769Sobrien2011-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
368236769Sobrien
369236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110606
370236769Sobrien	  Merge with NetBSD make, pick up
371236769Sobrien	  o ApplyModifiers: when we parse a variable which is not
372236769Sobrien	    the entire modifier string, or not followed by ':', do not
373236769Sobrien	    consider it as containing modifiers.
374236769Sobrien	  o loadfile: ensure newline at end of mapped file.
375236769Sobrien
376236769Sobrien2011-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
377236769Sobrien
378236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110505
379236769Sobrien	  Merge with NetBSD make, pick up
380236769Sobrien	  o .MAKE.META.BAILIWICK - list of prefixes which define the scope
381236769Sobrien	    of make's control.  In meta mode, any generated file within
382236769Sobrien	    said bailiwick, which  is found to be missing, causes current
383236769Sobrien	    target to be out-of-date. 
384236769Sobrien	
385236769Sobrien2011-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
386236769Sobrien
387236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110411
388236769Sobrien	  Merge with NetBSD make, pick up
389236769Sobrien	  o when long modifiers fail to match, check sysV style.
390236769Sobrien	    - add a test case
391236769Sobrien	
392236769Sobrien2011-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
393236769Sobrien
394236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110410
395236769Sobrien	  Merge with NetBSD make, pick up
396236769Sobrien	  o :hash - cheap 32bit hash of value
397236769Sobrien	  o :localtime, :gmtime - use value as format string for strftime.
398236769Sobrien	
399236769Sobrien2011-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
400236769Sobrien
401236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110330
402236769Sobrien	  mostly because its a cooler version.
403236769Sobrien	  Merge with NetBSD make, pick up
404236769Sobrien	  o NetBSD tags for meta.[ch]
405236769Sobrien	  o job.c call meta_job_finish() after meta_job_error().
406236769Sobrien	  o meta_job_error() should call meta_job_finish() to ensure
407236769Sobrien	    .meta file is closed, and safe to copy - if .ERROR target wants.
408236769Sobrien	   meta_job_finish() is safe to call repeatedly.
409236769Sobrien	
410236769Sobrien2011-03-29  Simon J. Gerraty  <sjg@bad.crufty.net>
411236769Sobrien
412236769Sobrien	* unit-tests/modts: use printf if it is a builtin, 
413236769Sobrien	  to save us from MirBSD
414236769Sobrien
415236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110329
416236769Sobrien	  Merge with NetBSD make, pick up
417236769Sobrien	  o fix for use after free() in CondDoExists().
418236769Sobrien	  o meta_oodate() report extra commands and return earlier.
419236769Sobrien	
420236769Sobrien2011-03-27  Simon J. Gerraty  <sjg@bad.crufty.net>
421236769Sobrien
422236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110327
423236769Sobrien	  Merge with NetBSD make, pick up
424236769Sobrien	  o meta.c, if .MAKE.MODE contains curdirOk=yes
425236769Sobrien	    allow creating .meta files in .CURDIR
426236769Sobrien	* boot-strap (TOOL_DIFF): aparently at least on linux distro
427236769Sobrien	  formats the output of 'type' differently - so eat any "()"
428236769Sobrien
429236769Sobrien2011-03-06  Simon J. Gerraty  <sjg@bad.crufty.net>
430236769Sobrien
431236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110306
432236769Sobrien	  Merge with NetBSD make, pick up
433236769Sobrien	  o meta.c, only do getcwd() once
434236769Sobrien	
435236769Sobrien2011-03-05  Simon J. Gerraty  <sjg@bad.crufty.net>
436236769Sobrien
437236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110305
438236769Sobrien	  Merge with NetBSD make, pick up
439236769Sobrien	  o correct sysV substitution handling of empty lhs and variable
440236769Sobrien	  o correct exists() check for dir with trailing /
441236769Sobrien	  o correct handling of modifiers for non-existant variables
442236769Sobrien	    during evaluation of conditionals.
443236769Sobrien	  o ensure MAP_FILE is defined.
444236769Sobrien	  o meta.c use curdir[] now exported by main.c
445236769Sobrien	
446236769Sobrien2011-02-25  Simon J. Gerraty  <sjg@bad.crufty.net>
447236769Sobrien
448236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110225
449236769Sobrien	  Merge with NetBSD make, pick up
450236769Sobrien	  o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after
451236769Sobrien	    makefiles have been read.
452236769Sobrien	  o fix example of :? modifier in man page.
453236769Sobrien	
454236769Sobrien2011-02-13  Simon J. Gerraty  <sjg@bad.crufty.net>
455236769Sobrien
456236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110214
457236769Sobrien	  Merge with NetBSD make, pick up
458236769Sobrien	  o meta.c handle realpath() failing when generating meta file
459236769Sobrien	    name.
460236769Sobrien
461236769Sobrien	* sigcompat.c: convert to ansi so we can use higher warning levels.
462236769Sobrien
463236769Sobrien
464236769Sobrien2011-02-07  Simon J. Gerraty  <sjg@bad.crufty.net>
465236769Sobrien
466236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110207
467236769Sobrien	  Merge with NetBSD make, pick up
468236769Sobrien	  o fix for bug in meta mode.
469236769Sobrien	
470236769Sobrien2011-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
471236769Sobrien
472236769Sobrien	* parse.c: SunOS 5.8 at least does not have MAP_FILE
473236769Sobrien
474236769Sobrien2011-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
475236769Sobrien
476236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110101
477236769Sobrien	  Merge with NetBSD make, pick up
478236769Sobrien	  o use mmap(2) if available, for reading makefiles
479236769Sobrien
480236769Sobrien2010-12-15  Simon J. Gerraty  <sjg@bad.crufty.net>
481236769Sobrien
482236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20101215
483236769Sobrien	  Merge with NetBSD make, pick up
484236769Sobrien	  o ensure meta_job_error() does not report a previous .meta file
485236769Sobrien	    as being culprit.
486236769Sobrien
487236769Sobrien2010-12-10  Simon J. Gerraty  <sjg@bad.crufty.net>
488236769Sobrien
489236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20101210
490236769Sobrien	  Merge with NetBSD make, pick up
491236769Sobrien	  o meta_oodate: track cwd per process, and only consider target
492236769Sobrien	    out-of-date if missing file is outside make's CWD.
493236769Sobrien	    Ignore files in /tmp/ etc.
494236769Sobrien	  o to ensure unit-tests results match, need to control LC_ALL
495236769Sobrien	    as well as LANG.
496236769Sobrien	  o fix for parsing bug in var.c
497236769Sobrien
498236769Sobrien2010-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
499236769Sobrien
500236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20101126
501236769Sobrien	  Merge with NetBSD make, pick up
502236769Sobrien	  o if stale dependency is an IMPSRC, search via .PATH
503236769Sobrien	  o meta_oodate: if a referenced file is missing, target is
504236769Sobrien	    out-of-date.
505236769Sobrien	  o meta_oodate: if a target uses .OODATE in its commands,
506236769Sobrien	    it (.OODATE) needs to be recomputed.
507236769Sobrien	  o keep a pointer to youngest child node, rather than just its
508236769Sobrien	    mtime.
509236769Sobrien	
510236769Sobrien2010-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
511236769Sobrien
512236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20101101
513236769Sobrien
514236769Sobrien2010-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
515236769Sobrien
516236769Sobrien	* machine.sh: like os.sh, 
517236769Sobrien	allow for uname -p producing useless drivel
518236769Sobrien
519236769Sobrien2010-09-13  Simon J. Gerraty  <sjg@bad.crufty.net>
520236769Sobrien
521236769Sobrien	* boot-strap: document configure knobs for meta and filemon.
522236769Sobrien
523236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100911
524236769Sobrien	  Merge with NetBSD make, pick up
525236769Sobrien	  o meta.c - meta mode
526236769Sobrien
527236769Sobrien	* make-bootstrap.sh.in: handle meta.c
528236769Sobrien	* configure.in: add knobs for use_meta and filemon_h
529236769Sobrien	  also, look for dirname, str[e]sep and strlcpy
530236769Sobrien	* util.c: add simple err[x] and warn[x]
531236769Sobrien
532236769Sobrien2010-08-08  Simon J. Gerraty  <sjg@bad.crufty.net>
533236769Sobrien
534236769Sobrien	* boot-strap (TOOL_DIFF): set this to ensure tests use
535236769Sobrien	  the same version of diff that configure tested
536236769Sobrien
537236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100808
538236769Sobrien	  Merge with NetBSD make, pick up
539236769Sobrien	  o in jobs mode, when we discover we cannot make something,
540236769Sobrien	    call PrintOnError before exit.
541236769Sobrien	
542236769Sobrien2010-08-06  Simon J. Gerraty  <sjg@bad.crufty.net>
543236769Sobrien
544236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100806
545236769Sobrien	  Merge with NetBSD make, pick up
546236769Sobrien	  o formatting fixes for ignored errors
547236769Sobrien	  o ensure jobs are cleaned up regardless of where wait() was called.
548236769Sobrien
549236769Sobrien2010-06-28  Simon J. Gerraty  <sjg@bad.crufty.net>
550236769Sobrien
551236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100618
552236769Sobrien	* os.sh (MACHINE_ARCH): watch out for drivel from uname -p
553236769Sobrien
554236769Sobrien2010-06-16  Simon J. Gerraty  <sjg@bad.crufty.net>
555236769Sobrien
556236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100616
557236769Sobrien	  Merge with NetBSD make, pick up
558236769Sobrien	  o man page update
559236769Sobrien	  o call PrintOnError from JobFinish when we detect an error we
560236769Sobrien	    are not ignoring. 
561236769Sobrien	
562236769Sobrien2010-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
563236769Sobrien
564236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100606
565236769Sobrien	  Merge with NetBSD make, pick up
566236769Sobrien	  o man page update
567236769Sobrien
568236769Sobrien2010-06-05  Simon J. Gerraty  <sjg@bad.crufty.net>
569236769Sobrien
570236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100605
571236769Sobrien	  Merge with NetBSD make, pick up
572236769Sobrien	  o use bmake_signal() which is a wrapper around sigaction() 
573236769Sobrien	    in place of signal()
574236769Sobrien	  o add .export-env to allow exporting variables to environment
575236769Sobrien	    without tracking (so no re-export when the internal value is
576236769Sobrien	    changed).
577236769Sobrien	
578236769Sobrien2010-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
579236769Sobrien
580236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100524
581236769Sobrien	  Merge with NetBSD make, pick up
582236769Sobrien	  o fix for .info et al being greedy.
583236769Sobrien
584236769Sobrien2010-05-23  Simon J. Gerraty  <sjg@bad.crufty.net>
585236769Sobrien
586236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100520
587236769Sobrien	  Merge with NetBSD make, pick up
588236769Sobrien	  o back to using realpath on argv[0] 
589236769Sobrien	    but only if contains '/' and does not start with '/'.
590236769Sobrien
591236769Sobrien2010-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
592236769Sobrien
593236769Sobrien	* boot-strap: use absolute path for bmake when running tests.
594236769Sobrien
595236769Sobrien	* Makefile.in (MAKE_VERSION):  bump version to 20100510
596236769Sobrien	  Merge with NetBSD make, pick up
597236769Sobrien	  o revert use of realpath on argv[0]
598236769Sobrien	    too many corner cases.
599236769Sobrien	  o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target.
600236769Sobrien
601236769Sobrien2010-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
602236769Sobrien
603236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100505
604236769Sobrien	  Merge with NetBSD make, pick up
605236769Sobrien	  o fix for missed SIGCHLD when compiled with SunPRO
606236769Sobrien	    actually for bmake, defining FORCE_POSIX_SIGNALS would have
607236769Sobrien	    done the job.
608236769Sobrien
609236769Sobrien2010-04-30  Simon J. Gerraty  <sjg@bad.crufty.net>
610236769Sobrien
611236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100430
612236769Sobrien	  Merge with NetBSD make, pick up
613236769Sobrien	  o fflush stdout before writing to stdout
614236769Sobrien	
615236769Sobrien2010-04-23  Simon J. Gerraty  <sjg@bad.crufty.net>
616236769Sobrien
617236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100423
618236769Sobrien	  Merge with NetBSD make, pick up
619236769Sobrien	  o updated unit tests for Haiku (this time for sure).
620236769Sobrien	* boot-strap: based on patch from joerg 
621236769Sobrien	  honor --with-default-sys-path better.
622236769Sobrien	* boot-strap: remove mention of --with-prefix-sys-path
623236769Sobrien	
624236769Sobrien2010-04-22  Simon J. Gerraty  <sjg@bad.crufty.net>
625236769Sobrien
626236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100422
627236769Sobrien	* Merge with NetBSD make, pick up
628236769Sobrien	  o fix for vfork() on Darwin.
629236769Sobrien	  o fix for bogus $TMPDIR.
630236769Sobrien	  o set .MAKE.MODE=compat for -B
631236769Sobrien	  o set .MAKE.JOBS=max_jobs for -j max_jobs
632236769Sobrien	  o allow unit-tests to run without any *.mk
633236769Sobrien	  o unit-tests/modmisc be more conservative in dirs presumed to exist.
634236769Sobrien	* boot-strap: ignore /usr/share/mk except on NetBSD.
635236769Sobrien	* unit-tests/Makefile.in: set LANG=C when running unit-tests to
636236769Sobrien	  ensure sort(1) behaves as expected. 
637236769Sobrien	
638236769Sobrien2010-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
639236769Sobrien
640236769Sobrien	* boot-strap: add FindHereOrAbove so we can use -m .../mk
641236769Sobrien
642236769Sobrien2010-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
643236769Sobrien
644236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100420
645236769Sobrien	* Merge with NetBSD make, pick up
646236769Sobrien	  o fix for variable realpath() behavior.
647236769Sobrien	    we have to stat(2) the result to be sure.
648236769Sobrien	  o fix for .export (all) when nested vars use :sh
649236769Sobrien	
650236769Sobrien2010-04-14  Simon J. Gerraty  <sjg@bad.crufty.net>
651236769Sobrien
652236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100414
653236769Sobrien	* Merge with NetBSD make, pick up
654236769Sobrien	  o use realpath to resolve argv[0] (for .MAKE) if needed.
655236769Sobrien	  o add realpath from libc.
656236769Sobrien	  o add :tA to resolve variable via realpath(3) if possible.
657236769Sobrien
658236769Sobrien2010-04-08  Simon J. Gerraty  <sjg@bad.crufty.net>
659236769Sobrien
660236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100408
661236769Sobrien	* Merge with NetBSD make, pick up
662236769Sobrien	  o unit tests for .ERROR, .error
663236769Sobrien	  o fix for .ERROR to ensure it cannot be default target.
664236769Sobrien
665236769Sobrien2010-04-06  Simon J. Gerraty  <sjg@bad.crufty.net>
666236769Sobrien
667236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100406
668236769Sobrien	* Merge with NetBSD make, pick up
669236769Sobrien	  o fix for compat mode "Error code" going to debug_file.
670236769Sobrien	  o fix for .ALLSRC being populated twice.
671236769Sobrien	  o support for .info, .warning and .error directives
672236769Sobrien	  o .MAKE.MODE to control make's operational mode
673236769Sobrien	  o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile
674236769Sobrien	    name(s).
675236769Sobrien	  o .MAKE.DEPENDFILE to control the name of the depend file
676236769Sobrien	  o .ERROR target - run on failure.
677236769Sobrien	
678236769Sobrien2010-03-18  Simon J. Gerraty  <sjg@bad.crufty.net>
679236769Sobrien
680236769Sobrien	* make-bootstrap.sh.in: extract MAKE_VERSION from Makefile
681236769Sobrien
682236769Sobrien	* os.sh,arch.c: patch for Haiku from joerg at netbsd
683236769Sobrien
684236769Sobrien2010-03-17  Simon J. Gerraty  <sjg@bad.crufty.net>
685236769Sobrien
686236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100222
687236769Sobrien	* Merge with NetBSD make, pick up
688236769Sobrien	  o better error msg for .for with mutiple inter vars
689236769Sobrien	
690236769Sobrien	* boot-strap: 
691236769Sobrien	  o use make-bootstrap.sh from joerg at netbsd
692236769Sobrien	    to avoid the need for a native make when bootstrapping.
693236769Sobrien	  o add "" everywhere ;-)
694236769Sobrien	  o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1
695236769Sobrien	    otherwise the pre-formated version.
696236769Sobrien
697236769Sobrien2010-01-04  Simon J. Gerraty  <sjg@bad.crufty.net>
698236769Sobrien
699236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100102
700236769Sobrien	* Merge with NetBSD make, pick up:
701236769Sobrien	  o fix for -m .../
702236769Sobrien
703236769Sobrien2009-11-18  Simon J. Gerraty  <sjg@void.crufty.net>
704236769Sobrien
705236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20091118
706236769Sobrien	* Merge with NetBSD make, pick up:
707236769Sobrien	  o .unexport
708236769Sobrien	  o report lines that start with '.' and should have ':'
709236769Sobrien	    (catch typo's of .el*if).
710236769Sobrien	
711236769Sobrien2009-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
712236769Sobrien
713236769Sobrien	* configure.in: Ensure that srcdir and mksrc are absolute paths.
714236769Sobrien
715236769Sobrien2009-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
716236769Sobrien
717236769Sobrien	* Makefile.in (MAKE_VERSION): fix version to 20091007
718236769Sobrien
719236769Sobrien2009-10-07  Simon J. Gerraty  <sjg@void.crufty.net>
720236769Sobrien
721236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 200910007
722236769Sobrien	* Merge with NetBSD make, pick up:
723236769Sobrien	  o fix for parsing of :S;...;...; applied to .for loop iterator
724236769Sobrien	    appearing in a dependency line. 
725236769Sobrien	
726236769Sobrien2009-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
727236769Sobrien
728236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20090909
729236769Sobrien	* Merge with NetBSD make, pick up:
730236769Sobrien	  o fix for -C, .CURDIR and .OBJDIR
731236769Sobrien	* boot-strap: 
732236769Sobrien	  o allow share_dir to be set independent of prefix.
733236769Sobrien	  o select default share_dir better when prefix ends in $HOST_TARGET
734236769Sobrien	  o if FORCE_BSD_MK etc were set, include them in the suggested
735236769Sobrien	    install-mk command.
736236769Sobrien
737236769Sobrien2009-09-08  Simon J. Gerraty  <sjg@void.crufty.net>
738236769Sobrien
739236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20090908
740236769Sobrien	* Merge with NetBSD make, pick up:
741236769Sobrien	  o .MAKE.LEVEL for recursion tracking
742236769Sobrien	  o fix for :M scanning \:
743236769Sobrien
744236769Sobrien2009-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
745236769Sobrien
746236769Sobrien	* configure.in: Don't -D__EXTENSIONS__ if
747236769Sobrien	AC_USE_SYSTEM_EXTENSIONS says "no".
748236769Sobrien
749236769Sobrien2009-08-26  Simon J. Gerraty  <sjg@void.crufty.net>
750236769Sobrien
751236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20090826
752236769Sobrien	Simplify MAKE_VERSION to just the bare date.
753236769Sobrien	* Merge with NetBSD make, pick up:
754236769Sobrien	  o -C directory support.
755236769Sobrien	  o support for SIGINFO
756236769Sobrien	  o use $TMPDIR for temp files.
757236769Sobrien	  o child of vfork should be careful about modifying parent's state.
758236769Sobrien	
759236769Sobrien
760236769Sobrien2009-03-26  Simon J. Gerraty  <sjg@void.crufty.net>
761236769Sobrien
762236769Sobrien	* Appy some patches for MiNT from David Brownlee
763236769Sobrien
764236769Sobrien2009-02-26  Simon J. Gerraty  <sjg@void.crufty.net>
765236769Sobrien
766236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20090222
767236769Sobrien	* Merge with NetBSD make, pick up:
768236769Sobrien	  o Possible null pointer de-ref in Var_Set.
769236769Sobrien
770236769Sobrien2009-02-08  Simon J. Gerraty  <sjg@void.crufty.net>
771236769Sobrien
772236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20090204
773236769Sobrien	* Merge with NetBSD make, pick up:
774236769Sobrien	  o bmake_malloc et al moved to their own .c
775236769Sobrien	  o Count both () and {} when looking for the end of a :M pattern
776236769Sobrien	  o Change 'Buffer' so that it is the actual struct, not a pointer to it.
777236769Sobrien	  o strlist.c - functions for processing extendable arrays of pointers to strings.
778236769Sobrien	  o ClientData replaced with void *, so const void * can be used.
779236769Sobrien	  o New debug flag C for DEBUG_CWD
780236769Sobrien
781236769Sobrien2008-11-11  Simon J. Gerraty  <sjg@void.crufty.net>
782236769Sobrien
783236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20081111
784236769Sobrien	  Apply patch from Joerg Sonnenberge to
785236769Sobrien	  configure.in:
786236769Sobrien	  o remove some redundant checks
787236769Sobrien	  o check for emlloc etc only in libutil and require the whole family.
788236769Sobrien	  util.c:
789236769Sobrien	  o remove [v]asprintf which is no longer used.
790236769Sobrien	
791236769Sobrien2008-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
792236769Sobrien
793236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20081101
794236769Sobrien	* Merge with NetBSD make, pick up:
795236769Sobrien	  o util.c: avoid use of putenv() - christos
796236769Sobrien
797236769Sobrien2008-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
798236769Sobrien
799236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20081030
800236769Sobrien	  pick up man page tweaks.
801236769Sobrien
802236769Sobrien2008-10-29  Simon J. Gerraty  <sjg@void.crufty.net>
803236769Sobrien
804236769Sobrien	* Makefile.in: move processing of LIBOBJS to after is definition!
805236769Sobrien	  thus we'll have getenv.c in SRCS only if needed.
806236769Sobrien
807236769Sobrien	* make.1: add examples of how to use :?
808236769Sobrien
809236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20081029
810236769Sobrien	* Merge with NetBSD make, pick up:
811236769Sobrien	  o fix for .END processing with -j
812236769Sobrien	  o segfault from Parse_Error when no makefile is open
813236769Sobrien	  o handle numeric expressions in any variable expansion
814236769Sobrien	  o debug output now defaults to stderr, -dF to change it - apb
815236769Sobrien	  o make now uses bmake_malloc etc so that it can build natively 
816236769Sobrien	    on A/UX - wasn't an issue for bmake, but we want to keep in sync.
817236769Sobrien
818236769Sobrien2008-09-27  Simon J. Gerraty  <sjg@void.crufty.net>
819236769Sobrien
820236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080808
821236769Sobrien	* Merge with NetBSD make, pick up:
822236769Sobrien	  o fix for PR/38840: Pierre Pronchery: make crashes while parsing
823236769Sobrien	    long lines in Makefiles 
824236769Sobrien	  o optimizations for VarQuote by joerg
825236769Sobrien	  o fix for PR/38756: dominik: make dumps core on invalid makefile
826236769Sobrien	
827236769Sobrien2008-05-15  Simon J. Gerraty  <sjg@void.crufty.net>
828236769Sobrien
829236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080515
830236769Sobrien	* Merge with NetBSD make, pick up:
831236769Sobrien	  o fix skip setting vars in VAR_GLOBAL context, to handle
832236769Sobrien	    cases where VAR_CMD is used for other than command line vars.
833236769Sobrien
834236769Sobrien2008-05-14  Simon J. Gerraty  <sjg@void.crufty.net>
835236769Sobrien
836236769Sobrien	* boot-strap (make_version): we may need to look in
837236769Sobrien	$prefix/share/mk for sys.mk 
838236769Sobrien
839236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080514
840236769Sobrien	* Merge with NetBSD make, pick up:
841236769Sobrien	  o skip setting vars in VAR_GLOBAL context, when already set in
842236769Sobrien	  VAR_CMD which takes precedence.
843236769Sobrien
844236769Sobrien2008-03-30  Simon J. Gerraty  <sjg@void.crufty.net>
845236769Sobrien
846236769Sobrien	* Makefile.in (BMAKE_VERSION):  bump version to 20080330
847236769Sobrien	* Merge with NetBSD make, pick up:
848236769Sobrien	  o fix for ?= when LHS contains variable reference.
849236769Sobrien
850236769Sobrien2008-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
851236769Sobrien
852236769Sobrien	* merge some patches from NetBSD pkgsrc.
853236769Sobrien	
854236769Sobrien	* makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
855236769Sobrien	the MAKSYSPATH used during bootstrap. 
856236769Sobrien
857236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080215
858236769Sobrien	* Merge with NetBSD make, pick up:
859236769Sobrien	  o warn if non-space chars follow 'empty' in a conditional.
860236769Sobrien
861236769Sobrien2008-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
862236769Sobrien
863236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080118
864236769Sobrien	* Merge with NetBSD make, pick up:
865236769Sobrien	  o consider dependencies read from .depend as optional - dsl
866236769Sobrien	  o remember when buffer for reading makefile grows - dsl
867236769Sobrien	  o add -dl (aka LOUD) - David O'Brien
868236769Sobrien
869236769Sobrien2007-10-22  Simon J. Gerraty  <sjg@void.crufty.net>
870236769Sobrien
871236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20071022
872236769Sobrien	* Merge with NetBSD make, pick up:
873236769Sobrien	  o Allow .PATH<suffix> to be used for .include ""
874236769Sobrien
875236769Sobrien	* boot-strap: source default settings from .bmake-boot-strap.rc
876236769Sobrien
877236769Sobrien2007-10-16  Simon J. Gerraty  <sjg@void.crufty.net>
878236769Sobrien
879236769Sobrien	* Makefile.in: fix maninstall on various systems 
880236769Sobrien	  provided that our man.mk is used.
881236769Sobrien	  For non-BSD systems we install the preformatted page
882236769Sobrien	  into $MANDIR/cat1
883236769Sobrien
884236769Sobrien2007-10-15  Simon J. Gerraty  <sjg@void.crufty.net>
885236769Sobrien
886236769Sobrien	* boot-strap: make bmake.1 too, so maninstall works.
887236769Sobrien
888236769Sobrien2007-10-14  Simon J. Gerraty  <sjg@void.crufty.net>
889236769Sobrien
890236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20071014
891236769Sobrien	* Merge with NetBSD make, pick up:
892236769Sobrien	  o revamped handling of defshell - configure no longer needs to
893236769Sobrien	    know the content of the shells array - apb
894236769Sobrien	  o stop Var_Subst modifying its input - apb
895236769Sobrien	  o avoid calling ParseTrackInput too often - dsl
896236769Sobrien
897236769Sobrien2007-10-11  Simon J. Gerraty  <sjg@void.crufty.net>
898236769Sobrien
899236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20071011
900236769Sobrien	* Merge with NetBSD make, pick up:
901236769Sobrien	  o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.
902236769Sobrien
903236769Sobrien	* sigcompat.c: some tweaks for HP-UX 11.x based on 
904236769Sobrien	  patch from Tobias Nygren
905236769Sobrien
906236769Sobrien	* configure.in: update handling of --with-defshell to match
907236769Sobrien	  new make behavior.  --with-defshell=/usr/xpg4/bin/sh
908236769Sobrien	  will now do what one might hope - provided the chosen shell
909236769Sobrien	  behaves enough like sh.
910236769Sobrien
911236769Sobrien2007-10-08  Simon J. Gerraty  <sjg@void.crufty.net>
912236769Sobrien
913236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20071008
914236769Sobrien	* Merge with NetBSD make, pick up:
915236769Sobrien	  o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
916236769Sobrien	  o .export/.MAKE.EXPORTED - export of variables - sjg
917236769Sobrien	  o .MAKE.MAKEFILES - track all makefiles read - sjg
918236769Sobrien	  o performance improvements - dsl
919236769Sobrien	  o revamp parallel job scheduling - dsl
920236769Sobrien	
921236769Sobrien2006-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
922236769Sobrien
923236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060728
924236769Sobrien	* Merge with NetBSD make, pick up:
925236769Sobrien	  o extra debug info during variable and cond processing - sjg
926236769Sobrien	  o shell definition now covers newline - rillig
927236769Sobrien	  o minor mem leak in PrintOnError - sjg
928236769Sobrien
929236769Sobrien2006-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
930236769Sobrien
931236769Sobrien	* Makefile.in (BMAKE_VERSION):  bump to 20060511
932236769Sobrien	* Merge with NetBSD make, pick up:
933236769Sobrien	  o more memory leaks - coverity
934236769Sobrien	  o possible overflow in ArchFindMember - coverity
935236769Sobrien	  o extract variable modifier code out of Var_Parse()
936236769Sobrien	    so it can be called recursively - sjg
937236769Sobrien	  o unit-tests/moderrs - sjg
938236769Sobrien
939236769Sobrien2006-04-12  Simon J. Gerraty  <sjg@void.crufty.net>
940236769Sobrien
941236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060412
942236769Sobrien	* Merge with NetBSD make, pick up:
943236769Sobrien	  o fixes for some memory leaks - coverity
944236769Sobrien	  o only read first sys.mk etc when searching sysIncPath - sjg
945236769Sobrien
946236769Sobrien	* main.c (ReadMakefile): remove hack for __INTERIX that prevented
947236769Sobrien	setting ${MAKEFILE} - OBATA Akio
948236769Sobrien
949236769Sobrien2006-03-18  Simon J. Gerraty  <sjg@void.crufty.net>
950236769Sobrien
951236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060318
952236769Sobrien	* Merge with NetBSD make, pick up:
953236769Sobrien	  o cleanup of job.c to remove remote handling, distcc is more
954236769Sobrien	    useful and this code was likely bit-rotting - dsl
955236769Sobrien	  o fix for :P modifier - sjg
956236769Sobrien	* boot-strap: set default prefix to something reasonable 
957236769Sobrien	  (for me anyway). 
958236769Sobrien
959236769Sobrien2006-03-01  Simon J. Gerraty  <sjg@void.crufty.net>
960236769Sobrien
961236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060301
962236769Sobrien	* Merge with NetBSD make, pick up:
963236769Sobrien	  o make .WAIT apply recursively, document and test case - apb
964236769Sobrien	  o allow variable modifiers in a variable appear anywhere in
965236769Sobrien	    modifier list, document and test case - sjg
966236769Sobrien
967236769Sobrien2006-02-22  Simon J. Gerraty  <sjg@void.crufty.net>
968236769Sobrien
969236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060222
970236769Sobrien	* Merge with NetBSD make, pick up:
971236769Sobrien	  o improved job token handling - dsl
972236769Sobrien	  o SIG_DFL the correct signal before exec - dsl
973236769Sobrien	  o more debug info during parsing - dsl
974236769Sobrien	  o allow variable modifiers to be specified via variable - sjg
975236769Sobrien	* boot-strap: explain why we died if no mksrc
976236769Sobrien
977236769Sobrien2005-11-05  Simon J. Gerraty  <sjg@void.crufty.net>
978236769Sobrien
979236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051105
980236769Sobrien	* configure.in: always set default_sys_path 
981236769Sobrien	  default is ${prefix}/share/mk
982236769Sobrien	  - remove prefix_sys_path, anyone wanting more than above
983236769Sobrien	    needs to set it manually.
984236769Sobrien
985236769Sobrien2005-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
986236769Sobrien
987236769Sobrien	* boot-strap: make this a bit easier for pkgsrc folk.
988236769Sobrien	  bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
989236769Sobrien	  'mips' while pkgsrc wants 'mipseb' or 'mipsel'
990236769Sobrien
991236769Sobrien2005-11-02  Simon J. Gerraty  <sjg@void.crufty.net>
992236769Sobrien
993236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051102
994236769Sobrien	* job.c (JobFinish): fix likely ancient merge lossage
995236769Sobrien	fix from Todd Vierling.
996236769Sobrien	* boot-strap (srcdir): allow setting mksrc=none
997236769Sobrien
998236769Sobrien2005-10-31  Simon J. Gerraty  <sjg@void.crufty.net>
999236769Sobrien
1000236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051031
1001236769Sobrien	* ranlib.h: skip on OSF too.
1002236769Sobrien	  (NetBSD PR 31864)
1003236769Sobrien
1004236769Sobrien2005-10-10  Simon J. Gerraty  <sjg@void.crufty.net>
1005236769Sobrien
1006236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051002
1007236769Sobrien	  fix a silly typo
1008236769Sobrien
1009236769Sobrien2005-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
1010236769Sobrien
1011236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051001
1012236769Sobrien	  support for UnixWare and some other systems,
1013236769Sobrien	  based on patches from pkgsrc/bootstrap
1014236769Sobrien
1015236769Sobrien2005-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
1016236769Sobrien
1017236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20050901
1018236769Sobrien	* Merge with NetBSD make, pick up:
1019236769Sobrien	  o possible parse error causing us to wander off.
1020236769Sobrien
1021236769Sobrien2005-06-06  Simon J. Gerraty  <sjg@void.crufty.net>
1022236769Sobrien
1023236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20050606
1024236769Sobrien	* Merge with NetBSD make, pick up:
1025236769Sobrien	  o :0x modifier for randomizing a list
1026236769Sobrien	  o fixes for a number of -Wuninitialized issues.
1027236769Sobrien
1028236769Sobrien2005-05-30  Simon J. Gerraty  <sjg@void.crufty.net>
1029236769Sobrien
1030236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20050530
1031236769Sobrien	* Merge with NetBSD make, pick up:
1032236769Sobrien	  o Handle dependencies for .BEGIN, .END and .INTERRUPT
1033236769Sobrien
1034236769Sobrien	* README: was seriously out of date.
1035236769Sobrien	
1036236769Sobrien2005-03-22  Simon J. Gerraty  <sjg@void.crufty.net>
1037236769Sobrien
1038236769Sobrien	* Important to use .MAKE rather than MAKE.
1039236769Sobrien
1040236769Sobrien2005-03-15  Simon J. Gerraty  <sjg@void.crufty.net>
1041236769Sobrien
1042236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20050315
1043236769Sobrien	* Merge with NetBSD make, pick up:
1044236769Sobrien	  o don't mistake .elsefoo for .else
1045236769Sobrien	  o use suffix-specific search path correctly
1046236769Sobrien	  o bunch of style nits
1047236769Sobrien
1048236769Sobrien2004-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
1049236769Sobrien
1050236769Sobrien	* boot-strap: 
1051236769Sobrien	o ensure that args to --src and --with-mksrc
1052236769Sobrien	  are resolved before giving them to configure.
1053236769Sobrien	o add -o "objdir" so that builder can control it,
1054236769Sobrien	  default is $OS as determined by os.sh
1055236769Sobrien	o add -q to suppress all the install instructions.
1056236769Sobrien
1057236769Sobrien2004-05-08  Simon J. Gerraty  <sjg@void.crufty.net>
1058236769Sobrien
1059236769Sobrien	* Remove __IDSTRING()
1060236769Sobrien
1061236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20040508
1062236769Sobrien	* Merge with NetBSD make, pick up:
1063236769Sobrien	  o posix fixes
1064236769Sobrien	    - remove '-e' from compat mode
1065236769Sobrien	    - add support for '+' command-line prefix.
1066236769Sobrien	  o fix for handling '--' on command-line.
1067236769Sobrien	  o fix include in lst.lib/lstInt.h to simplify '-I's
1068236769Sobrien	  o we also picked up replacement of MAKE_BOOTSTRAP 
1069236769Sobrien	    with !MAKE_NATIVE which is a noop, but possibly confusing.
1070236769Sobrien
1071236769Sobrien2004-04-14  Simon J. Gerraty  <sjg@void.crufty.net>
1072236769Sobrien
1073236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20040414
1074236769Sobrien	* Merge with NetBSD make, pick up:
1075236769Sobrien	  o allow quoted strings on lhs of conditionals
1076236769Sobrien	  o issue warning when extra .else is seen
1077236769Sobrien	  o print line numer when errors encountered during parsing from
1078236769Sobrien	  string.
1079236769Sobrien
1080236769Sobrien2004-02-20  Simon J. Gerraty  <sjg@void.crufty.net>
1081236769Sobrien
1082236769Sobrien	* Makefile.in (BMAKE_VERSION):  bump to 20040220
1083236769Sobrien	* Merge with NetBSD make, pick up:
1084236769Sobrien	  o fix for old :M parsing bug.
1085236769Sobrien	  o re-jigged unit-tests
1086236769Sobrien
1087236769Sobrien2004-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
1088236769Sobrien
1089236769Sobrien	* Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,}
1090236769Sobrien	so that './bmake -f Makefile test' works.
1091236769Sobrien	
1092236769Sobrien2004-02-14  Simon J. Gerraty  <sjg@void.crufty.net>
1093236769Sobrien
1094236769Sobrien	* Makefile.in: (BMAKE_VERSION): bump to 20040214
1095236769Sobrien	* Merge with NetBSD make, pick up:
1096236769Sobrien	  o search upwards for *.mk
1097236769Sobrien	  o fix for double free of var substitution buffers
1098236769Sobrien	  o use of getopt replaced with custom code, since the usage
1099236769Sobrien	  (re-scanning) isn't posix compatible.
1100236769Sobrien
1101236769Sobrien2004-02-12  Simon J. Gerraty  <sjg@void.crufty.net>
1102236769Sobrien
1103236769Sobrien	* arch.c: don't include ranlib.h on ELF systems
1104236769Sobrien	(thanks to Chuck Cranor <chuck@ece.cmu.edu>).
1105236769Sobrien
1106236769Sobrien2004-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
1107236769Sobrien
1108236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20040118
1109236769Sobrien
1110236769Sobrien	* boot-strap (while): export vars we assign to on cmdline
1111236769Sobrien	* unit-test/Makefile.in: ternary is .PHONY
1112236769Sobrien
1113236769Sobrien2004-01-08  Simon J. Gerraty  <sjg@void.crufty.net>
1114236769Sobrien
1115236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20040108
1116236769Sobrien	* Merge with NetBSD make, pick up:
1117236769Sobrien	  o fix for ternary modifier
1118236769Sobrien
1119236769Sobrien2004-01-06  Simon J. Gerraty  <sjg@void.crufty.net>
1120236769Sobrien
1121236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20040105
1122236769Sobrien	* Merge with NetBSD make, pick up:
1123236769Sobrien	  o fix for cond.c to handle compound expressions better
1124236769Sobrien	  o variable expansion within sysV style replacements
1125236769Sobrien	  
1126236769Sobrien2003-12-22  Simon J. Gerraty  <sjg@void.crufty.net>
1127236769Sobrien
1128236769Sobrien	* Make portable snprintf safer - output to /dev/null first to
1129236769Sobrien	check space needed.
1130236769Sobrien
1131236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20031222
1132236769Sobrien	* Merge with NetBSD make, pick up:
1133236769Sobrien	  o -dg3 to show input graph when things go wrong.
1134236769Sobrien	  o explicitly look for makefiles in objdir if not found in curdir so
1135236769Sobrien	    that errors in .depend etc will be reported accurarely. 
1136236769Sobrien	  o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
1137236769Sobrien	    instead as it more accurately reflects the expected behavior and
1138236769Sobrien	    is more consistently implemented.
1139236769Sobrien	  o avoid use of asprintf.
1140236769Sobrien
1141236769Sobrien2003-09-28  Simon J. Gerraty  <sjg@void.crufty.net>
1142236769Sobrien
1143236769Sobrien	* util.c: Add asprintf and vasprintf.
1144236769Sobrien
1145236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20030928
1146236769Sobrien	* Merge with NetBSD make, pick up:
1147236769Sobrien	:[] modifier - allows picking words from a variable.
1148236769Sobrien	:tW modifier - allows treating value as one big word.
1149236769Sobrien	W flag for :C and :S - allows treating value as one big word.
1150236769Sobrien	
1151236769Sobrien2003-09-12  Simon J. Gerraty  <sjg@void.crufty.net>
1152236769Sobrien
1153236769Sobrien	* Merge with NetBSD make
1154236769Sobrien	pick up -de flag to enable printing failed command.
1155236769Sobrien	don't skip 1st two dir entries (normally . and ..) since
1156236769Sobrien	coda does not have them.
1157236769Sobrien
1158236769Sobrien2003-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
1159236769Sobrien
1160236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20030909
1161236769Sobrien	* Merge with NetBSD make, pick up:
1162236769Sobrien	- changes for -V '${VAR}' to print fully expanded value
1163236769Sobrien	  cf. -V VAR
1164236769Sobrien	- CompatRunCommand now prints the command that failed.
1165236769Sobrien	- several files got updated 3 clause Berkeley license.
1166236769Sobrien	
1167236769Sobrien2003-08-02  Simon J. Gerraty  <sjg@void.crufty.net>
1168236769Sobrien
1169236769Sobrien	* boot-strap: Allow setting configure args on command line.
1170236769Sobrien
1171236769Sobrien2003-07-31  Simon J. Gerraty  <sjg@void.crufty.net>
1172236769Sobrien
1173236769Sobrien	* configure.in: add --with-defshell to allow sh or ksh
1174236769Sobrien	to be selected as default shell.
1175236769Sobrien
1176236769Sobrien	* Makefile.in: bump version to 20030731
1177236769Sobrien
1178236769Sobrien	* Merge with NetBSD make 
1179236769Sobrien	Pick up .SHELL spec for ksh and associate man page changes.
1180236769Sobrien	Also compat mode now uses the same shell specs.
1181236769Sobrien
1182236769Sobrien2003-07-29  Simon J. Gerraty  <sjg@void.crufty.net>
1183236769Sobrien
1184236769Sobrien	* var.c (Var_Parse): ensure delim is initialized.
1185236769Sobrien
1186236769Sobrien	* unit-tests/Makefile.in: use single quotes to avoid problems from
1187236769Sobrien	some shells.
1188236769Sobrien
1189236769Sobrien	* makefile.boot.in:
1190236769Sobrien	Run the unit-tests as part of the bootstrap procedure.
1191236769Sobrien
1192236769Sobrien2003-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
1193236769Sobrien
1194236769Sobrien	* unit-tests/Makefile.in: always force complaints from
1195236769Sobrien	${TEST_MAKE} to be from 'make'.
1196236769Sobrien
1197236769Sobrien	* configure.in: add check for 'diff -u'
1198236769Sobrien	also fix some old autoconf'isms
1199236769Sobrien	
1200236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20030728.
1201236769Sobrien	if using GCC add -Wno-cast-qual to CFLAGS for var.o
1202236769Sobrien
1203236769Sobrien	* Merge with NetBSD make
1204236769Sobrien	Pick up fix for :ts parsing error in some cases.
1205236769Sobrien	Pick unit-tests.
1206236769Sobrien
1207236769Sobrien2003-07-23  Simon J. Gerraty  <sjg@void.crufty.net>
1208236769Sobrien
1209236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20030723.
1210236769Sobrien
1211236769Sobrien	* var.c (Var_Parse): fix bug in :ts modifier, after const
1212236769Sobrien	correctness fixes, must pass nstr to VarModify.
1213236769Sobrien
1214236769Sobrien2003-07-14  Simon J. Gerraty  <sjg@void.crufty.net>
1215236769Sobrien
1216236769Sobrien	* Makefile.in: BMAKE_VERSION switch to a date based version.
1217236769Sobrien	We'll generally use the date of last import from NetBSD.
1218236769Sobrien
1219236769Sobrien	* Merge with NetBSD make
1220236769Sobrien	Pick up fixes for const-correctness, now passes WARNS=3 on
1221236769Sobrien	NetBSD.
1222236769Sobrien	Pick up :ts modifier, allows controlling the separator used
1223236769Sobrien	between words in variable expansion.
1224236769Sobrien
1225236769Sobrien2003-07-11  Simon J. Gerraty  <sjg@void.crufty.net>
1226236769Sobrien
1227236769Sobrien	* FILES: include boot-strap and os.sh
1228236769Sobrien
1229236769Sobrien	* Makefile.in: only set WARNS if we are NetBSD, the effect on
1230236769Sobrien	FreeBSD is known to be bad.
1231236769Sobrien
1232236769Sobrien	* makefile.boot.in (bootstrap): make this the default target.
1233236769Sobrien
1234236769Sobrien	* Makefile.in: bump version to 3.1.19
1235236769Sobrien
1236236769Sobrien	* machine.sh: avoid A-Z with tr as it is bound to lose.
1237236769Sobrien
1238236769Sobrien2003-07-10  Simon J. Gerraty  <sjg@void.crufty.net>
1239236769Sobrien
1240236769Sobrien	* Merge with NetBSD make
1241236769Sobrien	Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
1242236769Sobrien	Plus some doc fixes.
1243236769Sobrien	
1244236769Sobrien2003-04-27  Simon J. Gerraty  <sjg@void.crufty.net>
1245236769Sobrien
1246236769Sobrien	* Merge with NetBSD make
1247236769Sobrien	Pick up fix for PR/1523 - don't count a library as built, if there
1248236769Sobrien	is no way to build it 
1249236769Sobrien
1250236769Sobrien	* Bump version to 3.1.18
1251236769Sobrien
1252236769Sobrien2003-03-23  Simon J. Gerraty  <sjg@void.crufty.net>
1253236769Sobrien
1254236769Sobrien	* Merge with NetBSD make
1255236769Sobrien	Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT
1256236769Sobrien	appears in src list.
1257236769Sobrien
1258236769Sobrien2003-03-21  Simon J. Gerraty  <sjg@void.crufty.net>
1259236769Sobrien
1260236769Sobrien	* Merge with NetBSD make (mmm 10th anniversary!)
1261236769Sobrien	pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828)
1262236769Sobrien	pick up -X which tells us to not export VAR=val via setenv if
1263236769Sobrien	we are already doing so via MAKEFLAGS.  This saves valuable env
1264236769Sobrien	space on systems like Darwin.
1265236769Sobrien	set MAKE_VERSION to 3.1.17
1266236769Sobrien
1267236769Sobrien	* parse.c: pix up fix for suffix rules
1268236769Sobrien
1269236769Sobrien2003-03-06  Simon J. Gerraty  <sjg@void.crufty.net>
1270236769Sobrien
1271236769Sobrien	* Merge with NetBSD make.
1272236769Sobrien	pick up fix for propagating -B via MAKEFLAGS.
1273236769Sobrien	set MAKE_VERSION to 3.1.16
1274236769Sobrien
1275236769Sobrien	* Apply some patches from pkgsrc-bootstrap/bmake
1276236769Sobrien	Originally by Grant Beattie <grant@netbsd.org>
1277236769Sobrien	I may have missed some - since they are based on bmake-3.1.12
1278236769Sobrien	
1279236769Sobrien2002-12-03  Simon J. Gerraty  <sjg@void.crufty.net>
1280236769Sobrien
1281236769Sobrien	* makefile.boot.in (bmake): update install targets for those that
1282236769Sobrien	use them, also clear MAKEFLAGS when invoking bmake.boot to avoid
1283236769Sobrien	havoc from gmake -w.  Thanks to Harlan Stenn <hstenn@cisco.com>.
1284236769Sobrien
1285236769Sobrien	* bmake.cat1: update the pre-formatted man page!
1286236769Sobrien
1287236769Sobrien2002-11-30  Simon J. Gerraty  <sjg@void.crufty.net>
1288236769Sobrien
1289236769Sobrien	* Merge with NetBSD make.
1290236769Sobrien	pick up fix for premature free of pointer used in call
1291236769Sobrien	to Dir_InitCur().
1292236769Sobrien	set MAKE_VERSION to 3.1.15
1293236769Sobrien
1294236769Sobrien2002-11-26  Simon J. Gerraty  <sjg@void.crufty.net>
1295236769Sobrien
1296236769Sobrien	* configure.in: determine suitable value for MKSRC.
1297236769Sobrien	override using --with-mksrc=PATH.
1298236769Sobrien
1299236769Sobrien	* machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems.
1300236769Sobrien	configs(8) will use 'sun4' as an alias for 'sparc'.
1301236769Sobrien
1302236769Sobrien2002-11-25  Simon J. Gerraty  <sjg@void.crufty.net>
1303236769Sobrien
1304236769Sobrien	* Merge with NetBSD make.
1305236769Sobrien	pick up ${.PATH}
1306236769Sobrien	pick up fix for finding ../cat.c via .PATH when .CURDIR=..
1307236769Sobrien	set MAKE_VERSION to 3.1.14
1308236769Sobrien	add configure checks for killpg and sys/socket.h
1309236769Sobrien
1310236769Sobrien2002-09-16  Simon J. Gerraty  <sjg@void.crufty.net>
1311236769Sobrien
1312236769Sobrien	* tag bmake-3-1-13
1313236769Sobrien	
1314236769Sobrien	* makefile.boot.in (bmake): use install-mk
1315236769Sobrien	Also setup ./mk before trying to invoke bmake.boot incase we
1316236769Sobrien	needed install-mk to create a sys.mk for us. 
1317236769Sobrien
1318236769Sobrien	* configure.in: If we need to add -I${srcdir}/missing, make it an
1319236769Sobrien	absolute path so that it works for lst.lib too.
1320236769Sobrien
1321236769Sobrien	* make.h: always include sys/cdefs.h since we provide one if the
1322236769Sobrien	host does not.
1323236769Sobrien	
1324236769Sobrien	* Makefile.in (install-mk): 
1325236769Sobrien	use MKSRC/install-mk which will do the right thing.
1326236769Sobrien	use uname -p for ARCH if possible.
1327236769Sobrien	since install-mk will setup links bsd.prog.mk -> prog.mk if
1328236769Sobrien	needed, just .include bsd.prog.mk
1329236769Sobrien
1330236769Sobrien	* Merge with NetBSD make (NetBSD-1.6)
1331236769Sobrien	Code is ansi-C only now.
1332236769Sobrien	Bug in handling of dotLast is fixed.
1333236769Sobrien	Can now assign .OBJDIR and make will reset its notions of life.
1334236769Sobrien	New modifiers :tu :tl for toUpper and toLower.
1335236769Sobrien
1336236769SobrienTue Oct 16 12:18:42 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
1337236769Sobrien
1338236769Sobrien	* Merge with NetBSD make
1339236769Sobrien	pick up fix for .END failure in compat mode.
1340236769Sobrien	pick up fix for extra va_end() in ParseVErrorInternal.
1341236769Sobrien
1342236769SobrienThu Oct 11 13:20:06 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
1343236769Sobrien
1344236769Sobrien	* configure.in: for systems that have sys/cdefs.h check if it is
1345236769Sobrien	compatible.  If not, include the one under missing, but tell it to
1346236769Sobrien	include the native one too - necessary on Linux.
1347236769Sobrien
1348236769Sobrien	* missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use
1349236769Sobrien	include_next (for gcc) to get the native sys/cdefs.h
1350236769Sobrien
1351236769SobrienTue Aug 21 02:29:34 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1352236769Sobrien
1353236769Sobrien	* job.c (JobFinish): Fix an earlier merge bug that resulted in
1354236769Sobrien	leaking descriptors when using -jN.
1355236769Sobrien	
1356236769Sobrien	* job.c (JobPrintCommand): See if "curdir" exists before
1357236769Sobrien	attempting to chdir().  Doing the chdir directly in make (when in
1358236769Sobrien	compat mode) fails silently, so let the -jN version do the same.
1359236769Sobrien	This can happen when building kernels in an object tree and
1360236769Sobrien	playing clever games to reset .CURDIR.
1361236769Sobrien
1362236769Sobrien	* Merged with NetBSD make
1363236769Sobrien	pick up .USEBEFORE
1364236769Sobrien
1365236769SobrienTue Jun 26 23:45:11 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1366236769Sobrien
1367236769Sobrien	* makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work.
1368236769Sobrien
1369236769SobrienTue Jun 12 16:48:57 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1370236769Sobrien
1371236769Sobrien	* var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
1372236769Sobrien	us not to export the iterator variable when using VAR_CMD context.
1373236769Sobrien
1374236769SobrienSun Jun 10 21:55:21 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1375236769Sobrien
1376236769Sobrien	* job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
1377236769Sobrien	its the wrong "fix".
1378236769Sobrien
1379236769SobrienSat Jun  9 00:11:24 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1380236769Sobrien
1381236769Sobrien	* Redesigned export of VAR_CMD's via MAKEFLAGS.
1382236769Sobrien	We now simply append the variable names to .MAKEOVERRIDES, and
1383236769Sobrien	handle duplicate suppression and quoting in ExportMAKEFLAGS using:
1384236769Sobrien	${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
1385236769Sobrien	Apart from fixing quoting bugs in previous version, this allows us
1386236769Sobrien	to export vars to the environment by simply doing:
1387236769Sobrien	.MAKEOVERRIDES+= PATH 
1388236769Sobrien	Merged again with NetBSD make, but the above is the only change.
1389236769Sobrien
1390236769Sobrien	* configure.in: added
1391236769Sobrien	--disable-pwd-override		disable $PWD overriding getcwd()
1392236769Sobrien	--disable-check-make-chdir	disable make trying to guess 
1393236769Sobrien		when it should automatically cd ${.CURDIR}
1394236769Sobrien
1395236769Sobrien	* Merge with NetBSD make, changes include:
1396236769Sobrien	parse.c (ParseDoDependency): Spot that the syntax error is
1397236769Sobrien	caused by an unresolved cvs/rcs conflict and say so.
1398236769Sobrien	var.c: most of Var* functions now take a ctxt as 1st arg.
1399236769Sobrien	now does variable substituion on rhs of sysv style modifiers.
1400236769Sobrien	
1401236769Sobrien	* var.c (Var_Set): exporting of command line variables (VAR_CMD)
1402236769Sobrien	is now done here.  We append the name='value' to .MAKEOVERRIDES
1403236769Sobrien	rather than directly into MAKEFLAGS as this allows a Makefile to
1404236769Sobrien	use .MAKEOVERRIDES= to disable this behaviour.  GNU make uses a
1405236769Sobrien	very similar mechanism.  Note that in adding name='value' to
1406236769Sobrien	.MAKEOVERRIDES we do the moral equivalent of:
1407236769Sobrien	.MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
1408236769Sobrien
1409236769SobrienFri Jun  1 14:08:02 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1410236769Sobrien
1411236769Sobrien	* make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H
1412236769Sobrien
1413236769Sobrien	* Merged with NetBSD make
1414236769Sobrien	make -dx can now be used to run commands via sh -x
1415236769Sobrien	better error messages on exec failures.
1416236769Sobrien
1417236769SobrienThu May 31 01:44:54 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1418236769Sobrien
1419236769Sobrien	* Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that
1420236769Sobrien	MAKE_VERSION gets updated.  Also don't use ?= for MAKE_VERSION,
1421236769Sobrien	MACHINE etc otherwise they propagate from the previous bmake.
1422236769Sobrien
1423236769Sobrien	* configure.in (machine): allow --with-machine=generic to make
1424236769Sobrien	configure use machine.sh to set MACHINE. 
1425236769Sobrien
1426236769Sobrien	* job.c (JobInterrupt): convert to using WAIT_T and friends.
1427236769Sobrien
1428236769Sobrien	* Makefile.in: mention in bmake.1 that we use autoconf.
1429236769Sobrien
1430236769Sobrien	* make.1: mention MAKE_PRINT_VAR_ON_ERROR.
1431236769Sobrien
1432236769SobrienWed May 30 23:17:18 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1433236769Sobrien
1434236769Sobrien	* main.c (ReadMakefile): don't set MAKEFILE if reading ".depend"
1435236769Sobrien	as that rather defeats the usefulness of ${MAKEFILE}.
1436236769Sobrien
1437236769Sobrien	* main.c (MainParseArgs): append command line variable assignments
1438236769Sobrien	to MAKEFLAGS so that they get propagated to child make's.
1439236769Sobrien	Apparently this is required POSIX behaviour?  Its useful anyway.
1440236769Sobrien
1441236769SobrienTue May 29 02:20:07 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1442236769Sobrien
1443236769Sobrien	* compat.c (CompatRunCommand): don't use perror() since stdio may
1444236769Sobrien	cause problems in child of vfork().
1445236769Sobrien
1446236769Sobrien	* compat.c, main.c: Call PrintOnError() when we are going to bail.
1447236769Sobrien	This routine prints out the .curdir where we stopped and will also
1448236769Sobrien	display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}.
1449236769Sobrien
1450236769Sobrien	* main.c: add ${.newline} to hold a "\n" - sometimes handy in
1451236769Sobrien	:@ expansion.
1452236769Sobrien
1453236769Sobrien	* var.c: VarLoopExpand: ignore addSpace if a \n is present.
1454236769Sobrien
1455236769Sobrien	* Added RCSid's for the files we've touched.
1456236769Sobrien	
1457236769SobrienThu May 24 15:41:37 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1458236769Sobrien
1459236769Sobrien	* configure.in:	Thanks to some clues from mdb@juniper.net,
1460236769Sobrien	added autoconf magic to control setting of MACHINE, MACHINE_ARCH
1461236769Sobrien	as well as what ends up in _PATH_DEFSYSPATH.  We now have:
1462236769Sobrien
1463236769Sobrien  --with-machine=MACHINE  explicitly set MACHINE
1464236769Sobrien  --with-force-machine=MACHINE  set FORCE_MACHINE
1465236769Sobrien  --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
1466236769Sobrien  --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
1467236769Sobrien  --with-prefix-sys-path=PATH:DIR:LIST  prefix _PATH_PREFIX_SYSPATH
1468236769Sobrien  --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
1469236769Sobrien 	
1470236769Sobrien	If _PATH_OBJDIRPREFIX is set to "no" we won't define it.
1471236769Sobrien
1472236769Sobrien	* makefile: added a pathetically simple makefile to drive
1473236769Sobrien	bootstrapping.  Running configure by hand is more useful.
1474236769Sobrien
1475236769Sobrien	* Makefile.in: added MAKE_VERSION, and reworked things to be less
1476236769Sobrien	dependent on NetBSD bsd.*.mk
1477236769Sobrien	
1478236769Sobrien	* pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining
1479236769Sobrien	_PATH_OBJDIRPREFIX for those that don't want a default.
1480236769Sobrien	construct _PATH_DEFSYSPATH from the info we get from configure.
1481236769Sobrien
1482236769Sobrien	* main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION}
1483236769Sobrien	if MAKE_VERSION is defined.
1484236769Sobrien	
1485236769Sobrien	* compat.c: when we bail, print out the .CURDIR we were in.
1486236769Sobrien	
1487236769SobrienSat May 12 00:34:12 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1488236769Sobrien
1489236769Sobrien	* Merged with NetBSD make
1490236769Sobrien
1491236769Sobrien	* var.c: fixed a bug in the handling of the modifier :P
1492236769Sobrien	if the node as found but the path was null, we segfault trying to
1493236769Sobrien	duplicate it.
1494236769Sobrien
1495236769SobrienMon Mar  5 16:20:33 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1496236769Sobrien
1497236769Sobrien	* Merged with NetBSD make
1498236769Sobrien	
1499236769Sobrien	* make.c: Make_OODate's test for a library out of date was using
1500236769Sobrien	cmtime where it should have used mtime (my bug).
1501236769Sobrien
1502236769Sobrien	* compat.c: Use perror() to tell us what really went wrong when we
1503236769Sobrien	cannot exec a command.
1504236769Sobrien	
1505236769SobrienFri Dec 15 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1506236769Sobrien
1507236769Sobrien	* Merged with NetBSD make
1508236769Sobrien	
1509236769SobrienSat Jun 10 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1510236769Sobrien
1511236769Sobrien	* Merged with NetBSD make
1512236769Sobrien	
1513236769SobrienThu Jun  1 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1514236769Sobrien
1515236769Sobrien	* Merged with NetBSD make
1516236769Sobrien	
1517236769SobrienTue May 30 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1518236769Sobrien
1519236769Sobrien	* Merged with NetBSD make
1520236769Sobrien	
1521236769SobrienThu Apr 27 00:07:47 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1522236769Sobrien
1523236769Sobrien	* util.c: don't provide signal() since we use sigcompat.c
1524236769Sobrien
1525236769Sobrien	* Makefile.in: added a build target.
1526236769Sobrien
1527236769Sobrien	* var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :!
1528236769Sobrien	These allow some quite clever magic.
1529236769Sobrien
1530236769Sobrien	* main.c (main): added support for getenv(MAKESYSPATH).
1531236769Sobrien
1532236769SobrienMon Apr  2 16:25:13 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1533236769Sobrien
1534236769Sobrien	* Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set.
1535236769Sobrien	This avoids objdir having a different value depending on how a
1536236769Sobrien	directory was reached (via command line, or subdir.mk).
1537236769Sobrien
1538236769Sobrien	* If FORCE_MACHINE is defined, ignore getenv("MACHINE").
1539236769Sobrien	
1540236769SobrienMon Apr  2 23:15:31 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
1541236769Sobrien
1542236769Sobrien	* Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if
1543236769Sobrien	MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not.
1544236769Sobrien	I've been testing this in NetBSD's make for some weeks.
1545236769Sobrien
1546236769Sobrien	* Turn Makefile into Makefile.in and make it useful.
1547236769Sobrien	
1548236769SobrienTue Feb 29 22:08:00 2000 Simon J. Gerraty  <sjg@zen.quick.com.au>
1549236769Sobrien
1550236769Sobrien	* Imported NetBSD's -current make(1) and resolve conflicts.
1551236769Sobrien	
1552236769Sobrien	* Applied autoconf patches from bmake v2
1553236769Sobrien
1554236769Sobrien	* Imported clean code base from NetBSD-1.0
1555