1 2016-06-06 Simon J. Gerraty <sjg@bad.crufty.net>
3 * Makefile (_MAKE_VERSION): 20160606
4 Merge with NetBSD make, pick up
5 o dir.c: extend mtimes cache to others via cached_stat()
7 2016-06-04 Simon J. Gerraty <sjg@bad.crufty.net>
9 * Makefile (_MAKE_VERSION): 20160604
10 Merge with NetBSD make, pick up
11 o meta.c: missing filemon data is only relevant if we read a
13 Also do not return oodate for a missing metafile if gn->path
16 2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net>
18 * Makefile (_MAKE_VERSION): 20160602
19 Merge with NetBSD make, pick up
20 o cached_realpath(): avoid hitting filesystem more than necessary.
21 o meta.c: refactor need_meta decision, add knobs for
22 missing meta file and filemon data wrt out-of-datedness.
24 2016-05-28 Simon J. Gerraty <sjg@bad.crufty.net>
26 * Makefile (_MAKE_VERSION): 20160528
28 * boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION
30 2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net>
32 * Makefile (_MAKE_VERSION): 20160512
33 Merge with NetBSD make, pick up
34 o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS
35 this is useful for gcov builds.
36 o propagate errors from filemon(4).
38 2016-05-09 Simon J. Gerraty <sjg@bad.crufty.net>
40 * Makefile (_MAKE_VERSION): 20160509
41 Merge with NetBSD make, pick up
42 o remove use of non-standard types u_int etc.
43 o meta.c: apply realpath() before matching against metaIgnorePaths
45 2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net>
47 * Makefile (_MAKE_VERSION): 20160404
48 Merge with NetBSD make, pick up
49 o allow makefile to set .MAKE.JOBS
51 * Makefile (PROG_NAME): use ${_MAKE_VERSION}
53 2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net>
55 * Makefile (_MAKE_VERSION): 20160315
56 Merge with NetBSD make, pick up
57 o fix handling of archive members
59 2016-03-13 Simon J. Gerraty <sjg@bad.crufty.net>
61 * Makefile (_MAKE_VERSION): rename variable to avoid interference
62 with checks for ${MAKE_VERSION}
64 2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net>
66 * Makefile (MAKE_VERSION): 20160310
67 Merge with NetBSD make, pick up
68 o meta.c: treat missing Read file same as Write, incase we Delete it.
70 2016-03-07 Simon J. Gerraty <sjg@bad.crufty.net>
72 * Makefile (MAKE_VERSION): 20160307
73 Merge with NetBSD make, pick up
74 o var.c: fix :ts\nnn to be octal by default.
75 o meta.c: meta_finish() to cleanup memory.
77 2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net>
79 * Makefile (MAKE_VERSION): 20160226
80 Merge with NetBSD make, pick up
81 o meta.c: allow meta file for makeDepend if makefiles want it.
83 2016-02-19 Simon J. Gerraty <sjg@bad.crufty.net>
85 * var.c: default .MAKE.SAVE_DOLLARS to FALSE
86 for backwards compatability.
88 * Makefile (MAKE_VERSION): 20160220
89 Merge with NetBSD make, pick up
90 o var.c: add knob to control handling of '$$' in :=
92 2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net>
94 * Makefile (MAKE_VERSION): 20160218
95 Merge with NetBSD make, pick up
96 o var.c: add .export-literal allows us to fix sys.clean-env.mk
97 post the changes to Var_Subst.
98 Var_Subst now takes flags, and does not consume '$$' in :=
100 2016-02-17 Simon J. Gerraty <sjg@bad.crufty.net>
102 * Makefile (MAKE_VERSION): 20160217
103 Merge with NetBSD make, pick up
104 o var.c: preserve '$$' in :=
105 o parse.c: add .dinclude for handling included
106 makefile like .depend
108 2015-12-20 Simon J. Gerraty <sjg@bad.crufty.net>
110 * Makefile (MAKE_VERSION): 20151220
111 Merge with NetBSD make, pick up
112 o suff.c: re-initialize suffNull when clearing suffixes.
114 2015-12-01 Simon J. Gerraty <sjg@bad.crufty.net>
116 * Makefile (MAKE_VERSION): 20151201
117 Merge with NetBSD make, pick up
118 o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
119 o meta.c: meta_oodate: use lstat(2) for checking link target
120 in case it is a symlink.
121 o var.c: avoid calling brk_string and Var_Export1 with empty
124 2015-11-26 Simon J. Gerraty <sjg@bad.crufty.net>
126 * Makefile (MAKE_VERSION): 20151126
127 Merge with NetBSD make, pick up
128 o parse.c: ParseTrackInput don't access beyond
131 2015-10-22 Simon J. Gerraty <sjg@bad.crufty.net>
133 * Makefile (MAKE_VERSION): 20151022
135 * Add support for BSD/OS which lacks inttypes.h
136 and really needs sys/param.h for sys/sysctl.h
137 also 'type' is not a shell builtin.
139 * var.c: eliminate uint32_t and need for inttypes.h
141 * main.c: PrintOnError flush stdout before run .ERROR
143 * parse.c: cope with _SC_PAGESIZE not being defined.
146 2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net>
148 * Makefile (MAKE_VERSION): 20151020
149 Merge with NetBSD make, pick up
150 o var.c: fix uninitialized var
152 2015-10-12 Simon J. Gerraty <sjg@bad.crufty.net>
154 * var.c: the conditional expressions used with ':?' can be
155 expensive, if already discarding do not evaluate or expand
158 2015-10-10 Simon J. Gerraty <sjg@bad.crufty.net>
160 * Makefile (MAKE_VERSION): 20151010
161 Merge with NetBSD make, pick up
162 o Add Boolean wantit flag to Var_Subst and Var_Parse
163 when FALSE we know we are discarding the result and can
164 skip operations like Cmd_Exec.
166 2015-10-09 Simon J. Gerraty <sjg@bad.crufty.net>
168 * Makefile (MAKE_VERSION): 20151009
169 Merge with NetBSD make, pick up
170 o var.c: don't check for NULL before free()
171 o meta.c: meta_oodate, do not hard code ignore of makeDependfile
173 2015-09-10 Simon J. Gerraty <sjg@bad.crufty.net>
175 * Makefile (MAKE_VERSION): 20150910
176 Merge with NetBSD make, pick up
177 o main.c: with -w print Enter/Leaving messages for objdir too
179 o centralize shell metachar handling
181 * FILES: add metachar.[ch]
183 2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net>
185 * Makefile (MAKE_VERSION): 20150606
186 Merge with NetBSD make, pick up
187 o make.1: document .OBJDIR target
189 2015-05-05 Simon J. Gerraty <sjg@bad.crufty.net>
191 * Makefile (MAKE_VERSION): 20150505
192 Merge with NetBSD make, pick up
193 o cond.c: be strict about lhs of comparison when evaluating .if
194 but less so when called from variable expansion.
195 o unit-tests/cond2.mk: test various error conditions
197 2015-05-04 Simon J. Gerraty <sjg@bad.crufty.net>
199 * machine.sh (MACHINE): Add Bitrig
200 patch from joerg@netbsd.org
202 2015-04-18 Simon J. Gerraty <sjg@bad.crufty.net>
204 * Makefile (MAKE_VERSION): 20150418
205 Merge with NetBSD make, pick up
206 o job.c: use memmove() rather than memcpy()
208 * unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL
211 2015-04-11 Simon J. Gerraty <sjg@bad.crufty.net>
213 * Makefile (MAKE_VERSION): 20150411
214 bump version - only mk/ changes.
216 2015-04-10 Simon J. Gerraty <sjg@bad.crufty.net>
218 * Makefile (MAKE_VERSION): 20150410
219 Merge with NetBSD make, pick up
220 o document different handling of '-' in jobs mode vs compat
221 o fix jobs mode so that '-' only applies to whole job
222 when shell lacks hasErrCtl
223 o meta.c: use separate vars to track lcwd and latestdir (read)
226 2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net>
228 * Makefile (MAKE_VERSION): 20150401
229 Merge with NetBSD make, pick up
230 o meta.c: close meta file in child
232 * Makefile: use BINDIR.bmake if set.
233 Same for MANDIR and SHAREDIR
234 Handy for testing release candidates
235 in various environments.
237 2015-03-26 Simon J. Gerraty <sjg@bad.crufty.net>
239 * move initialization of savederr to block where it is used
240 to avoid spurious warning from gcc5
242 2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net>
244 * Makefile (MAKE_VERSION): 20141111
247 2014-11-05 Simon J. Gerraty <sjg@bad.crufty.net>
249 * Makefile (MAKE_VERSION): 20141105
250 Merge with NetBSD make, pick up
251 o revert major overhaul of suffix handling
252 and POSIX compliance - too much breakage
253 and impossible to make backwards compatible.
254 o we still have the new unit test structure which is ok.
255 o meta.c ensure "-- filemon" is at start of line.
257 2014-09-17 Simon J. Gerraty <sjg@bad.crufty.net>
259 * configure.in: test that result of getconf PATH_MAX is numeric
260 and discard if not. Apparently needed for Hurd.
262 2014-08-30 Simon J. Gerraty <sjg@bad.crufty.net>
264 * Makefile (MAKE_VERSION): 20140830
265 Merge with NetBSD make, pick up
266 o major overhaul of suffix handling
267 o improved POSIX compliance
268 o overhauled unit-tests
270 2014-06-20 Simon J. Gerraty <sjg@bad.crufty.net>
272 * Makefile (MAKE_VERSION): 20140620
273 Merge with NetBSD make, pick up
274 o var.c return varNoError rather than var_Error for ::= modifiers.
276 2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net>
278 * Makefile (MAKE_VERSION): 20140522
279 Merge with NetBSD make, pick up
280 o var.c detect some parse errors.
282 2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net>
284 * Fix spelling errors - patch from Pedro Giffuni
286 2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net>
288 * Makefile (MAKE_VERSION): 20140214
289 Merge with NetBSD make, pick up
291 o use Var_Value to get MAKEOBJDIR[PREFIX]
292 o reduced realloc'ign in brk_string.
293 * configure.in: add a check for compiler supporting __func__
295 2014-01-03 Simon J. Gerraty <sjg@bad.crufty.net>
297 * boot-strap: ignore mksrc=none
299 2014-01-02 Simon J. Gerraty <sjg@bad.crufty.net>
301 * Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk
303 2014-01-01 Simon J. Gerraty <sjg@bad.crufty.net>
305 * Makefile (MAKE_VERSION): 20140101
306 * configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024)
307 * Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max
308 * make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for
310 * configure.in: Add AC_PREREQ and check for
311 sysctl; patch from Andrew Shadura andrewsh at debian.org
313 2013-10-16 Simon J. Gerraty <sjg@bad.crufty.net>
315 * Makefile (MAKE_VERSION): 20131010
316 * lose the const from arg to systcl to avoid problems on older BSDs.
318 2013-10-01 Simon J. Gerraty <sjg@bad.crufty.net>
320 * Makefile (MAKE_VERSION): 20131001
321 Merge with NetBSD make, pick up
322 o main.c: for NATIVE build sysctl to get MACHINE_ARCH from
323 hw.machine_arch if necessary.
324 o meta.c: meta_oodate - need to look at src of Link and target
326 * main.c: check that CTL_HW and HW_MACHINE_ARCH exist.
327 provide __arraycount() if needed.
329 2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net>
331 * Makefile (MAKE_VERSION): 20130904
332 Merge with NetBSD make, pick up
333 o Add VAR_INTERNAL context, so that internal setting of
334 MAKEFILE does not override value set by makefiles.
336 2013-09-02 Simon J. Gerraty <sjg@bad.crufty.net>
338 * Makefile (MAKE_VERSION): 20130902
339 Merge with NetBSD make, pick up
340 o CompatRunCommand: only apply shellErrFlag when errCheck is true
342 2013-08-28 Simon J. Gerraty <sjg@bad.crufty.net>
344 * Makefile (MAKE_VERSION): 20130828
345 Merge with NetBSD make, pick up
346 o Fix VAR :sh = syntax from Will Andrews at freebsd.org
347 o Call Job_SetPrefix() from Job_Init() so makefiles have
348 opportunity to set .MAKE.JOB.PREFIX
350 2013-07-30 Simon J. Gerraty <sjg@bad.crufty.net>
352 * Makefile (MAKE_VERSION): 20130730
353 Merge with NetBSD make, pick up
354 o Allow suppression of --- job -- tokens by setting
355 .MAKE.JOB.PREFIX empty.
357 2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net>
359 * Makefile (MAKE_VERSION): 20130716
360 Merge with NetBSD make, pick up
361 o number of gmake compatibility tweaks
362 -w for gmake style entering/leaving messages
363 if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc.
364 handle MAKEFLAGS containing only letters.
365 o when overriding a GLOBAL variable on the command line,
366 delete it from GLOBAL context so -V doesn't show the wrong
369 2013-07-06 Simon J. Gerraty <sjg@bad.crufty.net>
371 * configure.in: We don't need MAKE_LEVEL_SAFE anymore.
373 * Makefile (MAKE_VERSION): 20130706
374 Merge with NetBSD make, pick up
375 o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is
376 true so that CompatRunCommand() can use it, to ensure
377 consistent behavior with jobs mode.
378 o use MAKE_LEVEL_ENV to define the variable to propagate
379 .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake).
380 o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of
383 2013-06-04 Simon J. Gerraty <sjg@bad.crufty.net>
385 * Makefile (MAKE_VERSION): 20130604
386 Merge with NetBSD make, pick up
387 o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's
388 to avoid leaking descriptors.
390 2013-05-28 Simon J. Gerraty <sjg@bad.crufty.net>
392 * Makefile (MAKE_VERSION): 20130528
393 Merge with NetBSD make, pick up
394 o var.c: cleanup some left-overs in VarHash()
396 2013-05-20 Simon J. Gerraty <sjg@bad.crufty.net>
398 * Makefile (MAKE_VERSION): 20130520
399 generate manifest from component FILES rather than have to
400 update FILES when mk/FILES changes.
402 2013-05-18 Simon J. Gerraty <sjg@bad.crufty.net>
404 * Makefile (MAKE_VERSION): 20130518
405 Merge with NetBSD make, pick up
406 o suff.c: don't skip all processsing for .PHONY targets
407 else wildcard srcs do not get expanded.
408 o var.c: expand name of variable to delete if necessary.
410 2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net>
412 * Makefile (MAKE_VERSION): 20130330
413 Merge with NetBSD make, pick up
414 o meta.c: refine the handling of .OODATE in commands.
415 Rather than suppress command comparison for the entire script
416 as though .NOMETA_CMP had been used, only suppress it for the
418 This allows something like ${.OODATE:M.NOMETA_CMP} to be used to
419 suppress comparison of a command without otherwise affecting it.
420 o make.1: document that
422 2013-03-22 Simon J. Gerraty <sjg@bad.crufty.net>
424 * Makefile (MAKE_VERSION): 20130321
425 yes, not quite right but its a cooler number.
426 Merge with NetBSD make, pick up
427 o parse.c: fix ParseGmakeExport to be portable
429 * meta.c: call meta_init() before makefiles are read and if built
430 with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON
431 this let's makefiles test for support.
432 Call meta_mode_init() to process .MAKE.MODE.
434 2013-03-13 Simon J. Gerraty <sjg@bad.crufty.net>
436 * Makefile (MAKE_VERSION): 20130305
437 Merge with NetBSD make, pick up
438 o run .STALE: target when a dependency from .depend is missing.
439 o job.c: add Job_RunTarget() for the above and .BEGIN
441 2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net>
443 * Makefile (MAKE_VERSION): 20130303
444 Merge with NetBSD make, pick up
445 o main.c: set .MAKE.OS to utsname.sysname
446 o job.c: more checks for read and poll errors
447 o var.c: lose VarChangeCase() saves 4% time
449 2013-03-02 Simon J. Gerraty <sjg@bad.crufty.net>
451 * boot-strap: remove MAKEOBJDIRPREFIX from environment since we
452 want to use MAKEOBJDIR
454 2013-01-27 Simon J. Gerraty <sjg@bad.crufty.net>
456 * Merge with NetBSD make, pick up
457 o make.1: more info on how shell commands are handled.
458 o job.c,main.c: detect write errors to job pipes.
460 2013-01-25 Simon J. Gerraty <sjg@bad.crufty.net>
462 * Makefile (MAKE_VERSION): 20130123
463 Merge with NetBSD make, pick up
464 o meta.c: if script uses .OODATE and meta_oodate() decides
465 rebuild is needed, .OODATE will be empty - set it to .ALLSRC.
466 o var.c: in debug output indicate which variabale modifiers
468 o remove Check_Cwd logic the makefiles have been fixed.
470 2012-12-12 Simon J. Gerraty <sjg@bad.crufty.net>
472 * makefile.in: add a simple makefile for folk who insist on
473 ./configure; make; make install
474 it just runs boot-strap
475 * include mk/* to accommodate the above
476 * boot-strap: re-work to accommodate the above
477 mksrc defaults to $Mydir/mk
478 allow op={configure,build,install,clean,all}
479 add options to facilitate install
480 * Makefile.config.in: just the bits set by configure
481 * Makefile: bump version to 20121212
482 abandon Makefile.in (NetBSD Makefile)
483 leverage mk/* instead
484 * configure.in: ensure srcdir is absolute
486 2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net>
488 * Makefile.in (MAKE_VERSION): 20121111
489 fix generation of bmake.cat1
491 2012-11-09 Simon J. Gerraty <sjg@bad.crufty.net>
493 * Makefile.in (MAKE_VERSION): 20121109
494 Merge with NetBSD make, pick up
495 o make.c: MakeBuildChild: return 0 so search continues if a
496 .ORDER dependency is detected.
497 o unit-tests/order: test the above
499 2012-11-02 Simon J. Gerraty <sjg@bad.crufty.net>
501 * Makefile.in (MAKE_VERSION): 20121102
502 Merge with NetBSD make, pick up
503 o cond.c: allow cond_state[] to grow.
504 In meta mode with a very large tree, we can hit the limit
505 while processing dirdeps.
507 2012-10-25 Simon J. Gerraty <sjg@bad.crufty.net>
509 * Makefile.in: we need to use ${srcdir} not ${.CURDIR}
511 2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net>
513 * Makefile.in (MAKE_VERSION): 20121010
514 o protect syntax that only bmake parses correctly.
515 o remove auto setting of FORCE_MACHINE, use configure's
516 --with-force-machine=whatever if that is desired.
518 2012-10-08 Simon J. Gerraty <sjg@bad.crufty.net>
520 * Makefile.in: do not lose history from make.1 when generating bmake.1
522 2012-10-07 Simon J. Gerraty <sjg@bad.crufty.net>
524 * Makefile.in (MAKE_VERSION): 20121007
525 Merge with NetBSD make, pick up
526 o compat.c: ignore empty commands - same as jobs mode.
527 o make.1: document meta chars that cause use of shell
529 2012-09-11 Simon J. Gerraty <sjg@bad.crufty.net>
531 * Makefile.in (MAKE_VERSION): bump version to 20120911
532 * bsd.after-import.mk: include Makefile.inc early and allow it to
535 2012-08-31 Simon J. Gerraty <sjg@bad.crufty.net>
537 * Makefile.in (MAKE_VERSION): bump version to 20120831
538 Merge with NetBSD make, pick up
539 o cast sizeof() to int for comparison
542 2012-08-30 Simon J. Gerraty <sjg@bad.crufty.net>
544 * Makefile.in (MAKE_VERSION): bump version to 20120830
545 Merge with NetBSD make, pick up
546 o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V
547 o debug flag -dV causes -V to show raw value regardless.
549 2012-07-05 Simon J. Gerraty <sjg@bad.crufty.net>
551 * bsd.after-import.mk (after-import): ensure unit-tests/Makefile
554 2012-07-04 Simon J. Gerraty <sjg@bad.crufty.net>
556 * Makefile.in (MAKE_VERSION): bump version to 20120704
557 Merge with NetBSD make, pick up
558 o Job_ParseShell should call Shell_Init if it has been
560 * Makefile.in: set USE_META based on configure result.
561 also .PARSEDIR is safer indicator of bmake.
563 2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net>
565 * Makefile.in: bump version to 20120626
566 ensure CPPFLAGS is in CFLAGS
567 * meta.c: avoid nested externs
568 * bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target
570 2012-06-20 Simon J. Gerraty <sjg@bad.crufty.net>
572 * Makefile.in (MAKE_VERSION): bump version to 20120620
573 Merge with NetBSD make, pick up
574 o make_malloc.c: avoid including make_malloc.h again
576 * Makefile.in: avoid bmake only syntax or protect with
577 .if defined(.MAKE.LEVEL)
578 * bsd.after-import.mk: replace .-include with .sinclude
579 ensure? SRCTOP gets a value
580 * configure.in: look for filemon.h in /usr/include/dev/filemon first.
582 2012-06-19 Simon J. Gerraty <sjg@bad.crufty.net>
584 * Makefile.in (MAKE_VERSION): bump version to 20120612
585 Merge with NetBSD make, pick up
586 o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler
587 for greater portability.
588 o unit-tests/forloop: check that .for works as expected wrt
589 number of times and with "quoted strings".
591 2012-06-06 Simon J. Gerraty <sjg@bad.crufty.net>
593 * Makefile.in (MAKE_VERSION): bump version to 20120606
594 Merge with NetBSD make, pick up
595 o compat.c: use kill(2) rather than raise(3).
596 * configure.in: look for sys/dev/filemon
597 * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile
598 and pass BOOTSTRAP_XTRAS to boot-strap.
600 2012-06-04 Simon J. Gerraty <sjg@bad.crufty.net>
602 * Makefile.in (MAKE_VERSION): bump version to 20120604
603 Merge with NetBSD make, pick up
604 o util.c and var.c share same var for tracking if environ
605 has been reallocated.
606 o util.c provide getenv with setenv.
607 * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL
608 when the shell actively strips .MAKE.* from the environment.
609 We still refer to the variable always as .MAKE.LEVEL
610 * util.c fix bug in findenv() was finding prefix of name.
611 * compat.c: re-raising SIGINT etc after running .INTERRUPT
612 results in more reliable termination of all activity on many
615 2012-06-02 Simon J. Gerraty <sjg@bad.crufty.net>
617 * Makefile.in (MAKE_VERSION): bump version to 20120602
618 Merge with NetBSD make, pick up
619 o for.c: handle quoted items in .for list
621 2012-05-30 Simon J. Gerraty <sjg@bad.crufty.net>
623 * Makefile.in (MAKE_VERSION): bump version to 20120530
624 Merge with NetBSD make, pick up
625 o compat.c: ignore empty command.
627 2012-05-24 Simon J. Gerraty <sjg@bad.crufty.net>
629 * Makefile.in (MAKE_VERSION): bump version to 20120524
630 * FILES: add bsd.after-import.mk:
631 A simple means of integrating bmake into a BSD build system.
633 2012-05-20 Simon J. Gerraty <sjg@bad.crufty.net>
635 * Makefile.in (MAKE_VERSION): bump version to 20120520
636 Merge with NetBSD make, pick up
637 o increased limit for nested conditionals.
639 2012-05-18 Simon J. Gerraty <sjg@bad.crufty.net>
641 * Makefile.in (MAKE_VERSION): bump version to 20120518
642 Merge with NetBSD make, pick up
643 o use _exit(2) in signal hanlder
644 o Don't use the [dir] cache when building nodes that might have
645 changed since the last exec.
646 o Avoid nested extern declaration warnings.
648 2012-04-27 Simon J. Gerraty <sjg@bad.crufty.net>
650 * meta.c (fgetLine): avoid %z - not portable.
651 * parse.c: Since we moved include of sys/mman.h
652 and def's of MAP_COPY etc. we got dups from a merge.
654 2012-04-24 Simon J. Gerraty <sjg@bad.crufty.net>
656 * Makefile.in (MAKE_VERSION): bump version to 20120420
657 Merge with NetBSD make, pick up
658 o restore duplicate supression in .MAKE.MAKEFILES
659 runtime saving can be significant.
660 o Var_Subst() uses Buf_DestroyCompact() to reduce memory
661 consumption up to 20%.
663 2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net>
665 * Makefile.in (MAKE_VERSION): bump version to 20120420
666 Merge with NetBSD make, pick up
667 o remove duplicate supression in .MAKE.MAKEFILES
668 o improved dir cache behavior
669 o gmake'ish export command
671 2012-03-25 Simon J. Gerraty <sjg@bad.crufty.net>
673 * Makefile.in (MAKE_VERSION): bump version to 20120325
674 Merge with NetBSD make, pick up
675 o fix parsing of :[#] in conditionals.
677 2012-02-10 Simon J. Gerraty <sjg@bad.crufty.net>
679 * Makefile.in: replace use of .Nx in bmake.1 with NetBSD
680 since some systems cannot cope with .Nx <version>
682 2011-11-14 Simon J. Gerraty <sjg@bad.crufty.net>
684 * Makefile.in (MAKE_VERSION): bump version to 20111111
685 Merge with NetBSD make, pick up
686 o debug output for .PARSEDIR and .PARSEFILE
688 2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net>
690 * Makefile.in (MAKE_VERSION): bump version to 20111010
692 2011-10-09 Simon J. Gerraty <sjg@bad.crufty.net>
694 * boot-strap: check for an expected file in the dirs we look for.
695 * make-bootstrap.sh: pass on LDSTATIC
697 2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net>
699 * Makefile.in (MAKE_VERSION): bump version to 20111001
700 Merge with NetBSD make, pick up
701 o ensure .PREFIX is set for .PHONY
702 and .TARGET set for .PHONY run via .END
703 o __dead used consistently
705 2011-09-10 Simon J. Gerraty <sjg@bad.crufty.net>
707 * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-)
709 2011-09-05 Simon J. Gerraty <sjg@bad.crufty.net>
711 * Makefile.in (MAKE_VERSION): bump version to 20110905
712 Merge with NetBSD make, pick up
713 o meta_oodate: ignore makeDependfile
715 2011-08-28 Simon J. Gerraty <sjg@bad.crufty.net>
717 * Makefile.in (MAKE_VERSION): bump version to 20110828
718 Merge with NetBSD make, pick up
719 o silent=yes in .MAKE.MODE causes meta mode to mark targets
720 as SILENT if a .meta file is created
722 2011-08-18 Simon J. Gerraty <sjg@bad.crufty.net>
724 * Makefile.in (MAKE_VERSION): bump version to 20110818
725 Merge with NetBSD make, pick up
726 o in meta mode, if target flagged .META a missing .meta file
727 means target is out-of-date
728 o fixes for gcc 4.5 warnings
729 o simplify job printing code
731 2011-08-09 Simon J. Gerraty <sjg@bad.crufty.net>
733 * Makefile.in (MAKE_VERSION): bump version to 20110808
734 Merge with NetBSD make, pick up
735 o do not touch OP_SPECIAL targets when doing make -t
737 2011-06-22 Simon J. Gerraty <sjg@bad.crufty.net>
739 * Makefile.in (MAKE_VERSION): bump version to 20110622
740 Merge with NetBSD make, pick up
741 o meta_oodate detect corrupted .meta file and declare oodate.
742 * configure.in: add check for setsid
744 2011-06-07 Simon J. Gerraty <sjg@bad.crufty.net>
746 * Merge with NetBSD make, pick up
747 o unit-tests/modts now works on MirBSD
749 2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net>
751 * Makefile.in (MAKE_VERSION): bump version to 20110606
752 Merge with NetBSD make, pick up
753 o ApplyModifiers: when we parse a variable which is not
754 the entire modifier string, or not followed by ':', do not
755 consider it as containing modifiers.
756 o loadfile: ensure newline at end of mapped file.
758 2011-05-05 Simon J. Gerraty <sjg@bad.crufty.net>
760 * Makefile.in (MAKE_VERSION): bump version to 20110505
761 Merge with NetBSD make, pick up
762 o .MAKE.META.BAILIWICK - list of prefixes which define the scope
763 of make's control. In meta mode, any generated file within
764 said bailiwick, which is found to be missing, causes current
765 target to be out-of-date.
767 2011-04-11 Simon J. Gerraty <sjg@bad.crufty.net>
769 * Makefile.in (MAKE_VERSION): bump version to 20110411
770 Merge with NetBSD make, pick up
771 o when long modifiers fail to match, check sysV style.
774 2011-04-10 Simon J. Gerraty <sjg@bad.crufty.net>
776 * Makefile.in (MAKE_VERSION): bump version to 20110410
777 Merge with NetBSD make, pick up
778 o :hash - cheap 32bit hash of value
779 o :localtime, :gmtime - use value as format string for strftime.
781 2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net>
783 * Makefile.in (MAKE_VERSION): bump version to 20110330
784 mostly because its a cooler version.
785 Merge with NetBSD make, pick up
786 o NetBSD tags for meta.[ch]
787 o job.c call meta_job_finish() after meta_job_error().
788 o meta_job_error() should call meta_job_finish() to ensure
789 .meta file is closed, and safe to copy - if .ERROR target wants.
790 meta_job_finish() is safe to call repeatedly.
792 2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net>
794 * unit-tests/modts: use printf if it is a builtin,
795 to save us from MirBSD
797 * Makefile.in (MAKE_VERSION): bump version to 20110329
798 Merge with NetBSD make, pick up
799 o fix for use after free() in CondDoExists().
800 o meta_oodate() report extra commands and return earlier.
802 2011-03-27 Simon J. Gerraty <sjg@bad.crufty.net>
804 * Makefile.in (MAKE_VERSION): bump version to 20110327
805 Merge with NetBSD make, pick up
806 o meta.c, if .MAKE.MODE contains curdirOk=yes
807 allow creating .meta files in .CURDIR
808 * boot-strap (TOOL_DIFF): aparently at least on linux distro
809 formats the output of 'type' differently - so eat any "()"
811 2011-03-06 Simon J. Gerraty <sjg@bad.crufty.net>
813 * Makefile.in (MAKE_VERSION): bump version to 20110306
814 Merge with NetBSD make, pick up
815 o meta.c, only do getcwd() once
817 2011-03-05 Simon J. Gerraty <sjg@bad.crufty.net>
819 * Makefile.in (MAKE_VERSION): bump version to 20110305
820 Merge with NetBSD make, pick up
821 o correct sysV substitution handling of empty lhs and variable
822 o correct exists() check for dir with trailing /
823 o correct handling of modifiers for non-existant variables
824 during evaluation of conditionals.
825 o ensure MAP_FILE is defined.
826 o meta.c use curdir[] now exported by main.c
828 2011-02-25 Simon J. Gerraty <sjg@bad.crufty.net>
830 * Makefile.in (MAKE_VERSION): bump version to 20110225
831 Merge with NetBSD make, pick up
832 o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after
833 makefiles have been read.
834 o fix example of :? modifier in man page.
836 2011-02-13 Simon J. Gerraty <sjg@bad.crufty.net>
838 * Makefile.in (MAKE_VERSION): bump version to 20110214
839 Merge with NetBSD make, pick up
840 o meta.c handle realpath() failing when generating meta file
843 * sigcompat.c: convert to ansi so we can use higher warning levels.
846 2011-02-07 Simon J. Gerraty <sjg@bad.crufty.net>
848 * Makefile.in (MAKE_VERSION): bump version to 20110207
849 Merge with NetBSD make, pick up
850 o fix for bug in meta mode.
852 2011-01-03 Simon J. Gerraty <sjg@bad.crufty.net>
854 * parse.c: SunOS 5.8 at least does not have MAP_FILE
856 2011-01-01 Simon J. Gerraty <sjg@bad.crufty.net>
858 * Makefile.in (MAKE_VERSION): bump version to 20110101
859 Merge with NetBSD make, pick up
860 o use mmap(2) if available, for reading makefiles
862 2010-12-15 Simon J. Gerraty <sjg@bad.crufty.net>
864 * Makefile.in (MAKE_VERSION): bump version to 20101215
865 Merge with NetBSD make, pick up
866 o ensure meta_job_error() does not report a previous .meta file
869 2010-12-10 Simon J. Gerraty <sjg@bad.crufty.net>
871 * Makefile.in (MAKE_VERSION): bump version to 20101210
872 Merge with NetBSD make, pick up
873 o meta_oodate: track cwd per process, and only consider target
874 out-of-date if missing file is outside make's CWD.
875 Ignore files in /tmp/ etc.
876 o to ensure unit-tests results match, need to control LC_ALL
878 o fix for parsing bug in var.c
880 2010-11-26 Simon J. Gerraty <sjg@bad.crufty.net>
882 * Makefile.in (MAKE_VERSION): bump version to 20101126
883 Merge with NetBSD make, pick up
884 o if stale dependency is an IMPSRC, search via .PATH
885 o meta_oodate: if a referenced file is missing, target is
887 o meta_oodate: if a target uses .OODATE in its commands,
888 it (.OODATE) needs to be recomputed.
889 o keep a pointer to youngest child node, rather than just its
892 2010-11-02 Simon J. Gerraty <sjg@bad.crufty.net>
894 * Makefile.in (MAKE_VERSION): bump version to 20101101
896 2010-10-16 Simon J. Gerraty <sjg@bad.crufty.net>
898 * machine.sh: like os.sh,
899 allow for uname -p producing useless drivel
901 2010-09-13 Simon J. Gerraty <sjg@bad.crufty.net>
903 * boot-strap: document configure knobs for meta and filemon.
905 * Makefile.in (MAKE_VERSION): bump version to 20100911
906 Merge with NetBSD make, pick up
909 * make-bootstrap.sh.in: handle meta.c
910 * configure.in: add knobs for use_meta and filemon_h
911 also, look for dirname, str[e]sep and strlcpy
912 * util.c: add simple err[x] and warn[x]
914 2010-08-08 Simon J. Gerraty <sjg@bad.crufty.net>
916 * boot-strap (TOOL_DIFF): set this to ensure tests use
917 the same version of diff that configure tested
919 * Makefile.in (MAKE_VERSION): bump version to 20100808
920 Merge with NetBSD make, pick up
921 o in jobs mode, when we discover we cannot make something,
922 call PrintOnError before exit.
924 2010-08-06 Simon J. Gerraty <sjg@bad.crufty.net>
926 * Makefile.in (MAKE_VERSION): bump version to 20100806
927 Merge with NetBSD make, pick up
928 o formatting fixes for ignored errors
929 o ensure jobs are cleaned up regardless of where wait() was called.
931 2010-06-28 Simon J. Gerraty <sjg@bad.crufty.net>
933 * Makefile.in (MAKE_VERSION): bump version to 20100618
934 * os.sh (MACHINE_ARCH): watch out for drivel from uname -p
936 2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net>
938 * Makefile.in (MAKE_VERSION): bump version to 20100616
939 Merge with NetBSD make, pick up
941 o call PrintOnError from JobFinish when we detect an error we
944 2010-06-06 Simon J. Gerraty <sjg@bad.crufty.net>
946 * Makefile.in (MAKE_VERSION): bump version to 20100606
947 Merge with NetBSD make, pick up
950 2010-06-05 Simon J. Gerraty <sjg@bad.crufty.net>
952 * Makefile.in (MAKE_VERSION): bump version to 20100605
953 Merge with NetBSD make, pick up
954 o use bmake_signal() which is a wrapper around sigaction()
956 o add .export-env to allow exporting variables to environment
957 without tracking (so no re-export when the internal value is
960 2010-05-24 Simon J. Gerraty <sjg@bad.crufty.net>
962 * Makefile.in (MAKE_VERSION): bump version to 20100524
963 Merge with NetBSD make, pick up
964 o fix for .info et al being greedy.
966 2010-05-23 Simon J. Gerraty <sjg@bad.crufty.net>
968 * Makefile.in (MAKE_VERSION): bump version to 20100520
969 Merge with NetBSD make, pick up
970 o back to using realpath on argv[0]
971 but only if contains '/' and does not start with '/'.
973 2010-05-10 Simon J. Gerraty <sjg@bad.crufty.net>
975 * boot-strap: use absolute path for bmake when running tests.
977 * Makefile.in (MAKE_VERSION): bump version to 20100510
978 Merge with NetBSD make, pick up
979 o revert use of realpath on argv[0]
980 too many corner cases.
981 o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target.
983 2010-05-05 Simon J. Gerraty <sjg@bad.crufty.net>
985 * Makefile.in (MAKE_VERSION): bump version to 20100505
986 Merge with NetBSD make, pick up
987 o fix for missed SIGCHLD when compiled with SunPRO
988 actually for bmake, defining FORCE_POSIX_SIGNALS would have
991 2010-04-30 Simon J. Gerraty <sjg@bad.crufty.net>
993 * Makefile.in (MAKE_VERSION): bump version to 20100430
994 Merge with NetBSD make, pick up
995 o fflush stdout before writing to stdout
997 2010-04-23 Simon J. Gerraty <sjg@bad.crufty.net>
999 * Makefile.in (MAKE_VERSION): bump version to 20100423
1000 Merge with NetBSD make, pick up
1001 o updated unit tests for Haiku (this time for sure).
1002 * boot-strap: based on patch from joerg
1003 honor --with-default-sys-path better.
1004 * boot-strap: remove mention of --with-prefix-sys-path
1006 2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net>
1008 * Makefile.in (MAKE_VERSION): bump version to 20100422
1009 * Merge with NetBSD make, pick up
1010 o fix for vfork() on Darwin.
1011 o fix for bogus $TMPDIR.
1012 o set .MAKE.MODE=compat for -B
1013 o set .MAKE.JOBS=max_jobs for -j max_jobs
1014 o allow unit-tests to run without any *.mk
1015 o unit-tests/modmisc be more conservative in dirs presumed to exist.
1016 * boot-strap: ignore /usr/share/mk except on NetBSD.
1017 * unit-tests/Makefile.in: set LANG=C when running unit-tests to
1018 ensure sort(1) behaves as expected.
1020 2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net>
1022 * boot-strap: add FindHereOrAbove so we can use -m .../mk
1024 2010-04-20 Simon J. Gerraty <sjg@bad.crufty.net>
1026 * Makefile.in (MAKE_VERSION): bump version to 20100420
1027 * Merge with NetBSD make, pick up
1028 o fix for variable realpath() behavior.
1029 we have to stat(2) the result to be sure.
1030 o fix for .export (all) when nested vars use :sh
1032 2010-04-14 Simon J. Gerraty <sjg@bad.crufty.net>
1034 * Makefile.in (MAKE_VERSION): bump version to 20100414
1035 * Merge with NetBSD make, pick up
1036 o use realpath to resolve argv[0] (for .MAKE) if needed.
1037 o add realpath from libc.
1038 o add :tA to resolve variable via realpath(3) if possible.
1040 2010-04-08 Simon J. Gerraty <sjg@bad.crufty.net>
1042 * Makefile.in (MAKE_VERSION): bump version to 20100408
1043 * Merge with NetBSD make, pick up
1044 o unit tests for .ERROR, .error
1045 o fix for .ERROR to ensure it cannot be default target.
1047 2010-04-06 Simon J. Gerraty <sjg@bad.crufty.net>
1049 * Makefile.in (MAKE_VERSION): bump version to 20100406
1050 * Merge with NetBSD make, pick up
1051 o fix for compat mode "Error code" going to debug_file.
1052 o fix for .ALLSRC being populated twice.
1053 o support for .info, .warning and .error directives
1054 o .MAKE.MODE to control make's operational mode
1055 o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile
1057 o .MAKE.DEPENDFILE to control the name of the depend file
1058 o .ERROR target - run on failure.
1060 2010-03-18 Simon J. Gerraty <sjg@bad.crufty.net>
1062 * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile
1064 * os.sh,arch.c: patch for Haiku from joerg at netbsd
1066 2010-03-17 Simon J. Gerraty <sjg@bad.crufty.net>
1068 * Makefile.in (MAKE_VERSION): bump version to 20100222
1069 * Merge with NetBSD make, pick up
1070 o better error msg for .for with mutiple inter vars
1073 o use make-bootstrap.sh from joerg at netbsd
1074 to avoid the need for a native make when bootstrapping.
1075 o add "" everywhere ;-)
1076 o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1
1077 otherwise the pre-formated version.
1079 2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net>
1081 * Makefile.in (MAKE_VERSION): bump version to 20100102
1082 * Merge with NetBSD make, pick up:
1085 2009-11-18 Simon J. Gerraty <sjg@void.crufty.net>
1087 * Makefile.in (MAKE_VERSION): bump version to 20091118
1088 * Merge with NetBSD make, pick up:
1090 o report lines that start with '.' and should have ':'
1091 (catch typo's of .el*if).
1093 2009-10-30 Simon J. Gerraty <sjg@void.crufty.net>
1095 * configure.in: Ensure that srcdir and mksrc are absolute paths.
1097 2009-10-09 Simon J. Gerraty <sjg@void.crufty.net>
1099 * Makefile.in (MAKE_VERSION): fix version to 20091007
1101 2009-10-07 Simon J. Gerraty <sjg@void.crufty.net>
1103 * Makefile.in (MAKE_VERSION): bump version to 200910007
1104 * Merge with NetBSD make, pick up:
1105 o fix for parsing of :S;...;...; applied to .for loop iterator
1106 appearing in a dependency line.
1108 2009-09-09 Simon J. Gerraty <sjg@void.crufty.net>
1110 * Makefile.in (MAKE_VERSION): bump version to 20090909
1111 * Merge with NetBSD make, pick up:
1112 o fix for -C, .CURDIR and .OBJDIR
1114 o allow share_dir to be set independent of prefix.
1115 o select default share_dir better when prefix ends in $HOST_TARGET
1116 o if FORCE_BSD_MK etc were set, include them in the suggested
1119 2009-09-08 Simon J. Gerraty <sjg@void.crufty.net>
1121 * Makefile.in (MAKE_VERSION): bump version to 20090908
1122 * Merge with NetBSD make, pick up:
1123 o .MAKE.LEVEL for recursion tracking
1124 o fix for :M scanning \:
1126 2009-09-03 Simon J. Gerraty <sjg@void.crufty.net>
1128 * configure.in: Don't -D__EXTENSIONS__ if
1129 AC_USE_SYSTEM_EXTENSIONS says "no".
1131 2009-08-26 Simon J. Gerraty <sjg@void.crufty.net>
1133 * Makefile.in (MAKE_VERSION): bump version to 20090826
1134 Simplify MAKE_VERSION to just the bare date.
1135 * Merge with NetBSD make, pick up:
1136 o -C directory support.
1137 o support for SIGINFO
1138 o use $TMPDIR for temp files.
1139 o child of vfork should be careful about modifying parent's state.
1142 2009-03-26 Simon J. Gerraty <sjg@void.crufty.net>
1144 * Appy some patches for MiNT from David Brownlee
1146 2009-02-26 Simon J. Gerraty <sjg@void.crufty.net>
1148 * Makefile.in (BMAKE_VERSION): bump version to 20090222
1149 * Merge with NetBSD make, pick up:
1150 o Possible null pointer de-ref in Var_Set.
1152 2009-02-08 Simon J. Gerraty <sjg@void.crufty.net>
1154 * Makefile.in (BMAKE_VERSION): bump version to 20090204
1155 * Merge with NetBSD make, pick up:
1156 o bmake_malloc et al moved to their own .c
1157 o Count both () and {} when looking for the end of a :M pattern
1158 o Change 'Buffer' so that it is the actual struct, not a pointer to it.
1159 o strlist.c - functions for processing extendable arrays of pointers to strings.
1160 o ClientData replaced with void *, so const void * can be used.
1161 o New debug flag C for DEBUG_CWD
1163 2008-11-11 Simon J. Gerraty <sjg@void.crufty.net>
1165 * Makefile.in (BMAKE_VERSION): bump version to 20081111
1166 Apply patch from Joerg Sonnenberge to
1168 o remove some redundant checks
1169 o check for emlloc etc only in libutil and require the whole family.
1171 o remove [v]asprintf which is no longer used.
1173 2008-11-04 Simon J. Gerraty <sjg@void.crufty.net>
1175 * Makefile.in (BMAKE_VERSION): bump version to 20081101
1176 * Merge with NetBSD make, pick up:
1177 o util.c: avoid use of putenv() - christos
1179 2008-10-30 Simon J. Gerraty <sjg@void.crufty.net>
1181 * Makefile.in (BMAKE_VERSION): bump version to 20081030
1182 pick up man page tweaks.
1184 2008-10-29 Simon J. Gerraty <sjg@void.crufty.net>
1186 * Makefile.in: move processing of LIBOBJS to after is definition!
1187 thus we'll have getenv.c in SRCS only if needed.
1189 * make.1: add examples of how to use :?
1191 * Makefile.in (BMAKE_VERSION): bump version to 20081029
1192 * Merge with NetBSD make, pick up:
1193 o fix for .END processing with -j
1194 o segfault from Parse_Error when no makefile is open
1195 o handle numeric expressions in any variable expansion
1196 o debug output now defaults to stderr, -dF to change it - apb
1197 o make now uses bmake_malloc etc so that it can build natively
1198 on A/UX - wasn't an issue for bmake, but we want to keep in sync.
1200 2008-09-27 Simon J. Gerraty <sjg@void.crufty.net>
1202 * Makefile.in (BMAKE_VERSION): bump version to 20080808
1203 * Merge with NetBSD make, pick up:
1204 o fix for PR/38840: Pierre Pronchery: make crashes while parsing
1205 long lines in Makefiles
1206 o optimizations for VarQuote by joerg
1207 o fix for PR/38756: dominik: make dumps core on invalid makefile
1209 2008-05-15 Simon J. Gerraty <sjg@void.crufty.net>
1211 * Makefile.in (BMAKE_VERSION): bump version to 20080515
1212 * Merge with NetBSD make, pick up:
1213 o fix skip setting vars in VAR_GLOBAL context, to handle
1214 cases where VAR_CMD is used for other than command line vars.
1216 2008-05-14 Simon J. Gerraty <sjg@void.crufty.net>
1218 * boot-strap (make_version): we may need to look in
1219 $prefix/share/mk for sys.mk
1221 * Makefile.in (BMAKE_VERSION): bump version to 20080514
1222 * Merge with NetBSD make, pick up:
1223 o skip setting vars in VAR_GLOBAL context, when already set in
1224 VAR_CMD which takes precedence.
1226 2008-03-30 Simon J. Gerraty <sjg@void.crufty.net>
1228 * Makefile.in (BMAKE_VERSION): bump version to 20080330
1229 * Merge with NetBSD make, pick up:
1230 o fix for ?= when LHS contains variable reference.
1232 2008-02-15 Simon J. Gerraty <sjg@void.crufty.net>
1234 * merge some patches from NetBSD pkgsrc.
1236 * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
1237 the MAKSYSPATH used during bootstrap.
1239 * Makefile.in (BMAKE_VERSION): bump version to 20080215
1240 * Merge with NetBSD make, pick up:
1241 o warn if non-space chars follow 'empty' in a conditional.
1243 2008-01-18 Simon J. Gerraty <sjg@void.crufty.net>
1245 * Makefile.in (BMAKE_VERSION): bump version to 20080118
1246 * Merge with NetBSD make, pick up:
1247 o consider dependencies read from .depend as optional - dsl
1248 o remember when buffer for reading makefile grows - dsl
1249 o add -dl (aka LOUD) - David O'Brien
1251 2007-10-22 Simon J. Gerraty <sjg@void.crufty.net>
1253 * Makefile.in (BMAKE_VERSION): bump version to 20071022
1254 * Merge with NetBSD make, pick up:
1255 o Allow .PATH<suffix> to be used for .include ""
1257 * boot-strap: source default settings from .bmake-boot-strap.rc
1259 2007-10-16 Simon J. Gerraty <sjg@void.crufty.net>
1261 * Makefile.in: fix maninstall on various systems
1262 provided that our man.mk is used.
1263 For non-BSD systems we install the preformatted page
1266 2007-10-15 Simon J. Gerraty <sjg@void.crufty.net>
1268 * boot-strap: make bmake.1 too, so maninstall works.
1270 2007-10-14 Simon J. Gerraty <sjg@void.crufty.net>
1272 * Makefile.in (BMAKE_VERSION): bump version to 20071014
1273 * Merge with NetBSD make, pick up:
1274 o revamped handling of defshell - configure no longer needs to
1275 know the content of the shells array - apb
1276 o stop Var_Subst modifying its input - apb
1277 o avoid calling ParseTrackInput too often - dsl
1279 2007-10-11 Simon J. Gerraty <sjg@void.crufty.net>
1281 * Makefile.in (BMAKE_VERSION): bump version to 20071011
1282 * Merge with NetBSD make, pick up:
1283 o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.
1285 * sigcompat.c: some tweaks for HP-UX 11.x based on
1286 patch from Tobias Nygren
1288 * configure.in: update handling of --with-defshell to match
1289 new make behavior. --with-defshell=/usr/xpg4/bin/sh
1290 will now do what one might hope - provided the chosen shell
1291 behaves enough like sh.
1293 2007-10-08 Simon J. Gerraty <sjg@void.crufty.net>
1295 * Makefile.in (BMAKE_VERSION): bump to 20071008
1296 * Merge with NetBSD make, pick up:
1297 o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
1298 o .export/.MAKE.EXPORTED - export of variables - sjg
1299 o .MAKE.MAKEFILES - track all makefiles read - sjg
1300 o performance improvements - dsl
1301 o revamp parallel job scheduling - dsl
1303 2006-07-28 Simon J. Gerraty <sjg@void.crufty.net>
1305 * Makefile.in (BMAKE_VERSION): bump to 20060728
1306 * Merge with NetBSD make, pick up:
1307 o extra debug info during variable and cond processing - sjg
1308 o shell definition now covers newline - rillig
1309 o minor mem leak in PrintOnError - sjg
1311 2006-05-11 Simon J. Gerraty <sjg@void.crufty.net>
1313 * Makefile.in (BMAKE_VERSION): bump to 20060511
1314 * Merge with NetBSD make, pick up:
1315 o more memory leaks - coverity
1316 o possible overflow in ArchFindMember - coverity
1317 o extract variable modifier code out of Var_Parse()
1318 so it can be called recursively - sjg
1319 o unit-tests/moderrs - sjg
1321 2006-04-12 Simon J. Gerraty <sjg@void.crufty.net>
1323 * Makefile.in (BMAKE_VERSION): bump to 20060412
1324 * Merge with NetBSD make, pick up:
1325 o fixes for some memory leaks - coverity
1326 o only read first sys.mk etc when searching sysIncPath - sjg
1328 * main.c (ReadMakefile): remove hack for __INTERIX that prevented
1329 setting ${MAKEFILE} - OBATA Akio
1331 2006-03-18 Simon J. Gerraty <sjg@void.crufty.net>
1333 * Makefile.in (BMAKE_VERSION): bump to 20060318
1334 * Merge with NetBSD make, pick up:
1335 o cleanup of job.c to remove remote handling, distcc is more
1336 useful and this code was likely bit-rotting - dsl
1337 o fix for :P modifier - sjg
1338 * boot-strap: set default prefix to something reasonable
1341 2006-03-01 Simon J. Gerraty <sjg@void.crufty.net>
1343 * Makefile.in (BMAKE_VERSION): bump to 20060301
1344 * Merge with NetBSD make, pick up:
1345 o make .WAIT apply recursively, document and test case - apb
1346 o allow variable modifiers in a variable appear anywhere in
1347 modifier list, document and test case - sjg
1349 2006-02-22 Simon J. Gerraty <sjg@void.crufty.net>
1351 * Makefile.in (BMAKE_VERSION): bump to 20060222
1352 * Merge with NetBSD make, pick up:
1353 o improved job token handling - dsl
1354 o SIG_DFL the correct signal before exec - dsl
1355 o more debug info during parsing - dsl
1356 o allow variable modifiers to be specified via variable - sjg
1357 * boot-strap: explain why we died if no mksrc
1359 2005-11-05 Simon J. Gerraty <sjg@void.crufty.net>
1361 * Makefile.in (BMAKE_VERSION): bump to 20051105
1362 * configure.in: always set default_sys_path
1363 default is ${prefix}/share/mk
1364 - remove prefix_sys_path, anyone wanting more than above
1365 needs to set it manually.
1367 2005-11-04 Simon J. Gerraty <sjg@void.crufty.net>
1369 * boot-strap: make this a bit easier for pkgsrc folk.
1370 bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
1371 'mips' while pkgsrc wants 'mipseb' or 'mipsel'
1373 2005-11-02 Simon J. Gerraty <sjg@void.crufty.net>
1375 * Makefile.in (BMAKE_VERSION): bump to 20051102
1376 * job.c (JobFinish): fix likely ancient merge lossage
1377 fix from Todd Vierling.
1378 * boot-strap (srcdir): allow setting mksrc=none
1380 2005-10-31 Simon J. Gerraty <sjg@void.crufty.net>
1382 * Makefile.in (BMAKE_VERSION): bump to 20051031
1383 * ranlib.h: skip on OSF too.
1386 2005-10-10 Simon J. Gerraty <sjg@void.crufty.net>
1388 * Makefile.in (BMAKE_VERSION): bump to 20051002
1391 2005-10-09 Simon J. Gerraty <sjg@void.crufty.net>
1393 * Makefile.in (BMAKE_VERSION): bump to 20051001
1394 support for UnixWare and some other systems,
1395 based on patches from pkgsrc/bootstrap
1397 2005-09-03 Simon J. Gerraty <sjg@void.crufty.net>
1399 * Makefile.in (BMAKE_VERSION): bump to 20050901
1400 * Merge with NetBSD make, pick up:
1401 o possible parse error causing us to wander off.
1403 2005-06-06 Simon J. Gerraty <sjg@void.crufty.net>
1405 * Makefile.in (BMAKE_VERSION): bump to 20050606
1406 * Merge with NetBSD make, pick up:
1407 o :0x modifier for randomizing a list
1408 o fixes for a number of -Wuninitialized issues.
1410 2005-05-30 Simon J. Gerraty <sjg@void.crufty.net>
1412 * Makefile.in (BMAKE_VERSION): bump to 20050530
1413 * Merge with NetBSD make, pick up:
1414 o Handle dependencies for .BEGIN, .END and .INTERRUPT
1416 * README: was seriously out of date.
1418 2005-03-22 Simon J. Gerraty <sjg@void.crufty.net>
1420 * Important to use .MAKE rather than MAKE.
1422 2005-03-15 Simon J. Gerraty <sjg@void.crufty.net>
1424 * Makefile.in (BMAKE_VERSION): bump to 20050315
1425 * Merge with NetBSD make, pick up:
1426 o don't mistake .elsefoo for .else
1427 o use suffix-specific search path correctly
1428 o bunch of style nits
1430 2004-05-11 Simon J. Gerraty <sjg@void.crufty.net>
1433 o ensure that args to --src and --with-mksrc
1434 are resolved before giving them to configure.
1435 o add -o "objdir" so that builder can control it,
1436 default is $OS as determined by os.sh
1437 o add -q to suppress all the install instructions.
1439 2004-05-08 Simon J. Gerraty <sjg@void.crufty.net>
1441 * Remove __IDSTRING()
1443 * Makefile.in (BMAKE_VERSION): bump to 20040508
1444 * Merge with NetBSD make, pick up:
1446 - remove '-e' from compat mode
1447 - add support for '+' command-line prefix.
1448 o fix for handling '--' on command-line.
1449 o fix include in lst.lib/lstInt.h to simplify '-I's
1450 o we also picked up replacement of MAKE_BOOTSTRAP
1451 with !MAKE_NATIVE which is a noop, but possibly confusing.
1453 2004-04-14 Simon J. Gerraty <sjg@void.crufty.net>
1455 * Makefile.in (BMAKE_VERSION): bump to 20040414
1456 * Merge with NetBSD make, pick up:
1457 o allow quoted strings on lhs of conditionals
1458 o issue warning when extra .else is seen
1459 o print line numer when errors encountered during parsing from
1462 2004-02-20 Simon J. Gerraty <sjg@void.crufty.net>
1464 * Makefile.in (BMAKE_VERSION): bump to 20040220
1465 * Merge with NetBSD make, pick up:
1466 o fix for old :M parsing bug.
1467 o re-jigged unit-tests
1469 2004-02-15 Simon J. Gerraty <sjg@void.crufty.net>
1471 * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,}
1472 so that './bmake -f Makefile test' works.
1474 2004-02-14 Simon J. Gerraty <sjg@void.crufty.net>
1476 * Makefile.in: (BMAKE_VERSION): bump to 20040214
1477 * Merge with NetBSD make, pick up:
1478 o search upwards for *.mk
1479 o fix for double free of var substitution buffers
1480 o use of getopt replaced with custom code, since the usage
1481 (re-scanning) isn't posix compatible.
1483 2004-02-12 Simon J. Gerraty <sjg@void.crufty.net>
1485 * arch.c: don't include ranlib.h on ELF systems
1486 (thanks to Chuck Cranor <chuck@ece.cmu.edu>).
1488 2004-01-18 Simon J. Gerraty <sjg@void.crufty.net>
1490 * Makefile.in (BMAKE_VERSION): bump to 20040118
1492 * boot-strap (while): export vars we assign to on cmdline
1493 * unit-test/Makefile.in: ternary is .PHONY
1495 2004-01-08 Simon J. Gerraty <sjg@void.crufty.net>
1497 * Makefile.in (BMAKE_VERSION): bump version to 20040108
1498 * Merge with NetBSD make, pick up:
1499 o fix for ternary modifier
1501 2004-01-06 Simon J. Gerraty <sjg@void.crufty.net>
1503 * Makefile.in (BMAKE_VERSION): bump version to 20040105
1504 * Merge with NetBSD make, pick up:
1505 o fix for cond.c to handle compound expressions better
1506 o variable expansion within sysV style replacements
1508 2003-12-22 Simon J. Gerraty <sjg@void.crufty.net>
1510 * Make portable snprintf safer - output to /dev/null first to
1513 * Makefile.in (BMAKE_VERSION): bump version to 20031222
1514 * Merge with NetBSD make, pick up:
1515 o -dg3 to show input graph when things go wrong.
1516 o explicitly look for makefiles in objdir if not found in curdir so
1517 that errors in .depend etc will be reported accurarely.
1518 o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
1519 instead as it more accurately reflects the expected behavior and
1520 is more consistently implemented.
1521 o avoid use of asprintf.
1523 2003-09-28 Simon J. Gerraty <sjg@void.crufty.net>
1525 * util.c: Add asprintf and vasprintf.
1527 * Makefile.in (BMAKE_VERSION): bump version to 20030928
1528 * Merge with NetBSD make, pick up:
1529 :[] modifier - allows picking words from a variable.
1530 :tW modifier - allows treating value as one big word.
1531 W flag for :C and :S - allows treating value as one big word.
1533 2003-09-12 Simon J. Gerraty <sjg@void.crufty.net>
1535 * Merge with NetBSD make
1536 pick up -de flag to enable printing failed command.
1537 don't skip 1st two dir entries (normally . and ..) since
1538 coda does not have them.
1540 2003-09-09 Simon J. Gerraty <sjg@void.crufty.net>
1542 * Makefile.in (BMAKE_VERSION): bump version to 20030909
1543 * Merge with NetBSD make, pick up:
1544 - changes for -V '${VAR}' to print fully expanded value
1546 - CompatRunCommand now prints the command that failed.
1547 - several files got updated 3 clause Berkeley license.
1549 2003-08-02 Simon J. Gerraty <sjg@void.crufty.net>
1551 * boot-strap: Allow setting configure args on command line.
1553 2003-07-31 Simon J. Gerraty <sjg@void.crufty.net>
1555 * configure.in: add --with-defshell to allow sh or ksh
1556 to be selected as default shell.
1558 * Makefile.in: bump version to 20030731
1560 * Merge with NetBSD make
1561 Pick up .SHELL spec for ksh and associate man page changes.
1562 Also compat mode now uses the same shell specs.
1564 2003-07-29 Simon J. Gerraty <sjg@void.crufty.net>
1566 * var.c (Var_Parse): ensure delim is initialized.
1568 * unit-tests/Makefile.in: use single quotes to avoid problems from
1572 Run the unit-tests as part of the bootstrap procedure.
1574 2003-07-28 Simon J. Gerraty <sjg@void.crufty.net>
1576 * unit-tests/Makefile.in: always force complaints from
1577 ${TEST_MAKE} to be from 'make'.
1579 * configure.in: add check for 'diff -u'
1580 also fix some old autoconf'isms
1582 * Makefile.in (BMAKE_VERSION): bump version to 20030728.
1583 if using GCC add -Wno-cast-qual to CFLAGS for var.o
1585 * Merge with NetBSD make
1586 Pick up fix for :ts parsing error in some cases.
1589 2003-07-23 Simon J. Gerraty <sjg@void.crufty.net>
1591 * Makefile.in (BMAKE_VERSION): bump version to 20030723.
1593 * var.c (Var_Parse): fix bug in :ts modifier, after const
1594 correctness fixes, must pass nstr to VarModify.
1596 2003-07-14 Simon J. Gerraty <sjg@void.crufty.net>
1598 * Makefile.in: BMAKE_VERSION switch to a date based version.
1599 We'll generally use the date of last import from NetBSD.
1601 * Merge with NetBSD make
1602 Pick up fixes for const-correctness, now passes WARNS=3 on
1604 Pick up :ts modifier, allows controlling the separator used
1605 between words in variable expansion.
1607 2003-07-11 Simon J. Gerraty <sjg@void.crufty.net>
1609 * FILES: include boot-strap and os.sh
1611 * Makefile.in: only set WARNS if we are NetBSD, the effect on
1612 FreeBSD is known to be bad.
1614 * makefile.boot.in (bootstrap): make this the default target.
1616 * Makefile.in: bump version to 3.1.19
1618 * machine.sh: avoid A-Z with tr as it is bound to lose.
1620 2003-07-10 Simon J. Gerraty <sjg@void.crufty.net>
1622 * Merge with NetBSD make
1623 Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
1624 Plus some doc fixes.
1626 2003-04-27 Simon J. Gerraty <sjg@void.crufty.net>
1628 * Merge with NetBSD make
1629 Pick up fix for PR/1523 - don't count a library as built, if there
1630 is no way to build it
1632 * Bump version to 3.1.18
1634 2003-03-23 Simon J. Gerraty <sjg@void.crufty.net>
1636 * Merge with NetBSD make
1637 Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT
1638 appears in src list.
1640 2003-03-21 Simon J. Gerraty <sjg@void.crufty.net>
1642 * Merge with NetBSD make (mmm 10th anniversary!)
1643 pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828)
1644 pick up -X which tells us to not export VAR=val via setenv if
1645 we are already doing so via MAKEFLAGS. This saves valuable env
1646 space on systems like Darwin.
1647 set MAKE_VERSION to 3.1.17
1649 * parse.c: pix up fix for suffix rules
1651 2003-03-06 Simon J. Gerraty <sjg@void.crufty.net>
1653 * Merge with NetBSD make.
1654 pick up fix for propagating -B via MAKEFLAGS.
1655 set MAKE_VERSION to 3.1.16
1657 * Apply some patches from pkgsrc-bootstrap/bmake
1658 Originally by Grant Beattie <grant@netbsd.org>
1659 I may have missed some - since they are based on bmake-3.1.12
1661 2002-12-03 Simon J. Gerraty <sjg@void.crufty.net>
1663 * makefile.boot.in (bmake): update install targets for those that
1664 use them, also clear MAKEFLAGS when invoking bmake.boot to avoid
1665 havoc from gmake -w. Thanks to Harlan Stenn <hstenn@cisco.com>.
1667 * bmake.cat1: update the pre-formatted man page!
1669 2002-11-30 Simon J. Gerraty <sjg@void.crufty.net>
1671 * Merge with NetBSD make.
1672 pick up fix for premature free of pointer used in call
1674 set MAKE_VERSION to 3.1.15
1676 2002-11-26 Simon J. Gerraty <sjg@void.crufty.net>
1678 * configure.in: determine suitable value for MKSRC.
1679 override using --with-mksrc=PATH.
1681 * machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems.
1682 configs(8) will use 'sun4' as an alias for 'sparc'.
1684 2002-11-25 Simon J. Gerraty <sjg@void.crufty.net>
1686 * Merge with NetBSD make.
1688 pick up fix for finding ../cat.c via .PATH when .CURDIR=..
1689 set MAKE_VERSION to 3.1.14
1690 add configure checks for killpg and sys/socket.h
1692 2002-09-16 Simon J. Gerraty <sjg@void.crufty.net>
1696 * makefile.boot.in (bmake): use install-mk
1697 Also setup ./mk before trying to invoke bmake.boot incase we
1698 needed install-mk to create a sys.mk for us.
1700 * configure.in: If we need to add -I${srcdir}/missing, make it an
1701 absolute path so that it works for lst.lib too.
1703 * make.h: always include sys/cdefs.h since we provide one if the
1706 * Makefile.in (install-mk):
1707 use MKSRC/install-mk which will do the right thing.
1708 use uname -p for ARCH if possible.
1709 since install-mk will setup links bsd.prog.mk -> prog.mk if
1710 needed, just .include bsd.prog.mk
1712 * Merge with NetBSD make (NetBSD-1.6)
1713 Code is ansi-C only now.
1714 Bug in handling of dotLast is fixed.
1715 Can now assign .OBJDIR and make will reset its notions of life.
1716 New modifiers :tu :tl for toUpper and toLower.
1718 Tue Oct 16 12:18:42 2001 Simon J. Gerraty <sjg@zen.crufty.net>
1720 * Merge with NetBSD make
1721 pick up fix for .END failure in compat mode.
1722 pick up fix for extra va_end() in ParseVErrorInternal.
1724 Thu Oct 11 13:20:06 2001 Simon J. Gerraty <sjg@zen.crufty.net>
1726 * configure.in: for systems that have sys/cdefs.h check if it is
1727 compatible. If not, include the one under missing, but tell it to
1728 include the native one too - necessary on Linux.
1730 * missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use
1731 include_next (for gcc) to get the native sys/cdefs.h
1733 Tue Aug 21 02:29:34 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1735 * job.c (JobFinish): Fix an earlier merge bug that resulted in
1736 leaking descriptors when using -jN.
1738 * job.c (JobPrintCommand): See if "curdir" exists before
1739 attempting to chdir(). Doing the chdir directly in make (when in
1740 compat mode) fails silently, so let the -jN version do the same.
1741 This can happen when building kernels in an object tree and
1742 playing clever games to reset .CURDIR.
1744 * Merged with NetBSD make
1747 Tue Jun 26 23:45:11 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1749 * makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work.
1751 Tue Jun 12 16:48:57 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1753 * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
1754 us not to export the iterator variable when using VAR_CMD context.
1756 Sun Jun 10 21:55:21 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1758 * job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
1759 its the wrong "fix".
1761 Sat Jun 9 00:11:24 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1763 * Redesigned export of VAR_CMD's via MAKEFLAGS.
1764 We now simply append the variable names to .MAKEOVERRIDES, and
1765 handle duplicate suppression and quoting in ExportMAKEFLAGS using:
1766 ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
1767 Apart from fixing quoting bugs in previous version, this allows us
1768 to export vars to the environment by simply doing:
1769 .MAKEOVERRIDES+= PATH
1770 Merged again with NetBSD make, but the above is the only change.
1772 * configure.in: added
1773 --disable-pwd-override disable $PWD overriding getcwd()
1774 --disable-check-make-chdir disable make trying to guess
1775 when it should automatically cd ${.CURDIR}
1777 * Merge with NetBSD make, changes include:
1778 parse.c (ParseDoDependency): Spot that the syntax error is
1779 caused by an unresolved cvs/rcs conflict and say so.
1780 var.c: most of Var* functions now take a ctxt as 1st arg.
1781 now does variable substituion on rhs of sysv style modifiers.
1783 * var.c (Var_Set): exporting of command line variables (VAR_CMD)
1784 is now done here. We append the name='value' to .MAKEOVERRIDES
1785 rather than directly into MAKEFLAGS as this allows a Makefile to
1786 use .MAKEOVERRIDES= to disable this behaviour. GNU make uses a
1787 very similar mechanism. Note that in adding name='value' to
1788 .MAKEOVERRIDES we do the moral equivalent of:
1789 .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
1791 Fri Jun 1 14:08:02 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1793 * make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H
1795 * Merged with NetBSD make
1796 make -dx can now be used to run commands via sh -x
1797 better error messages on exec failures.
1799 Thu May 31 01:44:54 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1801 * Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that
1802 MAKE_VERSION gets updated. Also don't use ?= for MAKE_VERSION,
1803 MACHINE etc otherwise they propagate from the previous bmake.
1805 * configure.in (machine): allow --with-machine=generic to make
1806 configure use machine.sh to set MACHINE.
1808 * job.c (JobInterrupt): convert to using WAIT_T and friends.
1810 * Makefile.in: mention in bmake.1 that we use autoconf.
1812 * make.1: mention MAKE_PRINT_VAR_ON_ERROR.
1814 Wed May 30 23:17:18 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1816 * main.c (ReadMakefile): don't set MAKEFILE if reading ".depend"
1817 as that rather defeats the usefulness of ${MAKEFILE}.
1819 * main.c (MainParseArgs): append command line variable assignments
1820 to MAKEFLAGS so that they get propagated to child make's.
1821 Apparently this is required POSIX behaviour? Its useful anyway.
1823 Tue May 29 02:20:07 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1825 * compat.c (CompatRunCommand): don't use perror() since stdio may
1826 cause problems in child of vfork().
1828 * compat.c, main.c: Call PrintOnError() when we are going to bail.
1829 This routine prints out the .curdir where we stopped and will also
1830 display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}.
1832 * main.c: add ${.newline} to hold a "\n" - sometimes handy in
1835 * var.c: VarLoopExpand: ignore addSpace if a \n is present.
1837 * Added RCSid's for the files we've touched.
1839 Thu May 24 15:41:37 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1841 * configure.in: Thanks to some clues from mdb@juniper.net,
1842 added autoconf magic to control setting of MACHINE, MACHINE_ARCH
1843 as well as what ends up in _PATH_DEFSYSPATH. We now have:
1845 --with-machine=MACHINE explicitly set MACHINE
1846 --with-force-machine=MACHINE set FORCE_MACHINE
1847 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH
1848 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
1849 --with-prefix-sys-path=PATH:DIR:LIST prefix _PATH_PREFIX_SYSPATH
1850 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1852 If _PATH_OBJDIRPREFIX is set to "no" we won't define it.
1854 * makefile: added a pathetically simple makefile to drive
1855 bootstrapping. Running configure by hand is more useful.
1857 * Makefile.in: added MAKE_VERSION, and reworked things to be less
1858 dependent on NetBSD bsd.*.mk
1860 * pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining
1861 _PATH_OBJDIRPREFIX for those that don't want a default.
1862 construct _PATH_DEFSYSPATH from the info we get from configure.
1864 * main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION}
1865 if MAKE_VERSION is defined.
1867 * compat.c: when we bail, print out the .CURDIR we were in.
1869 Sat May 12 00:34:12 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1871 * Merged with NetBSD make
1873 * var.c: fixed a bug in the handling of the modifier :P
1874 if the node as found but the path was null, we segfault trying to
1877 Mon Mar 5 16:20:33 2001 Simon J. Gerraty <sjg@zen.quick.com.au>
1879 * Merged with NetBSD make
1881 * make.c: Make_OODate's test for a library out of date was using
1882 cmtime where it should have used mtime (my bug).
1884 * compat.c: Use perror() to tell us what really went wrong when we
1885 cannot exec a command.
1887 Fri Dec 15 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au>
1889 * Merged with NetBSD make
1891 Sat Jun 10 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au>
1893 * Merged with NetBSD make
1895 Thu Jun 1 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au>
1897 * Merged with NetBSD make
1899 Tue May 30 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au>
1901 * Merged with NetBSD make
1903 Thu Apr 27 00:07:47 2000 Simon J. Gerraty <sjg@zen.quick.com.au>
1905 * util.c: don't provide signal() since we use sigcompat.c
1907 * Makefile.in: added a build target.
1909 * var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :!
1910 These allow some quite clever magic.
1912 * main.c (main): added support for getenv(MAKESYSPATH).
1914 Mon Apr 2 16:25:13 2000 Simon J. Gerraty <sjg@zen.quick.com.au>
1916 * Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set.
1917 This avoids objdir having a different value depending on how a
1918 directory was reached (via command line, or subdir.mk).
1920 * If FORCE_MACHINE is defined, ignore getenv("MACHINE").
1922 Mon Apr 2 23:15:31 2000 Simon J. Gerraty <sjg@zen.quick.com.au>
1924 * Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if
1925 MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not.
1926 I've been testing this in NetBSD's make for some weeks.
1928 * Turn Makefile into Makefile.in and make it useful.
1930 Tue Feb 29 22:08:00 2000 Simon J. Gerraty <sjg@zen.quick.com.au>
1932 * Imported NetBSD's -current make(1) and resolve conflicts.
1934 * Applied autoconf patches from bmake v2
1936 * Imported clean code base from NetBSD-1.0