1331246Ssjg2018-02-22  Simon J. Gerraty  <sjg@bad.crufty.net>
2331246Ssjg
3331246Ssjg	* VERSION: 20180222
4331246Ssjg	  Merge with NetBSD make, pick up
5331246Ssjg	  o parse.c: avoid calling sysconf for every call to loadfile
6331246Ssjg
7331246Ssjg2018-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
8331246Ssjg
9331246Ssjg	* VERSION: 20180218
10331246Ssjg	  Merge with NetBSD make, pick up
11331246Ssjg	  o var.c: Var_Set handle NULL value anytime.
12331246Ssjg
13331246Ssjg2018-02-12  Simon J. Gerraty  <sjg@bad.crufty.net>
14331246Ssjg
15331246Ssjg	* VERSION: 20180212
16331246Ssjg	  Merge with NetBSD make, pick up
17331246Ssjg	  o parse.c: do not treat .info as warning with -W
18331246Ssjg
19331246Ssjg2017-12-07  Simon J. Gerraty  <sjg@bad.crufty.net>
20331246Ssjg
21331246Ssjg	* VERSION: 20171207
22331246Ssjg	  Merge with NetBSD make, pick up
23331246Ssjg	  o var.c: Var_Append use Var_Set if var not previously set
24331246Ssjg	    so that VAR_CMD is handled correctly.
25331246Ssjg	    Add a suitable unit-test.
26331246Ssjg
27331246Ssjg2017-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
28331246Ssjg
29331246Ssjg	* VERSION (_MAKE_VERSION): 20171126
30331246Ssjg
31331246Ssjg	* aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__
32331246Ssjg	  since AC_TRY_COMPILE puts input inside main()
33331246Ssjg	  which upsets modern compilers.
34331246Ssjg
35331246Ssjg2017-11-18  Simon J. Gerraty  <sjg@bad.crufty.net>
36331246Ssjg
37331246Ssjg	* VERSION: 20171118
38331246Ssjg	  Merge with NetBSD make, pick up
39331246Ssjg	  o var.c: do not append to variable set on command line
40331246Ssjg	    add unit-test to catch this.
41331246Ssjg
42331246Ssjg2017-10-28  Simon J. Gerraty  <sjg@bad.crufty.net>
43331246Ssjg
44331246Ssjg	* VERSION: 20171028
45331246Ssjg	  Merge with NetBSD make, pick up
46331246Ssjg	  o main.c: ignore empty MAKEOBJDIR
47331246Ssjg
48331246Ssjg	* Makefile.config.in:
49331246Ssjg	  make @prefix@ @machine*@ and @default_sys_path@ defaults.
50331246Ssjg
51331246Ssjg2017-10-05  Simon J. Gerraty  <sjg@bad.crufty.net>
52331246Ssjg
53331246Ssjg	* VERSION: 20171005
54331246Ssjg
55331246Ssjg	* unit-tests/dotwait.mk: redirect stderr through pipe for more
56331246Ssjg	  consistent result on some platforms.
57331246Ssjg
58331246Ssjg2017-08-13  Simon J. Gerraty  <sjg@bad.crufty.net>
59331246Ssjg
60331246Ssjg	* machine.sh: entry for AIX
61331246Ssjg
62331246Ssjg2017-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
63331246Ssjg
64331246Ssjg	* VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION
65331246Ssjg	  to a file that can be included by configure as well as make.
66331246Ssjg	  This allows configure to set set _MAKE_VERSION in make-bootstrap.sh
67331246Ssjg
68331246Ssjg2017-08-10  Simon J. Gerraty  <sjg@bad.crufty.net>
69331246Ssjg
70331246Ssjg	* Makefile (_MAKE_VERSION): 20170810
71331246Ssjg	  Merge with NetBSD make, pick up
72331246Ssjg	  o meta.c: if target is in subdir we only need subdir name in
73331246Ssjg	    meta_name.
74331246Ssjg
75321653Ssjg2017-07-20  Simon J. Gerraty  <sjg@bad.crufty.net>
76321653Ssjg
77321653Ssjg	* Makefile (_MAKE_VERSION): 20170720
78321653Ssjg	  Merge with NetBSD make, pick up
79321653Ssjg	  o compat.c: pass SIGINT etc onto child and wait for it to exit
80321653Ssjg	    before we self-terminate.
81321653Ssjg
82321653Ssjg2017-07-11  Simon J. Gerraty  <sjg@bad.crufty.net>
83321653Ssjg
84321653Ssjg	* Makefile (_MAKE_VERSION): 20170711
85321653Ssjg	  forgot to update after merge on 20170708 ;-)
86321653Ssjg	  o main.c: refactor to reduce size of main function.
87321653Ssjg	    add -v option to always fully expand values.
88321653Ssjg	  o meta.c: ensure command output in meta file has ending newline
89321653Ssjg	    even when filemon not being used.
90321653Ssjg	    When matching ${.MAKE.META.IGNORE_PATTERNS} do not use
91321653Ssjg	    pathname via ':L' since any ':' in pathname breaks that.
92321653Ssjg	    Instead set a '${.p.}' to pathname in the target context and
93321653Ssjg	    use that.
94321653Ssjg
95319884Ssjg2017-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
96319884Ssjg
97319884Ssjg	* Makefile (_MAKE_VERSION): 20170510
98319884Ssjg	  Merge with NetBSD make, pick up
99319884Ssjg	  o main.c: Main_SetObjdir: ensure buf2 is in scope
100319884Ssjg
101319884Ssjg2017-05-08  Simon J. Gerraty  <sjg@bad.crufty.net>
102319884Ssjg
103319884Ssjg	* Makefile (_MAKE_VERSION): 20170505
104319884Ssjg	  see mk/ChangeLog
105319884Ssjg
106319884Ssjg2017-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
107319884Ssjg
108319884Ssjg	* parse.c: not everyone has stdint.h
109319884Ssjg
110319884Ssjg2017-05-01  Simon J. Gerraty  <sjg@bad.crufty.net>
111319884Ssjg
112319884Ssjg	* Makefile (_MAKE_VERSION): 20170501
113319884Ssjg	  see mk/ChangeLog
114319884Ssjg
115319884Ssjg2017-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
116319884Ssjg
117319884Ssjg	* Makefile (_MAKE_VERSION): 20170421
118319884Ssjg	  Merge with NetBSD make, pick up
119319884Ssjg	  o str.c: Str_Match: fix closure tests for [^] and add unit-test.
120319884Ssjg
121319884Ssjg2017-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
122319884Ssjg
123319884Ssjg	* Makefile (_MAKE_VERSION): 20170420
124319884Ssjg	  Merge with NetBSD make, pick up
125319884Ssjg	  o main.c: only use -C arg "as is" if it contains no 
126319884Ssjg	    relative component.
127319884Ssjg
128319884Ssjg2017-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
129319884Ssjg
130319884Ssjg	* Makefile (_MAKE_VERSION): 20170418
131319884Ssjg	  Merge with NetBSD make, pick up
132319884Ssjg	  o main.c: fix Main_SetObjdir() for relative paths (eg obj).
133319884Ssjg
134319884Ssjg2017-04-17  Simon J. Gerraty  <sjg@bad.crufty.net>
135319884Ssjg
136319884Ssjg	* Makefile (_MAKE_VERSION): 20170417
137319884Ssjg	  Merge with NetBSD make, pick up
138319884Ssjg	  o fixes a number of coverity complaints
139319884Ssjg	    - check return value of fseek, fcntl
140319884Ssjg	    - plug memory leak in Dir_FindFile, Var_LoopExpand,
141319884Ssjg	      JobPrintCommand, ParseTraditionalInclude
142319884Ssjg	    - use bmake_malloc() where NULL is not tollerated
143319884Ssjg	    - use MAKE_ATTR_UNUSED rather that kludges like 
144319884Ssjg	      return(unused ? 0 : 0)
145319884Ssjg	    - use purge_cached_realpaths() rather than abuse cached_realpath()
146319884Ssjg
147319884Ssjg2017-04-13  Simon J. Gerraty  <sjg@bad.crufty.net>
148319884Ssjg
149319884Ssjg	* Makefile (_MAKE_VERSION): 20170413
150319884Ssjg	  Merge with NetBSD make, pick up
151319884Ssjg	  o main.c: when setting .OBJDIR ignore '$' in paths.
152319884Ssjg
153319884Ssjg	* job.c: use MALLOC_OPTIONS to set malloc_options.
154319884Ssjg
155319884Ssjg2017-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
156319884Ssjg
157319884Ssjg	* Makefile (_MAKE_VERSION): 20170411
158319884Ssjg	  Merge with NetBSD make, pick up
159319884Ssjg	  o str.c: Str_Match: allow [^a-z] to behave as expected.
160319884Ssjg
161319884Ssjg2017-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
162319884Ssjg
163319884Ssjg	* Makefile (_MAKE_VERSION): 20170326
164319884Ssjg	  Merge with NetBSD make, pick up
165319884Ssjg	  o main.c: purge relative paths from realpath cache when .OBJDIR
166319884Ssjg	    is changed.
167319884Ssjg
168319884Ssjg2017-03-11  Simon J. Gerraty  <sjg@bad.crufty.net>
169319884Ssjg
170319884Ssjg	* Makefile (_MAKE_VERSION): 20170311
171319884Ssjg	  Merge with NetBSD make, pick up
172319884Ssjg          o main.c: only use -C arg "as is" if it starts with '/'.
173319884Ssjg
174319884Ssjg2017-03-01  Simon J. Gerraty  <sjg@bad.crufty.net>
175319884Ssjg
176319884Ssjg	* Makefile (_MAKE_VERSION): 20170301
177319884Ssjg	  Merge with NetBSD make, pick up
178319884Ssjg	  o main.c: use -C arg "as is" rather than getcwd()
179319884Ssjg	    if they identify the same directory.
180319884Ssjg	  o parse.c: ensure loadfile buffer is \n terminated in non-mmap case
181319884Ssjg
182319884Ssjg2017-02-01  Simon J. Gerraty  <sjg@bad.crufty.net>
183319884Ssjg
184319884Ssjg	* Makefile (_MAKE_VERSION): 20170201
185319884Ssjg	  Merge with NetBSD make, pick up
186319884Ssjg	  o var.c: allow :_=var and avoid use of special context.
187319884Ssjg
188319884Ssjg2017-01-30  Simon J. Gerraty  <sjg@bad.crufty.net>
189319884Ssjg
190319884Ssjg	* Makefile (_MAKE_VERSION): 20170130
191319884Ssjg	  Merge with NetBSD make, pick up
192319884Ssjg	  o var.c: add :range and :_
193319884Ssjg	  o main.c: partially initialize Dir_* before MainParseArgs()
194319884Ssjg	    can be called.
195319884Ssjg	    If -V, skip Main_ExportMAKEFLAGS()
196319884Ssjg
197319884Ssjg2017-01-14  Simon J. Gerraty  <sjg@bad.crufty.net>
198319884Ssjg
199319884Ssjg	* Makefile (_MAKE_VERSION): 20170114
200319884Ssjg	  Merge with NetBSD make, pick up
201319884Ssjg	  o var.c: allow specifying the utc value used by :{gm,local}time
202319884Ssjg
203319884Ssjg2016-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
204319884Ssjg
205319884Ssjg	* Makefile (_MAKE_VERSION): 20161212
206319884Ssjg	  Merge with NetBSD make, pick up
207319884Ssjg          o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too.
208319884Ssjg
209319884Ssjg2016-12-09  Simon J. Gerraty  <sjg@bad.crufty.net>
210319884Ssjg
211319884Ssjg	* Makefile (_MAKE_VERSION): 20161209
212319884Ssjg	  Merge with NetBSD make, pick up
213319884Ssjg	  o main.c: cleanup setting of .OBJDIR
214319884Ssjg	  o parse.c: avoid coredump from (var)=val
215319884Ssjg
216319884Ssjg2016-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
217319884Ssjg
218319884Ssjg	* Makefile (_MAKE_VERSION): 20161126
219319884Ssjg	  Merge with NetBSD make, pick up
220319884Ssjg	  o make.c: Make_OODate: report src node name if path not set
221319884Ssjg
222319884Ssjg2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
223319884Ssjg
224319884Ssjg	* Makefile (_MAKE_VERSION): 20160926
225319884Ssjg	  Merge with NetBSD make, pick up
226319884Ssjg	  o support for .DELETE_ON_ERROR: (remove targets that fail)
227319884Ssjg	
228319884Ssjg2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
229319884Ssjg
230319884Ssjg	* Makefile MAN: tweak .Dt to match ${PROG}
231319884Ssjg
232319884Ssjg2016-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
233319884Ssjg
234319884Ssjg	* Makefile (_MAKE_VERSION): 20160818
235319884Ssjg	  its a neater number; pick up whitespace fixes to man page.
236319884Ssjg
237319884Ssjg2016-08-17  Simon J. Gerraty  <sjg@bad.crufty.net>
238319884Ssjg
239319884Ssjg	* Makefile (_MAKE_VERSION): 20160817
240319884Ssjg	  Merge with NetBSD make, pick up
241319884Ssjg	  o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore()
242319884Ssjg	    so we can call it before adding entries to missingFiles.
243319884Ssjg	    Thus we do not track files we have been told to ignore.
244319884Ssjg
245319884Ssjg2016-08-15  Simon J. Gerraty  <sjg@bad.crufty.net>
246319884Ssjg
247319884Ssjg	* Makefile (_MAKE_VERSION): 20160815
248319884Ssjg	  Merge with NetBSD make, pick up
249319884Ssjg	  o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to
250319884Ssjg	    pathnames, and skip if the expansion is empty.
251319884Ssjg	    Useful for dirdeps.mk when checking DIRDEPS_CACHE.
252319884Ssjg
253319884Ssjg2016-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
254319884Ssjg
255319884Ssjg	* Makefile (_MAKE_VERSION): 20160812
256319884Ssjg	  Merge with NetBSD make, pick up
257319884Ssjg	  o meta.c: remove all missingFiles entries that match a deleted
258319884Ssjg	    dir.
259319884Ssjg	  o main.c: set .ERROR_CMD if possible.
260319884Ssjg	  
261301665Ssjg2016-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
262301665Ssjg
263301665Ssjg	* Makefile (_MAKE_VERSION): 20160606
264301665Ssjg	  Merge with NetBSD make, pick up
265301665Ssjg	  o dir.c: extend mtimes cache to others via cached_stat()
266301665Ssjg
267301462Ssjg2016-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
268301462Ssjg
269301462Ssjg	* Makefile (_MAKE_VERSION): 20160604
270301462Ssjg	  Merge with NetBSD make, pick up
271301462Ssjg	  o meta.c: missing filemon data is only relevant if we read a
272301462Ssjg	    meta file.
273301462Ssjg	    Also do not return oodate for a missing metafile if gn->path
274301462Ssjg	    points to .CURDIR
275301462Ssjg	
276301462Ssjg2016-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
277301462Ssjg
278301462Ssjg	* Makefile (_MAKE_VERSION): 20160602
279301462Ssjg	  Merge with NetBSD make, pick up
280301462Ssjg	  o cached_realpath(): avoid hitting filesystem more than necessary.
281301462Ssjg	  o meta.c: refactor need_meta decision, add knobs for 
282301462Ssjg	    missing meta file and filemon data wrt out-of-datedness.
283301462Ssjg
284301462Ssjg2016-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
285301462Ssjg
286301462Ssjg	* Makefile (_MAKE_VERSION): 20160528
287301462Ssjg
288301462Ssjg	* boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION 
289301462Ssjg
290300313Ssjg2016-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
291300313Ssjg
292300313Ssjg	* Makefile (_MAKE_VERSION): 20160512
293300313Ssjg	  Merge with NetBSD make, pick up
294300313Ssjg	  o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS
295300313Ssjg	    this is useful for gcov builds.
296300313Ssjg	  o propagate errors from filemon(4).
297300313Ssjg	
298300313Ssjg2016-05-09  Simon J. Gerraty  <sjg@bad.crufty.net>
299300313Ssjg
300300313Ssjg	* Makefile (_MAKE_VERSION): 20160509
301300313Ssjg	  Merge with NetBSD make, pick up
302300313Ssjg	  o remove use of non-standard types u_int etc.
303300313Ssjg	  o meta.c: apply realpath() before matching against metaIgnorePaths
304300313Ssjg
305300313Ssjg2016-04-04  Simon J. Gerraty  <sjg@bad.crufty.net>
306300313Ssjg
307300313Ssjg	* Makefile (_MAKE_VERSION): 20160404
308300313Ssjg	  Merge with NetBSD make, pick up
309300313Ssjg	  o allow makefile to set .MAKE.JOBS
310300313Ssjg
311300313Ssjg	* Makefile (PROG_NAME): use ${_MAKE_VERSION}
312300313Ssjg
313297040Ssjg2016-03-15  Simon J. Gerraty  <sjg@bad.crufty.net>
314297040Ssjg
315297040Ssjg	* Makefile (_MAKE_VERSION): 20160315
316297040Ssjg	  Merge with NetBSD make, pick up
317297040Ssjg	  o fix handling of archive members
318297040Ssjg
319297040Ssjg2016-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
320297040Ssjg
321297040Ssjg	* Makefile (_MAKE_VERSION): rename variable to avoid interference
322297040Ssjg	  with checks for ${MAKE_VERSION}
323297040Ssjg
324297040Ssjg2016-03-10  Simon J. Gerraty  <sjg@bad.crufty.net>
325297040Ssjg
326297040Ssjg	* Makefile (MAKE_VERSION): 20160310
327297040Ssjg	  Merge with NetBSD make, pick up
328297040Ssjg	  o meta.c: treat missing Read file same as Write, incase we Delete it.
329297040Ssjg
330296637Ssjg2016-03-07  Simon J. Gerraty  <sjg@bad.crufty.net>
331296637Ssjg
332296637Ssjg	* Makefile (MAKE_VERSION): 20160307
333296637Ssjg	  Merge with NetBSD make, pick up
334296637Ssjg	  o var.c: fix :ts\nnn to be octal by default.
335296637Ssjg	  o meta.c: meta_finish() to cleanup memory.
336296637Ssjg
337296637Ssjg2016-02-26  Simon J. Gerraty  <sjg@bad.crufty.net>
338296637Ssjg
339296637Ssjg	* Makefile (MAKE_VERSION): 20160226
340296637Ssjg	  Merge with NetBSD make, pick up
341296637Ssjg	  o meta.c: allow meta file for makeDepend if makefiles want it.
342296637Ssjg
343296637Ssjg2016-02-19  Simon J. Gerraty  <sjg@bad.crufty.net>
344296637Ssjg
345296637Ssjg	* var.c: default .MAKE.SAVE_DOLLARS to FALSE
346296637Ssjg	  for backwards compatability.
347296637Ssjg
348296637Ssjg	* Makefile (MAKE_VERSION): 20160220
349296637Ssjg	  Merge with NetBSD make, pick up
350296637Ssjg	  o var.c: add knob to control handling of '$$' in :=
351296637Ssjg
352296637Ssjg2016-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
353296637Ssjg
354296637Ssjg	* Makefile (MAKE_VERSION): 20160218
355296637Ssjg	  Merge with NetBSD make, pick up
356296637Ssjg	  o var.c: add .export-literal allows us to fix sys.clean-env.mk
357296637Ssjg	    post the changes to Var_Subst.
358296637Ssjg	    Var_Subst now takes flags, and does not consume '$$' in :=
359296637Ssjg
360296637Ssjg2016-02-17  Simon J. Gerraty  <sjg@bad.crufty.net>
361296637Ssjg
362296637Ssjg	* Makefile (MAKE_VERSION): 20160217
363296637Ssjg	  Merge with NetBSD make, pick up
364296637Ssjg	  o var.c: preserve '$$' in :=
365296637Ssjg	  o parse.c: add .dinclude for handling included 
366296637Ssjg	    makefile like .depend
367296637Ssjg
368292733Ssjg2015-12-20  Simon J. Gerraty  <sjg@bad.crufty.net>
369292733Ssjg
370292733Ssjg	* Makefile (MAKE_VERSION): 20151220
371292733Ssjg	  Merge with NetBSD make, pick up
372292733Ssjg	  o suff.c: re-initialize suffNull when clearing suffixes.
373292733Ssjg
374291978Ssjg2015-12-01  Simon J. Gerraty  <sjg@bad.crufty.net>
375291978Ssjg
376291978Ssjg	* Makefile (MAKE_VERSION): 20151201
377291978Ssjg	  Merge with NetBSD make, pick up
378291978Ssjg	  o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
379291978Ssjg	  o meta.c: meta_oodate: use lstat(2) for checking link target
380291978Ssjg	    in case it is a symlink.
381291978Ssjg	  o var.c: avoid calling brk_string and Var_Export1 with empty
382291978Ssjg	    strings.
383291978Ssjg	
384291978Ssjg2015-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
385291978Ssjg
386291978Ssjg	* Makefile (MAKE_VERSION): 20151126
387291978Ssjg	  Merge with NetBSD make, pick up
388291978Ssjg	  o parse.c: ParseTrackInput don't access beyond 
389291978Ssjg	    end of old value.
390291978Ssjg	
391291978Ssjg2015-10-22  Simon J. Gerraty  <sjg@bad.crufty.net>
392291978Ssjg
393291978Ssjg	* Makefile (MAKE_VERSION): 20151022
394291978Ssjg
395291978Ssjg	* Add support for BSD/OS which lacks inttypes.h
396291978Ssjg	  and really needs sys/param.h for sys/sysctl.h
397291978Ssjg	  also 'type' is not a shell builtin.
398291978Ssjg
399291978Ssjg	* var.c: eliminate uint32_t and need for inttypes.h
400291978Ssjg	
401291978Ssjg	* main.c: PrintOnError flush stdout before run .ERROR
402291978Ssjg
403291978Ssjg	* parse.c: cope with _SC_PAGESIZE not being defined.
404291978Ssjg
405291978Ssjg	
406289842Ssjg2015-10-20  Simon J. Gerraty  <sjg@bad.crufty.net>
407289842Ssjg
408289842Ssjg	* Makefile (MAKE_VERSION): 20151020
409289842Ssjg	  Merge with NetBSD make, pick up
410289842Ssjg	  o var.c: fix uninitialized var 
411289842Ssjg
412289842Ssjg2015-10-12  Simon J. Gerraty  <sjg@bad.crufty.net>
413289842Ssjg
414289842Ssjg	* var.c: the conditional expressions used with ':?' can be
415289842Ssjg	expensive, if already discarding do not evaluate or expand
416289842Ssjg	anything. 
417289842Ssjg
418289842Ssjg2015-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
419289842Ssjg
420289842Ssjg	* Makefile (MAKE_VERSION): 20151010
421289842Ssjg	  Merge with NetBSD make, pick up
422289842Ssjg	  o Add Boolean wantit flag to Var_Subst and Var_Parse
423289842Ssjg	    when FALSE we know we are discarding the result and can
424289842Ssjg	    skip operations like Cmd_Exec.
425289842Ssjg
426289842Ssjg2015-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
427289842Ssjg
428289842Ssjg	* Makefile (MAKE_VERSION): 20151009
429289842Ssjg	  Merge with NetBSD make, pick up
430289842Ssjg	  o var.c: don't check for NULL before free()
431289842Ssjg	  o meta.c: meta_oodate, do not hard code ignore of makeDependfile
432289842Ssjg
433289842Ssjg2015-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
434289842Ssjg
435289842Ssjg	* Makefile (MAKE_VERSION): 20150910
436289842Ssjg	  Merge with NetBSD make, pick up
437289842Ssjg	  o main.c: with -w print Enter/Leaving messages for objdir too
438289842Ssjg	    if necessary.
439289842Ssjg	  o centralize shell metachar handling
440289842Ssjg	
441289842Ssjg	* FILES: add metachar.[ch]
442289842Ssjg
443284254Ssjg2015-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
444284254Ssjg
445284254Ssjg	* Makefile (MAKE_VERSION): 20150606
446284254Ssjg	  Merge with NetBSD make, pick up
447284254Ssjg	  o make.1: document .OBJDIR target
448284254Ssjg
449282740Ssjg2015-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
450282740Ssjg
451282740Ssjg	* Makefile (MAKE_VERSION): 20150505
452282740Ssjg	  Merge with NetBSD make, pick up
453282740Ssjg	  o cond.c: be strict about lhs of comparison when evaluating .if
454282740Ssjg	    but less so when called from variable expansion.
455282740Ssjg	  o unit-tests/cond2.mk: test various error conditions
456282740Ssjg
457282740Ssjg2015-05-04  Simon J. Gerraty  <sjg@bad.crufty.net>
458282740Ssjg
459282740Ssjg	* machine.sh (MACHINE): Add Bitrig 
460282740Ssjg	  patch from joerg@netbsd.org
461282740Ssjg
462281812Ssjg2015-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
463281812Ssjg
464281812Ssjg	* Makefile (MAKE_VERSION): 20150418
465281812Ssjg	  Merge with NetBSD make, pick up
466281812Ssjg	  o job.c: use memmove() rather than memcpy()
467281812Ssjg
468281812Ssjg	* unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL
469281812Ssjg	  case, so skip it.
470281812Ssjg
471281812Ssjg2015-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
472281812Ssjg
473281812Ssjg	* Makefile (MAKE_VERSION): 20150411
474281812Ssjg	  bump version - only mk/ changes.
475281812Ssjg	
476281812Ssjg2015-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
477281812Ssjg
478281812Ssjg	* Makefile (MAKE_VERSION): 20150410
479281812Ssjg	  Merge with NetBSD make, pick up
480281812Ssjg	  o document different handling of '-' in jobs mode vs compat
481281812Ssjg	  o fix jobs mode so that '-' only applies to whole job
482281812Ssjg	    when shell lacks hasErrCtl
483281812Ssjg	  o meta.c: use separate vars to track lcwd and latestdir (read)
484281812Ssjg	    per process
485281812Ssjg	
486281812Ssjg2015-04-01  Simon J. Gerraty  <sjg@bad.crufty.net>
487281812Ssjg
488281812Ssjg	* Makefile (MAKE_VERSION): 20150401
489281812Ssjg	  Merge with NetBSD make, pick up
490281812Ssjg	  o meta.c: close meta file in child
491281812Ssjg	
492281812Ssjg	* Makefile: use BINDIR.bmake if set.
493281812Ssjg	  Same for MANDIR and SHAREDIR
494281812Ssjg	  Handy for testing release candidates
495281812Ssjg	  in various environments.
496281812Ssjg	
497281812Ssjg2015-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
498281812Ssjg
499281812Ssjg	* move initialization of savederr to block where it is used
500281812Ssjg	  to avoid spurious warning from gcc5
501281812Ssjg
502281812Ssjg2014-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
503281812Ssjg
504281812Ssjg	* Makefile (MAKE_VERSION): 20141111
505281812Ssjg	  just a cooler number
506281812Ssjg
507281812Ssjg2014-11-05  Simon J. Gerraty  <sjg@bad.crufty.net>
508281812Ssjg
509281812Ssjg	* Makefile (MAKE_VERSION): 20141105
510281812Ssjg	  Merge with NetBSD make, pick up
511281812Ssjg	  o revert major overhaul of suffix handling
512281812Ssjg	    and POSIX compliance - too much breakage
513281812Ssjg	    and impossible to make backwards compatible.
514281812Ssjg	  o we still have the new unit test structure which is ok.
515281812Ssjg	  o meta.c ensure "-- filemon" is at start of line.
516281812Ssjg
517281812Ssjg2014-09-17  Simon J. Gerraty  <sjg@bad.crufty.net>
518281812Ssjg
519281812Ssjg	* configure.in: test that result of getconf PATH_MAX is numeric
520281812Ssjg	  and discard if not.  Apparently needed for Hurd.
521281812Ssjg
522281812Ssjg2014-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
523281812Ssjg
524281812Ssjg	* Makefile (MAKE_VERSION): 20140830
525281812Ssjg	  Merge with NetBSD make, pick up
526281812Ssjg	  o major overhaul of suffix handling
527281812Ssjg	  o improved POSIX compliance
528281812Ssjg	  o overhauled unit-tests
529281812Ssjg
530268437Ssjg2014-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
531268437Ssjg
532268437Ssjg	* Makefile (MAKE_VERSION): 20140620
533268437Ssjg	  Merge with NetBSD make, pick up
534281812Ssjg	  o var.c return varNoError rather than var_Error for ::= modifiers.
535268437Ssjg
536268437Ssjg2014-05-22  Simon J. Gerraty  <sjg@bad.crufty.net>
537268437Ssjg
538268437Ssjg	* Makefile (MAKE_VERSION): 20140522
539268437Ssjg	  Merge with NetBSD make, pick up
540268437Ssjg	  o var.c detect some parse errors.
541268437Ssjg
542268437Ssjg2014-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
543268437Ssjg
544268437Ssjg	* Fix spelling errors - patch from Pedro Giffuni
545268437Ssjg
546268437Ssjg2014-02-14  Simon J. Gerraty  <sjg@bad.crufty.net>
547268437Ssjg
548268437Ssjg	* Makefile (MAKE_VERSION): 20140214
549268437Ssjg	  Merge with NetBSD make, pick up
550268437Ssjg	  o .INCLUDEFROM*
551268437Ssjg	  o use Var_Value to get MAKEOBJDIR[PREFIX]
552268437Ssjg	  o reduced realloc'ign in brk_string.
553268437Ssjg	* configure.in: add a check for compiler supporting __func__
554268437Ssjg
555261212Ssjg2014-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
556261212Ssjg
557261212Ssjg	* boot-strap: ignore mksrc=none
558261212Ssjg
559261212Ssjg2014-01-02  Simon J. Gerraty  <sjg@bad.crufty.net>
560261212Ssjg
561261212Ssjg	* Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk
562261212Ssjg
563261212Ssjg2014-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
564261212Ssjg	
565261212Ssjg	* Makefile (MAKE_VERSION): 20140101
566261212Ssjg	* configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024)
567261212Ssjg	* Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max
568261212Ssjg	* make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for
569261212Ssjg	  Hurd) 
570261212Ssjg	* configure.in: Add AC_PREREQ and check for
571261212Ssjg	  sysctl; patch from Andrew Shadura andrewsh at debian.org
572261212Ssjg
573261212Ssjg2013-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
574261212Ssjg
575261212Ssjg	* Makefile (MAKE_VERSION): 20131010
576261212Ssjg	* lose the const from arg to systcl to avoid problems on older BSDs.
577261212Ssjg
578261212Ssjg2013-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
579261212Ssjg
580261212Ssjg	* Makefile (MAKE_VERSION): 20131001
581261212Ssjg	  Merge with NetBSD make, pick up
582261212Ssjg	  o main.c: for NATIVE build sysctl to get MACHINE_ARCH from
583261212Ssjg	    hw.machine_arch if necessary.
584261212Ssjg	  o meta.c: meta_oodate - need to look at src of Link and target
585261212Ssjg	    of Move as well.
586261212Ssjg	* main.c: check that CTL_HW and HW_MACHINE_ARCH exist.
587261212Ssjg	  provide __arraycount() if needed.
588261212Ssjg
589255253Ssjg2013-09-04  Simon J. Gerraty  <sjg@bad.crufty.net>
590255253Ssjg
591255253Ssjg	* Makefile (MAKE_VERSION): 20130904
592255253Ssjg	  Merge with NetBSD make, pick up
593255253Ssjg	  o Add VAR_INTERNAL context, so that internal setting of
594255253Ssjg	    MAKEFILE does not override value set by makefiles.
595255253Ssjg
596255253Ssjg2013-09-02  Simon J. Gerraty  <sjg@bad.crufty.net>
597255253Ssjg
598255253Ssjg	* Makefile (MAKE_VERSION): 20130902
599255253Ssjg	  Merge with NetBSD make, pick up
600255253Ssjg	  o CompatRunCommand: only apply shellErrFlag when errCheck is true
601255253Ssjg
602255253Ssjg2013-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
603255253Ssjg
604255253Ssjg	* Makefile (MAKE_VERSION): 20130828
605255253Ssjg	  Merge with NetBSD make, pick up
606255253Ssjg	  o Fix VAR :sh = syntax from Will Andrews at freebsd.org
607255253Ssjg	  o Call Job_SetPrefix() from Job_Init() so makefiles have
608255253Ssjg	    opportunity to set .MAKE.JOB.PREFIX
609255253Ssjg
610253883Ssjg2013-07-30  Simon J. Gerraty  <sjg@bad.crufty.net>
611253883Ssjg
612253883Ssjg	* Makefile (MAKE_VERSION): 20130730
613253883Ssjg	  Merge with NetBSD make, pick up
614253883Ssjg	  o Allow suppression of --- job -- tokens by setting
615253883Ssjg	    .MAKE.JOB.PREFIX empty.
616253883Ssjg
617253883Ssjg2013-07-16  Simon J. Gerraty  <sjg@bad.crufty.net>
618253883Ssjg
619253883Ssjg	* Makefile (MAKE_VERSION): 20130716
620253883Ssjg	  Merge with NetBSD make, pick up
621268437Ssjg	  o number of gmake compatibility tweaks
622253883Ssjg	    -w for gmake style entering/leaving messages
623253883Ssjg	    if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc.
624253883Ssjg	    handle MAKEFLAGS containing only letters.
625253883Ssjg	  o when overriding a GLOBAL variable on the command line,
626253883Ssjg	    delete it from GLOBAL context so -V doesn't show the wrong
627253883Ssjg	    value.
628253883Ssjg	
629253883Ssjg2013-07-06  Simon J. Gerraty  <sjg@bad.crufty.net>
630253883Ssjg
631253883Ssjg	* configure.in: We don't need MAKE_LEVEL_SAFE anymore.
632253883Ssjg
633253883Ssjg	* Makefile (MAKE_VERSION): 20130706
634253883Ssjg	  Merge with NetBSD make, pick up
635253883Ssjg	  o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is
636253883Ssjg	    true so that CompatRunCommand() can use it, to ensure
637253883Ssjg	    consistent behavior with jobs mode.
638253883Ssjg	  o use MAKE_LEVEL_ENV to define the variable to propagate
639253883Ssjg	    .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake).
640253883Ssjg	  o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of
641253883Ssjg	    paths to ignore.
642253883Ssjg
643251422Ssjg2013-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
644251422Ssjg
645251422Ssjg	* Makefile (MAKE_VERSION): 20130604
646251422Ssjg	  Merge with NetBSD make, pick up
647251422Ssjg	  o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's
648251422Ssjg	    to avoid leaking descriptors.
649251422Ssjg
650251422Ssjg2013-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
651251422Ssjg
652251422Ssjg	* Makefile (MAKE_VERSION): 20130528
653251422Ssjg	  Merge with NetBSD make, pick up
654251422Ssjg	  o var.c: cleanup some left-overs in VarHash()
655251422Ssjg
656250837Ssjg2013-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
657250837Ssjg
658250837Ssjg	* Makefile (MAKE_VERSION): 20130520
659250837Ssjg	  generate manifest from component FILES rather than have to
660250837Ssjg	  update FILES when mk/FILES changes.
661250837Ssjg
662250837Ssjg2013-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
663250837Ssjg
664250837Ssjg	* Makefile (MAKE_VERSION): 20130518
665250837Ssjg	  Merge with NetBSD make, pick up
666250837Ssjg	  o suff.c: don't skip all processsing for .PHONY targets
667250837Ssjg	    else wildcard srcs do not get expanded.
668250837Ssjg	  o var.c: expand name of variable to delete if necessary.
669250837Ssjg
670249033Ssjg2013-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
671249033Ssjg
672249033Ssjg	* Makefile (MAKE_VERSION): 20130330
673249033Ssjg	  Merge with NetBSD make, pick up
674249033Ssjg	  o meta.c: refine the handling of .OODATE in commands.
675249033Ssjg	    Rather than suppress command comparison for the entire script
676249033Ssjg	    as though .NOMETA_CMP had been used, only suppress it for the
677249033Ssjg	    one command line.
678249033Ssjg	    This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 
679249033Ssjg	    suppress comparison of a command without otherwise affecting it.
680249033Ssjg	  o make.1: document that
681249033Ssjg
682249033Ssjg2013-03-22  Simon J. Gerraty  <sjg@bad.crufty.net>
683249033Ssjg
684249033Ssjg	* Makefile (MAKE_VERSION): 20130321
685249033Ssjg	  yes, not quite right but its a cooler number.
686249033Ssjg	  Merge with NetBSD make, pick up
687249033Ssjg	  o parse.c: fix ParseGmakeExport to be portable 
688249033Ssjg	    and add a unit-test.
689249033Ssjg	* meta.c: call meta_init() before makefiles are read and if built
690249033Ssjg	  with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON
691249033Ssjg	  this let's makefiles test for support.
692249033Ssjg	  Call meta_mode_init() to process .MAKE.MODE.
693249033Ssjg
694249033Ssjg2013-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
695249033Ssjg
696249033Ssjg	* Makefile (MAKE_VERSION): 20130305
697249033Ssjg	  Merge with NetBSD make, pick up
698249033Ssjg	  o run .STALE: target when a dependency from .depend is missing.
699249033Ssjg	  o job.c: add Job_RunTarget() for the above and .BEGIN
700249033Ssjg
701249033Ssjg2013-03-03  Simon J. Gerraty  <sjg@bad.crufty.net>
702249033Ssjg
703249033Ssjg	* Makefile (MAKE_VERSION): 20130303
704249033Ssjg	  Merge with NetBSD make, pick up
705249033Ssjg	  o main.c: set .MAKE.OS to utsname.sysname
706249033Ssjg	  o job.c: more checks for read and poll errors
707249033Ssjg	  o var.c: lose VarChangeCase() saves 4% time
708249033Ssjg
709249033Ssjg2013-03-02  Simon J. Gerraty  <sjg@bad.crufty.net>
710249033Ssjg
711249033Ssjg	* boot-strap: remove MAKEOBJDIRPREFIX from environment since we
712249033Ssjg	  want to use MAKEOBJDIR
713249033Ssjg
714246223Ssjg2013-01-27  Simon J. Gerraty  <sjg@bad.crufty.net>
715246223Ssjg
716246223Ssjg	* Merge with NetBSD make, pick up
717246223Ssjg	  o make.1: more info on how shell commands are handled.
718246223Ssjg	  o job.c,main.c: detect write errors to job pipes.
719246223Ssjg
720246223Ssjg2013-01-25  Simon J. Gerraty  <sjg@bad.crufty.net>
721246223Ssjg
722246223Ssjg	* Makefile (MAKE_VERSION): 20130123
723246223Ssjg	  Merge with NetBSD make, pick up
724246223Ssjg	  o meta.c: if script uses .OODATE and meta_oodate() decides
725246223Ssjg	    rebuild is needed, .OODATE will be empty - set it to .ALLSRC.
726246223Ssjg	  o var.c: in debug output indicate which variabale modifiers
727246223Ssjg	    apply to.
728246223Ssjg	  o remove Check_Cwd logic the makefiles have been fixed.
729246223Ssjg	
730246223Ssjg2012-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
731246223Ssjg
732246223Ssjg	* makefile.in: add a simple makefile for folk who insist on
733246223Ssjg	  ./configure; make; make install
734246223Ssjg	  it just runs boot-strap
735246223Ssjg	* include mk/* to accommodate the above
736246223Ssjg	* boot-strap:  re-work to accommodate the above
737246223Ssjg	  mksrc defaults to $Mydir/mk
738246223Ssjg	  allow op={configure,build,install,clean,all}
739246223Ssjg	  add options to facilitate install
740246223Ssjg	* Makefile.config.in: just the bits set by configure
741246223Ssjg	* Makefile: bump version to 20121212
742246223Ssjg	  abandon Makefile.in (NetBSD Makefile)
743246223Ssjg	  leverage mk/* instead
744246223Ssjg	* configure.in: ensure srcdir is absolute
745246223Ssjg
746243115Ssjg2012-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
747243115Ssjg
748243115Ssjg	* Makefile.in (MAKE_VERSION): 20121111
749243115Ssjg	  fix generation of bmake.cat1
750243115Ssjg
751243115Ssjg2012-11-09  Simon J. Gerraty  <sjg@bad.crufty.net>
752243115Ssjg
753243115Ssjg	* Makefile.in (MAKE_VERSION): 20121109
754243115Ssjg	  Merge with NetBSD make, pick up
755243115Ssjg	  o make.c: MakeBuildChild: return 0 so search continues if a
756243115Ssjg	    .ORDER dependency is detected.
757243115Ssjg	  o unit-tests/order: test the above
758243115Ssjg	
759243115Ssjg2012-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
760243115Ssjg
761243115Ssjg	* Makefile.in (MAKE_VERSION): 20121102
762243115Ssjg	  Merge with NetBSD make, pick up
763243115Ssjg	  o cond.c: allow cond_state[] to grow.
764243115Ssjg	    In meta mode with a very large tree, we can hit the limit
765243115Ssjg	    while processing dirdeps.
766243115Ssjg	
767243115Ssjg2012-10-25  Simon J. Gerraty  <sjg@bad.crufty.net>
768243115Ssjg
769243115Ssjg	* Makefile.in: we need to use ${srcdir} not ${.CURDIR}
770243115Ssjg
771242102Ssjg2012-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
772242102Ssjg
773242102Ssjg	* Makefile.in (MAKE_VERSION): 20121010
774242102Ssjg	  o protect syntax that only bmake parses correctly.
775242102Ssjg	  o remove auto setting of FORCE_MACHINE, use configure's
776242102Ssjg	    --with-force-machine=whatever if that is desired.
777242102Ssjg	
778242102Ssjg2012-10-08  Simon J. Gerraty  <sjg@bad.crufty.net>
779242102Ssjg
780242102Ssjg	* Makefile.in: do not lose history from make.1 when generating bmake.1
781242102Ssjg
782242102Ssjg2012-10-07  Simon J. Gerraty  <sjg@bad.crufty.net>
783242102Ssjg
784242102Ssjg	* Makefile.in (MAKE_VERSION): 20121007
785242102Ssjg	  Merge with NetBSD make, pick up
786242102Ssjg	  o compat.c: ignore empty commands - same as jobs mode.
787242102Ssjg	  o make.1: document meta chars that cause use of shell
788242102Ssjg
789242102Ssjg2012-09-11  Simon J. Gerraty  <sjg@bad.crufty.net>
790242102Ssjg
791242102Ssjg	* Makefile.in (MAKE_VERSION): bump version to 20120911
792242102Ssjg	* bsd.after-import.mk: include Makefile.inc early and allow it to
793242102Ssjg	  override PROG
794242102Ssjg
795240330Smarcel2012-08-31  Simon J. Gerraty  <sjg@bad.crufty.net>
796240330Smarcel
797240330Smarcel	* Makefile.in (MAKE_VERSION): bump version to 20120831
798240330Smarcel	  Merge with NetBSD make, pick up
799240330Smarcel	  o cast sizeof() to int for comparison
800240330Smarcel	  o minor make.1 tweak
801240330Smarcel
802240330Smarcel2012-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
803240330Smarcel
804240330Smarcel	* Makefile.in (MAKE_VERSION): bump version to 20120830
805240330Smarcel	  Merge with NetBSD make, pick up
806240330Smarcel	  o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V
807240330Smarcel	  o debug flag -dV causes -V to show raw value regardless.
808240330Smarcel	
809240330Smarcel2012-07-05  Simon J. Gerraty  <sjg@bad.crufty.net>
810240330Smarcel
811240330Smarcel	* bsd.after-import.mk (after-import): ensure unit-tests/Makefile
812240330Smarcel	  gets SRCTOP set.
813240330Smarcel
814238152Sobrien2012-07-04  Simon J. Gerraty  <sjg@bad.crufty.net>
815238152Sobrien
816238152Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120704
817238152Sobrien	  Merge with NetBSD make, pick up
818238152Sobrien	  o Job_ParseShell should call Shell_Init if it has been
819238152Sobrien	    previously called.
820238152Sobrien	* Makefile.in: set USE_META based on configure result.
821238152Sobrien	  also .PARSEDIR is safer indicator of bmake.
822238152Sobrien
823238152Sobrien2012-06-26  Simon J. Gerraty  <sjg@bad.crufty.net>
824238152Sobrien
825238152Sobrien	* Makefile.in: bump version to 20120626
826238152Sobrien	  ensure CPPFLAGS is in CFLAGS
827238152Sobrien	* meta.c: avoid nested externs
828238152Sobrien	* bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target
829238152Sobrien	
830237578Sobrien2012-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
831237578Sobrien
832237578Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120620
833237578Sobrien	  Merge with NetBSD make, pick up
834237578Sobrien	  o make_malloc.c: avoid including make_malloc.h again
835237578Sobrien
836237578Sobrien	* Makefile.in: avoid bmake only syntax or protect with
837237578Sobrien	  .if defined(.MAKE.LEVEL)
838237578Sobrien	* bsd.after-import.mk: replace .-include with .sinclude
839237578Sobrien	  ensure? SRCTOP gets a value
840237578Sobrien	* configure.in: look for filemon.h in /usr/include/dev/filemon first.
841237578Sobrien
842237578Sobrien2012-06-19  Simon J. Gerraty  <sjg@bad.crufty.net>
843237578Sobrien
844237578Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120612
845237578Sobrien	  Merge with NetBSD make, pick up
846237578Sobrien	  o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler
847237578Sobrien	    for greater portability.
848237578Sobrien	  o unit-tests/forloop: check that .for works as expected wrt
849237578Sobrien	    number of times and with "quoted strings".
850237578Sobrien	
851236769Sobrien2012-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
852236769Sobrien
853236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120606
854236769Sobrien	  Merge with NetBSD make, pick up
855236769Sobrien	  o compat.c: use kill(2) rather than raise(3).
856236769Sobrien	* configure.in: look for sys/dev/filemon
857236769Sobrien	* bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile
858236769Sobrien	  and pass BOOTSTRAP_XTRAS to boot-strap.
859236769Sobrien
860236769Sobrien2012-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
861236769Sobrien
862236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120604
863236769Sobrien	  Merge with NetBSD make, pick up
864236769Sobrien	  o util.c and var.c share same var for tracking if environ
865236769Sobrien	    has been reallocated.
866236769Sobrien	  o util.c provide getenv with setenv.
867236769Sobrien	* Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL
868236769Sobrien	  when the shell actively strips .MAKE.* from the environment.
869236769Sobrien	  We still refer to the variable always as .MAKE.LEVEL
870236769Sobrien	* util.c fix bug in findenv() was finding prefix of name.
871236769Sobrien	* compat.c: re-raising SIGINT etc after running .INTERRUPT
872236769Sobrien	  results in more reliable termination of all activity on many
873236769Sobrien	  platforms.
874236769Sobrien
875236769Sobrien2012-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
876236769Sobrien
877236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120602
878236769Sobrien	  Merge with NetBSD make, pick up
879236769Sobrien	  o for.c: handle quoted items in .for list
880236769Sobrien
881236769Sobrien2012-05-30  Simon J. Gerraty  <sjg@bad.crufty.net>
882236769Sobrien
883236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120530
884236769Sobrien	  Merge with NetBSD make, pick up
885236769Sobrien	  o compat.c: ignore empty command.
886236769Sobrien
887236769Sobrien2012-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
888236769Sobrien
889236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120524
890236769Sobrien	* FILES: add bsd.after-import.mk:
891236769Sobrien	  A simple means of integrating bmake into a BSD build system.
892236769Sobrien
893236769Sobrien2012-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
894236769Sobrien
895236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120520
896236769Sobrien	  Merge with NetBSD make, pick up
897236769Sobrien	  o increased limit for nested conditionals.
898236769Sobrien	
899236769Sobrien2012-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
900236769Sobrien
901236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120518
902236769Sobrien	  Merge with NetBSD make, pick up
903236769Sobrien	  o use _exit(2) in signal hanlder
904236769Sobrien	  o Don't use the [dir] cache when building nodes that might have
905236769Sobrien	    changed since the last exec.
906236769Sobrien	  o Avoid nested extern declaration warnings.
907236769Sobrien
908236769Sobrien2012-04-27  Simon J. Gerraty  <sjg@bad.crufty.net>
909236769Sobrien
910236769Sobrien	* meta.c (fgetLine): avoid %z - not portable.
911236769Sobrien	* parse.c: Since we moved include of sys/mman.h
912236769Sobrien	  and def's of MAP_COPY etc. we got dups from a merge.
913236769Sobrien
914236769Sobrien2012-04-24  Simon J. Gerraty  <sjg@bad.crufty.net>
915236769Sobrien
916236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120420
917236769Sobrien	  Merge with NetBSD make, pick up
918236769Sobrien	  o restore duplicate supression in .MAKE.MAKEFILES
919236769Sobrien	    runtime saving can be significant.
920236769Sobrien	  o Var_Subst() uses Buf_DestroyCompact() to reduce memory
921236769Sobrien	    consumption up to 20%. 
922236769Sobrien
923236769Sobrien2012-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
924236769Sobrien
925236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120420
926236769Sobrien          Merge with NetBSD make, pick up
927236769Sobrien	  o remove duplicate supression in .MAKE.MAKEFILES
928236769Sobrien	  o improved dir cache behavior
929236769Sobrien	  o gmake'ish export command
930236769Sobrien	
931236769Sobrien2012-03-25  Simon J. Gerraty  <sjg@bad.crufty.net>
932236769Sobrien
933236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20120325
934236769Sobrien	  Merge with NetBSD make, pick up
935236769Sobrien	  o fix parsing of :[#] in conditionals.
936236769Sobrien
937236769Sobrien2012-02-10  Simon J. Gerraty  <sjg@bad.crufty.net>
938236769Sobrien
939236769Sobrien	* Makefile.in: replace use of .Nx in bmake.1 with NetBSD
940236769Sobrien	  since some systems cannot cope with .Nx <version>
941236769Sobrien
942236769Sobrien2011-11-14  Simon J. Gerraty  <sjg@bad.crufty.net>
943236769Sobrien
944236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20111111
945236769Sobrien	  Merge with NetBSD make, pick up
946236769Sobrien	  o debug output for .PARSEDIR and .PARSEFILE
947236769Sobrien
948236769Sobrien2011-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
949236769Sobrien
950236769Sobrien	* Makefile.in (MAKE_VERSION):  bump version to 20111010
951236769Sobrien
952236769Sobrien2011-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
953236769Sobrien
954236769Sobrien	* boot-strap: check for an expected file in the dirs we look for.
955236769Sobrien	* make-bootstrap.sh: pass on LDSTATIC
956236769Sobrien
957236769Sobrien2011-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
958236769Sobrien
959236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20111001
960236769Sobrien	  Merge with NetBSD make, pick up
961236769Sobrien	  o ensure .PREFIX is set for .PHONY
962236769Sobrien	    and .TARGET set for .PHONY run via .END
963236769Sobrien	  o __dead used consistently
964236769Sobrien	
965236769Sobrien2011-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
966236769Sobrien
967236769Sobrien	* Makefile.in (MAKE_VERSION): 20110909 is a better number ;-)
968236769Sobrien
969236769Sobrien2011-09-05  Simon J. Gerraty  <sjg@bad.crufty.net>
970236769Sobrien
971236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110905
972236769Sobrien	  Merge with NetBSD make, pick up
973236769Sobrien	  o meta_oodate: ignore makeDependfile
974236769Sobrien	
975236769Sobrien2011-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
976236769Sobrien
977236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110828
978236769Sobrien	  Merge with NetBSD make, pick up
979236769Sobrien	  o silent=yes in .MAKE.MODE causes meta mode to mark targets 
980236769Sobrien	    as SILENT if a .meta file is created
981236769Sobrien
982236769Sobrien2011-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
983236769Sobrien
984236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110818
985236769Sobrien	  Merge with NetBSD make, pick up
986236769Sobrien	  o in meta mode, if target flagged .META a missing .meta file
987236769Sobrien	    means target is out-of-date
988236769Sobrien	  o fixes for gcc 4.5 warnings
989236769Sobrien	  o simplify job printing code
990236769Sobrien	
991236769Sobrien2011-08-09  Simon J. Gerraty  <sjg@bad.crufty.net>
992236769Sobrien
993236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110808
994236769Sobrien	  Merge with NetBSD make, pick up
995236769Sobrien	  o do not touch OP_SPECIAL targets when doing make -t
996236769Sobrien	
997236769Sobrien2011-06-22  Simon J. Gerraty  <sjg@bad.crufty.net>
998236769Sobrien
999236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110622
1000236769Sobrien	  Merge with NetBSD make, pick up
1001236769Sobrien	  o meta_oodate detect corrupted .meta file and declare oodate.
1002236769Sobrien	* configure.in: add check for setsid
1003236769Sobrien	
1004236769Sobrien2011-06-07  Simon J. Gerraty  <sjg@bad.crufty.net>
1005236769Sobrien
1006236769Sobrien	* Merge with NetBSD make, pick up
1007236769Sobrien	  o unit-tests/modts now works on MirBSD
1008236769Sobrien
1009236769Sobrien2011-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
1010236769Sobrien
1011236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110606
1012236769Sobrien	  Merge with NetBSD make, pick up
1013236769Sobrien	  o ApplyModifiers: when we parse a variable which is not
1014236769Sobrien	    the entire modifier string, or not followed by ':', do not
1015236769Sobrien	    consider it as containing modifiers.
1016236769Sobrien	  o loadfile: ensure newline at end of mapped file.
1017236769Sobrien
1018236769Sobrien2011-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1019236769Sobrien
1020236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110505
1021236769Sobrien	  Merge with NetBSD make, pick up
1022236769Sobrien	  o .MAKE.META.BAILIWICK - list of prefixes which define the scope
1023236769Sobrien	    of make's control.  In meta mode, any generated file within
1024236769Sobrien	    said bailiwick, which  is found to be missing, causes current
1025236769Sobrien	    target to be out-of-date. 
1026236769Sobrien	
1027236769Sobrien2011-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
1028236769Sobrien
1029236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110411
1030236769Sobrien	  Merge with NetBSD make, pick up
1031236769Sobrien	  o when long modifiers fail to match, check sysV style.
1032236769Sobrien	    - add a test case
1033236769Sobrien	
1034236769Sobrien2011-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
1035236769Sobrien
1036236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110410
1037236769Sobrien	  Merge with NetBSD make, pick up
1038236769Sobrien	  o :hash - cheap 32bit hash of value
1039236769Sobrien	  o :localtime, :gmtime - use value as format string for strftime.
1040236769Sobrien	
1041236769Sobrien2011-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
1042236769Sobrien
1043236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110330
1044236769Sobrien	  mostly because its a cooler version.
1045236769Sobrien	  Merge with NetBSD make, pick up
1046236769Sobrien	  o NetBSD tags for meta.[ch]
1047236769Sobrien	  o job.c call meta_job_finish() after meta_job_error().
1048236769Sobrien	  o meta_job_error() should call meta_job_finish() to ensure
1049236769Sobrien	    .meta file is closed, and safe to copy - if .ERROR target wants.
1050236769Sobrien	   meta_job_finish() is safe to call repeatedly.
1051236769Sobrien	
1052236769Sobrien2011-03-29  Simon J. Gerraty  <sjg@bad.crufty.net>
1053236769Sobrien
1054236769Sobrien	* unit-tests/modts: use printf if it is a builtin, 
1055236769Sobrien	  to save us from MirBSD
1056236769Sobrien
1057236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110329
1058236769Sobrien	  Merge with NetBSD make, pick up
1059236769Sobrien	  o fix for use after free() in CondDoExists().
1060236769Sobrien	  o meta_oodate() report extra commands and return earlier.
1061236769Sobrien	
1062236769Sobrien2011-03-27  Simon J. Gerraty  <sjg@bad.crufty.net>
1063236769Sobrien
1064236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110327
1065236769Sobrien	  Merge with NetBSD make, pick up
1066236769Sobrien	  o meta.c, if .MAKE.MODE contains curdirOk=yes
1067236769Sobrien	    allow creating .meta files in .CURDIR
1068236769Sobrien	* boot-strap (TOOL_DIFF): aparently at least on linux distro
1069236769Sobrien	  formats the output of 'type' differently - so eat any "()"
1070236769Sobrien
1071236769Sobrien2011-03-06  Simon J. Gerraty  <sjg@bad.crufty.net>
1072236769Sobrien
1073236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110306
1074236769Sobrien	  Merge with NetBSD make, pick up
1075236769Sobrien	  o meta.c, only do getcwd() once
1076236769Sobrien	
1077236769Sobrien2011-03-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1078236769Sobrien
1079236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110305
1080236769Sobrien	  Merge with NetBSD make, pick up
1081236769Sobrien	  o correct sysV substitution handling of empty lhs and variable
1082236769Sobrien	  o correct exists() check for dir with trailing /
1083236769Sobrien	  o correct handling of modifiers for non-existant variables
1084236769Sobrien	    during evaluation of conditionals.
1085236769Sobrien	  o ensure MAP_FILE is defined.
1086236769Sobrien	  o meta.c use curdir[] now exported by main.c
1087236769Sobrien	
1088236769Sobrien2011-02-25  Simon J. Gerraty  <sjg@bad.crufty.net>
1089236769Sobrien
1090236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110225
1091236769Sobrien	  Merge with NetBSD make, pick up
1092236769Sobrien	  o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after
1093236769Sobrien	    makefiles have been read.
1094236769Sobrien	  o fix example of :? modifier in man page.
1095236769Sobrien	
1096236769Sobrien2011-02-13  Simon J. Gerraty  <sjg@bad.crufty.net>
1097236769Sobrien
1098236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110214
1099236769Sobrien	  Merge with NetBSD make, pick up
1100236769Sobrien	  o meta.c handle realpath() failing when generating meta file
1101236769Sobrien	    name.
1102236769Sobrien
1103236769Sobrien	* sigcompat.c: convert to ansi so we can use higher warning levels.
1104236769Sobrien
1105236769Sobrien
1106236769Sobrien2011-02-07  Simon J. Gerraty  <sjg@bad.crufty.net>
1107236769Sobrien
1108236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110207
1109236769Sobrien	  Merge with NetBSD make, pick up
1110236769Sobrien	  o fix for bug in meta mode.
1111236769Sobrien	
1112236769Sobrien2011-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
1113236769Sobrien
1114236769Sobrien	* parse.c: SunOS 5.8 at least does not have MAP_FILE
1115236769Sobrien
1116236769Sobrien2011-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
1117236769Sobrien
1118236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20110101
1119236769Sobrien	  Merge with NetBSD make, pick up
1120236769Sobrien	  o use mmap(2) if available, for reading makefiles
1121236769Sobrien
1122236769Sobrien2010-12-15  Simon J. Gerraty  <sjg@bad.crufty.net>
1123236769Sobrien
1124236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20101215
1125236769Sobrien	  Merge with NetBSD make, pick up
1126236769Sobrien	  o ensure meta_job_error() does not report a previous .meta file
1127236769Sobrien	    as being culprit.
1128236769Sobrien
1129236769Sobrien2010-12-10  Simon J. Gerraty  <sjg@bad.crufty.net>
1130236769Sobrien
1131236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20101210
1132236769Sobrien	  Merge with NetBSD make, pick up
1133236769Sobrien	  o meta_oodate: track cwd per process, and only consider target
1134236769Sobrien	    out-of-date if missing file is outside make's CWD.
1135236769Sobrien	    Ignore files in /tmp/ etc.
1136236769Sobrien	  o to ensure unit-tests results match, need to control LC_ALL
1137236769Sobrien	    as well as LANG.
1138236769Sobrien	  o fix for parsing bug in var.c
1139236769Sobrien
1140236769Sobrien2010-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
1141236769Sobrien
1142236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20101126
1143236769Sobrien	  Merge with NetBSD make, pick up
1144236769Sobrien	  o if stale dependency is an IMPSRC, search via .PATH
1145236769Sobrien	  o meta_oodate: if a referenced file is missing, target is
1146236769Sobrien	    out-of-date.
1147236769Sobrien	  o meta_oodate: if a target uses .OODATE in its commands,
1148236769Sobrien	    it (.OODATE) needs to be recomputed.
1149236769Sobrien	  o keep a pointer to youngest child node, rather than just its
1150236769Sobrien	    mtime.
1151236769Sobrien	
1152236769Sobrien2010-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
1153236769Sobrien
1154236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20101101
1155236769Sobrien
1156236769Sobrien2010-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
1157236769Sobrien
1158236769Sobrien	* machine.sh: like os.sh, 
1159236769Sobrien	allow for uname -p producing useless drivel
1160236769Sobrien
1161236769Sobrien2010-09-13  Simon J. Gerraty  <sjg@bad.crufty.net>
1162236769Sobrien
1163236769Sobrien	* boot-strap: document configure knobs for meta and filemon.
1164236769Sobrien
1165236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100911
1166236769Sobrien	  Merge with NetBSD make, pick up
1167236769Sobrien	  o meta.c - meta mode
1168236769Sobrien
1169236769Sobrien	* make-bootstrap.sh.in: handle meta.c
1170236769Sobrien	* configure.in: add knobs for use_meta and filemon_h
1171236769Sobrien	  also, look for dirname, str[e]sep and strlcpy
1172236769Sobrien	* util.c: add simple err[x] and warn[x]
1173236769Sobrien
1174236769Sobrien2010-08-08  Simon J. Gerraty  <sjg@bad.crufty.net>
1175236769Sobrien
1176236769Sobrien	* boot-strap (TOOL_DIFF): set this to ensure tests use
1177236769Sobrien	  the same version of diff that configure tested
1178236769Sobrien
1179236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100808
1180236769Sobrien	  Merge with NetBSD make, pick up
1181236769Sobrien	  o in jobs mode, when we discover we cannot make something,
1182236769Sobrien	    call PrintOnError before exit.
1183236769Sobrien	
1184236769Sobrien2010-08-06  Simon J. Gerraty  <sjg@bad.crufty.net>
1185236769Sobrien
1186236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100806
1187236769Sobrien	  Merge with NetBSD make, pick up
1188236769Sobrien	  o formatting fixes for ignored errors
1189236769Sobrien	  o ensure jobs are cleaned up regardless of where wait() was called.
1190236769Sobrien
1191236769Sobrien2010-06-28  Simon J. Gerraty  <sjg@bad.crufty.net>
1192236769Sobrien
1193236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100618
1194236769Sobrien	* os.sh (MACHINE_ARCH): watch out for drivel from uname -p
1195236769Sobrien
1196236769Sobrien2010-06-16  Simon J. Gerraty  <sjg@bad.crufty.net>
1197236769Sobrien
1198236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100616
1199236769Sobrien	  Merge with NetBSD make, pick up
1200236769Sobrien	  o man page update
1201236769Sobrien	  o call PrintOnError from JobFinish when we detect an error we
1202236769Sobrien	    are not ignoring. 
1203236769Sobrien	
1204236769Sobrien2010-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
1205236769Sobrien
1206236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100606
1207236769Sobrien	  Merge with NetBSD make, pick up
1208236769Sobrien	  o man page update
1209236769Sobrien
1210236769Sobrien2010-06-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1211236769Sobrien
1212236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100605
1213236769Sobrien	  Merge with NetBSD make, pick up
1214236769Sobrien	  o use bmake_signal() which is a wrapper around sigaction() 
1215236769Sobrien	    in place of signal()
1216236769Sobrien	  o add .export-env to allow exporting variables to environment
1217236769Sobrien	    without tracking (so no re-export when the internal value is
1218236769Sobrien	    changed).
1219236769Sobrien	
1220236769Sobrien2010-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
1221236769Sobrien
1222236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100524
1223236769Sobrien	  Merge with NetBSD make, pick up
1224236769Sobrien	  o fix for .info et al being greedy.
1225236769Sobrien
1226236769Sobrien2010-05-23  Simon J. Gerraty  <sjg@bad.crufty.net>
1227236769Sobrien
1228236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100520
1229236769Sobrien	  Merge with NetBSD make, pick up
1230236769Sobrien	  o back to using realpath on argv[0] 
1231236769Sobrien	    but only if contains '/' and does not start with '/'.
1232236769Sobrien
1233236769Sobrien2010-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
1234236769Sobrien
1235236769Sobrien	* boot-strap: use absolute path for bmake when running tests.
1236236769Sobrien
1237236769Sobrien	* Makefile.in (MAKE_VERSION):  bump version to 20100510
1238236769Sobrien	  Merge with NetBSD make, pick up
1239236769Sobrien	  o revert use of realpath on argv[0]
1240236769Sobrien	    too many corner cases.
1241236769Sobrien	  o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target.
1242236769Sobrien
1243236769Sobrien2010-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1244236769Sobrien
1245236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100505
1246236769Sobrien	  Merge with NetBSD make, pick up
1247236769Sobrien	  o fix for missed SIGCHLD when compiled with SunPRO
1248236769Sobrien	    actually for bmake, defining FORCE_POSIX_SIGNALS would have
1249236769Sobrien	    done the job.
1250236769Sobrien
1251236769Sobrien2010-04-30  Simon J. Gerraty  <sjg@bad.crufty.net>
1252236769Sobrien
1253236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100430
1254236769Sobrien	  Merge with NetBSD make, pick up
1255236769Sobrien	  o fflush stdout before writing to stdout
1256236769Sobrien	
1257236769Sobrien2010-04-23  Simon J. Gerraty  <sjg@bad.crufty.net>
1258236769Sobrien
1259236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100423
1260236769Sobrien	  Merge with NetBSD make, pick up
1261236769Sobrien	  o updated unit tests for Haiku (this time for sure).
1262236769Sobrien	* boot-strap: based on patch from joerg 
1263236769Sobrien	  honor --with-default-sys-path better.
1264236769Sobrien	* boot-strap: remove mention of --with-prefix-sys-path
1265236769Sobrien	
1266236769Sobrien2010-04-22  Simon J. Gerraty  <sjg@bad.crufty.net>
1267236769Sobrien
1268236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100422
1269236769Sobrien	* Merge with NetBSD make, pick up
1270236769Sobrien	  o fix for vfork() on Darwin.
1271236769Sobrien	  o fix for bogus $TMPDIR.
1272236769Sobrien	  o set .MAKE.MODE=compat for -B
1273236769Sobrien	  o set .MAKE.JOBS=max_jobs for -j max_jobs
1274236769Sobrien	  o allow unit-tests to run without any *.mk
1275236769Sobrien	  o unit-tests/modmisc be more conservative in dirs presumed to exist.
1276236769Sobrien	* boot-strap: ignore /usr/share/mk except on NetBSD.
1277236769Sobrien	* unit-tests/Makefile.in: set LANG=C when running unit-tests to
1278236769Sobrien	  ensure sort(1) behaves as expected. 
1279236769Sobrien	
1280236769Sobrien2010-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
1281236769Sobrien
1282236769Sobrien	* boot-strap: add FindHereOrAbove so we can use -m .../mk
1283236769Sobrien
1284236769Sobrien2010-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
1285236769Sobrien
1286236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100420
1287236769Sobrien	* Merge with NetBSD make, pick up
1288236769Sobrien	  o fix for variable realpath() behavior.
1289236769Sobrien	    we have to stat(2) the result to be sure.
1290236769Sobrien	  o fix for .export (all) when nested vars use :sh
1291236769Sobrien	
1292236769Sobrien2010-04-14  Simon J. Gerraty  <sjg@bad.crufty.net>
1293236769Sobrien
1294236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100414
1295236769Sobrien	* Merge with NetBSD make, pick up
1296236769Sobrien	  o use realpath to resolve argv[0] (for .MAKE) if needed.
1297236769Sobrien	  o add realpath from libc.
1298236769Sobrien	  o add :tA to resolve variable via realpath(3) if possible.
1299236769Sobrien
1300236769Sobrien2010-04-08  Simon J. Gerraty  <sjg@bad.crufty.net>
1301236769Sobrien
1302236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100408
1303236769Sobrien	* Merge with NetBSD make, pick up
1304236769Sobrien	  o unit tests for .ERROR, .error
1305236769Sobrien	  o fix for .ERROR to ensure it cannot be default target.
1306236769Sobrien
1307236769Sobrien2010-04-06  Simon J. Gerraty  <sjg@bad.crufty.net>
1308236769Sobrien
1309236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100406
1310236769Sobrien	* Merge with NetBSD make, pick up
1311236769Sobrien	  o fix for compat mode "Error code" going to debug_file.
1312236769Sobrien	  o fix for .ALLSRC being populated twice.
1313236769Sobrien	  o support for .info, .warning and .error directives
1314236769Sobrien	  o .MAKE.MODE to control make's operational mode
1315236769Sobrien	  o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile
1316236769Sobrien	    name(s).
1317236769Sobrien	  o .MAKE.DEPENDFILE to control the name of the depend file
1318236769Sobrien	  o .ERROR target - run on failure.
1319236769Sobrien	
1320236769Sobrien2010-03-18  Simon J. Gerraty  <sjg@bad.crufty.net>
1321236769Sobrien
1322236769Sobrien	* make-bootstrap.sh.in: extract MAKE_VERSION from Makefile
1323236769Sobrien
1324236769Sobrien	* os.sh,arch.c: patch for Haiku from joerg at netbsd
1325236769Sobrien
1326236769Sobrien2010-03-17  Simon J. Gerraty  <sjg@bad.crufty.net>
1327236769Sobrien
1328236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100222
1329236769Sobrien	* Merge with NetBSD make, pick up
1330236769Sobrien	  o better error msg for .for with mutiple inter vars
1331236769Sobrien	
1332236769Sobrien	* boot-strap: 
1333236769Sobrien	  o use make-bootstrap.sh from joerg at netbsd
1334236769Sobrien	    to avoid the need for a native make when bootstrapping.
1335236769Sobrien	  o add "" everywhere ;-)
1336236769Sobrien	  o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1
1337236769Sobrien	    otherwise the pre-formated version.
1338236769Sobrien
1339236769Sobrien2010-01-04  Simon J. Gerraty  <sjg@bad.crufty.net>
1340236769Sobrien
1341236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20100102
1342236769Sobrien	* Merge with NetBSD make, pick up:
1343236769Sobrien	  o fix for -m .../
1344236769Sobrien
1345236769Sobrien2009-11-18  Simon J. Gerraty  <sjg@void.crufty.net>
1346236769Sobrien
1347236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20091118
1348236769Sobrien	* Merge with NetBSD make, pick up:
1349236769Sobrien	  o .unexport
1350236769Sobrien	  o report lines that start with '.' and should have ':'
1351236769Sobrien	    (catch typo's of .el*if).
1352236769Sobrien	
1353236769Sobrien2009-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
1354236769Sobrien
1355236769Sobrien	* configure.in: Ensure that srcdir and mksrc are absolute paths.
1356236769Sobrien
1357236769Sobrien2009-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
1358236769Sobrien
1359236769Sobrien	* Makefile.in (MAKE_VERSION): fix version to 20091007
1360236769Sobrien
1361236769Sobrien2009-10-07  Simon J. Gerraty  <sjg@void.crufty.net>
1362236769Sobrien
1363236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 200910007
1364236769Sobrien	* Merge with NetBSD make, pick up:
1365236769Sobrien	  o fix for parsing of :S;...;...; applied to .for loop iterator
1366236769Sobrien	    appearing in a dependency line. 
1367236769Sobrien	
1368236769Sobrien2009-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
1369236769Sobrien
1370236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20090909
1371236769Sobrien	* Merge with NetBSD make, pick up:
1372236769Sobrien	  o fix for -C, .CURDIR and .OBJDIR
1373236769Sobrien	* boot-strap: 
1374236769Sobrien	  o allow share_dir to be set independent of prefix.
1375236769Sobrien	  o select default share_dir better when prefix ends in $HOST_TARGET
1376236769Sobrien	  o if FORCE_BSD_MK etc were set, include them in the suggested
1377236769Sobrien	    install-mk command.
1378236769Sobrien
1379236769Sobrien2009-09-08  Simon J. Gerraty  <sjg@void.crufty.net>
1380236769Sobrien
1381236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20090908
1382236769Sobrien	* Merge with NetBSD make, pick up:
1383236769Sobrien	  o .MAKE.LEVEL for recursion tracking
1384236769Sobrien	  o fix for :M scanning \:
1385236769Sobrien
1386236769Sobrien2009-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
1387236769Sobrien
1388236769Sobrien	* configure.in: Don't -D__EXTENSIONS__ if
1389236769Sobrien	AC_USE_SYSTEM_EXTENSIONS says "no".
1390236769Sobrien
1391236769Sobrien2009-08-26  Simon J. Gerraty  <sjg@void.crufty.net>
1392236769Sobrien
1393236769Sobrien	* Makefile.in (MAKE_VERSION): bump version to 20090826
1394236769Sobrien	Simplify MAKE_VERSION to just the bare date.
1395236769Sobrien	* Merge with NetBSD make, pick up:
1396236769Sobrien	  o -C directory support.
1397236769Sobrien	  o support for SIGINFO
1398236769Sobrien	  o use $TMPDIR for temp files.
1399236769Sobrien	  o child of vfork should be careful about modifying parent's state.
1400236769Sobrien	
1401236769Sobrien
1402236769Sobrien2009-03-26  Simon J. Gerraty  <sjg@void.crufty.net>
1403236769Sobrien
1404236769Sobrien	* Appy some patches for MiNT from David Brownlee
1405236769Sobrien
1406236769Sobrien2009-02-26  Simon J. Gerraty  <sjg@void.crufty.net>
1407236769Sobrien
1408236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20090222
1409236769Sobrien	* Merge with NetBSD make, pick up:
1410236769Sobrien	  o Possible null pointer de-ref in Var_Set.
1411236769Sobrien
1412236769Sobrien2009-02-08  Simon J. Gerraty  <sjg@void.crufty.net>
1413236769Sobrien
1414236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20090204
1415236769Sobrien	* Merge with NetBSD make, pick up:
1416236769Sobrien	  o bmake_malloc et al moved to their own .c
1417236769Sobrien	  o Count both () and {} when looking for the end of a :M pattern
1418236769Sobrien	  o Change 'Buffer' so that it is the actual struct, not a pointer to it.
1419236769Sobrien	  o strlist.c - functions for processing extendable arrays of pointers to strings.
1420236769Sobrien	  o ClientData replaced with void *, so const void * can be used.
1421236769Sobrien	  o New debug flag C for DEBUG_CWD
1422236769Sobrien
1423236769Sobrien2008-11-11  Simon J. Gerraty  <sjg@void.crufty.net>
1424236769Sobrien
1425236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20081111
1426236769Sobrien	  Apply patch from Joerg Sonnenberge to
1427236769Sobrien	  configure.in:
1428236769Sobrien	  o remove some redundant checks
1429236769Sobrien	  o check for emlloc etc only in libutil and require the whole family.
1430236769Sobrien	  util.c:
1431236769Sobrien	  o remove [v]asprintf which is no longer used.
1432236769Sobrien	
1433236769Sobrien2008-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
1434236769Sobrien
1435236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20081101
1436236769Sobrien	* Merge with NetBSD make, pick up:
1437236769Sobrien	  o util.c: avoid use of putenv() - christos
1438236769Sobrien
1439236769Sobrien2008-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
1440236769Sobrien
1441236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20081030
1442236769Sobrien	  pick up man page tweaks.
1443236769Sobrien
1444236769Sobrien2008-10-29  Simon J. Gerraty  <sjg@void.crufty.net>
1445236769Sobrien
1446236769Sobrien	* Makefile.in: move processing of LIBOBJS to after is definition!
1447236769Sobrien	  thus we'll have getenv.c in SRCS only if needed.
1448236769Sobrien
1449236769Sobrien	* make.1: add examples of how to use :?
1450236769Sobrien
1451236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20081029
1452236769Sobrien	* Merge with NetBSD make, pick up:
1453236769Sobrien	  o fix for .END processing with -j
1454236769Sobrien	  o segfault from Parse_Error when no makefile is open
1455236769Sobrien	  o handle numeric expressions in any variable expansion
1456236769Sobrien	  o debug output now defaults to stderr, -dF to change it - apb
1457236769Sobrien	  o make now uses bmake_malloc etc so that it can build natively 
1458236769Sobrien	    on A/UX - wasn't an issue for bmake, but we want to keep in sync.
1459236769Sobrien
1460236769Sobrien2008-09-27  Simon J. Gerraty  <sjg@void.crufty.net>
1461236769Sobrien
1462236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080808
1463236769Sobrien	* Merge with NetBSD make, pick up:
1464236769Sobrien	  o fix for PR/38840: Pierre Pronchery: make crashes while parsing
1465236769Sobrien	    long lines in Makefiles 
1466236769Sobrien	  o optimizations for VarQuote by joerg
1467236769Sobrien	  o fix for PR/38756: dominik: make dumps core on invalid makefile
1468236769Sobrien	
1469236769Sobrien2008-05-15  Simon J. Gerraty  <sjg@void.crufty.net>
1470236769Sobrien
1471236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080515
1472236769Sobrien	* Merge with NetBSD make, pick up:
1473236769Sobrien	  o fix skip setting vars in VAR_GLOBAL context, to handle
1474236769Sobrien	    cases where VAR_CMD is used for other than command line vars.
1475236769Sobrien
1476236769Sobrien2008-05-14  Simon J. Gerraty  <sjg@void.crufty.net>
1477236769Sobrien
1478236769Sobrien	* boot-strap (make_version): we may need to look in
1479236769Sobrien	$prefix/share/mk for sys.mk 
1480236769Sobrien
1481236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080514
1482236769Sobrien	* Merge with NetBSD make, pick up:
1483236769Sobrien	  o skip setting vars in VAR_GLOBAL context, when already set in
1484236769Sobrien	  VAR_CMD which takes precedence.
1485236769Sobrien
1486236769Sobrien2008-03-30  Simon J. Gerraty  <sjg@void.crufty.net>
1487236769Sobrien
1488236769Sobrien	* Makefile.in (BMAKE_VERSION):  bump version to 20080330
1489236769Sobrien	* Merge with NetBSD make, pick up:
1490236769Sobrien	  o fix for ?= when LHS contains variable reference.
1491236769Sobrien
1492236769Sobrien2008-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
1493236769Sobrien
1494236769Sobrien	* merge some patches from NetBSD pkgsrc.
1495236769Sobrien	
1496236769Sobrien	* makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
1497236769Sobrien	the MAKSYSPATH used during bootstrap. 
1498236769Sobrien
1499236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080215
1500236769Sobrien	* Merge with NetBSD make, pick up:
1501236769Sobrien	  o warn if non-space chars follow 'empty' in a conditional.
1502236769Sobrien
1503236769Sobrien2008-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
1504236769Sobrien
1505236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20080118
1506236769Sobrien	* Merge with NetBSD make, pick up:
1507236769Sobrien	  o consider dependencies read from .depend as optional - dsl
1508236769Sobrien	  o remember when buffer for reading makefile grows - dsl
1509236769Sobrien	  o add -dl (aka LOUD) - David O'Brien
1510236769Sobrien
1511236769Sobrien2007-10-22  Simon J. Gerraty  <sjg@void.crufty.net>
1512236769Sobrien
1513236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20071022
1514236769Sobrien	* Merge with NetBSD make, pick up:
1515236769Sobrien	  o Allow .PATH<suffix> to be used for .include ""
1516236769Sobrien
1517236769Sobrien	* boot-strap: source default settings from .bmake-boot-strap.rc
1518236769Sobrien
1519236769Sobrien2007-10-16  Simon J. Gerraty  <sjg@void.crufty.net>
1520236769Sobrien
1521236769Sobrien	* Makefile.in: fix maninstall on various systems 
1522236769Sobrien	  provided that our man.mk is used.
1523236769Sobrien	  For non-BSD systems we install the preformatted page
1524236769Sobrien	  into $MANDIR/cat1
1525236769Sobrien
1526236769Sobrien2007-10-15  Simon J. Gerraty  <sjg@void.crufty.net>
1527236769Sobrien
1528236769Sobrien	* boot-strap: make bmake.1 too, so maninstall works.
1529236769Sobrien
1530236769Sobrien2007-10-14  Simon J. Gerraty  <sjg@void.crufty.net>
1531236769Sobrien
1532236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20071014
1533236769Sobrien	* Merge with NetBSD make, pick up:
1534236769Sobrien	  o revamped handling of defshell - configure no longer needs to
1535236769Sobrien	    know the content of the shells array - apb
1536236769Sobrien	  o stop Var_Subst modifying its input - apb
1537236769Sobrien	  o avoid calling ParseTrackInput too often - dsl
1538236769Sobrien
1539236769Sobrien2007-10-11  Simon J. Gerraty  <sjg@void.crufty.net>
1540236769Sobrien
1541236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20071011
1542236769Sobrien	* Merge with NetBSD make, pick up:
1543236769Sobrien	  o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.
1544236769Sobrien
1545236769Sobrien	* sigcompat.c: some tweaks for HP-UX 11.x based on 
1546236769Sobrien	  patch from Tobias Nygren
1547236769Sobrien
1548236769Sobrien	* configure.in: update handling of --with-defshell to match
1549236769Sobrien	  new make behavior.  --with-defshell=/usr/xpg4/bin/sh
1550236769Sobrien	  will now do what one might hope - provided the chosen shell
1551236769Sobrien	  behaves enough like sh.
1552236769Sobrien
1553236769Sobrien2007-10-08  Simon J. Gerraty  <sjg@void.crufty.net>
1554236769Sobrien
1555236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20071008
1556236769Sobrien	* Merge with NetBSD make, pick up:
1557236769Sobrien	  o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
1558236769Sobrien	  o .export/.MAKE.EXPORTED - export of variables - sjg
1559236769Sobrien	  o .MAKE.MAKEFILES - track all makefiles read - sjg
1560236769Sobrien	  o performance improvements - dsl
1561236769Sobrien	  o revamp parallel job scheduling - dsl
1562236769Sobrien	
1563236769Sobrien2006-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
1564236769Sobrien
1565236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060728
1566236769Sobrien	* Merge with NetBSD make, pick up:
1567236769Sobrien	  o extra debug info during variable and cond processing - sjg
1568236769Sobrien	  o shell definition now covers newline - rillig
1569236769Sobrien	  o minor mem leak in PrintOnError - sjg
1570236769Sobrien
1571236769Sobrien2006-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
1572236769Sobrien
1573236769Sobrien	* Makefile.in (BMAKE_VERSION):  bump to 20060511
1574236769Sobrien	* Merge with NetBSD make, pick up:
1575236769Sobrien	  o more memory leaks - coverity
1576236769Sobrien	  o possible overflow in ArchFindMember - coverity
1577236769Sobrien	  o extract variable modifier code out of Var_Parse()
1578236769Sobrien	    so it can be called recursively - sjg
1579236769Sobrien	  o unit-tests/moderrs - sjg
1580236769Sobrien
1581236769Sobrien2006-04-12  Simon J. Gerraty  <sjg@void.crufty.net>
1582236769Sobrien
1583236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060412
1584236769Sobrien	* Merge with NetBSD make, pick up:
1585236769Sobrien	  o fixes for some memory leaks - coverity
1586236769Sobrien	  o only read first sys.mk etc when searching sysIncPath - sjg
1587236769Sobrien
1588236769Sobrien	* main.c (ReadMakefile): remove hack for __INTERIX that prevented
1589236769Sobrien	setting ${MAKEFILE} - OBATA Akio
1590236769Sobrien
1591236769Sobrien2006-03-18  Simon J. Gerraty  <sjg@void.crufty.net>
1592236769Sobrien
1593236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060318
1594236769Sobrien	* Merge with NetBSD make, pick up:
1595236769Sobrien	  o cleanup of job.c to remove remote handling, distcc is more
1596236769Sobrien	    useful and this code was likely bit-rotting - dsl
1597236769Sobrien	  o fix for :P modifier - sjg
1598236769Sobrien	* boot-strap: set default prefix to something reasonable 
1599236769Sobrien	  (for me anyway). 
1600236769Sobrien
1601236769Sobrien2006-03-01  Simon J. Gerraty  <sjg@void.crufty.net>
1602236769Sobrien
1603236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060301
1604236769Sobrien	* Merge with NetBSD make, pick up:
1605236769Sobrien	  o make .WAIT apply recursively, document and test case - apb
1606236769Sobrien	  o allow variable modifiers in a variable appear anywhere in
1607236769Sobrien	    modifier list, document and test case - sjg
1608236769Sobrien
1609236769Sobrien2006-02-22  Simon J. Gerraty  <sjg@void.crufty.net>
1610236769Sobrien
1611236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20060222
1612236769Sobrien	* Merge with NetBSD make, pick up:
1613236769Sobrien	  o improved job token handling - dsl
1614236769Sobrien	  o SIG_DFL the correct signal before exec - dsl
1615236769Sobrien	  o more debug info during parsing - dsl
1616236769Sobrien	  o allow variable modifiers to be specified via variable - sjg
1617236769Sobrien	* boot-strap: explain why we died if no mksrc
1618236769Sobrien
1619236769Sobrien2005-11-05  Simon J. Gerraty  <sjg@void.crufty.net>
1620236769Sobrien
1621236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051105
1622236769Sobrien	* configure.in: always set default_sys_path 
1623236769Sobrien	  default is ${prefix}/share/mk
1624236769Sobrien	  - remove prefix_sys_path, anyone wanting more than above
1625236769Sobrien	    needs to set it manually.
1626236769Sobrien
1627236769Sobrien2005-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
1628236769Sobrien
1629236769Sobrien	* boot-strap: make this a bit easier for pkgsrc folk.
1630236769Sobrien	  bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
1631236769Sobrien	  'mips' while pkgsrc wants 'mipseb' or 'mipsel'
1632236769Sobrien
1633236769Sobrien2005-11-02  Simon J. Gerraty  <sjg@void.crufty.net>
1634236769Sobrien
1635236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051102
1636236769Sobrien	* job.c (JobFinish): fix likely ancient merge lossage
1637236769Sobrien	fix from Todd Vierling.
1638236769Sobrien	* boot-strap (srcdir): allow setting mksrc=none
1639236769Sobrien
1640236769Sobrien2005-10-31  Simon J. Gerraty  <sjg@void.crufty.net>
1641236769Sobrien
1642236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051031
1643236769Sobrien	* ranlib.h: skip on OSF too.
1644236769Sobrien	  (NetBSD PR 31864)
1645236769Sobrien
1646236769Sobrien2005-10-10  Simon J. Gerraty  <sjg@void.crufty.net>
1647236769Sobrien
1648236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051002
1649236769Sobrien	  fix a silly typo
1650236769Sobrien
1651236769Sobrien2005-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
1652236769Sobrien
1653236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20051001
1654236769Sobrien	  support for UnixWare and some other systems,
1655236769Sobrien	  based on patches from pkgsrc/bootstrap
1656236769Sobrien
1657236769Sobrien2005-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
1658236769Sobrien
1659236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20050901
1660236769Sobrien	* Merge with NetBSD make, pick up:
1661236769Sobrien	  o possible parse error causing us to wander off.
1662236769Sobrien
1663236769Sobrien2005-06-06  Simon J. Gerraty  <sjg@void.crufty.net>
1664236769Sobrien
1665236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20050606
1666236769Sobrien	* Merge with NetBSD make, pick up:
1667236769Sobrien	  o :0x modifier for randomizing a list
1668236769Sobrien	  o fixes for a number of -Wuninitialized issues.
1669236769Sobrien
1670236769Sobrien2005-05-30  Simon J. Gerraty  <sjg@void.crufty.net>
1671236769Sobrien
1672236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20050530
1673236769Sobrien	* Merge with NetBSD make, pick up:
1674236769Sobrien	  o Handle dependencies for .BEGIN, .END and .INTERRUPT
1675236769Sobrien
1676236769Sobrien	* README: was seriously out of date.
1677236769Sobrien	
1678236769Sobrien2005-03-22  Simon J. Gerraty  <sjg@void.crufty.net>
1679236769Sobrien
1680236769Sobrien	* Important to use .MAKE rather than MAKE.
1681236769Sobrien
1682236769Sobrien2005-03-15  Simon J. Gerraty  <sjg@void.crufty.net>
1683236769Sobrien
1684236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20050315
1685236769Sobrien	* Merge with NetBSD make, pick up:
1686236769Sobrien	  o don't mistake .elsefoo for .else
1687236769Sobrien	  o use suffix-specific search path correctly
1688236769Sobrien	  o bunch of style nits
1689236769Sobrien
1690236769Sobrien2004-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
1691236769Sobrien
1692236769Sobrien	* boot-strap: 
1693236769Sobrien	o ensure that args to --src and --with-mksrc
1694236769Sobrien	  are resolved before giving them to configure.
1695236769Sobrien	o add -o "objdir" so that builder can control it,
1696236769Sobrien	  default is $OS as determined by os.sh
1697236769Sobrien	o add -q to suppress all the install instructions.
1698236769Sobrien
1699236769Sobrien2004-05-08  Simon J. Gerraty  <sjg@void.crufty.net>
1700236769Sobrien
1701236769Sobrien	* Remove __IDSTRING()
1702236769Sobrien
1703236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20040508
1704236769Sobrien	* Merge with NetBSD make, pick up:
1705236769Sobrien	  o posix fixes
1706236769Sobrien	    - remove '-e' from compat mode
1707236769Sobrien	    - add support for '+' command-line prefix.
1708236769Sobrien	  o fix for handling '--' on command-line.
1709236769Sobrien	  o fix include in lst.lib/lstInt.h to simplify '-I's
1710236769Sobrien	  o we also picked up replacement of MAKE_BOOTSTRAP 
1711236769Sobrien	    with !MAKE_NATIVE which is a noop, but possibly confusing.
1712236769Sobrien
1713236769Sobrien2004-04-14  Simon J. Gerraty  <sjg@void.crufty.net>
1714236769Sobrien
1715236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20040414
1716236769Sobrien	* Merge with NetBSD make, pick up:
1717236769Sobrien	  o allow quoted strings on lhs of conditionals
1718236769Sobrien	  o issue warning when extra .else is seen
1719236769Sobrien	  o print line numer when errors encountered during parsing from
1720236769Sobrien	  string.
1721236769Sobrien
1722236769Sobrien2004-02-20  Simon J. Gerraty  <sjg@void.crufty.net>
1723236769Sobrien
1724236769Sobrien	* Makefile.in (BMAKE_VERSION):  bump to 20040220
1725236769Sobrien	* Merge with NetBSD make, pick up:
1726236769Sobrien	  o fix for old :M parsing bug.
1727236769Sobrien	  o re-jigged unit-tests
1728236769Sobrien
1729236769Sobrien2004-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
1730236769Sobrien
1731236769Sobrien	* Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,}
1732236769Sobrien	so that './bmake -f Makefile test' works.
1733236769Sobrien	
1734236769Sobrien2004-02-14  Simon J. Gerraty  <sjg@void.crufty.net>
1735236769Sobrien
1736236769Sobrien	* Makefile.in: (BMAKE_VERSION): bump to 20040214
1737236769Sobrien	* Merge with NetBSD make, pick up:
1738236769Sobrien	  o search upwards for *.mk
1739236769Sobrien	  o fix for double free of var substitution buffers
1740236769Sobrien	  o use of getopt replaced with custom code, since the usage
1741236769Sobrien	  (re-scanning) isn't posix compatible.
1742236769Sobrien
1743236769Sobrien2004-02-12  Simon J. Gerraty  <sjg@void.crufty.net>
1744236769Sobrien
1745236769Sobrien	* arch.c: don't include ranlib.h on ELF systems
1746236769Sobrien	(thanks to Chuck Cranor <chuck@ece.cmu.edu>).
1747236769Sobrien
1748236769Sobrien2004-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
1749236769Sobrien
1750236769Sobrien	* Makefile.in (BMAKE_VERSION): bump to 20040118
1751236769Sobrien
1752236769Sobrien	* boot-strap (while): export vars we assign to on cmdline
1753236769Sobrien	* unit-test/Makefile.in: ternary is .PHONY
1754236769Sobrien
1755236769Sobrien2004-01-08  Simon J. Gerraty  <sjg@void.crufty.net>
1756236769Sobrien
1757236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20040108
1758236769Sobrien	* Merge with NetBSD make, pick up:
1759236769Sobrien	  o fix for ternary modifier
1760236769Sobrien
1761236769Sobrien2004-01-06  Simon J. Gerraty  <sjg@void.crufty.net>
1762236769Sobrien
1763236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20040105
1764236769Sobrien	* Merge with NetBSD make, pick up:
1765236769Sobrien	  o fix for cond.c to handle compound expressions better
1766236769Sobrien	  o variable expansion within sysV style replacements
1767236769Sobrien	  
1768236769Sobrien2003-12-22  Simon J. Gerraty  <sjg@void.crufty.net>
1769236769Sobrien
1770236769Sobrien	* Make portable snprintf safer - output to /dev/null first to
1771236769Sobrien	check space needed.
1772236769Sobrien
1773236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20031222
1774236769Sobrien	* Merge with NetBSD make, pick up:
1775236769Sobrien	  o -dg3 to show input graph when things go wrong.
1776236769Sobrien	  o explicitly look for makefiles in objdir if not found in curdir so
1777236769Sobrien	    that errors in .depend etc will be reported accurarely. 
1778236769Sobrien	  o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
1779236769Sobrien	    instead as it more accurately reflects the expected behavior and
1780236769Sobrien	    is more consistently implemented.
1781236769Sobrien	  o avoid use of asprintf.
1782236769Sobrien
1783236769Sobrien2003-09-28  Simon J. Gerraty  <sjg@void.crufty.net>
1784236769Sobrien
1785236769Sobrien	* util.c: Add asprintf and vasprintf.
1786236769Sobrien
1787236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20030928
1788236769Sobrien	* Merge with NetBSD make, pick up:
1789236769Sobrien	:[] modifier - allows picking words from a variable.
1790236769Sobrien	:tW modifier - allows treating value as one big word.
1791236769Sobrien	W flag for :C and :S - allows treating value as one big word.
1792236769Sobrien	
1793236769Sobrien2003-09-12  Simon J. Gerraty  <sjg@void.crufty.net>
1794236769Sobrien
1795236769Sobrien	* Merge with NetBSD make
1796236769Sobrien	pick up -de flag to enable printing failed command.
1797236769Sobrien	don't skip 1st two dir entries (normally . and ..) since
1798236769Sobrien	coda does not have them.
1799236769Sobrien
1800236769Sobrien2003-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
1801236769Sobrien
1802236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20030909
1803236769Sobrien	* Merge with NetBSD make, pick up:
1804236769Sobrien	- changes for -V '${VAR}' to print fully expanded value
1805236769Sobrien	  cf. -V VAR
1806236769Sobrien	- CompatRunCommand now prints the command that failed.
1807236769Sobrien	- several files got updated 3 clause Berkeley license.
1808236769Sobrien	
1809236769Sobrien2003-08-02  Simon J. Gerraty  <sjg@void.crufty.net>
1810236769Sobrien
1811236769Sobrien	* boot-strap: Allow setting configure args on command line.
1812236769Sobrien
1813236769Sobrien2003-07-31  Simon J. Gerraty  <sjg@void.crufty.net>
1814236769Sobrien
1815236769Sobrien	* configure.in: add --with-defshell to allow sh or ksh
1816236769Sobrien	to be selected as default shell.
1817236769Sobrien
1818236769Sobrien	* Makefile.in: bump version to 20030731
1819236769Sobrien
1820236769Sobrien	* Merge with NetBSD make 
1821236769Sobrien	Pick up .SHELL spec for ksh and associate man page changes.
1822236769Sobrien	Also compat mode now uses the same shell specs.
1823236769Sobrien
1824236769Sobrien2003-07-29  Simon J. Gerraty  <sjg@void.crufty.net>
1825236769Sobrien
1826236769Sobrien	* var.c (Var_Parse): ensure delim is initialized.
1827236769Sobrien
1828236769Sobrien	* unit-tests/Makefile.in: use single quotes to avoid problems from
1829236769Sobrien	some shells.
1830236769Sobrien
1831236769Sobrien	* makefile.boot.in:
1832236769Sobrien	Run the unit-tests as part of the bootstrap procedure.
1833236769Sobrien
1834236769Sobrien2003-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
1835236769Sobrien
1836236769Sobrien	* unit-tests/Makefile.in: always force complaints from
1837236769Sobrien	${TEST_MAKE} to be from 'make'.
1838236769Sobrien
1839236769Sobrien	* configure.in: add check for 'diff -u'
1840236769Sobrien	also fix some old autoconf'isms
1841236769Sobrien	
1842236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20030728.
1843236769Sobrien	if using GCC add -Wno-cast-qual to CFLAGS for var.o
1844236769Sobrien
1845236769Sobrien	* Merge with NetBSD make
1846236769Sobrien	Pick up fix for :ts parsing error in some cases.
1847236769Sobrien	Pick unit-tests.
1848236769Sobrien
1849236769Sobrien2003-07-23  Simon J. Gerraty  <sjg@void.crufty.net>
1850236769Sobrien
1851236769Sobrien	* Makefile.in (BMAKE_VERSION): bump version to 20030723.
1852236769Sobrien
1853236769Sobrien	* var.c (Var_Parse): fix bug in :ts modifier, after const
1854236769Sobrien	correctness fixes, must pass nstr to VarModify.
1855236769Sobrien
1856236769Sobrien2003-07-14  Simon J. Gerraty  <sjg@void.crufty.net>
1857236769Sobrien
1858236769Sobrien	* Makefile.in: BMAKE_VERSION switch to a date based version.
1859236769Sobrien	We'll generally use the date of last import from NetBSD.
1860236769Sobrien
1861236769Sobrien	* Merge with NetBSD make
1862236769Sobrien	Pick up fixes for const-correctness, now passes WARNS=3 on
1863236769Sobrien	NetBSD.
1864236769Sobrien	Pick up :ts modifier, allows controlling the separator used
1865236769Sobrien	between words in variable expansion.
1866236769Sobrien
1867236769Sobrien2003-07-11  Simon J. Gerraty  <sjg@void.crufty.net>
1868236769Sobrien
1869236769Sobrien	* FILES: include boot-strap and os.sh
1870236769Sobrien
1871236769Sobrien	* Makefile.in: only set WARNS if we are NetBSD, the effect on
1872236769Sobrien	FreeBSD is known to be bad.
1873236769Sobrien
1874236769Sobrien	* makefile.boot.in (bootstrap): make this the default target.
1875236769Sobrien
1876236769Sobrien	* Makefile.in: bump version to 3.1.19
1877236769Sobrien
1878236769Sobrien	* machine.sh: avoid A-Z with tr as it is bound to lose.
1879236769Sobrien
1880236769Sobrien2003-07-10  Simon J. Gerraty  <sjg@void.crufty.net>
1881236769Sobrien
1882236769Sobrien	* Merge with NetBSD make
1883236769Sobrien	Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
1884236769Sobrien	Plus some doc fixes.
1885236769Sobrien	
1886236769Sobrien2003-04-27  Simon J. Gerraty  <sjg@void.crufty.net>
1887236769Sobrien
1888236769Sobrien	* Merge with NetBSD make
1889236769Sobrien	Pick up fix for PR/1523 - don't count a library as built, if there
1890236769Sobrien	is no way to build it 
1891236769Sobrien
1892236769Sobrien	* Bump version to 3.1.18
1893236769Sobrien
1894236769Sobrien2003-03-23  Simon J. Gerraty  <sjg@void.crufty.net>
1895236769Sobrien
1896236769Sobrien	* Merge with NetBSD make
1897236769Sobrien	Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT
1898236769Sobrien	appears in src list.
1899236769Sobrien
1900236769Sobrien2003-03-21  Simon J. Gerraty  <sjg@void.crufty.net>
1901236769Sobrien
1902236769Sobrien	* Merge with NetBSD make (mmm 10th anniversary!)
1903236769Sobrien	pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828)
1904236769Sobrien	pick up -X which tells us to not export VAR=val via setenv if
1905236769Sobrien	we are already doing so via MAKEFLAGS.  This saves valuable env
1906236769Sobrien	space on systems like Darwin.
1907236769Sobrien	set MAKE_VERSION to 3.1.17
1908236769Sobrien
1909236769Sobrien	* parse.c: pix up fix for suffix rules
1910236769Sobrien
1911236769Sobrien2003-03-06  Simon J. Gerraty  <sjg@void.crufty.net>
1912236769Sobrien
1913236769Sobrien	* Merge with NetBSD make.
1914236769Sobrien	pick up fix for propagating -B via MAKEFLAGS.
1915236769Sobrien	set MAKE_VERSION to 3.1.16
1916236769Sobrien
1917236769Sobrien	* Apply some patches from pkgsrc-bootstrap/bmake
1918236769Sobrien	Originally by Grant Beattie <grant@netbsd.org>
1919236769Sobrien	I may have missed some - since they are based on bmake-3.1.12
1920236769Sobrien	
1921236769Sobrien2002-12-03  Simon J. Gerraty  <sjg@void.crufty.net>
1922236769Sobrien
1923236769Sobrien	* makefile.boot.in (bmake): update install targets for those that
1924236769Sobrien	use them, also clear MAKEFLAGS when invoking bmake.boot to avoid
1925236769Sobrien	havoc from gmake -w.  Thanks to Harlan Stenn <hstenn@cisco.com>.
1926236769Sobrien
1927236769Sobrien	* bmake.cat1: update the pre-formatted man page!
1928236769Sobrien
1929236769Sobrien2002-11-30  Simon J. Gerraty  <sjg@void.crufty.net>
1930236769Sobrien
1931236769Sobrien	* Merge with NetBSD make.
1932236769Sobrien	pick up fix for premature free of pointer used in call
1933236769Sobrien	to Dir_InitCur().
1934236769Sobrien	set MAKE_VERSION to 3.1.15
1935236769Sobrien
1936236769Sobrien2002-11-26  Simon J. Gerraty  <sjg@void.crufty.net>
1937236769Sobrien
1938236769Sobrien	* configure.in: determine suitable value for MKSRC.
1939236769Sobrien	override using --with-mksrc=PATH.
1940236769Sobrien
1941236769Sobrien	* machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems.
1942236769Sobrien	configs(8) will use 'sun4' as an alias for 'sparc'.
1943236769Sobrien
1944236769Sobrien2002-11-25  Simon J. Gerraty  <sjg@void.crufty.net>
1945236769Sobrien
1946236769Sobrien	* Merge with NetBSD make.
1947236769Sobrien	pick up ${.PATH}
1948236769Sobrien	pick up fix for finding ../cat.c via .PATH when .CURDIR=..
1949236769Sobrien	set MAKE_VERSION to 3.1.14
1950236769Sobrien	add configure checks for killpg and sys/socket.h
1951236769Sobrien
1952236769Sobrien2002-09-16  Simon J. Gerraty  <sjg@void.crufty.net>
1953236769Sobrien
1954236769Sobrien	* tag bmake-3-1-13
1955236769Sobrien	
1956236769Sobrien	* makefile.boot.in (bmake): use install-mk
1957236769Sobrien	Also setup ./mk before trying to invoke bmake.boot incase we
1958236769Sobrien	needed install-mk to create a sys.mk for us. 
1959236769Sobrien
1960236769Sobrien	* configure.in: If we need to add -I${srcdir}/missing, make it an
1961236769Sobrien	absolute path so that it works for lst.lib too.
1962236769Sobrien
1963236769Sobrien	* make.h: always include sys/cdefs.h since we provide one if the
1964236769Sobrien	host does not.
1965236769Sobrien	
1966236769Sobrien	* Makefile.in (install-mk): 
1967236769Sobrien	use MKSRC/install-mk which will do the right thing.
1968236769Sobrien	use uname -p for ARCH if possible.
1969236769Sobrien	since install-mk will setup links bsd.prog.mk -> prog.mk if
1970236769Sobrien	needed, just .include bsd.prog.mk
1971236769Sobrien
1972236769Sobrien	* Merge with NetBSD make (NetBSD-1.6)
1973236769Sobrien	Code is ansi-C only now.
1974236769Sobrien	Bug in handling of dotLast is fixed.
1975236769Sobrien	Can now assign .OBJDIR and make will reset its notions of life.
1976236769Sobrien	New modifiers :tu :tl for toUpper and toLower.
1977236769Sobrien
1978236769SobrienTue Oct 16 12:18:42 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
1979236769Sobrien
1980236769Sobrien	* Merge with NetBSD make
1981236769Sobrien	pick up fix for .END failure in compat mode.
1982236769Sobrien	pick up fix for extra va_end() in ParseVErrorInternal.
1983236769Sobrien
1984236769SobrienThu Oct 11 13:20:06 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
1985236769Sobrien
1986236769Sobrien	* configure.in: for systems that have sys/cdefs.h check if it is
1987236769Sobrien	compatible.  If not, include the one under missing, but tell it to
1988236769Sobrien	include the native one too - necessary on Linux.
1989236769Sobrien
1990236769Sobrien	* missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use
1991236769Sobrien	include_next (for gcc) to get the native sys/cdefs.h
1992236769Sobrien
1993236769SobrienTue Aug 21 02:29:34 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
1994236769Sobrien
1995236769Sobrien	* job.c (JobFinish): Fix an earlier merge bug that resulted in
1996236769Sobrien	leaking descriptors when using -jN.
1997236769Sobrien	
1998236769Sobrien	* job.c (JobPrintCommand): See if "curdir" exists before
1999236769Sobrien	attempting to chdir().  Doing the chdir directly in make (when in
2000236769Sobrien	compat mode) fails silently, so let the -jN version do the same.
2001236769Sobrien	This can happen when building kernels in an object tree and
2002236769Sobrien	playing clever games to reset .CURDIR.
2003236769Sobrien
2004236769Sobrien	* Merged with NetBSD make
2005236769Sobrien	pick up .USEBEFORE
2006236769Sobrien
2007236769SobrienTue Jun 26 23:45:11 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2008236769Sobrien
2009236769Sobrien	* makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work.
2010236769Sobrien
2011236769SobrienTue Jun 12 16:48:57 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2012236769Sobrien
2013236769Sobrien	* var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
2014236769Sobrien	us not to export the iterator variable when using VAR_CMD context.
2015236769Sobrien
2016236769SobrienSun Jun 10 21:55:21 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2017236769Sobrien
2018236769Sobrien	* job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
2019236769Sobrien	its the wrong "fix".
2020236769Sobrien
2021236769SobrienSat Jun  9 00:11:24 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2022236769Sobrien
2023236769Sobrien	* Redesigned export of VAR_CMD's via MAKEFLAGS.
2024236769Sobrien	We now simply append the variable names to .MAKEOVERRIDES, and
2025236769Sobrien	handle duplicate suppression and quoting in ExportMAKEFLAGS using:
2026236769Sobrien	${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
2027236769Sobrien	Apart from fixing quoting bugs in previous version, this allows us
2028236769Sobrien	to export vars to the environment by simply doing:
2029236769Sobrien	.MAKEOVERRIDES+= PATH 
2030236769Sobrien	Merged again with NetBSD make, but the above is the only change.
2031236769Sobrien
2032236769Sobrien	* configure.in: added
2033236769Sobrien	--disable-pwd-override		disable $PWD overriding getcwd()
2034236769Sobrien	--disable-check-make-chdir	disable make trying to guess 
2035236769Sobrien		when it should automatically cd ${.CURDIR}
2036236769Sobrien
2037236769Sobrien	* Merge with NetBSD make, changes include:
2038236769Sobrien	parse.c (ParseDoDependency): Spot that the syntax error is
2039236769Sobrien	caused by an unresolved cvs/rcs conflict and say so.
2040236769Sobrien	var.c: most of Var* functions now take a ctxt as 1st arg.
2041236769Sobrien	now does variable substituion on rhs of sysv style modifiers.
2042236769Sobrien	
2043236769Sobrien	* var.c (Var_Set): exporting of command line variables (VAR_CMD)
2044236769Sobrien	is now done here.  We append the name='value' to .MAKEOVERRIDES
2045236769Sobrien	rather than directly into MAKEFLAGS as this allows a Makefile to
2046236769Sobrien	use .MAKEOVERRIDES= to disable this behaviour.  GNU make uses a
2047236769Sobrien	very similar mechanism.  Note that in adding name='value' to
2048236769Sobrien	.MAKEOVERRIDES we do the moral equivalent of:
2049236769Sobrien	.MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
2050236769Sobrien
2051236769SobrienFri Jun  1 14:08:02 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2052236769Sobrien
2053236769Sobrien	* make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H
2054236769Sobrien
2055236769Sobrien	* Merged with NetBSD make
2056236769Sobrien	make -dx can now be used to run commands via sh -x
2057236769Sobrien	better error messages on exec failures.
2058236769Sobrien
2059236769SobrienThu May 31 01:44:54 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2060236769Sobrien
2061236769Sobrien	* Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that
2062236769Sobrien	MAKE_VERSION gets updated.  Also don't use ?= for MAKE_VERSION,
2063236769Sobrien	MACHINE etc otherwise they propagate from the previous bmake.
2064236769Sobrien
2065236769Sobrien	* configure.in (machine): allow --with-machine=generic to make
2066236769Sobrien	configure use machine.sh to set MACHINE. 
2067236769Sobrien
2068236769Sobrien	* job.c (JobInterrupt): convert to using WAIT_T and friends.
2069236769Sobrien
2070236769Sobrien	* Makefile.in: mention in bmake.1 that we use autoconf.
2071236769Sobrien
2072236769Sobrien	* make.1: mention MAKE_PRINT_VAR_ON_ERROR.
2073236769Sobrien
2074236769SobrienWed May 30 23:17:18 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2075236769Sobrien
2076236769Sobrien	* main.c (ReadMakefile): don't set MAKEFILE if reading ".depend"
2077236769Sobrien	as that rather defeats the usefulness of ${MAKEFILE}.
2078236769Sobrien
2079236769Sobrien	* main.c (MainParseArgs): append command line variable assignments
2080236769Sobrien	to MAKEFLAGS so that they get propagated to child make's.
2081236769Sobrien	Apparently this is required POSIX behaviour?  Its useful anyway.
2082236769Sobrien
2083236769SobrienTue May 29 02:20:07 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2084236769Sobrien
2085236769Sobrien	* compat.c (CompatRunCommand): don't use perror() since stdio may
2086236769Sobrien	cause problems in child of vfork().
2087236769Sobrien
2088236769Sobrien	* compat.c, main.c: Call PrintOnError() when we are going to bail.
2089236769Sobrien	This routine prints out the .curdir where we stopped and will also
2090236769Sobrien	display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}.
2091236769Sobrien
2092236769Sobrien	* main.c: add ${.newline} to hold a "\n" - sometimes handy in
2093236769Sobrien	:@ expansion.
2094236769Sobrien
2095236769Sobrien	* var.c: VarLoopExpand: ignore addSpace if a \n is present.
2096236769Sobrien
2097236769Sobrien	* Added RCSid's for the files we've touched.
2098236769Sobrien	
2099236769SobrienThu May 24 15:41:37 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2100236769Sobrien
2101236769Sobrien	* configure.in:	Thanks to some clues from mdb@juniper.net,
2102236769Sobrien	added autoconf magic to control setting of MACHINE, MACHINE_ARCH
2103236769Sobrien	as well as what ends up in _PATH_DEFSYSPATH.  We now have:
2104236769Sobrien
2105236769Sobrien  --with-machine=MACHINE  explicitly set MACHINE
2106236769Sobrien  --with-force-machine=MACHINE  set FORCE_MACHINE
2107236769Sobrien  --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
2108236769Sobrien  --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
2109236769Sobrien  --with-prefix-sys-path=PATH:DIR:LIST  prefix _PATH_PREFIX_SYSPATH
2110236769Sobrien  --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
2111236769Sobrien 	
2112236769Sobrien	If _PATH_OBJDIRPREFIX is set to "no" we won't define it.
2113236769Sobrien
2114236769Sobrien	* makefile: added a pathetically simple makefile to drive
2115236769Sobrien	bootstrapping.  Running configure by hand is more useful.
2116236769Sobrien
2117236769Sobrien	* Makefile.in: added MAKE_VERSION, and reworked things to be less
2118236769Sobrien	dependent on NetBSD bsd.*.mk
2119236769Sobrien	
2120236769Sobrien	* pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining
2121236769Sobrien	_PATH_OBJDIRPREFIX for those that don't want a default.
2122236769Sobrien	construct _PATH_DEFSYSPATH from the info we get from configure.
2123236769Sobrien
2124236769Sobrien	* main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION}
2125236769Sobrien	if MAKE_VERSION is defined.
2126236769Sobrien	
2127236769Sobrien	* compat.c: when we bail, print out the .CURDIR we were in.
2128236769Sobrien	
2129236769SobrienSat May 12 00:34:12 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2130236769Sobrien
2131236769Sobrien	* Merged with NetBSD make
2132236769Sobrien
2133236769Sobrien	* var.c: fixed a bug in the handling of the modifier :P
2134236769Sobrien	if the node as found but the path was null, we segfault trying to
2135236769Sobrien	duplicate it.
2136236769Sobrien
2137236769SobrienMon Mar  5 16:20:33 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
2138236769Sobrien
2139236769Sobrien	* Merged with NetBSD make
2140236769Sobrien	
2141236769Sobrien	* make.c: Make_OODate's test for a library out of date was using
2142236769Sobrien	cmtime where it should have used mtime (my bug).
2143236769Sobrien
2144236769Sobrien	* compat.c: Use perror() to tell us what really went wrong when we
2145236769Sobrien	cannot exec a command.
2146236769Sobrien	
2147236769SobrienFri Dec 15 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
2148236769Sobrien
2149236769Sobrien	* Merged with NetBSD make
2150236769Sobrien	
2151236769SobrienSat Jun 10 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
2152236769Sobrien
2153236769Sobrien	* Merged with NetBSD make
2154236769Sobrien	
2155236769SobrienThu Jun  1 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
2156236769Sobrien
2157236769Sobrien	* Merged with NetBSD make
2158236769Sobrien	
2159236769SobrienTue May 30 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
2160236769Sobrien
2161236769Sobrien	* Merged with NetBSD make
2162236769Sobrien	
2163236769SobrienThu Apr 27 00:07:47 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
2164236769Sobrien
2165236769Sobrien	* util.c: don't provide signal() since we use sigcompat.c
2166236769Sobrien
2167236769Sobrien	* Makefile.in: added a build target.
2168236769Sobrien
2169236769Sobrien	* var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :!
2170236769Sobrien	These allow some quite clever magic.
2171236769Sobrien
2172236769Sobrien	* main.c (main): added support for getenv(MAKESYSPATH).
2173236769Sobrien
2174236769SobrienMon Apr  2 16:25:13 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
2175236769Sobrien
2176236769Sobrien	* Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set.
2177236769Sobrien	This avoids objdir having a different value depending on how a
2178236769Sobrien	directory was reached (via command line, or subdir.mk).
2179236769Sobrien
2180236769Sobrien	* If FORCE_MACHINE is defined, ignore getenv("MACHINE").
2181236769Sobrien	
2182236769SobrienMon Apr  2 23:15:31 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
2183236769Sobrien
2184236769Sobrien	* Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if
2185236769Sobrien	MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not.
2186236769Sobrien	I've been testing this in NetBSD's make for some weeks.
2187236769Sobrien
2188236769Sobrien	* Turn Makefile into Makefile.in and make it useful.
2189236769Sobrien	
2190236769SobrienTue Feb 29 22:08:00 2000 Simon J. Gerraty  <sjg@zen.quick.com.au>
2191236769Sobrien
2192236769Sobrien	* Imported NetBSD's -current make(1) and resolve conflicts.
2193236769Sobrien	
2194236769Sobrien	* Applied autoconf patches from bmake v2
2195236769Sobrien
2196236769Sobrien	* Imported clean code base from NetBSD-1.0
2197