1*98875883SSimon J. Gerraty2023-09-09 Simon J Gerraty <sjg@beast.crufty.net> 2*98875883SSimon J. Gerraty 3*98875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230909 4*98875883SSimon J. Gerraty Merge with NetBSD make, pick up 5*98875883SSimon J. Gerraty o main.c: allow -j to compute a multiple of ncpu 6*98875883SSimon J. Gerraty If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating 7*98875883SSimon J. Gerraty point number or ends in 'C' compute .MAKE.JOBS as a multiple of 8*98875883SSimon J. Gerraty _SC_NPROCESSORS_ONLN 9*98875883SSimon J. Gerraty .MAKE.JOBS.C will be "yes" if -jC is supported 10*98875883SSimon J. Gerraty 11*98875883SSimon J. Gerraty2023-08-20 Simon J Gerraty <sjg@beast.crufty.net> 12*98875883SSimon J. Gerraty 13*98875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230820 14*98875883SSimon J. Gerraty Merge with NetBSD make, pick up 15*98875883SSimon J. Gerraty o make.1: note that :localtime is better for %s 16*98875883SSimon J. Gerraty o parse.c: improve error messages for invalid input. 17*98875883SSimon J. Gerraty o var.c: fix for %s:L:gmtime - set TZ=UTC and use localtime to get 18*98875883SSimon J. Gerraty correct result, it is still better to use %s:L:localtime. 19*98875883SSimon J. Gerraty 20*98875883SSimon J. Gerraty2023-08-18 Simon J Gerraty <sjg@beast.crufty.net> 21*98875883SSimon J. Gerraty 22*98875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230818 23*98875883SSimon J. Gerraty Merge with NetBSD make, pick up 24*98875883SSimon J. Gerraty o meta.c: meta_ignore - check raw path against metaIgnorePaths 25*98875883SSimon J. Gerraty to potentially skip call to realpath. 26*98875883SSimon J. Gerraty o var.c: be strict when parsing the argument of the ':mtime' modifier 27*98875883SSimon J. Gerraty o unit-tests/varmod-mtime.mk: document why '${%s:L:localtime}' 28*98875883SSimon J. Gerraty should be used to get an equivalent value to time(3). 29*98875883SSimon J. Gerraty 30*98875883SSimon J. Gerraty2023-08-16 Simon J Gerraty <sjg@beast.crufty.net> 31*98875883SSimon J. Gerraty 32*98875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230816 33*98875883SSimon J. Gerraty Merge with NetBSD make, pick up 34*98875883SSimon J. Gerraty o cond.c: clean up multiple-inclusion guards 35*98875883SSimon J. Gerraty 36*98875883SSimon J. Gerraty2023-07-25 Simon J Gerraty <sjg@beast.crufty.net> 37*98875883SSimon J. Gerraty 38*98875883SSimon J. Gerraty * unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS 39*98875883SSimon J. Gerraty if configure cannot work out how to control TZ. 40*98875883SSimon J. Gerraty Remove varmod-localtime from BROKEN_TESTS for IRIX* 41*98875883SSimon J. Gerraty 42*98875883SSimon J. Gerraty2023-07-24 Simon J Gerraty <sjg@beast.crufty.net> 43*98875883SSimon J. Gerraty 44*98875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230723 45*98875883SSimon J. Gerraty 46*98875883SSimon J. Gerraty * configure.in: fix the test for wether TZ=Europe/Berlin works. 47*98875883SSimon J. Gerraty Depending on the time of year, if run between 22:00 and 00:00 UTC 48*98875883SSimon J. Gerraty the check in configure would fail incorrectly. 49*98875883SSimon J. Gerraty Take the day into account as well. 50*98875883SSimon J. Gerraty 51*98875883SSimon J. Gerraty2023-07-18 Simon J Gerraty <sjg@beast.crufty.net> 52*98875883SSimon J. Gerraty 53*98875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 54*98875883SSimon J. Gerraty Merge with NetBSD make, pick up 55*98875883SSimon J. Gerraty o make.1: clean up wording, clarify scope of '!' in conditions 56*98875883SSimon J. Gerraty 57*98875883SSimon J. Gerraty2023-07-15 Simon J Gerraty <sjg@beast.crufty.net> 58*98875883SSimon J. Gerraty 59*98875883SSimon J. Gerraty * make-bootstrap.sh.in: set prefix 60*98875883SSimon J. Gerraty If configure is run using ksh we get unexpanded ${prefix} in 61*98875883SSimon J. Gerraty DEFAULT_SYS_PATH, by ensuring prefix is set we should still get 62*98875883SSimon J. Gerraty correct result. 63*98875883SSimon J. Gerraty 64*98875883SSimon J. Gerraty2023-07-13 Simon J Gerraty <sjg@beast.crufty.net> 65*98875883SSimon J. Gerraty 66*98875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 67*98875883SSimon J. Gerraty bump version for IRIX tweaks 68*98875883SSimon J. Gerraty 69*98875883SSimon J. Gerraty * make.h: undef OP_NONE if defined 70*98875883SSimon J. Gerraty 71*98875883SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for IRIX 72*98875883SSimon J. Gerraty 73*98875883SSimon J. Gerraty * configure.in: override INSTALL on IRIX 74*98875883SSimon J. Gerraty 75*98875883SSimon J. Gerraty2023-06-27 Simon J Gerraty <sjg@beast.crufty.net> 76*98875883SSimon J. Gerraty 77*98875883SSimon J. Gerraty * boot-strap op_test: ensure we set TEST_MAKE as we want it. 78*98875883SSimon J. Gerraty 79148ee845SSimon J. Gerraty2023-06-22 Simon J Gerraty <sjg@beast.crufty.net> 80148ee845SSimon J. Gerraty 81148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230622 82148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 83148ee845SSimon J. Gerraty o optimize string matching for ':M' and ':N' 84148ee845SSimon J. Gerraty o warn about malformed patterns in ':M', ':N' and '.if make(...)' 85148ee845SSimon J. Gerraty 86148ee845SSimon J. Gerraty2023-06-21 Simon J Gerraty <sjg@beast.crufty.net> 87148ee845SSimon J. Gerraty 88148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230621 89148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 90148ee845SSimon J. Gerraty o more extensive tests for include guards 91148ee845SSimon J. Gerraty o parse.c: if a guard is already defined a file that uses the same 92148ee845SSimon J. Gerraty guard is still guarded by it. 93148ee845SSimon J. Gerraty 94148ee845SSimon J. Gerraty2023-06-20 Simon J Gerraty <sjg@beast.crufty.net> 95148ee845SSimon J. Gerraty 96148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230620 97148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 98148ee845SSimon J. Gerraty o allow guards to be targets as well as variables 99148ee845SSimon J. Gerraty The guard targets may include variable references like 100148ee845SSimon J. Gerraty __${.PARSEDIR:tA}/${.PARSEFILE}__ 101148ee845SSimon J. Gerraty 102148ee845SSimon J. Gerraty2023-06-19 Simon J Gerraty <sjg@beast.crufty.net> 103148ee845SSimon J. Gerraty 104148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230619 105148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 106148ee845SSimon J. Gerraty o unit test for .undef of readOnly vars 107148ee845SSimon J. Gerraty o optimization for makefiles protected from multiple-inclusion 108148ee845SSimon J. Gerraty skip even opening the file after first include. 109148ee845SSimon J. Gerraty Initially this only handles makefiles guarded by a variable 110148ee845SSimon J. Gerraty target guards are next. 111148ee845SSimon J. Gerraty 112148ee845SSimon J. Gerraty2023-06-16 Simon J Gerraty <sjg@beast.crufty.net> 113148ee845SSimon J. Gerraty 114148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230616 115148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 116148ee845SSimon J. Gerraty o var.c: do not allow delete of readOnly variable 117148ee845SSimon J. Gerraty 118148ee845SSimon J. Gerraty2023-06-03 Simon J Gerraty <sjg@beast.crufty.net> 119148ee845SSimon J. Gerraty 120148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230601 121148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 122148ee845SSimon J. Gerraty o parse.c: .break takes no args 123148ee845SSimon J. Gerraty o lots of unit test updates 124148ee845SSimon J. Gerraty 125148ee845SSimon J. Gerraty2023-05-29 Simon J Gerraty <sjg@beast.crufty.net> 126148ee845SSimon J. Gerraty 127148ee845SSimon J. Gerraty * unit-tests/Makefile: skip tests that require /dev/filemon 128148ee845SSimon J. Gerraty if it does not exists - issue a warning. 129148ee845SSimon J. Gerraty 130148ee845SSimon J. Gerraty2023-05-22 Simon J Gerraty <sjg@beast.crufty.net> 131148ee845SSimon J. Gerraty 132148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230522 133148ee845SSimon J. Gerraty Fix building on darwin ppc 134148ee845SSimon J. Gerraty 135148ee845SSimon J. Gerraty * os.sh (MACHINE): Darwin powerpc cannot use `uname -m` 136148ee845SSimon J. Gerraty also recent NetBSD uses x86_64 for MACHINE_ARCH so conform. 137148ee845SSimon J. Gerraty 138148ee845SSimon J. Gerraty2023-05-15 Simon J Gerraty <sjg@beast.crufty.net> 139148ee845SSimon J. Gerraty 140148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230515 141148ee845SSimon J. Gerraty 142148ee845SSimon J. Gerraty * Makefile (COPTS.filemon_ktrace.c): NetBSD 7 needs help to 143148ee845SSimon J. Gerraty compile filemon_ktrace.c 144148ee845SSimon J. Gerraty 145148ee845SSimon J. Gerraty2023-05-13 Simon J Gerraty <sjg@beast.crufty.net> 146148ee845SSimon J. Gerraty 147148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230512 148148ee845SSimon J. Gerraty o sys.dirdeps.mk - broke after-import target 149148ee845SSimon J. Gerraty 150c1d01b5fSSimon J. Gerraty2023-05-10 Simon J Gerraty <sjg@beast.crufty.net> 151c1d01b5fSSimon J. Gerraty 152c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230510 153c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 154c1d01b5fSSimon J. Gerraty o parse.c: don't print null filename in stack traces 155c1d01b5fSSimon J. Gerraty o var.c: :mtime operate on each word in variable value 156c1d01b5fSSimon J. Gerraty 157c1d01b5fSSimon J. Gerraty2023-05-09 Simon J Gerraty <sjg@beast.crufty.net> 158c1d01b5fSSimon J. Gerraty 159c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230509 160c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 161c1d01b5fSSimon J. Gerraty o for.c: skip syntactically wrong .for loops 162c1d01b5fSSimon J. Gerraty o var.c: allow for :gmtime=${mtime} 163c1d01b5fSSimon J. Gerraty add :mtime[=timestamp] where timestamp is used if stat(2) 164c1d01b5fSSimon J. Gerraty fails, if :mtime=error stat(2) failure causes error. 165c1d01b5fSSimon J. Gerraty 166c1d01b5fSSimon J. Gerraty2023-05-05 Simon J Gerraty <sjg@beast.crufty.net> 167c1d01b5fSSimon J. Gerraty 168c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230504 169c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 170c1d01b5fSSimon J. Gerraty o compat.c: fix compile on NetBSD 7.2 171c1d01b5fSSimon J. Gerraty o make.1: fix documentation of .PREFIX to match reality and POSIX 172c1d01b5fSSimon J. Gerraty o unit-tests: improved var-scope-local 173c1d01b5fSSimon J. Gerraty 1748c973ee2SSimon J. Gerraty2023-04-14 Simon J Gerraty <sjg@beast.crufty.net> 1758c973ee2SSimon J. Gerraty 1768c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230414 1778c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 1788c973ee2SSimon J. Gerraty o minor cleanup 1798c973ee2SSimon J. Gerraty 1808c973ee2SSimon J. Gerraty2023-03-25 Simon J Gerraty <sjg@beast.crufty.net> 1818c973ee2SSimon J. Gerraty 1828c973ee2SSimon J. Gerraty * main.c: on some systems (eg OS/X) setting RLIMIT_NOFILE to 1838c973ee2SSimon J. Gerraty unlimited results in an insane number (0x7fffffffffffffff). 1848c973ee2SSimon J. Gerraty If BMAKE_NOFILE_MAX is defined, use that instead. 1858c973ee2SSimon J. Gerraty 1868c973ee2SSimon J. Gerraty2023-03-22 Simon J Gerraty <sjg@beast.crufty.net> 1878c973ee2SSimon J. Gerraty 1888c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230321 1898c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 1908c973ee2SSimon J. Gerraty * make.1: document seemingly unexplained Error code 6. 1918c973ee2SSimon J. Gerraty 1928c973ee2SSimon J. Gerraty2023-03-18 Simon J Gerraty <sjg@beast.crufty.net> 1938c973ee2SSimon J. Gerraty 1948c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230317 1958c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 1968c973ee2SSimon J. Gerraty o compat.c: CompatDeleteTarget skip .PHONY targets to be 1978c973ee2SSimon J. Gerraty consistent with JobDeleteTarget. 1988c973ee2SSimon J. Gerraty o job.c: fix memory leak in handling sysv :from=to modifiers 1998c973ee2SSimon J. Gerraty 2008c973ee2SSimon J. Gerraty2023-03-04 Simon J Gerraty <sjg@beast.crufty.net> 2018c973ee2SSimon J. Gerraty 2028c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230303 2038c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 2048c973ee2SSimon J. Gerraty o several updated unit-tests 2058c973ee2SSimon J. Gerraty 2068c973ee2SSimon J. Gerraty2023-02-22 Simon J Gerraty <sjg@beast.crufty.net> 2078c973ee2SSimon J. Gerraty 2088c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230222 2098c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 2108c973ee2SSimon J. Gerraty o unit tests for .MAKE.META.IGNORE_{FILTER,PATHS,PATTERNS} 2118c973ee2SSimon J. Gerraty 2128c973ee2SSimon J. Gerraty2023-02-20 Simon J Gerraty <sjg@beast.crufty.net> 2138c973ee2SSimon J. Gerraty 2148c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230218 2158c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 2168c973ee2SSimon J. Gerraty o var.c: fix parsing of unevaluated subexpressions with 2178c973ee2SSimon J. Gerraty unbalanced '{}' 2188c973ee2SSimon J. Gerraty 2198c973ee2SSimon J. Gerraty2023-02-17 Simon J Gerraty <sjg@beast.crufty.net> 2208c973ee2SSimon J. Gerraty 2218c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230215 2228c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 2238c973ee2SSimon J. Gerraty o inline macros for some variable names 2248c973ee2SSimon J. Gerraty o cond.c: reduce complexity of evaluating expressions 2258c973ee2SSimon J. Gerraty 226dc1b8c9aSSimon J. Gerraty2023-02-08 Simon J Gerraty <sjg@beast.crufty.net> 227dc1b8c9aSSimon J. Gerraty 228dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230208 229dc1b8c9aSSimon J. Gerraty Merge with NetBSD make, pick up 230dc1b8c9aSSimon J. Gerraty o var.c: always use SCOPE_GLOBAL for :_ to avoid problems 231dc1b8c9aSSimon J. Gerraty when it has been used within conditional expressions 232dc1b8c9aSSimon J. Gerraty 233dc1b8c9aSSimon J. Gerraty2023-01-27 Simon J Gerraty <sjg@beast.crufty.net> 234dc1b8c9aSSimon J. Gerraty 235dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230127 236dc1b8c9aSSimon J. Gerraty 237dc1b8c9aSSimon J. Gerraty * install-sh: if making directories ensure umask is set 238dc1b8c9aSSimon J. Gerraty to match mode. 239dc1b8c9aSSimon J. Gerraty 240dc1b8c9aSSimon J. Gerraty * Makefile: use DIRMODE for directories and 241dc1b8c9aSSimon J. Gerraty NONBINMODE for man pages and mk files 242dc1b8c9aSSimon J. Gerraty 2434fde40d9SSimon J. Gerraty2023-01-26 Simon J Gerraty <sjg@beast.crufty.net> 2444fde40d9SSimon J. Gerraty 2454fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230126 2464fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 2474fde40d9SSimon J. Gerraty o variables like .newline and .MAKE.{GID,PID,PPID,UID} 2484fde40d9SSimon J. Gerraty should be read-only. 2494fde40d9SSimon J. Gerraty 2504fde40d9SSimon J. Gerraty2023-01-23 Simon J Gerraty <sjg@beast.crufty.net> 2514fde40d9SSimon J. Gerraty 2524fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230123 2534fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 2544fde40d9SSimon J. Gerraty o .[NO]READONLY: for control of read-only variables 2554fde40d9SSimon J. Gerraty o .SYSPATH: for controlling the path searched for makefiles 2564fde40d9SSimon J. Gerraty 2574fde40d9SSimon J. Gerraty2023-01-20 Simon J Gerraty <sjg@beast.crufty.net> 2584fde40d9SSimon J. Gerraty 2594fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230120 2604fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 2614fde40d9SSimon J. Gerraty o allow for white-space between command specifiers @+- 2624fde40d9SSimon J. Gerraty o add more details to warning 'Extra targets ignored' 2634fde40d9SSimon J. Gerraty 2644fde40d9SSimon J. Gerraty2023-01-12 Simon J Gerraty <sjg@beast.crufty.net> 2654fde40d9SSimon J. Gerraty 2664fde40d9SSimon J. Gerraty * machine.sh: leverage os.sh rather than duplicate 2674fde40d9SSimon J. Gerraty also dispence with the $OS.$MACHINE values - we have $HOST_TARGET 2684fde40d9SSimon J. Gerraty for that purpose for the past decade or so. 2694fde40d9SSimon J. Gerraty We invariably get MACHINE and MACHINE_ARCH at runtime anyway. 2704fde40d9SSimon J. Gerraty 2714fde40d9SSimon J. Gerraty2023-01-02 Simon J Gerraty <sjg@beast.crufty.net> 2724fde40d9SSimon J. Gerraty 2734fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230101 2744fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 2754fde40d9SSimon J. Gerraty o cleanup comments, inline some LazyBuf_ methods 2764fde40d9SSimon J. Gerraty o unit-tests/ add/improve comments in tests 2774fde40d9SSimon J. Gerraty o make.1: sync list of built-in variables with reality 2784fde40d9SSimon J. Gerraty sort list of built-in variables 2794fde40d9SSimon J. Gerraty reduce indentation of the long list of variable names 2804fde40d9SSimon J. Gerraty use consistent markup for boolean flags 2814fde40d9SSimon J. Gerraty move description of .MAKE.MODE below the .MAKE.META block 2824fde40d9SSimon J. Gerraty clarify in which case an expression may omit braces 2834fde40d9SSimon J. Gerraty 2844fde40d9SSimon J. Gerraty2022-11-08 Simon J Gerraty <sjg@beast.crufty.net> 2854fde40d9SSimon J. Gerraty 2864fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20221024 2874fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 2884fde40d9SSimon J. Gerraty o change return type of unlink_file back to int 2894fde40d9SSimon J. Gerraty 2904fde40d9SSimon J. Gerraty2022-10-07 Simon J Gerraty <sjg@beast.crufty.net> 2914fde40d9SSimon J. Gerraty 2924fde40d9SSimon J. Gerraty * Makefile: Darwin and Linux can handle MANTARGET=man 2934fde40d9SSimon J. Gerraty 2944fde40d9SSimon J. Gerraty2022-09-28 Simon J Gerraty <sjg@beast.crufty.net> 2954fde40d9SSimon J. Gerraty 2964fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220928 2974fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 2984fde40d9SSimon J. Gerraty o fix more ignored returns from snprintf 2994fde40d9SSimon J. Gerraty o compile with higher warnings 3004fde40d9SSimon J. Gerraty 3014fde40d9SSimon J. Gerraty2022-09-26 Simon J Gerraty <sjg@beast.crufty.net> 3024fde40d9SSimon J. Gerraty 3034fde40d9SSimon J. Gerraty * main.c meta.c: do not ignore return from snprintf 3044fde40d9SSimon J. Gerraty 3054fde40d9SSimon J. Gerraty * meta.c strlcpy.c: we need prototype for strlcpy 3064fde40d9SSimon J. Gerraty 3074fde40d9SSimon J. Gerraty * sigcompat.c: fix unused function warnings 3084fde40d9SSimon J. Gerraty 3094fde40d9SSimon J. Gerraty2022-09-24 Simon J Gerraty <sjg@beast.crufty.net> 3104fde40d9SSimon J. Gerraty 3114fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220924 3124fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3134fde40d9SSimon J. Gerraty o fix bug in .break reset of conditional depth 3144fde40d9SSimon J. Gerraty o overhaul and simplify tracking of conditional depth 3154fde40d9SSimon J. Gerraty 3164fde40d9SSimon J. Gerraty2022-09-17 Simon J Gerraty <sjg@beast.crufty.net> 3174fde40d9SSimon J. Gerraty 3184fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220912 3194fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3204fde40d9SSimon J. Gerraty o man page updates 3214fde40d9SSimon J. Gerraty 3224fde40d9SSimon J. Gerraty2022-09-09 Simon J Gerraty <sjg@beast.crufty.net> 3234fde40d9SSimon J. Gerraty 3244fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220909 3254fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3264fde40d9SSimon J. Gerraty o update unit-tests to handle deprecation of egrep 3274fde40d9SSimon J. Gerraty o cond.c: add more details to error message for numeric comparison 3284fde40d9SSimon J. Gerraty 3294fde40d9SSimon J. Gerraty * configure.in: allow for deprecation of egrep 3304fde40d9SSimon J. Gerraty 3314fde40d9SSimon J. Gerraty * Makefile: Linux can handle MANTARGET=man 3324fde40d9SSimon J. Gerraty 3334fde40d9SSimon J. Gerraty2022-09-03 Simon J Gerraty <sjg@beast.crufty.net> 3344fde40d9SSimon J. Gerraty 3354fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220903 3364fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3374fde40d9SSimon J. Gerraty o job.c: fix handling of null bytes in output 3384fde40d9SSimon J. Gerraty 3394fde40d9SSimon J. Gerraty2022-09-02 Simon J Gerraty <sjg@beast.crufty.net> 3404fde40d9SSimon J. Gerraty 3414fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220902 3424fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3434fde40d9SSimon J. Gerraty o Allow .break to terminate a .for loop early 3444fde40d9SSimon J. Gerraty 3454fde40d9SSimon J. Gerraty2022-09-01 Simon J Gerraty <sjg@beast.crufty.net> 3464fde40d9SSimon J. Gerraty 3474fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220901 3484fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3494fde40d9SSimon J. Gerraty o var.c: fix out-of-bounds errors when parsing 3504fde40d9SSimon J. Gerraty 3514fde40d9SSimon J. Gerraty2022-08-24 Simon J Gerraty <sjg@beast.crufty.net> 3524fde40d9SSimon J. Gerraty 3534fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220824 3544fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3554fde40d9SSimon J. Gerraty o var.c: revert change to modifier parsing that breaks 3564fde40d9SSimon J. Gerraty shell variable references within ':@var@body@' 3574fde40d9SSimon J. Gerraty o adjust unit-tests 3584fde40d9SSimon J. Gerraty 3594fde40d9SSimon J. Gerraty2022-08-18 Simon J Gerraty <sjg@beast.crufty.net> 3604fde40d9SSimon J. Gerraty 3614fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220818 3624fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3634fde40d9SSimon J. Gerraty o fix exit status for '-q' (since 1994) 3644fde40d9SSimon J. Gerraty 3654fde40d9SSimon J. Gerraty2022-08-08 Simon J Gerraty <sjg@beast.crufty.net> 3664fde40d9SSimon J. Gerraty 3674fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220808 3684fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 3694fde40d9SSimon J. Gerraty o var.c: fix parsing of modifiers containing unbalanced subexpressions 3704fde40d9SSimon J. Gerraty extract parsing of ':D' and ':U' modifiers into separate function 3714fde40d9SSimon J. Gerraty 372532d4fbfSSimon J. Gerraty2022-07-26 Simon J Gerraty <sjg@beast.crufty.net> 373532d4fbfSSimon J. Gerraty 374532d4fbfSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220726 375532d4fbfSSimon J. Gerraty 376532d4fbfSSimon J. Gerraty * Auto-create objdir for bmake/unit-tests if appropriate 377532d4fbfSSimon J. Gerraty 378954401e6SSimon J. Gerraty2022-07-24 Simon J Gerraty <sjg@beast.crufty.net> 379954401e6SSimon J. Gerraty 380954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220724 381954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 382954401e6SSimon J. Gerraty o make.1: describe variable assignment and evaluation more precisely 383954401e6SSimon J. Gerraty o parse.c: fix out-of-bounds read when parsing an invalid line 384954401e6SSimon J. Gerraty o var.c: simplify return type of IsShortVarnameValid 385954401e6SSimon J. Gerraty 386954401e6SSimon J. Gerraty2022-06-12 Simon J Gerraty <sjg@beast.crufty.net> 387954401e6SSimon J. Gerraty 388954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220612 389954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 390954401e6SSimon J. Gerraty o allow to randomize build order of targets 391954401e6SSimon J. Gerraty .MAKE.MODE += randomize-targets can help uncover dependency bugs 392954401e6SSimon J. Gerraty within a makefile. 393954401e6SSimon J. Gerraty o compat.c: rename Compat_Run to Compat_MakeAll 394954401e6SSimon J. Gerraty o make.c: inline MakeBuildParent 395954401e6SSimon J. Gerraty inline make_abort, improve error details 396954401e6SSimon J. Gerraty o parse.c: reorganize Parse_Error 397954401e6SSimon J. Gerraty fix memory leak in wildcard targets and sources 398954401e6SSimon J. Gerraty separate cases in HandleDependencyTargetMundane 399954401e6SSimon J. Gerraty extract HandleSingleDependencyTargetMundane 400954401e6SSimon J. Gerraty rename loadfile to LoadFile 401954401e6SSimon J. Gerraty split IncludeFile into separate functions 402954401e6SSimon J. Gerraty condense code for searching a file in the paths 403954401e6SSimon J. Gerraty fix off-by-one error in buffer for .WAIT nodes 404954401e6SSimon J. Gerraty o str.c: condense Str_Match 405954401e6SSimon J. Gerraty make code for string matching syntactically more consistent 406954401e6SSimon J. Gerraty 4072f2a5ecdSSimon J. Gerraty2022-04-18 Simon J Gerraty <sjg@beast.crufty.net> 4082f2a5ecdSSimon J. Gerraty 4092f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220418 4102f2a5ecdSSimon J. Gerraty Merge with NetBSD make, pick up 4112f2a5ecdSSimon J. Gerraty o ignore '.POSIX:' if not in first non-comment line 4122f2a5ecdSSimon J. Gerraty of Makefile as specified by POSIX. 4132f2a5ecdSSimon J. Gerraty add unit-tests for above. 4142f2a5ecdSSimon J. Gerraty o meta.c: make it easier to find usage of identifiers 4152f2a5ecdSSimon J. Gerraty o targ.c: add .USEBEFORE to Targ_PrintType 4162f2a5ecdSSimon J. Gerraty 4172f2a5ecdSSimon J. Gerraty2022-04-14 Simon J Gerraty <sjg@beast.crufty.net> 4182f2a5ecdSSimon J. Gerraty 4192f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220414 4202f2a5ecdSSimon J. Gerraty 4212f2a5ecdSSimon J. Gerraty * unit-tests/Makefile: simplify checks for shells with 4222f2a5ecdSSimon J. Gerraty BROKEN_TESTS, this helps with other Linux distros that 4232f2a5ecdSSimon J. Gerraty use dash. 4242f2a5ecdSSimon J. Gerraty 4251d3f2ddcSSimon J. Gerraty2022-03-30 Simon J Gerraty <sjg@beast.crufty.net> 4261d3f2ddcSSimon J. Gerraty 4271d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220330 4281d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 4291d3f2ddcSSimon J. Gerraty o var.c: fix spacing, and a typo in a test 4301d3f2ddcSSimon J. Gerraty 4311d3f2ddcSSimon J. Gerraty2022-03-26 Simon J Gerraty <sjg@beast.crufty.net> 4321d3f2ddcSSimon J. Gerraty 4331d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220326 4341d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 4351d3f2ddcSSimon J. Gerraty o parse.c: try to include 'posix.mk' the first time 4361d3f2ddcSSimon J. Gerraty .POSIX: is encountered, to allow for beter POSIX compliance. 4371d3f2ddcSSimon J. Gerraty o var.c: make debug logs more readable 4381d3f2ddcSSimon J. Gerraty prefer 'long long' over 'long' on 32-bit C99 platforms 4391d3f2ddcSSimon J. Gerraty fix crash on .undef of an environment variable 4401d3f2ddcSSimon J. Gerraty 4411d3f2ddcSSimon J. Gerraty2022-03-03 Simon J Gerraty <sjg@beast.crufty.net> 4421d3f2ddcSSimon J. Gerraty 4431d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220303 4441d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 4451d3f2ddcSSimon J. Gerraty o tell meta mode unit tests not to expect filemon 4461d3f2ddcSSimon J. Gerraty o cond.c: make debug logging for comparisons less technical 4471d3f2ddcSSimon J. Gerraty o lst.c: fix mem leak in Lst_Remove 4481d3f2ddcSSimon J. Gerraty o str.c: make code for string matching syntactically more consistent 4491d3f2ddcSSimon J. Gerraty o var.c: simplify ParseModifier_Match 4501d3f2ddcSSimon J. Gerraty 4511d3f2ddcSSimon J. Gerraty2022-02-14 Simon J Gerraty <sjg@beast.crufty.net> 4521d3f2ddcSSimon J. Gerraty 4531d3f2ddcSSimon J. Gerraty * unit-tests/Makefile: control MAKESYSPATH for deptgt-phony 4541d3f2ddcSSimon J. Gerraty 4551d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220214 4561d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 4571d3f2ddcSSimon J. Gerraty o cond.c: simplify control flow in CondParser_Comparison 4581d3f2ddcSSimon J. Gerraty o job.c: fix echoing of command with '-' in silent target in jobs mode 4591d3f2ddcSSimon J. Gerraty o main.c: prefix the warning about read-only .OBJDIR with a colon 4601d3f2ddcSSimon J. Gerraty o parse.c: remove redundant conditions 4611d3f2ddcSSimon J. Gerraty o var.c: simplify control flow in ModifyWord_SysVSubst 4621d3f2ddcSSimon J. Gerraty 463a6f0e10bSSimon J. Gerraty2022-02-08 Simon J Gerraty <sjg@beast.crufty.net> 464a6f0e10bSSimon J. Gerraty 465a6f0e10bSSimon J. Gerraty * unit-tests/Makefile: disable opt-debug-x-trace on Linux if there 466a6f0e10bSSimon J. Gerraty is any chance we have dash as .SHELL 467a6f0e10bSSimon J. Gerraty 468a6f0e10bSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220208 469a6f0e10bSSimon J. Gerraty Merge with NetBSD make, pick up 470a6f0e10bSSimon J. Gerraty o more unit tests 471a6f0e10bSSimon J. Gerraty o meta.c: use a variable to hold command line to be filtered 472a6f0e10bSSimon J. Gerraty to avoid any side effects from content of command line. 473a6f0e10bSSimon J. Gerraty 4749f45a3c8SSimon J. Gerraty2022-02-04 Simon J Gerraty <sjg@beast.crufty.net> 4759f45a3c8SSimon J. Gerraty 4769f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220204 4779f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 4789f45a3c8SSimon J. Gerraty o use unsigned consistently for line numbers, avoid the need for %z 4799f45a3c8SSimon J. Gerraty o parse.c: do not step off end of input in Parse_IsVar 4809f45a3c8SSimon J. Gerraty when checking for target local variable assignments 4819f45a3c8SSimon J. Gerraty 4829f45a3c8SSimon J. Gerraty2022-02-02 Simon J Gerraty <sjg@beast.crufty.net> 4839f45a3c8SSimon J. Gerraty 4849f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220202 4859f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 4869f45a3c8SSimon J. Gerraty o remove redundant declaration of HashIter_Init 4879f45a3c8SSimon J. Gerraty o make DEBUG0 simpler 4889f45a3c8SSimon J. Gerraty 4899f45a3c8SSimon J. Gerraty2022-01-30 Simon J Gerraty <sjg@beast.crufty.net> 4909f45a3c8SSimon J. Gerraty 4919f45a3c8SSimon J. Gerraty * cast gn->lineno to avoid %z 4929f45a3c8SSimon J. Gerraty 4939f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220130 4949f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 4959f45a3c8SSimon J. Gerraty o more unit tests 4969f45a3c8SSimon J. Gerraty o make GNode lineno unsigned to please lint 4979f45a3c8SSimon J. Gerraty o print location of recursive variable references in commands 4989f45a3c8SSimon J. Gerraty o print "stack trace" (makefile includes) on fatal errors 4999f45a3c8SSimon J. Gerraty o make.1: refine documentation for target local assignments 5009f45a3c8SSimon J. Gerraty 5019f45a3c8SSimon J. Gerraty2022-01-28 Simon J Gerraty <sjg@beast.crufty.net> 5029f45a3c8SSimon J. Gerraty 5039f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220128 5049f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 5059f45a3c8SSimon J. Gerraty o inline functions called only once 5069f45a3c8SSimon J. Gerraty o for.c: clean up AddEscape for building the body of a .for loop 5079f45a3c8SSimon J. Gerraty o hash.c: merge duplicate code for finding an entry in a hash table 5089f45a3c8SSimon J. Gerraty replace HashEntry_KeyEquals with strncmp 5099f45a3c8SSimon J. Gerraty o make.1: document quirks of target local variable assignments. 5109f45a3c8SSimon J. Gerraty o parse.c: cleanup white-space 5119f45a3c8SSimon J. Gerraty 5129f45a3c8SSimon J. Gerraty2022-01-26 Simon J Gerraty <sjg@beast.crufty.net> 5139f45a3c8SSimon J. Gerraty 5149f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220126 5159f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 5169f45a3c8SSimon J. Gerraty o allow setting target local variables 5179f45a3c8SSimon J. Gerraty o more unit tests 5189f45a3c8SSimon J. Gerraty o add missing newline after "cannot continue" message 5199f45a3c8SSimon J. Gerraty o meta.c: clean up eat_dots 5209f45a3c8SSimon J. Gerraty o parse.c: fix filename in warning about duplicate script 5219f45a3c8SSimon J. Gerraty o var.c: when expanding nested variables, check simple things first 5229f45a3c8SSimon J. Gerraty 5239f45a3c8SSimon J. Gerraty2022-01-16 Simon J Gerraty <sjg@beast.crufty.net> 5249f45a3c8SSimon J. Gerraty 5259f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220116 5269f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 5279f45a3c8SSimon J. Gerraty o fix for unit-tests/varname-makeflags on non-BSD systems 5289f45a3c8SSimon J. Gerraty o use Var_Exists rather than Var_Value where appropriate 5299f45a3c8SSimon J. Gerraty o remove unnecessary functions for expanding variable names 5309f45a3c8SSimon J. Gerraty o cond.c: inline EvalBare 5319f45a3c8SSimon J. Gerraty o main.c: lint cleanup 5329f45a3c8SSimon J. Gerraty o parse.c: condense code in Parse_IsVar 5339f45a3c8SSimon J. Gerraty use islower for parsing directives (none have upper case) 5349f45a3c8SSimon J. Gerraty 5359f45a3c8SSimon J. Gerraty2022-01-12 Simon J Gerraty <sjg@beast.crufty.net> 5369f45a3c8SSimon J. Gerraty 5379f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220112 5389f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 5399f45a3c8SSimon J. Gerraty o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before 5409f45a3c8SSimon J. Gerraty comparion, rarely needed but useful when it is. 5419f45a3c8SSimon J. Gerraty 5429f45a3c8SSimon J. Gerraty2022-01-10 Simon J Gerraty <sjg@beast.crufty.net> 5439f45a3c8SSimon J. Gerraty 5449f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220110 5459f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 5469f45a3c8SSimon J. Gerraty o inline Buf_Clear 5479f45a3c8SSimon J. Gerraty o remove redundant braces 5489f45a3c8SSimon J. Gerraty o rename and inline Targ_Precious 5499f45a3c8SSimon J. Gerraty o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf 5509f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops 5519f45a3c8SSimon J. Gerraty fix reported line numbers of continuation lines 5529f45a3c8SSimon J. Gerraty add details about .for loop variables to stack traces 5539f45a3c8SSimon J. Gerraty o job.c: reduce code for initializing error handling in shell 5549f45a3c8SSimon J. Gerraty o main.c: in Cmd_Exec, return error message instead of format string 5559f45a3c8SSimon J. Gerraty have as few statements as possible between va_start and va_end 5569f45a3c8SSimon J. Gerraty add debug logging for capturing the output of external commands 5579f45a3c8SSimon J. Gerraty o make.c: use consistent variable names for varargs 5589f45a3c8SSimon J. Gerraty o make_malloc.c: remove duplicate code from bmake_strdup 5599f45a3c8SSimon J. Gerraty o parse.c: add missing printflike annotations 5609f45a3c8SSimon J. Gerraty remove redundant lines from stack traces 5619f45a3c8SSimon J. Gerraty fix stack traces in -dp mode 5629f45a3c8SSimon J. Gerraty reduce confusing code in ParseForLoop 5639f45a3c8SSimon J. Gerraty fix line number in debug log after returning from a file 5649f45a3c8SSimon J. Gerraty rename IFile and its fields to match their actual content 5659f45a3c8SSimon J. Gerraty clean up ParseDependencySources 5669f45a3c8SSimon J. Gerraty o var.c: shorten ApplyModifier_Assign 5679f45a3c8SSimon J. Gerraty rename is_shell_metachar, fix character conversion warning 5689f45a3c8SSimon J. Gerraty merge calls to ApplyModifier_Time 5699f45a3c8SSimon J. Gerraty merge duplicate code for modifiers 'gmtime' and 'localtime' 5709f45a3c8SSimon J. Gerraty 5719f45a3c8SSimon J. Gerraty2022-01-04 Simon J Gerraty <sjg@beast.crufty.net> 5729f45a3c8SSimon J. Gerraty 5739f45a3c8SSimon J. Gerraty * parse.c: loadfile restore extra byte in buffer. 5749f45a3c8SSimon J. Gerraty 5759f45a3c8SSimon J. Gerraty2022-01-01 Simon J Gerraty <sjg@beast.crufty.net> 5769f45a3c8SSimon J. Gerraty 5779f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220101 5789f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 5799f45a3c8SSimon J. Gerraty o more unit-tests 5809f45a3c8SSimon J. Gerraty o remove unnecessary words from command line options in CmdOpts 5819f45a3c8SSimon J. Gerraty o rename eunlink to unlink_file 5829f45a3c8SSimon J. Gerraty o cond.c: make ParseWord in condition parser simpler 5839f45a3c8SSimon J. Gerraty internally return false for irrelevant leaves in conditions 5849f45a3c8SSimon J. Gerraty replace table for function lookup in conditions with simple code 5859f45a3c8SSimon J. Gerraty merge duplicate types CondEvalResult and CondResult 5869f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops and .include directives 5879f45a3c8SSimon J. Gerraty o main.c: constify cached_realpath 5889f45a3c8SSimon J. Gerraty clean up Cmd_Exec 5899f45a3c8SSimon J. Gerraty o parse.c: sync API documentation 5909f45a3c8SSimon J. Gerraty fix error message when reading more than 1 GB from stdin 5919f45a3c8SSimon J. Gerraty clean up parsing of makefiles 5929f45a3c8SSimon J. Gerraty fix line number in error message about open conditionals 5939f45a3c8SSimon J. Gerraty unexport types VarAssignOp and VarAssign 5949f45a3c8SSimon J. Gerraty clean up function names 5959f45a3c8SSimon J. Gerraty remove redundant parameters in dependency parsing functions 5969f45a3c8SSimon J. Gerraty reduce scope of the list of wildcard target names 5979f45a3c8SSimon J. Gerraty extract OP_NOTARGET into separate function 5989f45a3c8SSimon J. Gerraty clean up variable names for parsing dependency lines 5999f45a3c8SSimon J. Gerraty make debug logging a bit more human-friendly 6009f45a3c8SSimon J. Gerraty o var.c: condense code in ApplyModifier_Assign 6019f45a3c8SSimon J. Gerraty 6029f45a3c8SSimon J. Gerraty2021-12-21 Simon J Gerraty <sjg@beast.crufty.net> 6039f45a3c8SSimon J. Gerraty 6049f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211221 6059f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 6069f45a3c8SSimon J. Gerraty o more unit-tests 6079f45a3c8SSimon J. Gerraty o style cleanup 6089f45a3c8SSimon J. Gerraty o in CLEANUP mode, free interned strings at the very end 6099f45a3c8SSimon J. Gerraty o fix memory leak for filenames in .for loops 6109f45a3c8SSimon J. Gerraty o buf.c: avoid memory leak 6119f45a3c8SSimon J. Gerraty o cond.c: condense CondParser_ComparisonOp 6129f45a3c8SSimon J. Gerraty o hash.c: change return type of HashTable_Set to void 6139f45a3c8SSimon J. Gerraty o job.c: change return type of Compat_RunCommand from int to bool 6149f45a3c8SSimon J. Gerraty o main.c: remove bmake_free 6159f45a3c8SSimon J. Gerraty o parse.c: condense repetetive code in ParseDirective 6169f45a3c8SSimon J. Gerraty remove dead code for handling traditional include directives 6179f45a3c8SSimon J. Gerraty clean up parsing of variable assignments 6189f45a3c8SSimon J. Gerraty remove unreachable code for parsing the dependency operator 6199f45a3c8SSimon J. Gerraty clean up loading of files 6209f45a3c8SSimon J. Gerraty fix memory leak in IncludeFile 6219f45a3c8SSimon J. Gerraty o var.c: fix memory leak when parsing a variable name 6229f45a3c8SSimon J. Gerraty fix memory leak from ${.SUFFIXES} 6239f45a3c8SSimon J. Gerraty reduce memory allocation in modifier ':?' and ':C' 6249f45a3c8SSimon J. Gerraty condense RegexReplace for the modifier ':C' and avoid strlen 6259f45a3c8SSimon J. Gerraty merge duplicate code for memory handling in Var_Parse 6269f45a3c8SSimon J. Gerraty distinguish between short-lived and environment variables 6279f45a3c8SSimon J. Gerraty rename VarFreeEnv to VarFreeShortLived 6289f45a3c8SSimon J. Gerraty 62912904384SSimon J. Gerraty2021-12-15 Simon J Gerraty <sjg@beast.crufty.net> 63012904384SSimon J. Gerraty 63112904384SSimon J. Gerraty * cond.c: fix mem leak in CondParser_Leaf 63212904384SSimon J. Gerraty 63312904384SSimon J. Gerraty2021-12-12 Simon J Gerraty <sjg@beast.crufty.net> 63412904384SSimon J. Gerraty 63512904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211212 63612904384SSimon J. Gerraty Merge with NetBSD make, pick up 63712904384SSimon J. Gerraty o rename Parse_SetInput to Parse_PushInput 63812904384SSimon J. Gerraty o remove remove period from end of error messages and warnings 63912904384SSimon J. Gerraty to be more consistent 64012904384SSimon J. Gerraty o arch.c: use simpler memory management for parsing archive members 64112904384SSimon J. Gerraty o cond.c: rework and reduce recursion 64212904384SSimon J. Gerraty o for.c: rename some functions to better reflect purpose 64312904384SSimon J. Gerraty o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string. 64412904384SSimon J. Gerraty o var.c: in parse errors, mark whitespace more clearly 64512904384SSimon J. Gerraty inline ParseEmptyArg into CondParser_FuncCallEmpty 64612904384SSimon J. Gerraty minimize calls to LazyBuf_Get in ParseVarnameLong 64712904384SSimon J. Gerraty treat .SUFFIXES as a read-only variable 64812904384SSimon J. Gerraty 64912904384SSimon J. Gerraty2021-12-07 Simon J Gerraty <sjg@beast.crufty.net> 65012904384SSimon J. Gerraty 65112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211207 65212904384SSimon J. Gerraty Merge with NetBSD make, pick up 65312904384SSimon J. Gerraty o inline HashIter_Init 65412904384SSimon J. Gerraty o parse.c: inline common subexpression in ParseRawLine 65512904384SSimon J. Gerraty o var.c: merge branches for modifiers ':D' and ':U' 65612904384SSimon J. Gerraty extract common code into Expr_Words 65712904384SSimon J. Gerraty extract common code into Expr_Str 65812904384SSimon J. Gerraty move low-level implementation details out of Var_Parse 65912904384SSimon J. Gerraty 66012904384SSimon J. Gerraty2021-12-06 Simon J Gerraty <sjg@beast.crufty.net> 66112904384SSimon J. Gerraty 66212904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211206 66312904384SSimon J. Gerraty Merge with NetBSD make, pick up 66412904384SSimon J. Gerraty o add unit-tests/varmod-loop-delete 66512904384SSimon J. Gerraty o for.c: inline Str_Words - reduce memory allocation 66612904384SSimon J. Gerraty o parse.c: do not try to expand fixed variable names 66712904384SSimon J. Gerraty only allocate the name of an included file if necessary 66812904384SSimon J. Gerraty clean up ParseInclude 66912904384SSimon J. Gerraty o var.c: fix use-after-free in modifier ':@' 67012904384SSimon J. Gerraty save a memory allocation in each modifier ':O' and ':u' 67112904384SSimon J. Gerraty save a memory allocation in the modifier ':[...]' 67212904384SSimon J. Gerraty in UnexportVars, replace Str_Words with Substring_Words to 67312904384SSimon J. Gerraty reduce allocations and copying. 67412904384SSimon J. Gerraty 67512904384SSimon J. Gerraty2021-12-04 Simon J Gerraty <sjg@beast.crufty.net> 67612904384SSimon J. Gerraty 67712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211204 67812904384SSimon J. Gerraty Merge with NetBSD make, pick up 67912904384SSimon J. Gerraty o flesh out a number of tests 68012904384SSimon J. Gerraty o replace enums with bitfields, this simplifies a lot of code. 68112904384SSimon J. Gerraty o var.c: refactor ParseModifierPartSubst 68212904384SSimon J. Gerraty 68312904384SSimon J. Gerraty2021-10-24 Simon J Gerraty <sjg@beast.crufty.net> 68412904384SSimon J. Gerraty 68512904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211024 68612904384SSimon J. Gerraty Merge with NetBSD make, pick up 68712904384SSimon J. Gerraty o Punt on write errors - ENOSPC etc. 68812904384SSimon J. Gerraty 68912904384SSimon J. Gerraty2021-10-22 Simon J Gerraty <sjg@beast.crufty.net> 69012904384SSimon J. Gerraty 69112904384SSimon J. Gerraty * configure.in: use_defshell, set both DEFSHELL_INDEX 69212904384SSimon J. Gerraty and defshell_path if appropriate. 69312904384SSimon J. Gerraty This makes it easier to use say the KSH specification with 69412904384SSimon J. Gerraty and alternate path for the shell. 69512904384SSimon J. Gerraty 69612904384SSimon J. Gerraty * configure.in compat.c: for SCO we need to force UseShell 69712904384SSimon J. Gerraty 69812904384SSimon J. Gerraty * configure.in: SCO /bin/sh is not usable, provide a list of 69912904384SSimon J. Gerraty alternatives for use as .SHELL. 70012904384SSimon J. Gerraty We still have to mark some tests as broken, plus more if we end up 70112904384SSimon J. Gerraty with ksh as .SHELL. 70212904384SSimon J. Gerraty Issue a warning about skipped tests. 70312904384SSimon J. Gerraty 70412904384SSimon J. Gerraty * boot-strap: leave TOOL_DIFF to configure 70512904384SSimon J. Gerraty 70612904384SSimon J. Gerraty * configure.in: on SCO native cc is not usable, 70712904384SSimon J. Gerraty gcc is to be found in /usr/gnu/bin 70812904384SSimon J. Gerraty and while ancient is at least able to compile bmake. 70912904384SSimon J. Gerraty Thus we add /usr/gnu/bin to PATH if it exists, and later 71012904384SSimon J. Gerraty check if $CC would have been found via $PATH. 71112904384SSimon J. Gerraty If not we set CC to the full path of $CC. 71212904384SSimon J. Gerraty Also gnu diff is known to support -u, so if it exists use it. 71312904384SSimon J. Gerraty 71412904384SSimon J. Gerraty * configure.in: move getopt to AC_REPLACE_FUNCS 71512904384SSimon J. Gerraty also add AC_C_INLINE - in an attempt to compile using 71612904384SSimon J. Gerraty native cc on SCO. 71712904384SSimon J. Gerraty 71812904384SSimon J. Gerraty * configure.in: check for stresep as well as strsep, since we 71912904384SSimon J. Gerraty define the later to the former if necessary, and if we have to 72012904384SSimon J. Gerraty provide stresep we also need to provide a prototype. 72112904384SSimon J. Gerraty 72212904384SSimon J. Gerraty * configure.in: we no longer need to worry about 72312904384SSimon J. Gerraty sys/cdefs.h providing __RCSID which simplifies things quite a bit. 72412904384SSimon J. Gerraty 72512904384SSimon J. Gerraty * make.h: make sure we have __RCSID 72612904384SSimon J. Gerraty 72712904384SSimon J. Gerraty * unit-tests/Makefile.config.in: add TOOL_DIFF so configure 72812904384SSimon J. Gerraty can control it. 72912904384SSimon J. Gerraty 73012904384SSimon J. Gerraty2021-10-20 Simon J Gerraty <sjg@beast.crufty.net> 73112904384SSimon J. Gerraty 73212904384SSimon J. Gerraty * VERSION: 20211020 73312904384SSimon J. Gerraty Merge with NetBSD make, pick up 73412904384SSimon J. Gerraty o confirm sync of unit-tests 73512904384SSimon J. Gerraty 73612904384SSimon J. Gerraty2021-10-18 Simon J Gerraty <sjg@beast.crufty.net> 73712904384SSimon J. Gerraty 73812904384SSimon J. Gerraty * configure.in: check if timezone Europe/Berlin is supported 73912904384SSimon J. Gerraty if not try UTC-1 74012904384SSimon J. Gerraty * configure.in: if .OBJDIR is $srcdir/obj we need to create a 74112904384SSimon J. Gerraty symlink unit-tests -> ../unit-tests/obj so that 74212904384SSimon J. Gerraty unit-tests/Makefile.config is put in the right place. 74312904384SSimon J. Gerraty * refine filtering of .OBJDIR in unit-tests 74412904384SSimon J. Gerraty 74512904384SSimon J. Gerraty2021-10-16 Simon J Gerraty <sjg@beast.crufty.net> 74612904384SSimon J. Gerraty 74712904384SSimon J. Gerraty * Fix unit-tests on Minix 3.2.0 74812904384SSimon J. Gerraty o job.c: do not punt if read of token pipe fails for EAGAIN. 74912904384SSimon J. Gerraty On Minix at least, we are not ready to read the childExitJob pipe 75012904384SSimon J. Gerraty when poll says we are. 75112904384SSimon J. Gerraty There should actually be no reason for this pipe to be 75212904384SSimon J. Gerraty non-blocking, but while that works fine on {Net,Free}BSD it 75312904384SSimon J. Gerraty breaks another test case on Minix. 75412904384SSimon J. Gerraty o unit-tests/Makefile: deal with variants of error messages 75512904384SSimon J. Gerraty and use of obj as .OBJDIR 75612904384SSimon J. Gerraty 75712904384SSimon J. Gerraty2021-10-14 Simon J Gerraty <sjg@beast.crufty.net> 75812904384SSimon J. Gerraty 75912904384SSimon J. Gerraty * configure.in: add sigaction to AC_REPLACE_FUNCS 76012904384SSimon J. Gerraty we also need to check for sigaddset etc just for the benefit of 76112904384SSimon J. Gerraty sigact.c 76212904384SSimon J. Gerraty 76312904384SSimon J. Gerraty * Add sigact.c as sigaction.c so this "just works". 76412904384SSimon J. Gerraty This should have been done back when bmake_signal started using 76512904384SSimon J. Gerraty sigaction (I only just noticed that sigact.c wasn't here ;-) 76612904384SSimon J. Gerraty Note: I no longer have access to any system where this would matter. 76712904384SSimon J. Gerraty 76812904384SSimon J. Gerraty2021-10-13 Simon J Gerraty <sjg@beast.crufty.net> 76912904384SSimon J. Gerraty 77012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211011 77112904384SSimon J. Gerraty 77212904384SSimon J. Gerraty * Makefile: cleanup a little 77312904384SSimon J. Gerraty 77412904384SSimon J. Gerraty * configure.in: check for sigsetmask 77512904384SSimon J. Gerraty 77612904384SSimon J. Gerraty2021-10-01 Simon J Gerraty <sjg@beast.crufty.net> 77712904384SSimon J. Gerraty 77812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211001 77912904384SSimon J. Gerraty Merge with NetBSD make, pick up 78012904384SSimon J. Gerraty o reduce locations reducing text size 78112904384SSimon J. Gerraty o remove unnecessary const 78212904384SSimon J. Gerraty o cond.c: fix lint warning on i386 78312904384SSimon J. Gerraty do not allow unquoted 'left == right' after modifier ':?' 78412904384SSimon J. Gerraty o hash.c: fix build for DEBUG_HASH_LOOKUP 78512904384SSimon J. Gerraty o var.c: fix memory leak in error case of the ':?' modifier 78612904384SSimon J. Gerraty 78712904384SSimon J. Gerraty2021-09-11 Simon J Gerraty <sjg@beast.crufty.net> 78812904384SSimon J. Gerraty 78912904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210911 79012904384SSimon J. Gerraty Merge with NetBSD make, pick up 79112904384SSimon J. Gerraty o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval 79212904384SSimon J. Gerraty 79312904384SSimon J. Gerraty2021-09-08 Simon J Gerraty <sjg@beast.crufty.net> 79412904384SSimon J. Gerraty 79512904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210906 79612904384SSimon J. Gerraty Merge with NetBSD make, pick up 79712904384SSimon J. Gerraty o more unit tests 79812904384SSimon J. Gerraty o lint cleanup 79912904384SSimon J. Gerraty o rename some functions to better fit purpose 80012904384SSimon J. Gerraty o for.c: cleanup - remove unnecessary optimization 80112904384SSimon J. Gerraty fix embedded newlines 80212904384SSimon J. Gerraty o parse.c: correct case for CVS/RCS 80312904384SSimon J. Gerraty 80412904384SSimon J. Gerraty2021-08-11 Simon J Gerraty <sjg@beast.crufty.net> 80512904384SSimon J. Gerraty 80612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210808 80712904384SSimon J. Gerraty Merge with NetBSD make, pick up 80812904384SSimon J. Gerraty o var.c: remove redundant initialization in ApplyModifier_Order 80912904384SSimon J. Gerraty 81012904384SSimon J. Gerraty * mk/options.mk: issue warning for incorrect usage 81112904384SSimon J. Gerraty 81212904384SSimon J. Gerraty2021-08-03 Simon J Gerraty <sjg@beast.crufty.net> 81312904384SSimon J. Gerraty 81412904384SSimon J. Gerraty * var.c: use long for :On if we don't have a 64bit int type 81512904384SSimon J. Gerraty 81612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210803 81712904384SSimon J. Gerraty Merge with NetBSD make, pick up 81812904384SSimon J. Gerraty o rework varmod-order tests to avoid qsort instability 81912904384SSimon J. Gerraty o make.1: clarify :On entry 82012904384SSimon J. Gerraty 82112904384SSimon J. Gerraty2021-07-31 Simon J Gerraty <sjg@beast.crufty.net> 82212904384SSimon J. Gerraty 82312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210731 82412904384SSimon J. Gerraty Merge with NetBSD make, pick up 82512904384SSimon J. Gerraty o fix some lint issues 82612904384SSimon J. Gerraty o more unit tests 82712904384SSimon J. Gerraty o var.c: rework of ApplyModifier_Order 82812904384SSimon J. Gerraty 82912904384SSimon J. Gerraty2021-07-30 Simon J Gerraty <sjg@beast.crufty.net> 83012904384SSimon J. Gerraty 83112904384SSimon J. Gerraty * util.c: add strto*l if HAVE_STRTO*L not defined 83212904384SSimon J. Gerraty 83312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210730 83412904384SSimon J. Gerraty Merge with NetBSD make, pick up 83512904384SSimon J. Gerraty o var.c: add :On and :Orn for numeric sort 83612904384SSimon J. Gerraty disabled if no 64bit type available. 83712904384SSimon J. Gerraty o _strtol.h: to implement strto*l functions 83812904384SSimon J. Gerraty 83912904384SSimon J. Gerraty2021-07-04 Simon J Gerraty <sjg@beast.crufty.net> 84012904384SSimon J. Gerraty 84112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210704 84212904384SSimon J. Gerraty Merge with NetBSD make, pick up 84312904384SSimon J. Gerraty o unit-tests: fix some tests to be more portable 84412904384SSimon J. Gerraty - job-output-null not all shells do the same number of write calls 84512904384SSimon J. Gerraty - objdir-writable if TMPDIR is set; /tmp may not be usable 84612904384SSimon J. Gerraty 84712904384SSimon J. Gerraty2021-07-01 Simon J Gerraty <sjg@beast.crufty.net> 84812904384SSimon J. Gerraty 84912904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210701 85012904384SSimon J. Gerraty Merge with NetBSD make, pick up 85112904384SSimon J. Gerraty o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped; 85212904384SSimon J. Gerraty some tests just cannot work in some environments. 85312904384SSimon J. Gerraty o buf.c: simpler upper bound for length in Buf_AddInt 85412904384SSimon J. Gerraty o cond.c: fix grammar in error message for malformed conditional 85512904384SSimon J. Gerraty o for.c: prevent newline injection (from ${.newline}) in .for loops 85612904384SSimon J. Gerraty o var.c: use more practical data type in RegexReplace 85712904384SSimon J. Gerraty (avoid need for %zu) 85812904384SSimon J. Gerraty extract RegexReplace from ModifyWord_SubstRegex 85912904384SSimon J. Gerraty 860b0c40a00SSimon J. Gerraty2021-06-21 Simon J Gerraty <sjg@beast.crufty.net> 861b0c40a00SSimon J. Gerraty 862b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210621 863b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 864b0c40a00SSimon J. Gerraty o var.c: only report error for unmatched regex subexpression 865b0c40a00SSimon J. Gerraty when linting (-dL) since we cannot tell when an unmatched 866b0c40a00SSimon J. Gerraty subexpression is an expected result. 867b0c40a00SSimon J. Gerraty o move unmatched regex subexpression tests to 868b0c40a00SSimon J. Gerraty varmod-subst-regex.mk and enable strict (lint) mode 869b0c40a00SSimon J. Gerraty 870b0c40a00SSimon J. Gerraty2021-06-16 Simon J Gerraty <sjg@beast.crufty.net> 871b0c40a00SSimon J. Gerraty 872b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210616 873b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 874b0c40a00SSimon J. Gerraty o more unit tests 875b0c40a00SSimon J. Gerraty o cond.c: rename If_Eval to EvalBare 876b0c40a00SSimon J. Gerraty improve function names for parsing conditions 877b0c40a00SSimon J. Gerraty o job.c: fix error handling of targets that cannot be made 878b0c40a00SSimon J. Gerraty o var.c: uncompress code in ApplyModifier_Unique 879b0c40a00SSimon J. Gerraty 880b0c40a00SSimon J. Gerraty2021-05-18 Simon J Gerraty <sjg@beast.crufty.net> 881b0c40a00SSimon J. Gerraty 882b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210518 883b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 884b0c40a00SSimon J. Gerraty o fix unit-tests/opt-chdir to cope with /nonexistent existing. 885b0c40a00SSimon J. Gerraty o job.c: Print -de error information when running multiple jobs 886b0c40a00SSimon J. Gerraty 887b0c40a00SSimon J. Gerraty2021-04-20 Simon J Gerraty <sjg@beast.crufty.net> 888b0c40a00SSimon J. Gerraty 889b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210420 890b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 891b0c40a00SSimon J. Gerraty o use C99 bool type 892b0c40a00SSimon J. Gerraty o convert VarEvalFlags back into an enum 893b0c40a00SSimon J. Gerraty o cond.c: do not complain when skipping the condition 'no >= 10' 894b0c40a00SSimon J. Gerraty o hash.c: avoid allocating memory for simple variable names 895b0c40a00SSimon J. Gerraty o job.c: use distinct wording for writing to the shell commands file 896b0c40a00SSimon J. Gerraty remove type name for the abort status in job handling 897b0c40a00SSimon J. Gerraty rename PrintOutput to PrintFilteredOutput to avoid confusion 898b0c40a00SSimon J. Gerraty o main.c: avoid double slash in name of temporary directory 899b0c40a00SSimon J. Gerraty o var.c: use straight quotes for error 'Bad conditional expression' 900b0c40a00SSimon J. Gerraty reduce memory allocations in the modifiers ':D' and ':U' 901b0c40a00SSimon J. Gerraty rename members of ModifyWord_LoopArgs 902b0c40a00SSimon J. Gerraty clean up pattern flags for the modifiers ':S' and ':C' 903b0c40a00SSimon J. Gerraty reduce memory allocation and strlen calls in modifier ':from=to' 904b0c40a00SSimon J. Gerraty in the ':Q' modifier, only allocate memory if necessary 905b0c40a00SSimon J. Gerraty improve performance for LazyBuf 906b0c40a00SSimon J. Gerraty remove redundant parameter from ParseVarnameLong 907b0c40a00SSimon J. Gerraty migrate ParseModifierPart to use Substring 908b0c40a00SSimon J. Gerraty avoid unnecessary calls to strlen when evaluating modifiers 909b0c40a00SSimon J. Gerraty migrate ModifyWord functions to use Substring 910b0c40a00SSimon J. Gerraty migrate handling of the modifier ':S,from,to,' to Substring 911b0c40a00SSimon J. Gerraty reduce debug logging and memory allocation for ${:U...} 912b0c40a00SSimon J. Gerraty reduce verbosity of the -dv debug logging for standard cases 913b0c40a00SSimon J. Gerraty clean up debug logging for ':M' and ':N' 914b0c40a00SSimon J. Gerraty disallow '$' in the variable name of the modifier ':@' 915b0c40a00SSimon J. Gerraty simplify access to the name of an expression during evaluation 916b0c40a00SSimon J. Gerraty 917b0c40a00SSimon J. Gerraty2021-03-30 Simon J Gerraty <sjg@beast.crufty.net> 918b0c40a00SSimon J. Gerraty 919b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210330 920b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 921b0c40a00SSimon J. Gerraty o replace enum bit-field with struct bit-field for VarEvalFlags 922b0c40a00SSimon J. Gerraty o rename VARE_NONE to VARE_PARSE_ONLY 923b0c40a00SSimon J. Gerraty o var.c: rename ApplyModifiersState to ModChain 924b0c40a00SSimon J. Gerraty fix double varname expansion in the variable modifier '::=' 925b0c40a00SSimon J. Gerraty change debug log for variable evaluation flags to lowercase 926b0c40a00SSimon J. Gerraty 927b0c40a00SSimon J. Gerraty2021-03-14 Simon J Gerraty <sjg@beast.crufty.net> 928b0c40a00SSimon J. Gerraty 929b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210314 930b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 931b0c40a00SSimon J. Gerraty o var.c: avoid evaluating many modifiers in parse only mode 932b0c40a00SSimon J. Gerraty in strict mode (-dL) many variable references are parsed twice, 933b0c40a00SSimon J. Gerraty the first time just to report parse errors early, so we want to 934b0c40a00SSimon J. Gerraty avoid side effects and wasted effort to the extent possible. 935b0c40a00SSimon J. Gerraty 936b0c40a00SSimon J. Gerraty2021-02-26 Simon J Gerraty <sjg@beast.crufty.net> 937b0c40a00SSimon J. Gerraty 938b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210226 939b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 940b0c40a00SSimon J. Gerraty o remove freestanding freeIt variables 941b0c40a00SSimon J. Gerraty link via FStr 942b0c40a00SSimon J. Gerraty o var.c: restructure code in ParseVarname to target human readers 943b0c40a00SSimon J. Gerraty improve error message for; 944b0c40a00SSimon J. Gerraty bad modifier in variable expression 945b0c40a00SSimon J. Gerraty unclosed modifier 946b0c40a00SSimon J. Gerraty unknown modifier 947b0c40a00SSimon J. Gerraty remove redundant parameter of ApplySingleModifier 948b0c40a00SSimon J. Gerraty explain non-obvious code around indirect variable modifiers 949b0c40a00SSimon J. Gerraty quote ':S' in error message about missing delimiter 950b0c40a00SSimon J. Gerraty extract ParseModifier_Match into separate function 951b0c40a00SSimon J. Gerraty add context information to error message about ':range' modifier 952b0c40a00SSimon J. Gerraty add quotes around variable name in an error message 953b0c40a00SSimon J. Gerraty reorder code in ModifyWords 954b0c40a00SSimon J. Gerraty use more common parameter order for VarSelectWords 955b0c40a00SSimon J. Gerraty make ModifyWord_Subst a little easier to understand 956b0c40a00SSimon J. Gerraty do not expand variable name from the command line twice 957b0c40a00SSimon J. Gerraty extract ExistsInCmdline from Var_SetWithFlags 958b0c40a00SSimon J. Gerraty save a hash map lookup when defining a cmdline variable 959b0c40a00SSimon J. Gerraty clean up VarAdd, Var_Delete, Var_ReexportVars 960b0c40a00SSimon J. Gerraty use bit-shift expressions for VarFlags constants 961b0c40a00SSimon J. Gerraty rename constants for VarFlags 962b0c40a00SSimon J. Gerraty rename ExprDefined constants for debug logging 963b0c40a00SSimon J. Gerraty rename ExprStatus to ExprDefined 964b0c40a00SSimon J. Gerraty split parameters for evaluating variable expressions 965b0c40a00SSimon J. Gerraty reduce redundant code around ModifyWords 966b0c40a00SSimon J. Gerraty print error about failed shell command before overwriting variable 967b0c40a00SSimon J. Gerraty clean up ValidShortVarname, ParseVarnameShort 968b0c40a00SSimon J. Gerraty rename VarExprStatus to ExprStatus 969b0c40a00SSimon J. Gerraty add functions for assigning the value of an expression 970b0c40a00SSimon J. Gerraty rename ApplyModifiersState_Define to Expr_Define 971b0c40a00SSimon J. Gerraty condense the code for parsing :S and :C modifiers 972b0c40a00SSimon J. Gerraty 973dba7b0efSSimon J. Gerraty2021-02-06 Simon J Gerraty <sjg@beast.crufty.net> 974dba7b0efSSimon J. Gerraty 975dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210206 976dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 977dba7b0efSSimon J. Gerraty o unit-tests: use private TMPDIR to avoid errors from other users 978dba7b0efSSimon J. Gerraty 979dba7b0efSSimon J. Gerraty2021-02-05 Simon J Gerraty <sjg@beast.crufty.net> 980dba7b0efSSimon J. Gerraty 981dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210205 982dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 983dba7b0efSSimon J. Gerraty o avoid strdup in mkTempFile 984dba7b0efSSimon J. Gerraty o always use vfork 985dba7b0efSSimon J. Gerraty o rename context and ctxt to scope 986dba7b0efSSimon J. Gerraty o rename some VAR constants to SCOPE 987dba7b0efSSimon J. Gerraty o Var_ functions, move the scope to the front 988dba7b0efSSimon J. Gerraty o use shortcut functions Global_Set and Global_Append 989dba7b0efSSimon J. Gerraty o add shortcut Global_Delete for deleting a global variable 990dba7b0efSSimon J. Gerraty o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete 991dba7b0efSSimon J. Gerraty o compat.c: when exiting due to an error, print graph information 992dba7b0efSSimon J. Gerraty o enum.c: remove overengineered Enum_ValueToString 993dba7b0efSSimon J. Gerraty o make.c: remove unused INTERNAL flag 994dba7b0efSSimon J. Gerraty remove unused return type of MakeBuildParent 995dba7b0efSSimon J. Gerraty o parse.c: replace parse error "Need an operator" with better message 996dba7b0efSSimon J. Gerraty o var.c: improve documentation about variable scopes 997dba7b0efSSimon J. Gerraty rename Var_ValueDirect to GNode_ValueDirect 998dba7b0efSSimon J. Gerraty rename old Var_SetWithFlags to Var_SetExpandWithFlags 999dba7b0efSSimon J. Gerraty merge SetVar into Var_SetWithFlags 1000dba7b0efSSimon J. Gerraty split Var_Exists into plain Var_Exists and Var_ExistsExpand 1001dba7b0efSSimon J. Gerraty split Var_Append into Var_Append and Var_AppendExpand 1002dba7b0efSSimon J. Gerraty replace enum bit-set with bit-field 1003dba7b0efSSimon J. Gerraty o unit-tests/var-op-shell: use kill rather than kill -14 1004dba7b0efSSimon J. Gerraty which broke on darwin with recent update. 1005dba7b0efSSimon J. Gerraty 1006dba7b0efSSimon J. Gerraty2021-02-01 Simon J Gerraty <sjg@beast.crufty.net> 1007dba7b0efSSimon J. Gerraty 1008dba7b0efSSimon J. Gerraty * configure.in: check for sig_atomic_t and define it as 'int' 1009dba7b0efSSimon J. Gerraty if missing. 1010dba7b0efSSimon J. Gerraty 1011dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210201 1012dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1013dba7b0efSSimon J. Gerraty o use sig_atomic_t for caught_sigchld 1014dba7b0efSSimon J. Gerraty 1015dba7b0efSSimon J. Gerraty2021-01-30 Simon J Gerraty <sjg@beast.crufty.net> 1016dba7b0efSSimon J. Gerraty 1017dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210130 1018dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1019dba7b0efSSimon J. Gerraty o more unit tests 1020dba7b0efSSimon J. Gerraty o convert SearchPath to struct 1021dba7b0efSSimon J. Gerraty o split Buf_Destroy into Buf_Done and Buf_DoneData 1022dba7b0efSSimon J. Gerraty o for.c: split For_Eval into separate functions 1023dba7b0efSSimon J. Gerraty rename struct For to struct ForLoop 1024dba7b0efSSimon J. Gerraty o job.c: do not create empty shell files in jobs mode 1025dba7b0efSSimon J. Gerraty rename JobOpenTmpFile to JobWriteShellCommands 1026dba7b0efSSimon J. Gerraty reduce unnecessary calls to waitpid 1027dba7b0efSSimon J. Gerraty o parse.c: in -dp mode, print stack trace with each diagnostic 1028dba7b0efSSimon J. Gerraty 1029dba7b0efSSimon J. Gerraty2021-01-23 Simon J Gerraty <sjg@beast.crufty.net> 1030dba7b0efSSimon J. Gerraty 1031dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210123 1032dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1033dba7b0efSSimon J. Gerraty o rename Dir_Expand to SearchPath_Expand 1034dba7b0efSSimon J. Gerraty o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags 1035dba7b0efSSimon J. Gerraty o cond.c: fix debug output for comparison operators in conditionals 1036dba7b0efSSimon J. Gerraty o dir.c: split Dir_FindFile into separate functions 1037dba7b0efSSimon J. Gerraty 1038dba7b0efSSimon J. Gerraty2021-01-20 Simon J Gerraty <sjg@beast.crufty.net> 1039dba7b0efSSimon J. Gerraty 1040dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210120 1041dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1042dba7b0efSSimon J. Gerraty o fix some more lint nits 1043dba7b0efSSimon J. Gerraty o refine some unit tests for portability 1044dba7b0efSSimon J. Gerraty o cond.c: rework parsing 1045dba7b0efSSimon J. Gerraty 104606b9b3e0SSimon J. Gerraty2021-01-10 Simon J Gerraty <sjg@beast.crufty.net> 104706b9b3e0SSimon J. Gerraty 104806b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210110 104906b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 105006b9b3e0SSimon J. Gerraty o fix lint warnings 105106b9b3e0SSimon J. Gerraty o consistently use boolean expressions in conditions 105206b9b3e0SSimon J. Gerraty 105306b9b3e0SSimon J. Gerraty2021-01-08 Simon J Gerraty <sjg@beast.crufty.net> 105406b9b3e0SSimon J. Gerraty 105506b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210108 105606b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 105706b9b3e0SSimon J. Gerraty o job.c: back to polling token pipe if we want a token 105806b9b3e0SSimon J. Gerraty o main.c: always print 'stopped in' on first call 105906b9b3e0SSimon J. Gerraty The execption is if we bail because of an abort token 106006b9b3e0SSimon J. Gerraty in which case just exit 6. 106106b9b3e0SSimon J. Gerraty 106206b9b3e0SSimon J. Gerraty2021-01-01 Simon J Gerraty <sjg@beast.crufty.net> 106306b9b3e0SSimon J. Gerraty 106406b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210101 106506b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 106606b9b3e0SSimon J. Gerraty o Happy New Year! 106706b9b3e0SSimon J. Gerraty o rename CmdOpts.lint to strict 106806b9b3e0SSimon J. Gerraty o exit 2 on technical errors 106906b9b3e0SSimon J. Gerraty o replace pointers in controlling conditions with booleans 107006b9b3e0SSimon J. Gerraty o replace global preserveUndefined with VARE_KEEP_UNDEF 107106b9b3e0SSimon J. Gerraty o compat.c: re-export variables from the actual make process 107206b9b3e0SSimon J. Gerraty if using vfork this is the effect anyway 107306b9b3e0SSimon J. Gerraty o cond.c: clean up VarParseResult constants 107406b9b3e0SSimon J. Gerraty o for.c: fix undefined behavior in SubstVarLong 107506b9b3e0SSimon J. Gerraty make control flow in SubstVarLong of .for loops more obvious 107606b9b3e0SSimon J. Gerraty clean up SubstVarShort in .for loops 107706b9b3e0SSimon J. Gerraty extract ForSubstBody from ForReadMore 107806b9b3e0SSimon J. Gerraty clean up ForReadMore 107906b9b3e0SSimon J. Gerraty simplify termination condition for .for loop 108006b9b3e0SSimon J. Gerraty add error handling for .for loop items 108106b9b3e0SSimon J. Gerraty job.c: re-export variables from the actual make process 108206b9b3e0SSimon J. Gerraty parse.c: remove mmap for loading files, only allow files < 1 GiB 108306b9b3e0SSimon J. Gerraty fix edge case in := with undefined in variable name 108406b9b3e0SSimon J. Gerraty skip variable expansion in ParseDependencyTargetWord 108506b9b3e0SSimon J. Gerraty var.c: split ExportVar into separate functions 108606b9b3e0SSimon J. Gerraty clean up code in extracted ExportVar functions 108706b9b3e0SSimon J. Gerraty remove dead code from ApplyModifiersIndirect 108806b9b3e0SSimon J. Gerraty split Var_Subst into easily understandable functions 108906b9b3e0SSimon J. Gerraty clean up VarParseResult constants 109006b9b3e0SSimon J. Gerraty 109106b9b3e0SSimon J. Gerraty2020-12-25 Simon J Gerraty <sjg@beast.crufty.net> 109206b9b3e0SSimon J. Gerraty 109306b9b3e0SSimon J. Gerraty * main.c: use .MAKE.DEPENDFILE as set by makefiles 109406b9b3e0SSimon J. Gerraty 109506b9b3e0SSimon J. Gerraty2020-12-22 Simon J Gerraty <sjg@beast.crufty.net> 109606b9b3e0SSimon J. Gerraty 109706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201222 109806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 109906b9b3e0SSimon J. Gerraty o make DEBUG macro return boolean 110006b9b3e0SSimon J. Gerraty o parse.c: fix assertion failure for files without trailing newline 110106b9b3e0SSimon J. Gerraty o var.c: allow .undef to undefine multiple variables at once 110206b9b3e0SSimon J. Gerraty remove excess newline from parse errors 110306b9b3e0SSimon J. Gerraty 110406b9b3e0SSimon J. Gerraty2020-12-21 Simon J Gerraty <sjg@beast.crufty.net> 110506b9b3e0SSimon J. Gerraty 110606b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201221 110706b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 110806b9b3e0SSimon J. Gerraty o some unit-test updates 110906b9b3e0SSimon J. Gerraty 111006b9b3e0SSimon J. Gerraty2020-12-20 Simon J Gerraty <sjg@beast.crufty.net> 111106b9b3e0SSimon J. Gerraty 111206b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201220 111306b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 111406b9b3e0SSimon J. Gerraty o more unit tests 111506b9b3e0SSimon J. Gerraty o return FStr from Var_Parse and Var_Value 111606b9b3e0SSimon J. Gerraty o spell nonexistent consistently 111706b9b3e0SSimon J. Gerraty o add str_basename to reduce duplicate code 111806b9b3e0SSimon J. Gerraty o compat.c: fix .ERROR_TARGET in compat -k mode 111906b9b3e0SSimon J. Gerraty extract InitSignals from Compat_Run 112006b9b3e0SSimon J. Gerraty extract UseShell from Compat_RunCommand 112106b9b3e0SSimon J. Gerraty o cond.c: error out if an '.endif' or '.else' contain extraneous text 112206b9b3e0SSimon J. Gerraty o for.c: rename ForIterate to ForReadMore 112306b9b3e0SSimon J. Gerraty o hash.c: clean up hash function for HashTable 112406b9b3e0SSimon J. Gerraty o lst.c: rename Vector.priv_cap to cap 112506b9b3e0SSimon J. Gerraty o main.c: remove constant parameter from MakeMode 112606b9b3e0SSimon J. Gerraty o make.c: use symbolic time for 0 in Make_Recheck 112706b9b3e0SSimon J. Gerraty extract MakeChildren from MakeStartJobs 112806b9b3e0SSimon J. Gerraty o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar 112906b9b3e0SSimon J. Gerraty fix error message for .info/.warning/.error without argument 113006b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 113106b9b3e0SSimon J. Gerraty extract ParseSkippedBranches, ParseForLoop from ParseReadLine 113206b9b3e0SSimon J. Gerraty rename mode constants for ParseGetLine to be more expressive 113306b9b3e0SSimon J. Gerraty reduce debugging details in Parse_SetInput 113406b9b3e0SSimon J. Gerraty fix line numbers in .for loops 113506b9b3e0SSimon J. Gerraty split ParseGetLine into separate functions 113606b9b3e0SSimon J. Gerraty fix garbled output for failed shell command 113706b9b3e0SSimon J. Gerraty var.c: remove redundant assignment in ApplyModifier_SysV 113806b9b3e0SSimon J. Gerraty error out on unknown variable modifiers at parse time 113906b9b3e0SSimon J. Gerraty remove wrong error message for indirect modifier in lint mode 114006b9b3e0SSimon J. Gerraty extract ApplySingleModifier from ApplyModifiers 114106b9b3e0SSimon J. Gerraty use FStr for memory management in Var_SetWithFlags 114206b9b3e0SSimon J. Gerraty extract SetVar from Var_SetWithFlags 114306b9b3e0SSimon J. Gerraty use FStr in VarNew 114406b9b3e0SSimon J. Gerraty extract string functions from ApplyModifier_To 114506b9b3e0SSimon J. Gerraty error out if .undef has not exactly 1 argument 114606b9b3e0SSimon J. Gerraty extract Var_DeleteVar from Var_Delete 114706b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 114806b9b3e0SSimon J. Gerraty clean up memory management for expanding variable expressions 114906b9b3e0SSimon J. Gerraty 115006b9b3e0SSimon J. Gerraty2020-12-12 Simon J Gerraty <sjg@beast.crufty.net> 115106b9b3e0SSimon J. Gerraty 115206b9b3e0SSimon J. Gerraty * avoid %zu 115306b9b3e0SSimon J. Gerraty 115406b9b3e0SSimon J. Gerraty * lst.c: avoid anonymous union 115506b9b3e0SSimon J. Gerraty 115606b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201212 115706b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 115806b9b3e0SSimon J. Gerraty o more unit tests 115906b9b3e0SSimon J. Gerraty o inline Targ_Ignore and Targ_Silent 116006b9b3e0SSimon J. Gerraty o split JobFlags into separate fields 116106b9b3e0SSimon J. Gerraty o remove const from function parameters (left overs from refactoring) 116206b9b3e0SSimon J. Gerraty o eliminate boolean argument of Var_Export 116306b9b3e0SSimon J. Gerraty o make API of Buf_Init simpler 116406b9b3e0SSimon J. Gerraty o rename ParseRunOptions to ParseCommandFlags 116506b9b3e0SSimon J. Gerraty o replace *line with line[0] 116606b9b3e0SSimon J. Gerraty o compat.c: fix wrong exit status for multiple failed main targets 116706b9b3e0SSimon J. Gerraty refactor Compat_Run to show the error condition more clearly 116806b9b3e0SSimon J. Gerraty don't make .END if the main targets already failed (-k mode) 116906b9b3e0SSimon J. Gerraty fix exit status in -k mode if a dependency fails 117006b9b3e0SSimon J. Gerraty o for.c: clean up Buf_AddEscaped in .for loops 117106b9b3e0SSimon J. Gerraty o job.c: extract ShellWriter_ErrOn from JobPrintCommand 117206b9b3e0SSimon J. Gerraty make Job_Touch simpler 117306b9b3e0SSimon J. Gerraty refactor JobFinish 117406b9b3e0SSimon J. Gerraty rename Shell.exitFlag to errFlag 117506b9b3e0SSimon J. Gerraty move Job.xtraced to ShellWriter 117606b9b3e0SSimon J. Gerraty make printing of shell commands independent from the job 117706b9b3e0SSimon J. Gerraty rename shell flags in struct Shell 117806b9b3e0SSimon J. Gerraty extract JobOpenTmpFile from JobStart 117906b9b3e0SSimon J. Gerraty rename RunFlags to CommandFlags 118006b9b3e0SSimon J. Gerraty split various Job.* into separate fields 118106b9b3e0SSimon J. Gerraty rename commandShell to shell 118206b9b3e0SSimon J. Gerraty extract InitShellNameAndPath from Shell_Init 118306b9b3e0SSimon J. Gerraty replace signal handling macros with local functions 118406b9b3e0SSimon J. Gerraty replace macro MESSAGE with local function 118506b9b3e0SSimon J. Gerraty parse.c: error out on null bytes in makefiles 118606b9b3e0SSimon J. Gerraty error out on misspelled directives 118706b9b3e0SSimon J. Gerraty rename IFile.nextbuf to readMore 118806b9b3e0SSimon J. Gerraty fix undefined behavior in ParseEOF 118906b9b3e0SSimon J. Gerraty str.c: remove redundant call to strlen in Str_Words 119006b9b3e0SSimon J. Gerraty var.c: error out on misspelled .unexport-env 119106b9b3e0SSimon J. Gerraty error out on misspelled .export directives 119206b9b3e0SSimon J. Gerraty extract ExportVars from Var_Export 119306b9b3e0SSimon J. Gerraty extract ExportVarsExpand from Var_Export 119406b9b3e0SSimon J. Gerraty eliminate boolean argument of Var_Export 119506b9b3e0SSimon J. Gerraty fix undefined behavior when exporting ${:U } 119606b9b3e0SSimon J. Gerraty rename Var_ExportVars to Var_ReexportVars 119706b9b3e0SSimon J. Gerraty rename Var_Export1 to ExportVar 119806b9b3e0SSimon J. Gerraty 119906b9b3e0SSimon J. Gerraty2020-12-06 Simon J Gerraty <sjg@beast.crufty.net> 120006b9b3e0SSimon J. Gerraty 120106b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201206 120206b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 120306b9b3e0SSimon J. Gerraty o more unit tests 120406b9b3e0SSimon J. Gerraty o inline macros for debug logging 120506b9b3e0SSimon J. Gerraty o use consistent variable names for list nodes 120606b9b3e0SSimon J. Gerraty o define constants for enum zero-values 120706b9b3e0SSimon J. Gerraty o dir.c: use fixed format for debug output of the directory cache 120806b9b3e0SSimon J. Gerraty remove Dir_InitDir 120906b9b3e0SSimon J. Gerraty o lst.c: inline Lst_Enqueue, Vector_Done 121006b9b3e0SSimon J. Gerraty o meta.c: remove unused parameter from meta_needed 121106b9b3e0SSimon J. Gerraty o parse.c: rename parse functions 121206b9b3e0SSimon J. Gerraty o suff.c: extract ExpandChildrenRegular from ExpandChildren 121306b9b3e0SSimon J. Gerraty o targ.c: don't concatenate identifiers in Targ_PrintType 121406b9b3e0SSimon J. Gerraty o var.c: remove comment decoration 121506b9b3e0SSimon J. Gerraty extract UnexportVars from Var_UnExport 121606b9b3e0SSimon J. Gerraty extract GetVarnamesToUnexport from Var_UnExport 121706b9b3e0SSimon J. Gerraty extract UnexportEnv from Var_UnExport 121806b9b3e0SSimon J. Gerraty extract UnexportVar from Var_UnExport 121906b9b3e0SSimon J. Gerraty move CleanEnv to UnexportVars 122006b9b3e0SSimon J. Gerraty replace pointer comparisons with enum 122106b9b3e0SSimon J. Gerraty add FStr to var.c to make memory handling simpler 122206b9b3e0SSimon J. Gerraty use FStr in Var_UnExport 122306b9b3e0SSimon J. Gerraty move type definitions in var.c to the top 122406b9b3e0SSimon J. Gerraty extract FreeEnvVar from Var_Parse 122506b9b3e0SSimon J. Gerraty extract ShuffleStrings from ApplyModifier_Order 122606b9b3e0SSimon J. Gerraty 122706b9b3e0SSimon J. Gerraty2020-11-30 Simon J Gerraty <sjg@beast.crufty.net> 122806b9b3e0SSimon J. Gerraty 122906b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201130 123006b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 123106b9b3e0SSimon J. Gerraty o add unit tests for META MODE 123206b9b3e0SSimon J. Gerraty o reduce memory allocation for dirSearchPath, GNode.parents, 123306b9b3e0SSimon J. Gerraty GNode.children, OpenDirs 123406b9b3e0SSimon J. Gerraty o reduce pointer indirection for GNode.cohorts and 123506b9b3e0SSimon J. Gerraty GNode.implicitParents 123606b9b3e0SSimon J. Gerraty o remove pointer indirection from GNode.commands 123706b9b3e0SSimon J. Gerraty o inline Lst_ForEachUntil in meta mode 123806b9b3e0SSimon J. Gerraty o dir.c: fix memory leak for lstat cache in -DCLEANUP mode 123906b9b3e0SSimon J. Gerraty clean up memory management for CachedDirs 124006b9b3e0SSimon J. Gerraty fix the reference count of dotLast going negative 124106b9b3e0SSimon J. Gerraty add debug logging for OpenDirs_Done 124206b9b3e0SSimon J. Gerraty extract CacheNewDir from Dir_AddDir 124306b9b3e0SSimon J. Gerraty add debug logging for reference counting of CachedDir 124406b9b3e0SSimon J. Gerraty rename some Dir functions to SearchPath 124506b9b3e0SSimon J. Gerraty o job.c: rename some global variables 124606b9b3e0SSimon J. Gerraty o main.c: reduce memory allocation in ReadBuiltinRules 124706b9b3e0SSimon J. Gerraty reduce memory allocation in CmdOpts.create, CmdOpts.variables, 124806b9b3e0SSimon J. Gerraty CmdOpts.makefiles 124906b9b3e0SSimon J. Gerraty Add .MAKE.UID and .MAKE.GID 125006b9b3e0SSimon J. Gerraty o make.c: reduce memory allocation for/in toBeMade, 125106b9b3e0SSimon J. Gerraty Make_ProcessWait, Make_ExpandUse 125206b9b3e0SSimon J. Gerraty o meta.c: reduce memory allocation in meta_oodate 125306b9b3e0SSimon J. Gerraty o parse.c: reduce memory allocations for parsing dependencies and 125406b9b3e0SSimon J. Gerraty targets 125506b9b3e0SSimon J. Gerraty o suff.c: reduce memory allocation in suffix handling 125606b9b3e0SSimon J. Gerraty 125706b9b3e0SSimon J. Gerraty2020-11-24 Simon J Gerraty <sjg@beast.crufty.net> 125806b9b3e0SSimon J. Gerraty 125906b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201124 126006b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 126106b9b3e0SSimon J. Gerraty o .MAKE.{UID,GID} represent uid and gid running make. 126206b9b3e0SSimon J. Gerraty o fix error handling for .BEGIN and .END dependency in -k mode 126306b9b3e0SSimon J. Gerraty o fix missing "Stop." after failed .END node in -k mode 126406b9b3e0SSimon J. Gerraty o use properly typed comparisons in boolean contexts 126506b9b3e0SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 126606b9b3e0SSimon J. Gerraty o add HashSet type 126706b9b3e0SSimon J. Gerraty o compat.c: split Compat_Make into smaller functions 126806b9b3e0SSimon J. Gerraty extract DebugFailedTarget from Compat_RunCommand 126906b9b3e0SSimon J. Gerraty o dir.c: refactor Dir_UpdateMTime 127006b9b3e0SSimon J. Gerraty migrate CachedDir.files from HashTable to HashSet 127106b9b3e0SSimon J. Gerraty o make.c: add high-level API for GNode.made 127206b9b3e0SSimon J. Gerraty 127306b9b3e0SSimon J. Gerraty2020-11-22 Simon J Gerraty <sjg@beast.crufty.net> 127406b9b3e0SSimon J. Gerraty 127506b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201122 127606b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 127706b9b3e0SSimon J. Gerraty o rename GNode.context to vars 127806b9b3e0SSimon J. Gerraty o suff.c: cleanup and refactor 127906b9b3e0SSimon J. Gerraty rename some functions and vars to better reflect usage 128006b9b3e0SSimon J. Gerraty add high-level API for CandidateSearcher 128106b9b3e0SSimon J. Gerraty o targ.c: add more debug logging for suffix handling 128206b9b3e0SSimon J. Gerraty o more unit tests 128306b9b3e0SSimon J. Gerraty o add debug logging for setting and resetting the main target 128406b9b3e0SSimon J. Gerraty 1285e2eeea75SSimon J. Gerraty2020-11-17 Simon J Gerraty <sjg@beast.crufty.net> 1286e2eeea75SSimon J. Gerraty 1287e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201117 1288e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 128906b9b3e0SSimon J. Gerraty o fix some unit-tests when .SHELL is dash 1290e2eeea75SSimon J. Gerraty o rename Targ_NewGN to GNode_New 1291e2eeea75SSimon J. Gerraty o make some GNode functions const 1292e2eeea75SSimon J. Gerraty o main.c: call Targ_Init before Var_Init 1293e2eeea75SSimon J. Gerraty cleanup PrintOnError, getTmpdir and ParseBoolean 1294e2eeea75SSimon J. Gerraty o var.c: fix error message of failed :!cmd! modifier 1295e2eeea75SSimon J. Gerraty 1296e2eeea75SSimon J. Gerraty2020-11-14 Simon J Gerraty <sjg@beast.crufty.net> 1297e2eeea75SSimon J. Gerraty 1298e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201114 1299e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1300e2eeea75SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 1301e2eeea75SSimon J. Gerraty o clean up cached_stats 1302e2eeea75SSimon J. Gerraty o rename DEFAULT to defaultNode 1303e2eeea75SSimon J. Gerraty o remove redundant struct make_stat 1304e2eeea75SSimon J. Gerraty o cond.c: in lint mode, check for ".else <cond>" 1305e2eeea75SSimon J. Gerraty use bitset for IfState 1306e2eeea75SSimon J. Gerraty replace large switch with if-else in Cond_EvalLine 1307e2eeea75SSimon J. Gerraty o job.c: clean up JobExec, JobStart, JobDoOutput 1308e2eeea75SSimon J. Gerraty use stderr for error message about failed touch 1309e2eeea75SSimon J. Gerraty clean up Job_Touch 1310e2eeea75SSimon J. Gerraty replace macro DBPRINTF with JobPrintln 1311e2eeea75SSimon J. Gerraty rename JobState to JobStatus 1312e2eeea75SSimon J. Gerraty main.c: switch cache for realpath from GNode to HashTable 1313e2eeea75SSimon J. Gerraty clean up Fatal 1314e2eeea75SSimon J. Gerraty clean up InitDefSysIncPath 1315e2eeea75SSimon J. Gerraty use progname instead of hard-coded 'make' in warning 1316e2eeea75SSimon J. Gerraty rename Main_SetVarObjdir to SetVarObjdir 1317e2eeea75SSimon J. Gerraty make.1: document the -S option 1318e2eeea75SSimon J. Gerraty make.c: fix debug output for GNode details 1319e2eeea75SSimon J. Gerraty use symbolic names in debug output of GNodes 1320e2eeea75SSimon J. Gerraty 1321e2eeea75SSimon J. Gerraty2020-11-12 Simon J Gerraty <sjg@beast.crufty.net> 1322e2eeea75SSimon J. Gerraty 1323e2eeea75SSimon J. Gerraty * configure.in: fix --with-force-machine-arch 1324e2eeea75SSimon J. Gerraty 1325e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201112 1326e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1327e2eeea75SSimon J. Gerraty o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable 1328e2eeea75SSimon J. Gerraty checks in InitObjdir. Explicit .OBJDIR target always allows 1329e2eeea75SSimon J. Gerraty read-only directory. 1330e2eeea75SSimon J. Gerraty o cond.c: clean up Cond_EvalLine 1331e2eeea75SSimon J. Gerraty 1332e2eeea75SSimon J. Gerraty2020-11-11 Simon J Gerraty <sjg@beast.crufty.net> 1333e2eeea75SSimon J. Gerraty 1334e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201111 1335e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1336e2eeea75SSimon J. Gerraty o more unit-tests 1337e2eeea75SSimon J. Gerraty o style cleanup 1338e2eeea75SSimon J. Gerraty remove redundant parentheses from sizeof operator 1339e2eeea75SSimon J. Gerraty replace character literal 0 with '\0'. 1340e2eeea75SSimon J. Gerraty replace pointer literal 0 with NULL. 1341e2eeea75SSimon J. Gerraty remove redundant parentheses. 1342e2eeea75SSimon J. Gerraty replace (expr & mask) == 0 with !(expr & mask). 1343e2eeea75SSimon J. Gerraty use strict typing in conditions of the form !var 1344e2eeea75SSimon J. Gerraty o rename Make_OODate to GNode_IsOODate 1345e2eeea75SSimon J. Gerraty o rename Make_TimeStamp to GNode_UpdateYoungestChild 1346e2eeea75SSimon J. Gerraty o rename Var_Set_with_flags to Var_SetWithFlags 1347e2eeea75SSimon J. Gerraty o rename dieQuietly to shouldDieQuietly 1348e2eeea75SSimon J. Gerraty o buf.c: make API of Buf_Init simpler 1349e2eeea75SSimon J. Gerraty o compat.c: clean up Compat_Make, Compat_RunCommand, 1350e2eeea75SSimon J. Gerraty CompatDeleteTarget and CompatInterrupt 1351e2eeea75SSimon J. Gerraty o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|' 1352e2eeea75SSimon J. Gerraty clean up CondParser_Comparison 1353e2eeea75SSimon J. Gerraty o main.c: rename getBoolean and s2Boolean 1354e2eeea75SSimon J. Gerraty rename MAKEFILE_PREFERENCE for consistency 1355e2eeea75SSimon J. Gerraty o parse.c: replace strstr in ParseMaybeSubMake with optimized code 1356e2eeea75SSimon J. Gerraty o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR 1357e2eeea75SSimon J. Gerraty replace emptyString with allocated empty string 1358e2eeea75SSimon J. Gerraty error out on unclosed expressions after the colon 1359e2eeea75SSimon J. Gerraty 1360956e45f6SSimon J. Gerraty2020-11-01 Simon J Gerraty <sjg@beast.crufty.net> 1361956e45f6SSimon J. Gerraty 1362956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201101 1363956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1364956e45f6SSimon J. Gerraty o negate NoExecute to GNode_ShouldExecute 1365956e45f6SSimon J. Gerraty o job.c: rename JobMatchShell to FindShellByName 1366956e45f6SSimon J. Gerraty extract EscapeShellDblQuot from JobPrintCommand 1367956e45f6SSimon J. Gerraty extract ParseRunOptions from JobPrintCommand 1368956e45f6SSimon J. Gerraty o var.c: extract ApplyModifiersIndirect from ApplyModifiers 1369956e45f6SSimon J. Gerraty treat malformed :range, :ts and :[...] as errors 1370956e45f6SSimon J. Gerraty add tests for the variable modifiers :[words] and :range 1371956e45f6SSimon J. Gerraty 1372956e45f6SSimon J. Gerraty2020-10-31 Simon J Gerraty <sjg@beast.crufty.net> 1373956e45f6SSimon J. Gerraty 1374956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201031 1375956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1376956e45f6SSimon J. Gerraty o format #include directives consistently 1377956e45f6SSimon J. Gerraty o do not look up local variables like .TARGET anywhere else 1378956e45f6SSimon J. Gerraty o main.c: Main_SetObjdir is first called for curdir which may be 1379956e45f6SSimon J. Gerraty readonly 1380956e45f6SSimon J. Gerraty reduce the scope where recursive expressions are detected 1381956e45f6SSimon J. Gerraty remove redundant :tl from getBoolean 1382956e45f6SSimon J. Gerraty clean up mkTempFile 1383956e45f6SSimon J. Gerraty o meta.c: simplify memory allocation in meta_create and meta_oodate 1384956e45f6SSimon J. Gerraty o parse.c: extract loadedfile_mmap from loadfile 1385956e45f6SSimon J. Gerraty o trace.c: document possible undefined behavior with .CURDIR 1386956e45f6SSimon J. Gerraty o var.c: make parsing of the :gmtime and :localtime modifiers stricter 1387956e45f6SSimon J. Gerraty rename ismeta to is_shell_metachar 1388956e45f6SSimon J. Gerraty remove debug logging for the :Q variable modifier 1389956e45f6SSimon J. Gerraty rename VarIsDynamic to VarnameIsDynamic 1390956e45f6SSimon J. Gerraty use consistent parameter order in varname parsing functions 1391956e45f6SSimon J. Gerraty extract ParseVarnameLong from Var_Parse 1392956e45f6SSimon J. Gerraty extract ParseVarnameShort from Var_Parse 1393956e45f6SSimon J. Gerraty fix type of ParseModifierPart parameter delim 1394956e45f6SSimon J. Gerraty extract IsEscapedModifierPart from ParseModifierPart 1395956e45f6SSimon J. Gerraty clean up ModifyWords 1396956e45f6SSimon J. Gerraty add test for combining the :@ and :? variable modifiers 1397956e45f6SSimon J. Gerraty 1398956e45f6SSimon J. Gerraty2020-10-30 Simon J Gerraty <sjg@beast.crufty.net> 1399956e45f6SSimon J. Gerraty 1400956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201030 1401956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1402956e45f6SSimon J. Gerraty o change char * to void * in Var_Value 1403956e45f6SSimon J. Gerraty o make iterating over HashTable simpler 1404956e45f6SSimon J. Gerraty o rename VAR_CMD to VAR_CMDLINE 1405956e45f6SSimon J. Gerraty o cond.c: clean up is_separator 1406956e45f6SSimon J. Gerraty fix parse error in string literal in conditional 1407956e45f6SSimon J. Gerraty o main.c: do not use objdir that is not writable 1408956e45f6SSimon J. Gerraty in lint mode, exit with error status on errors 1409956e45f6SSimon J. Gerraty o parse.c: clean up StrContainsWord 1410956e45f6SSimon J. Gerraty fix out-of-bounds pointer in ParseTrackInput 1411956e45f6SSimon J. Gerraty o var.c: rename Str_SYSVMatch and its parameters 1412956e45f6SSimon J. Gerraty remove unsatisfiable conditions in Var_Set_with_flags 1413956e45f6SSimon J. Gerraty document where the variable name is expanded 1414956e45f6SSimon J. Gerraty fix documentation for VARP_SUB_ONE 1415956e45f6SSimon J. Gerraty rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME 1416956e45f6SSimon J. Gerraty document VAR_READONLY 1417956e45f6SSimon J. Gerraty prevent appending to read-only variables 1418956e45f6SSimon J. Gerraty extract MayExport from Var_Export1 1419956e45f6SSimon J. Gerraty remove redundant evaluations in VarFind 1420956e45f6SSimon J. Gerraty replace VarFindFlags with a simple Boolean 1421956e45f6SSimon J. Gerraty rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE 1422956e45f6SSimon J. Gerraty 1423956e45f6SSimon J. Gerraty2020-10-28 Simon J Gerraty <sjg@beast.crufty.net> 1424956e45f6SSimon J. Gerraty 1425956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201028 1426956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1427956e45f6SSimon J. Gerraty o rename defIncPath to defSysIncPath 1428956e45f6SSimon J. Gerraty o initialize all CmdOpts fields 1429956e45f6SSimon J. Gerraty o lst.c: inline Vector_Get 1430956e45f6SSimon J. Gerraty o main.c: refactor main extract 1431956e45f6SSimon J. Gerraty InitMaxJobs,InitObjdir,InitVarMake,InitRandom, 1432956e45f6SSimon J. Gerraty ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules, 1433956e45f6SSimon J. Gerraty InitDefIncPath,CmdOpts_Init,UnlimitFiles 1434956e45f6SSimon J. Gerraty o parse.c: merge curFile into includes 1435956e45f6SSimon J. Gerraty rename predecessor to order_pred 1436956e45f6SSimon J. Gerraty sort ParseSpecial alphabetically 1437956e45f6SSimon J. Gerraty remove unused, undocumented .NOEXPORT 1438956e45f6SSimon J. Gerraty rename ParseSpecial enum values consistently 1439956e45f6SSimon J. Gerraty rename some fields of struct IFile 1440956e45f6SSimon J. Gerraty 1441956e45f6SSimon J. Gerraty2020-10-26 Simon J Gerraty <sjg@beast.crufty.net> 1442956e45f6SSimon J. Gerraty 1443956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201026 1444956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1445956e45f6SSimon J. Gerraty o group the command line options and arguments into a struct 1446956e45f6SSimon J. Gerraty o rename GNode.cmgn to youngestChild 1447956e45f6SSimon J. Gerraty o rename hash functions to identify the type name 1448956e45f6SSimon J. Gerraty o negate OP_NOP and rename it to GNode_IsTarget 1449956e45f6SSimon J. Gerraty o add GNode_Path to access the path of a GNode 1450956e45f6SSimon J. Gerraty o remove macros MIN and MAX 1451956e45f6SSimon J. Gerraty o remove unused Lst_Find and Lst_FindFrom 1452956e45f6SSimon J. Gerraty o arch.c: and make Arch_FindLib simpler 1453956e45f6SSimon J. Gerraty clean up code layout 1454956e45f6SSimon J. Gerraty make Arch_ParseArchive simpler 1455956e45f6SSimon J. Gerraty o cond.c: inline CondFindStrMatch into FuncMake 1456956e45f6SSimon J. Gerraty o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath 1457956e45f6SSimon J. Gerraty omit trailing space in debug output for expanding file patterns 1458956e45f6SSimon J. Gerraty refactor DirMatchFiles 1459956e45f6SSimon J. Gerraty document that the SearchPath of Dir_FindFile may be NULL 1460956e45f6SSimon J. Gerraty remove UNCONST from Dir_Expand 1461956e45f6SSimon J. Gerraty inline DirFindName 1462956e45f6SSimon J. Gerraty o for.c: clean up code for handling .for loops 1463956e45f6SSimon J. Gerraty o hash.c: print hash in debug log with fixed width 1464956e45f6SSimon J. Gerraty clean up hash table functions 1465956e45f6SSimon J. Gerraty reduce amount of string hashing 1466956e45f6SSimon J. Gerraty o job.c: refactor JobDeleteTarget 1467956e45f6SSimon J. Gerraty use proper enum constants for aborting 1468956e45f6SSimon J. Gerraty convert result of JobStart from macros to enum 1469956e45f6SSimon J. Gerraty convert abort reason macros to enum 1470956e45f6SSimon J. Gerraty rework Job_CheckCommands to reduce indentation 1471956e45f6SSimon J. Gerraty rename Shell fields 1472956e45f6SSimon J. Gerraty add field names in declaration of DEFSHELL_CUSTOM 1473956e45f6SSimon J. Gerraty convert JobState and JobFlags to enum types 1474956e45f6SSimon J. Gerraty move handling of the "..." command to JobPrintCommands 1475956e45f6SSimon J. Gerraty o lst.c: clean up 1476956e45f6SSimon J. Gerraty refactor LstNodeNew 1477956e45f6SSimon J. Gerraty remove Lst_Open, Lst_Next, Lst_Close 1478956e45f6SSimon J. Gerraty remove code for circular lists from Lst_Next 1479956e45f6SSimon J. Gerraty o main.c: do not attempt to read .MAKE.DEPENFILE if set to 1480956e45f6SSimon J. Gerraty /dev/null or anything starting with "no" 1481956e45f6SSimon J. Gerraty convert macros for debug flags into enum 1482956e45f6SSimon J. Gerraty o make.c: inline Lst_Copy in Make_ExpandUse 1483956e45f6SSimon J. Gerraty o meta.c: inline Lst_Find in meta_oodate 1484956e45f6SSimon J. Gerraty make Lst_RemoveIf simpler in meta_oodate 1485956e45f6SSimon J. Gerraty o parse.c: convert error level for Parse_Error to an enum 1486956e45f6SSimon J. Gerraty o suff.c: properly terminate debug output with newline 1487956e45f6SSimon J. Gerraty add more details to DEBUG_SRC log 1488956e45f6SSimon J. Gerraty replace Dir_CopyDir with Dir_CopyDirSearchPath 1489956e45f6SSimon J. Gerraty don't modify GNode name while rebuilding the suffix graph 1490956e45f6SSimon J. Gerraty o var.c: reduce duplicate code in VarFind 1491956e45f6SSimon J. Gerraty 1492956e45f6SSimon J. Gerraty2020-10-22 Simon J Gerraty <sjg@beast.crufty.net> 1493956e45f6SSimon J. Gerraty 1494956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201022 1495956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1496956e45f6SSimon J. Gerraty o more refactoring and simplification to reduce code size 1497956e45f6SSimon J. Gerraty o var.c: extract CanonicalVarname from VarFind 1498956e45f6SSimon J. Gerraty o make.c: extract UpdateImplicitParentsVars from Make_Update 1499956e45f6SSimon J. Gerraty o main.c: extract PrintVar from doPrintVars 1500956e45f6SSimon J. Gerraty extract HandlePWD from main 1501956e45f6SSimon J. Gerraty o lst.c: inline simple Lst getters 1502956e45f6SSimon J. Gerraty remove unused Lst_ForEach 1503956e45f6SSimon J. Gerraty o job.c: move struct Shell from job.h to job.c 1504956e45f6SSimon J. Gerraty o more unit tests 1505956e45f6SSimon J. Gerraty 1506956e45f6SSimon J. Gerraty2020-10-19 Simon J Gerraty <sjg@beast.crufty.net> 1507956e45f6SSimon J. Gerraty 1508956e45f6SSimon J. Gerraty * configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT 1509956e45f6SSimon J. Gerraty 1510956e45f6SSimon J. Gerraty2020-10-18 Simon J Gerraty <sjg@beast.crufty.net> 1511956e45f6SSimon J. Gerraty 1512956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201018 1513956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1514956e45f6SSimon J. Gerraty o remove USE_IOVEC 1515956e45f6SSimon J. Gerraty o rename some Hash_* apis to Hash* 1516956e45f6SSimon J. Gerraty o replace execError with execDie 1517956e45f6SSimon J. Gerraty o rename Lst_Init to Lst_New 1518956e45f6SSimon J. Gerraty o add tags to enum types 1519956e45f6SSimon J. Gerraty o rename Stack to Vector 1520956e45f6SSimon J. Gerraty o parse.c: more refactoring 1521956e45f6SSimon J. Gerraty o unit-tests: make some tests use line buffered stdout 1522956e45f6SSimon J. Gerraty o unit-tests/Makefile: in meta mode do not make all tests depend on 1523956e45f6SSimon J. Gerraty Makefile, it isn't necessary. 1524956e45f6SSimon J. Gerraty 1525956e45f6SSimon J. Gerraty2020-10-10 Simon J Gerraty <sjg@beast.crufty.net> 1526956e45f6SSimon J. Gerraty 1527956e45f6SSimon J. Gerraty * main.c: check for CTL_HW being defined. 1528956e45f6SSimon J. Gerraty * unit-tests/Makefile: ensure export tests output are POSIX compliant 1529956e45f6SSimon J. Gerraty disable opt-debug-jobs test until it works on ubuntu 1530956e45f6SSimon J. Gerraty 1531956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201010 1532956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1533956e45f6SSimon J. Gerraty o dir.c: remove pathname limit for Dir_FindHereOrAbove 1534956e45f6SSimon J. Gerraty o hash.c: replace strcpy with memcpy in Hash_CreateEntry 1535956e45f6SSimon J. Gerraty o main.c: extract init_machine and init_machine_arch from main 1536956e45f6SSimon J. Gerraty allow to disable debug logging options 1537956e45f6SSimon J. Gerraty o parse.c: enable format string truncation warnings 1538956e45f6SSimon J. Gerraty extract parsing of sources from ParseDoDependency 1539956e45f6SSimon J. Gerraty split ParseDoSrc into smaller functions 1540956e45f6SSimon J. Gerraty hide implementation details from Parse_DoVar 1541956e45f6SSimon J. Gerraty clean up parsing of variable assignments 1542956e45f6SSimon J. Gerraty split Parse_DoVar into manageable pieces 1543956e45f6SSimon J. Gerraty don't modify the given line during Parse_DoVar 1544956e45f6SSimon J. Gerraty fix out-of-bounds memory access in Parse_DoVar 1545956e45f6SSimon J. Gerraty fix parsing of the :sh assignment modifier 1546956e45f6SSimon J. Gerraty o var.c: rework memory allocation for the name of variables 1547956e45f6SSimon J. Gerraty extract ApplyModifier_Literal into separate function 1548956e45f6SSimon J. Gerraty in lint mode, reject modifiers without delimiter 1549956e45f6SSimon J. Gerraty do not export variable names starting with '-' 1550956e45f6SSimon J. Gerraty o fix double-free bug in -DCLEANUP mode 1551956e45f6SSimon J. Gerraty o more cleanup to enable higher warnings level 1552956e45f6SSimon J. Gerraty o more unit tests 1553956e45f6SSimon J. Gerraty 1554956e45f6SSimon J. Gerraty2020-10-02 Simon J Gerraty <sjg@beast.crufty.net> 1555956e45f6SSimon J. Gerraty 1556956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201002 1557956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1558956e45f6SSimon J. Gerraty o dir.c: use hash table for looking up open directories by name 1559956e45f6SSimon J. Gerraty o main.c: clean up option handling 1560956e45f6SSimon J. Gerraty o parse.c: add missing const for Parse_AddIncludeDir 1561956e45f6SSimon J. Gerraty o var.c: ApplyModifier_To, update pp in each branch 1562956e45f6SSimon J. Gerraty o remove redundant function prototypes 1563956e45f6SSimon J. Gerraty o more unit tests 1564956e45f6SSimon J. Gerraty 1565956e45f6SSimon J. Gerraty2020-10-01 Simon J Gerraty <sjg@beast.crufty.net> 1566956e45f6SSimon J. Gerraty 1567956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201001 1568956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1569956e45f6SSimon J. Gerraty o compat.c: comment about "..." 1570956e45f6SSimon J. Gerraty 1571956e45f6SSimon J. Gerraty2020-09-30 Simon J Gerraty <sjg@beast.crufty.net> 1572956e45f6SSimon J. Gerraty 1573956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200930 1574956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1575956e45f6SSimon J. Gerraty o job.c: split Job.jobPipe into 2 separate fields 1576956e45f6SSimon J. Gerraty replace Lst_Open with direct iteration 1577956e45f6SSimon J. Gerraty o lst.c: remove redundant assertions 1578956e45f6SSimon J. Gerraty o targ.c: replace Lst_Open with direct iteration 1579956e45f6SSimon J. Gerraty o var.c: fix bug in evaluation of indirect variable modifiers 1580956e45f6SSimon J. Gerraty extract ApplyModifier_Quote into separate function 1581956e45f6SSimon J. Gerraty o make debug logging simpler 1582956e45f6SSimon J. Gerraty 1583956e45f6SSimon J. Gerraty2020-09-27 Simon J Gerraty <sjg@beast.crufty.net> 1584956e45f6SSimon J. Gerraty 1585956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200927 1586956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1587956e45f6SSimon J. Gerraty o parse.c: ensure parse errors result in 'stopped in' message. 1588956e45f6SSimon J. Gerraty o compat.c: make parameter of Compat_RunCommand const 1589956e45f6SSimon J. Gerraty o main.c: extract InitVarTarget from main 1590956e45f6SSimon J. Gerraty o parse.c: rename ParseFinishLine to FinishDependencyGroup 1591956e45f6SSimon J. Gerraty refactor ParseDoDependency 1592956e45f6SSimon J. Gerraty o var.c: Var_Subst no longer returns string result 1593956e45f6SSimon J. Gerraty rename Var_ParsePP back to Var_Parse 1594956e45f6SSimon J. Gerraty in lint mode, improve error handling for undefined variables 1595956e45f6SSimon J. Gerraty extract ParseVarname from Var_Parse 1596956e45f6SSimon J. Gerraty o rename Lst_ForEach to Lst_ForEachUntil 1597956e45f6SSimon J. Gerraty o inline Lst_ForEachUntil in several cases 1598956e45f6SSimon J. Gerraty o clean up API for finding and creating GNodes 1599956e45f6SSimon J. Gerraty o fix assertion failure in -j mode with .END node 1600956e45f6SSimon J. Gerraty o inline and remove LstNode_Prev and LstNode_Next 1601956e45f6SSimon J. Gerraty o use fine-grained type names for lists and their nodes 1602956e45f6SSimon J. Gerraty o more unit tests 1603956e45f6SSimon J. Gerraty 1604956e45f6SSimon J. Gerraty2020-09-11 Simon J Gerraty <sjg@beast.crufty.net> 1605956e45f6SSimon J. Gerraty 1606956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200911 1607956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1608956e45f6SSimon J. Gerraty o cond.c: split EvalComparison into smaller functions 1609956e45f6SSimon J. Gerraty reorder parameters of condition parsing functions 1610956e45f6SSimon J. Gerraty reduce code size in CondParser_Eval 1611956e45f6SSimon J. Gerraty rename CondGetString to CondParser_String 1612956e45f6SSimon J. Gerraty add CondLexer_SkipWhitespace 1613956e45f6SSimon J. Gerraty group the condition parsing state into a struct 1614956e45f6SSimon J. Gerraty in CondGetString, replace repeated Buf_Add with Buf_AddStr 1615956e45f6SSimon J. Gerraty o migrate Var_Parse to Var_ParsePP 1616956e45f6SSimon J. Gerraty o add wrappers around ctype.h functions 1617956e45f6SSimon J. Gerraty o lst.c: use a stack instead of a list for the nested include path 1618956e45f6SSimon J. Gerraty o more unit tests 1619956e45f6SSimon J. Gerraty 1620956e45f6SSimon J. Gerraty2020-09-04 Simon J Gerraty <sjg@beast.crufty.net> 1621956e45f6SSimon J. Gerraty 1622956e45f6SSimon J. Gerraty * make-bootstrap.sh.in: adjust object list 1623956e45f6SSimon J. Gerraty 16242c3632d1SSimon J. Gerraty2020-09-02 Simon J Gerraty <sjg@beast.crufty.net> 16252c3632d1SSimon J. Gerraty 16262c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200902 16272c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16282c3632d1SSimon J. Gerraty o use make_stat to ensure no confusion over valid fields 16292c3632d1SSimon J. Gerraty returned by cached_stat 16302c3632d1SSimon J. Gerraty o var.c: make VarQuote const-correct 16312c3632d1SSimon J. Gerraty o add unit tests for .for 16322c3632d1SSimon J. Gerraty 16332c3632d1SSimon J. Gerraty2020-09-01 Simon J Gerraty <sjg@beast.crufty.net> 16342c3632d1SSimon J. Gerraty 16352c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200901 16362c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16372c3632d1SSimon J. Gerraty o rename Hash_Table fields 16382c3632d1SSimon J. Gerraty o make data types in Dir_HasWildcards more precise 16392c3632d1SSimon J. Gerraty 16402c3632d1SSimon J. Gerraty2020-08-31 Simon J Gerraty <sjg@beast.crufty.net> 16412c3632d1SSimon J. Gerraty 16422c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200831 16432c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16442c3632d1SSimon J. Gerraty o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds 16452c3632d1SSimon J. Gerraty o lst.c: Lst_Open renable assert that list isn't open 16462c3632d1SSimon J. Gerraty o unit test for .TARGET dependent flags 16472c3632d1SSimon J. Gerraty o var.c: fix aliasing bug in VarUniq 16482c3632d1SSimon J. Gerraty o more unit tests for :u 16492c3632d1SSimon J. Gerraty 16502c3632d1SSimon J. Gerraty2020-08-30 Simon J Gerraty <sjg@beast.crufty.net> 16512c3632d1SSimon J. Gerraty 16522c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200830 16532c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16542c3632d1SSimon J. Gerraty o allow for strict type checking for Boolean 16552c3632d1SSimon J. Gerraty o Var_Parse never returns NULL 16562c3632d1SSimon J. Gerraty o Var_Subst never returns NULL 16572c3632d1SSimon J. Gerraty o Lst_Find now takes boolean match function 16582c3632d1SSimon J. Gerraty o rename Lst_Memeber to Lst_FindDatum 16592c3632d1SSimon J. Gerraty o rename LstNode functions to match their type 16602c3632d1SSimon J. Gerraty o rename GNode.iParents to implicitParents 16612c3632d1SSimon J. Gerraty o fix assertion failure for .SUFFIXES in archives 16622c3632d1SSimon J. Gerraty o compat.c: clean up documentation for CompatInterrupt and Compat_Run 16632c3632d1SSimon J. Gerraty remove unreachable code from CompatRunCommand 16642c3632d1SSimon J. Gerraty o main.c: simplify getBoolean 16652c3632d1SSimon J. Gerraty o stc.c: replace brk_string with simpler Str_Words 16662c3632d1SSimon J. Gerraty o suff.c: add debug macros 16672c3632d1SSimon J. Gerraty 16682c3632d1SSimon J. Gerraty2020-08-28 Simon J Gerraty <sjg@beast.crufty.net> 16692c3632d1SSimon J. Gerraty 16702c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200828 16712c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16722c3632d1SSimon J. Gerraty o lst.c: inline LstIsValid and LstNodeIsValid 16732c3632d1SSimon J. Gerraty o remove trailing S from Lst function names after migration complete 16742c3632d1SSimon J. Gerraty o more comment cleanup/clarification 16752c3632d1SSimon J. Gerraty o suff.c: clean up suffix handling 16762c3632d1SSimon J. Gerraty o more unit tests 16772c3632d1SSimon J. Gerraty 16782c3632d1SSimon J. Gerraty2020-08-26 Simon J Gerraty <sjg@beast.crufty.net> 16792c3632d1SSimon J. Gerraty 16802c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200826 16812c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16822c3632d1SSimon J. Gerraty o enum.c: distinguish between bitsets containing flags and 16832c3632d1SSimon J. Gerraty ordinary enums 16842c3632d1SSimon J. Gerraty o var.c: fix error message for ::!= modifier with shell error 16852c3632d1SSimon J. Gerraty o fix bugs in -DCLEANUP mode 16862c3632d1SSimon J. Gerraty 16872c3632d1SSimon J. Gerraty2020-08-24 Simon J Gerraty <sjg@beast.crufty.net> 16882c3632d1SSimon J. Gerraty 16892c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200824 16902c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16912c3632d1SSimon J. Gerraty o in debug mode, print GNode details in symbols 16922c3632d1SSimon J. Gerraty 16932c3632d1SSimon J. Gerraty2020-08-23 Simon J Gerraty <sjg@beast.crufty.net> 16942c3632d1SSimon J. Gerraty 16952c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200823 16962c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16972c3632d1SSimon J. Gerraty o lst.c: more asserts, 16982c3632d1SSimon J. Gerraty make args to Lst_Find match others. 16992c3632d1SSimon J. Gerraty o var.c: pass flags to VarAdd 17002c3632d1SSimon J. Gerraty o arch.c: use Buffer 17012c3632d1SSimon J. Gerraty o str.c: brk_string return size_t for nwords 17022c3632d1SSimon J. Gerraty o more unit tests 17032c3632d1SSimon J. Gerraty 17042c3632d1SSimon J. Gerraty2020-08-22 Simon J Gerraty <sjg@beast.crufty.net> 17052c3632d1SSimon J. Gerraty 17062c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 17072c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17082c3632d1SSimon J. Gerraty o var.c: support for read-only variables eg .SHELL 17092c3632d1SSimon J. Gerraty being the shell used to run scripts. 17102c3632d1SSimon J. Gerraty o lst.c: more simplification 17112c3632d1SSimon J. Gerraty o more documentation and style cleanup 17122c3632d1SSimon J. Gerraty o more unit tests 17132c3632d1SSimon J. Gerraty o ensure unit-test/Makefile is run by TEST_MAKE 17142c3632d1SSimon J. Gerraty o reduce duplication of header inclusion 17152c3632d1SSimon J. Gerraty 17162c3632d1SSimon J. Gerraty2020-08-21 Simon J Gerraty <sjg@beast.crufty.net> 17172c3632d1SSimon J. Gerraty 17182c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200821 17192c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17202c3632d1SSimon J. Gerraty o lst.c: revert invalid assertion - but document it 17212c3632d1SSimon J. Gerraty o dir.c: split Dir_Init into two functions 17222c3632d1SSimon J. Gerraty 17232c3632d1SSimon J. Gerraty2020-08-20 Simon J Gerraty <sjg@beast.crufty.net> 17242c3632d1SSimon J. Gerraty 17252c3632d1SSimon J. Gerraty * lst.c: needs inttypes.h on Linux 17262c3632d1SSimon J. Gerraty 17272c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200820 17282c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17292c3632d1SSimon J. Gerraty o make.1: clarify some passages 17302c3632d1SSimon J. Gerraty o var.c: more cleanup, clarify comments 17312c3632d1SSimon J. Gerraty o make_malloc.c: remove unreachable code 17322c3632d1SSimon J. Gerraty o cond.c: make CondGetString easier to debug 17332c3632d1SSimon J. Gerraty o simplify list usage 17342c3632d1SSimon J. Gerraty o unit-tests: more 17352c3632d1SSimon J. Gerraty 17362c3632d1SSimon J. Gerraty2020-08-16 Simon J Gerraty <sjg@beast.crufty.net> 17372c3632d1SSimon J. Gerraty 17382c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200816 17392c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17402c3632d1SSimon J. Gerraty o refactor unit-tests to be more fine grained 17412c3632d1SSimon J. Gerraty not all tests moved yet 17422c3632d1SSimon J. Gerraty 17432c3632d1SSimon J. Gerraty2020-08-14 Simon J Gerraty <sjg@beast.crufty.net> 17442c3632d1SSimon J. Gerraty 17452c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200814 17462c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17472c3632d1SSimon J. Gerraty o more str_concat variants 17482c3632d1SSimon J. Gerraty o more enums for flags 17492c3632d1SSimon J. Gerraty o var.c: cleanup for higher warnings level 17502c3632d1SSimon J. Gerraty 17512c3632d1SSimon J. Gerraty2020-08-10 Simon J Gerraty <sjg@beast.crufty.net> 17522c3632d1SSimon J. Gerraty 17532c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200810 17542c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17552c3632d1SSimon J. Gerraty o more unit tests 17562c3632d1SSimon J. Gerraty o general comment and style cleanup 17572c3632d1SSimon J. Gerraty 17582c3632d1SSimon J. Gerraty2020-08-08 Simon J Gerraty <sjg@beast.crufty.net> 17592c3632d1SSimon J. Gerraty 17602c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200808 17612c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17622c3632d1SSimon J. Gerraty o enum.[ch]: streamline, enums for use in flags and debug output 17632c3632d1SSimon J. Gerraty o cond.c: cleanup 17642c3632d1SSimon J. Gerraty o var.c: reduce duplicate code for modifiers 17652c3632d1SSimon J. Gerraty debug logging for Var_Parse 17662c3632d1SSimon J. Gerraty more detailed debug output 17672c3632d1SSimon J. Gerraty o more unit tests 17682c3632d1SSimon J. Gerraty 17692c3632d1SSimon J. Gerraty2020-08-06 Simon J Gerraty <sjg@beast.crufty.net> 17702c3632d1SSimon J. Gerraty 17712c3632d1SSimon J. Gerraty * unit-tests/Makefile: -r for recursive and include Makefile.inc 17722c3632d1SSimon J. Gerraty so I can run tests in meta mode 17732c3632d1SSimon J. Gerraty supress extra noise if in meta mode 17742c3632d1SSimon J. Gerraty 17752c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200806 17762c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17772c3632d1SSimon J. Gerraty o parse.c: remove VARE_WANTRES for LINT 17782c3632d1SSimon J. Gerraty we just want to check parsing (for now). 17792c3632d1SSimon J. Gerraty 17802c3632d1SSimon J. Gerraty2020-08-05 Simon J Gerraty <sjg@beast.crufty.net> 17812c3632d1SSimon J. Gerraty 17822c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200805 17832c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17842c3632d1SSimon J. Gerraty o make.1: Rework the description of dependence operators 17852c3632d1SSimon J. Gerraty 17862c3632d1SSimon J. Gerraty2020-08-03 Simon J Gerraty <sjg@beast.crufty.net> 17872c3632d1SSimon J. Gerraty 17882c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200803 17892c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17902c3632d1SSimon J. Gerraty o revert some C99 usage, for max portability 17912c3632d1SSimon J. Gerraty o unit-tests/lint 17922c3632d1SSimon J. Gerraty 17932c3632d1SSimon J. Gerraty2020-08-02 Simon J Gerraty <sjg@beast.crufty.net> 17942c3632d1SSimon J. Gerraty 17952c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200802 17962c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 17972c3632d1SSimon J. Gerraty o more unit tests 17982c3632d1SSimon J. Gerraty 17992c3632d1SSimon J. Gerraty2020-08-01 Simon J Gerraty <sjg@beast.crufty.net> 18002c3632d1SSimon J. Gerraty 18012c3632d1SSimon J. Gerraty * Remove NetBSD specific plumbing from unit-tests/Makefile 18022c3632d1SSimon J. Gerraty 18032c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200801 18042c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18052c3632d1SSimon J. Gerraty o make Var_Value return const 18062c3632d1SSimon J. Gerraty o size_t for buf sizes 18072c3632d1SSimon J. Gerraty o optimize some buffer operations - avoid strlen 18082c3632d1SSimon J. Gerraty 18092c3632d1SSimon J. Gerraty2020-07-31 Simon J Gerraty <sjg@beast.crufty.net> 18102c3632d1SSimon J. Gerraty 18112c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200731 18122c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18132c3632d1SSimon J. Gerraty o var.c: fix undefinded behavior for incomplete :t modifier 18142c3632d1SSimon J. Gerraty fixes unit-test/moderrs on Ubuntu 18152c3632d1SSimon J. Gerraty o parse.c: When parsing variable assignments other than := 18162c3632d1SSimon J. Gerraty if DEBUG(LINT) test substition of value, so we get a file and 18172c3632d1SSimon J. Gerraty line number in the resulting error. 18182c3632d1SSimon J. Gerraty o dir.c: fix parsing of nested braces in dependency lines 18192c3632d1SSimon J. Gerraty add unit-tests 18202c3632d1SSimon J. Gerraty 18212c3632d1SSimon J. Gerraty2020-07-30 Simon J Gerraty <sjg@beast.crufty.net> 18222c3632d1SSimon J. Gerraty 18232c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200730 18242c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18252c3632d1SSimon J. Gerraty o var.c: minor cleanup 18262c3632d1SSimon J. Gerraty o unit-tests: more tests to improve code coverage 18272c3632d1SSimon J. Gerraty 18282c3632d1SSimon J. Gerraty2020-07-28 Simon J Gerraty <sjg@beast.crufty.net> 18292c3632d1SSimon J. Gerraty 18302c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200728 18312c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18322c3632d1SSimon J. Gerraty o var.c: more optimizations 18332c3632d1SSimon J. Gerraty 18342c3632d1SSimon J. Gerraty2020-07-26 Simon J Gerraty <sjg@beast.crufty.net> 18352c3632d1SSimon J. Gerraty 18362c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200726 18372c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18382c3632d1SSimon J. Gerraty o collapse lsd.lib into lst.c - reduce code size and allow inlining 18392c3632d1SSimon J. Gerraty o lots of function comment updates 18402c3632d1SSimon J. Gerraty o var.c: more optimizations 18412c3632d1SSimon J. Gerraty o make return of Var_Parse const 18422c3632d1SSimon J. Gerraty 18432c3632d1SSimon J. Gerraty2020-07-20 Simon J Gerraty <sjg@beast.crufty.net> 18442c3632d1SSimon J. Gerraty 18452c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200720 18462c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18472c3632d1SSimon J. Gerraty o DEBUG_HASH report stats at end and tone down the noise 18482c3632d1SSimon J. Gerraty o var.c: each flag type gets its own prefix. 18492c3632d1SSimon J. Gerraty move SysV string matching to var.c 18502c3632d1SSimon J. Gerraty make ampersand in ${VAR:from=to&} an ordinary character 18512c3632d1SSimon J. Gerraty cleanup and simplify implementation of modifiers 18522c3632d1SSimon J. Gerraty o make.1: move documentation for assignment modifiers 18532c3632d1SSimon J. Gerraty 18542c3632d1SSimon J. Gerraty2020-07-18 Simon J Gerraty <sjg@beast.crufty.net> 18552c3632d1SSimon J. Gerraty 18562c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200718 18572c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18582c3632d1SSimon J. Gerraty o DEBUG_HASH to see how well the hash tables are working 18592c3632d1SSimon J. Gerraty 18602c3632d1SSimon J. Gerraty2020-07-11 Simon J Gerraty <sjg@beast.crufty.net> 18612c3632d1SSimon J. Gerraty 18622c3632d1SSimon J. Gerraty * bsd.after-import.mk: make sure we update unit-tests/Makefile 18632c3632d1SSimon J. Gerraty 18643841c287SSimon J. Gerraty2020-07-10 Simon J Gerraty <sjg@beast.crufty.net> 18653841c287SSimon J. Gerraty 18663841c287SSimon J. Gerraty * configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC 18673841c287SSimon J. Gerraty 18683841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200710 18693841c287SSimon J. Gerraty Merge with NetBSD make, pick up 18703841c287SSimon J. Gerraty o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall 18713841c287SSimon J. Gerraty o meta.c: target flagged .META is out-of-date if meta file missing 18723841c287SSimon J. Gerraty 18733841c287SSimon J. Gerraty2020-07-09 Simon J Gerraty <sjg@beast.crufty.net> 18743841c287SSimon J. Gerraty 18753841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200709 18763841c287SSimon J. Gerraty Merge with NetBSD make, pick up 18773841c287SSimon J. Gerraty o cond.c: fix for compare_expression when doEval=0 18783841c287SSimon J. Gerraty o unit-tests/Makefile: rework 18793841c287SSimon J. Gerraty o filemon/filemon_dev.c: ensure filemon fd is closed on exec. 18803841c287SSimon J. Gerraty 18813841c287SSimon J. Gerraty2020-07-04 Simon J Gerraty <sjg@beast.crufty.net> 18823841c287SSimon J. Gerraty 18833841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200704 18843841c287SSimon J. Gerraty Merge with NetBSD make, pick up 18853841c287SSimon J. Gerraty (most of this by rillig@) 18863841c287SSimon J. Gerraty o lots of style and white-space cleanup 18873841c287SSimon J. Gerraty o lots more unit tests for variable modifiers 18883841c287SSimon J. Gerraty o simplified description of some functions 18893841c287SSimon J. Gerraty o str.c: refactor Str_Match 18903841c287SSimon J. Gerraty o var.c: debugging output for :@ 18913841c287SSimon J. Gerraty constify VarModify parameter 18923841c287SSimon J. Gerraty fix :hash modifier on 16-bit platforms 18933841c287SSimon J. Gerraty remove unnecessary forward declarations 18943841c287SSimon J. Gerraty refactor ApplyModifier_SysV to have less indentation 18953841c287SSimon J. Gerraty simplify code for :E and :R 18963841c287SSimon J. Gerraty clean up code for :H and :T 18973841c287SSimon J. Gerraty refactor ApplyModifiers 18983841c287SSimon J. Gerraty 18993841c287SSimon J. Gerraty * var.c: we need stdint.h on some platforms to get uint32_t 19003841c287SSimon J. Gerraty * unit-test/Makefile: we need to supress the specific error 19013841c287SSimon J. Gerraty for RE substitution error in modmisc, since it varies accross 19023841c287SSimon J. Gerraty different OS. 19033841c287SSimon J. Gerraty 19043841c287SSimon J. Gerraty2020-07-02 Simon J Gerraty <sjg@beast.crufty.net> 19053841c287SSimon J. Gerraty 19063841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200702 19073841c287SSimon J. Gerraty Merge with NetBSD make, pick up 19083841c287SSimon J. Gerraty o var.c: more improvements to avoiding unnecessary evaluation 19093841c287SSimon J. Gerraty use enums for flags 19103841c287SSimon J. Gerraty o remove flags arg to Var_Set which outside of var.c is always 0 19113841c287SSimon J. Gerraty 19123841c287SSimon J. Gerraty2020-07-01 Simon J Gerraty <sjg@beast.crufty.net> 19133841c287SSimon J. Gerraty 19143841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200701 19153841c287SSimon J. Gerraty Merge with NetBSD make, pick up 19163841c287SSimon J. Gerraty o var.c: with change to cond.c; ensure that nested variables 19173841c287SSimon J. Gerraty within a variable name are expanded. 19183841c287SSimon J. Gerraty o unit-tests/varmisc.mk: test for nested varname 19193841c287SSimon J. Gerraty 19203841c287SSimon J. Gerraty2020-06-29 Simon J Gerraty <sjg@beast.crufty.net> 19213841c287SSimon J. Gerraty 19223841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200629 19233841c287SSimon J. Gerraty Merge with NetBSD make, pick up 19243841c287SSimon J. Gerraty o cond.c: do not eval unnecessary terms of conditionals. 19253841c287SSimon J. Gerraty 19263841c287SSimon J. Gerraty2020-06-25 Simon J Gerraty <sjg@beast.crufty.net> 19273841c287SSimon J. Gerraty 19283841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200625 19293841c287SSimon J. Gerraty Merge with NetBSD make, pick up 19303841c287SSimon J. Gerraty o meta.c: report error if lseek in filemon_read fails 19313841c287SSimon J. Gerraty 19323841c287SSimon J. Gerraty2020-06-22 Simon J Gerraty <sjg@beast.crufty.net> 19333841c287SSimon J. Gerraty 19343841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200622 19353841c287SSimon J. Gerraty Merge with NetBSD make, pick up 19363841c287SSimon J. Gerraty o dieQuietly: ignore OP_SUBMAKE as too aggressive 19373841c287SSimon J. Gerraty 19383841c287SSimon J. Gerraty2020-06-19 Simon J Gerraty <sjg@beast.crufty.net> 19393841c287SSimon J. Gerraty 19403841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200619 19413841c287SSimon J. Gerraty Merge with NetBSD make, pick up 19423841c287SSimon J. Gerraty o str.c: performance improvement for Str_Match for multiple '*' 19433841c287SSimon J. Gerraty o dieQuietly: supress the failure output from make 19443841c287SSimon J. Gerraty when failing node is a sub-make or a sibling failed. 19453841c287SSimon J. Gerraty This cuts down greatly on unhelpful noise at the end of 19463841c287SSimon J. Gerraty build log. Disabled by -dj or .MAKE.DIE_QUIETLY=no 19473841c287SSimon J. Gerraty 19483841c287SSimon J. Gerraty2020-06-10 Simon J Gerraty <sjg@beast.crufty.net> 19493841c287SSimon J. Gerraty 19503841c287SSimon J. Gerraty * FILES: add LICENSE to appease some packagers. 19513841c287SSimon J. Gerraty This is an attempt to fairly represent the license on almost 19523841c287SSimon J. Gerraty 200 files, which are almost all BSD-3-Clause 19533841c287SSimon J. Gerraty The few exceptions being more liberal. 19543841c287SSimon J. Gerraty 19553841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200610 19563841c287SSimon J. Gerraty Merge with NetBSD make, pick up 19573841c287SSimon J. Gerraty o unit test for :Or 19583841c287SSimon J. Gerraty 1959ef0b2538SSimon J. Gerraty2020-06-06 Simon J Gerraty <sjg@beast.crufty.net> 1960ef0b2538SSimon J. Gerraty 1961ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200606 1962ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 1963ef0b2538SSimon J. Gerraty o make.1: cleanup 1964ef0b2538SSimon J. Gerraty 1965ef0b2538SSimon J. Gerraty * Makefile: fix depends for main.o which broke MAKE_VERSION 1966ef0b2538SSimon J. Gerraty 1967ef0b2538SSimon J. Gerraty2020-06-05 Simon J Gerraty <sjg@beast.crufty.net> 1968ef0b2538SSimon J. Gerraty 1969ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200605 1970ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 1971ef0b2538SSimon J. Gerraty o dir.c: cached_stats - don't confuse stat and lstat results. 1972ef0b2538SSimon J. Gerraty o var.c: add :Or for reverse sort. 1973ef0b2538SSimon J. Gerraty 1974ef0b2538SSimon J. Gerraty2020-05-24 Simon J Gerraty <sjg@beast.crufty.net> 1975ef0b2538SSimon J. Gerraty 1976ef0b2538SSimon J. Gerraty * configure.in: add AC_PROG_CC_C99 for mipspro compiler 1977ef0b2538SSimon J. Gerraty also if --with-filemon= specifies path to filemon.h 1978ef0b2538SSimon J. Gerraty set use_filemon=dev 1979ef0b2538SSimon J. Gerraty * dirname.c: remove include of namespace.h 1980ef0b2538SSimon J. Gerraty 198149caa483SSimon J. Gerraty2020-05-17 Simon J Gerraty <sjg@beast.crufty.net> 198249caa483SSimon J. Gerraty 198349caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200517 198449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 198549caa483SSimon J. Gerraty o modified dollar tests to avoid shell dependencies 198649caa483SSimon J. Gerraty o new tests for .INCLUDEFROM 198749caa483SSimon J. Gerraty 198849caa483SSimon J. Gerraty2020-05-16 Simon J Gerraty <sjg@beast.crufty.net> 198949caa483SSimon J. Gerraty 199049caa483SSimon J. Gerraty * unit-tests/dollar.mk: tweak '1 dollar literal' test 199149caa483SSimon J. Gerraty to not depend so much on shell behavior 199249caa483SSimon J. Gerraty 199349caa483SSimon J. Gerraty2020-05-10 Simon J Gerraty <sjg@beast.crufty.net> 199449caa483SSimon J. Gerraty 199549caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200510 199649caa483SSimon J. Gerraty Merge with NetBSD make, pick up 199749caa483SSimon J. Gerraty o unit test for dollar handling 199849caa483SSimon J. Gerraty 199949caa483SSimon J. Gerraty2020-05-06 Simon J Gerraty <sjg@beast.crufty.net> 200049caa483SSimon J. Gerraty 200149caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200506 200249caa483SSimon J. Gerraty Merge with NetBSD make, pick up 200349caa483SSimon J. Gerraty o str.c: empty string does not match % pattern 200449caa483SSimon J. Gerraty plus unit-test changes 200549caa483SSimon J. Gerraty 200649caa483SSimon J. Gerraty2020-05-04 Simon J Gerraty <sjg@beast.crufty.net> 200749caa483SSimon J. Gerraty 200849caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200504 200949caa483SSimon J. Gerraty May the 4th be with you 201049caa483SSimon J. Gerraty Merge with NetBSD make, pick up 201149caa483SSimon J. Gerraty o var.c: import handling of old sysV style modifier using '%' 201249caa483SSimon J. Gerraty o str.c: refactor brk_string 201349caa483SSimon J. Gerraty o unit-tests: add test case for lazy conditions 201449caa483SSimon J. Gerraty 201549caa483SSimon J. Gerraty2020-04-18 Simon J Gerraty <sjg@beast.crufty.net> 201649caa483SSimon J. Gerraty 201749caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200418 201849caa483SSimon J. Gerraty 201949caa483SSimon J. Gerraty * configure.in: use_makefile=no for cygwin et al. 202049caa483SSimon J. Gerraty case insensitive filesystems just don't work if both 202149caa483SSimon J. Gerraty makefile and Makefile exist. 202249caa483SSimon J. Gerraty NOTE: bmake does not support cygwin and likely never will, 202349caa483SSimon J. Gerraty but if brave souls want to try it - help them out. 202449caa483SSimon J. Gerraty 202549caa483SSimon J. Gerraty2020-04-02 Simon J Gerraty <sjg@beast.crufty.net> 202649caa483SSimon J. Gerraty 202749caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200402 202849caa483SSimon J. Gerraty Merge with NetBSD make, pick up 202949caa483SSimon J. Gerraty o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD 203049caa483SSimon J. Gerraty a blank command is perfectly valid. 203149caa483SSimon J. Gerraty 203249caa483SSimon J. Gerraty2020-03-30 Simon J Gerraty <sjg@beast.crufty.net> 203349caa483SSimon J. Gerraty 203449caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200330 203549caa483SSimon J. Gerraty Merge with NetBSD make, pick up 203649caa483SSimon J. Gerraty o make.h: extern debug_file 203749caa483SSimon J. Gerraty 203849caa483SSimon J. Gerraty2020-03-18 Simon J Gerraty <sjg@beast.crufty.net> 203949caa483SSimon J. Gerraty 204049caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200318 204149caa483SSimon J. Gerraty Merge with NetBSD make, pick up 204249caa483SSimon J. Gerraty o meta.c: meta_oodate, check for corrupted meta file 204349caa483SSimon J. Gerraty earlier and more often. 204449caa483SSimon J. Gerraty 204549caa483SSimon J. Gerraty2020-02-20 Simon J Gerraty <sjg@beast.crufty.net> 204649caa483SSimon J. Gerraty 204749caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200220 204849caa483SSimon J. Gerraty 204949caa483SSimon J. Gerraty2020-02-19 Simon J Gerraty <sjg@beast.crufty.net> 205049caa483SSimon J. Gerraty 205149caa483SSimon J. Gerraty * boot-strap: unset MAKEFLAGS 205249caa483SSimon J. Gerraty 205349caa483SSimon J. Gerraty2020-02-12 Simon J Gerraty <sjg@beast.crufty.net> 205449caa483SSimon J. Gerraty 205549caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200212 205649caa483SSimon J. Gerraty * meta.c: meta_compat_parent check for USE_FILEMON 205749caa483SSimon J. Gerraty patch from Soeren Tempel 205849caa483SSimon J. Gerraty 205949caa483SSimon J. Gerraty2020-02-05 Simon J Gerraty <sjg@beast.crufty.net> 206049caa483SSimon J. Gerraty 206149caa483SSimon J. Gerraty * VERSION: 20200205 206249caa483SSimon J. Gerraty Merge with NetBSD make, pick up 206349caa483SSimon J. Gerraty o meta.c: fix compat mode, need to call meta_job_output() 206449caa483SSimon J. Gerraty o job.c: extra fds for meta mode not needed if using filemon_dev 206549caa483SSimon J. Gerraty 206649caa483SSimon J. Gerraty2020-01-22 Simon J Gerraty <sjg@beast.crufty.net> 206749caa483SSimon J. Gerraty 206849caa483SSimon J. Gerraty * VERSION: 20200122 206949caa483SSimon J. Gerraty Merge with NetBSD make, pick up 207049caa483SSimon J. Gerraty o meta.c: avoid passing NULL to filemon_*() when meta_needed() 207149caa483SSimon J. Gerraty returns FALSE. 207249caa483SSimon J. Gerraty 207349caa483SSimon J. Gerraty2020-01-21 Simon J Gerraty <sjg@beast.crufty.net> 207449caa483SSimon J. Gerraty 207549caa483SSimon J. Gerraty * VERSION: 20200121 207649caa483SSimon J. Gerraty Merge with NetBSD make, pick up 207749caa483SSimon J. Gerraty o filemon/filemon_{dev,ktrace}.c: allow selection of 207849caa483SSimon J. Gerraty filemon implementation. filemon_dev.c uses the kernel module 207949caa483SSimon J. Gerraty while filemon_ktrace.c leverages the fktrace api available in 208049caa483SSimon J. Gerraty NetBSD. filemon_ktrace.c can hopefully form the basis for 208149caa483SSimon J. Gerraty adding support for other tracing mechanisms such as strace on 208249caa483SSimon J. Gerraty Linux. 208349caa483SSimon J. Gerraty o meta.c: when target is out-of-date per normal make rules 208449caa483SSimon J. Gerraty record value of .OODATE in meta file. 208549caa483SSimon J. Gerraty 208649caa483SSimon J. Gerraty2019-09-26 Simon J Gerraty <sjg@beast.crufty.net> 208749caa483SSimon J. Gerraty 208849caa483SSimon J. Gerraty * VERSION: 20190926 208949caa483SSimon J. Gerraty Merge with NetBSD make, pick up 209049caa483SSimon J. Gerraty o parse.c: don't pass NULL to realpath(3) 209149caa483SSimon J. Gerraty some versions cannot handle it. 209249caa483SSimon J. Gerraty 209349caa483SSimon J. Gerraty2019-04-09 Simon J Gerraty <sjg@beast.crufty.net> 209449caa483SSimon J. Gerraty 209549caa483SSimon J. Gerraty * VERSION: 20190409 209649caa483SSimon J. Gerraty Merge with NetBSD make, pick up 209749caa483SSimon J. Gerraty o parse.c: ParseDoDependency: free paths rather than assert 209849caa483SSimon J. Gerraty 209949caa483SSimon J. Gerraty2018-12-22 Simon J Gerraty <sjg@beast.crufty.net> 210049caa483SSimon J. Gerraty 210149caa483SSimon J. Gerraty * VERSION: 20181222 210249caa483SSimon J. Gerraty 210349caa483SSimon J. Gerraty * configure.in: add --without-makefile to avoid generating 210449caa483SSimon J. Gerraty makefile and make-bootstrap.sh 210549caa483SSimon J. Gerraty 210649caa483SSimon J. Gerraty * include Makefile.inc if it exists 210749caa483SSimon J. Gerraty 210849caa483SSimon J. Gerraty * Use Makefile and Makefile.config.in in unit-tests 210949caa483SSimon J. Gerraty so we can use just: make obj && make && make test 211049caa483SSimon J. Gerraty when bmake is already available. 211149caa483SSimon J. Gerraty We add --without-makefile to CONFIGURE_ARGS in this case. 211249caa483SSimon J. Gerraty 211349caa483SSimon J. Gerraty * tweak bsd.after-import.mk (captures Makefile.config etc 211449caa483SSimon J. Gerraty after import to FreeBSD for example) to cope with all the above. 211549caa483SSimon J. Gerraty 2116dfd669abSSimon J. Gerraty2018-12-21 Simon J Gerraty <sjg@beast.crufty.net> 2117dfd669abSSimon J. Gerraty 2118dfd669abSSimon J. Gerraty * VERSION: 20181221 2119dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2120dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .PARSEDIR 2121dfd669abSSimon J. Gerraty and apply if relative, and then use .PARSEFILE 2122dfd669abSSimon J. Gerraty for consistent result. 2123dfd669abSSimon J. Gerraty 2124dfd669abSSimon J. Gerraty2018-12-20 Simon J Gerraty <sjg@beast.crufty.net> 2125dfd669abSSimon J. Gerraty 2126dfd669abSSimon J. Gerraty * VERSION: 20181220 2127dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2128dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR 2129dfd669abSSimon J. Gerraty is relative 2130dfd669abSSimon J. Gerraty o var.c: avoid SEGFAULT in .unexport-env 2131dfd669abSSimon J. Gerraty when MAKELEVEL is not set 2132dfd669abSSimon J. Gerraty 2133dfd669abSSimon J. Gerraty2018-12-16 Simon J Gerraty <sjg@beast.crufty.net> 2134dfd669abSSimon J. Gerraty 2135dfd669abSSimon J. Gerraty * VERSION: 20181216 2136dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2137dfd669abSSimon J. Gerraty o fix for unit-tests/varquote.mk on Debian 2138dfd669abSSimon J. Gerraty 21392eae894cSSimon J. Gerraty2018-09-21 Simon J. Gerraty <sjg@bad.crufty.net> 21402eae894cSSimon J. Gerraty 21412eae894cSSimon J. Gerraty * VERSION: 20180919 21422eae894cSSimon J. Gerraty Merge with NetBSD make, pick up 21432eae894cSSimon J. Gerraty o var.c: add :q 21442eae894cSSimon J. Gerraty o dir.c: cleanup caching of stats 21452eae894cSSimon J. Gerraty 21462eae894cSSimon J. Gerraty2018-09-21 Simon J Gerraty <sjg@beast.crufty.net> 21472eae894cSSimon J. Gerraty 21482eae894cSSimon J. Gerraty * Makefile.config.in: use += where it makes sense. 21492eae894cSSimon J. Gerraty 2150494f7191SSimon J. Gerraty2018-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2151494f7191SSimon J. Gerraty 2152494f7191SSimon J. Gerraty * VERSION: 20180512 2153494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2154494f7191SSimon J. Gerraty o job.c: skip polling job token pipe 2155494f7191SSimon J. Gerraty 2156494f7191SSimon J. Gerraty2018-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 2157494f7191SSimon J. Gerraty 2158494f7191SSimon J. Gerraty * VERSION: 20180405 2159494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2160494f7191SSimon J. Gerraty o parse.c: be more cautious about detecting depenency line 2161494f7191SSimon J. Gerraty rather than sysV style include. 2162494f7191SSimon J. Gerraty 216350d2e745SSimon J. Gerraty2018-02-22 Simon J. Gerraty <sjg@bad.crufty.net> 216450d2e745SSimon J. Gerraty 216550d2e745SSimon J. Gerraty * VERSION: 20180222 216650d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 216750d2e745SSimon J. Gerraty o parse.c: avoid calling sysconf for every call to loadfile 216850d2e745SSimon J. Gerraty 216950d2e745SSimon J. Gerraty2018-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 217050d2e745SSimon J. Gerraty 217150d2e745SSimon J. Gerraty * VERSION: 20180218 217250d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 217350d2e745SSimon J. Gerraty o var.c: Var_Set handle NULL value anytime. 217450d2e745SSimon J. Gerraty 217550d2e745SSimon J. Gerraty2018-02-12 Simon J. Gerraty <sjg@bad.crufty.net> 217650d2e745SSimon J. Gerraty 217750d2e745SSimon J. Gerraty * VERSION: 20180212 217850d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 217950d2e745SSimon J. Gerraty o parse.c: do not treat .info as warning with -W 218050d2e745SSimon J. Gerraty 218150d2e745SSimon J. Gerraty2017-12-07 Simon J. Gerraty <sjg@bad.crufty.net> 218250d2e745SSimon J. Gerraty 218350d2e745SSimon J. Gerraty * VERSION: 20171207 218450d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 218550d2e745SSimon J. Gerraty o var.c: Var_Append use Var_Set if var not previously set 218650d2e745SSimon J. Gerraty so that VAR_CMD is handled correctly. 218750d2e745SSimon J. Gerraty Add a suitable unit-test. 218850d2e745SSimon J. Gerraty 218950d2e745SSimon J. Gerraty2017-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 219050d2e745SSimon J. Gerraty 219150d2e745SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20171126 219250d2e745SSimon J. Gerraty 219350d2e745SSimon J. Gerraty * aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__ 219450d2e745SSimon J. Gerraty since AC_TRY_COMPILE puts input inside main() 219550d2e745SSimon J. Gerraty which upsets modern compilers. 219650d2e745SSimon J. Gerraty 219750d2e745SSimon J. Gerraty2017-11-18 Simon J. Gerraty <sjg@bad.crufty.net> 219850d2e745SSimon J. Gerraty 219950d2e745SSimon J. Gerraty * VERSION: 20171118 220050d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 220150d2e745SSimon J. Gerraty o var.c: do not append to variable set on command line 220250d2e745SSimon J. Gerraty add unit-test to catch this. 220350d2e745SSimon J. Gerraty 2204e22fef7dSSimon J. Gerraty2017-10-28 Simon J. Gerraty <sjg@bad.crufty.net> 2205e22fef7dSSimon J. Gerraty 2206e22fef7dSSimon J. Gerraty * VERSION: 20171028 2207e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2208e22fef7dSSimon J. Gerraty o main.c: ignore empty MAKEOBJDIR 2209e22fef7dSSimon J. Gerraty 2210e22fef7dSSimon J. Gerraty * Makefile.config.in: 2211e22fef7dSSimon J. Gerraty make @prefix@ @machine*@ and @default_sys_path@ defaults. 2212e22fef7dSSimon J. Gerraty 2213e22fef7dSSimon J. Gerraty2017-10-05 Simon J. Gerraty <sjg@bad.crufty.net> 2214e22fef7dSSimon J. Gerraty 2215e22fef7dSSimon J. Gerraty * VERSION: 20171005 2216e22fef7dSSimon J. Gerraty 2217e22fef7dSSimon J. Gerraty * unit-tests/dotwait.mk: redirect stderr through pipe for more 2218e22fef7dSSimon J. Gerraty consistent result on some platforms. 2219e22fef7dSSimon J. Gerraty 2220e22fef7dSSimon J. Gerraty2017-08-13 Simon J. Gerraty <sjg@bad.crufty.net> 2221e22fef7dSSimon J. Gerraty 2222e22fef7dSSimon J. Gerraty * machine.sh: entry for AIX 2223e22fef7dSSimon J. Gerraty 2224e22fef7dSSimon J. Gerraty2017-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 2225e22fef7dSSimon J. Gerraty 2226e22fef7dSSimon J. Gerraty * VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION 2227e22fef7dSSimon J. Gerraty to a file that can be included by configure as well as make. 2228e22fef7dSSimon J. Gerraty This allows configure to set set _MAKE_VERSION in make-bootstrap.sh 2229e22fef7dSSimon J. Gerraty 2230e22fef7dSSimon J. Gerraty2017-08-10 Simon J. Gerraty <sjg@bad.crufty.net> 2231e22fef7dSSimon J. Gerraty 2232e22fef7dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170810 2233e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2234e22fef7dSSimon J. Gerraty o meta.c: if target is in subdir we only need subdir name in 2235e22fef7dSSimon J. Gerraty meta_name. 2236e22fef7dSSimon J. Gerraty 2237c7019bf7SSimon J. Gerraty2017-07-20 Simon J. Gerraty <sjg@bad.crufty.net> 2238c7019bf7SSimon J. Gerraty 2239c7019bf7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170720 2240c7019bf7SSimon J. Gerraty Merge with NetBSD make, pick up 2241c7019bf7SSimon J. Gerraty o compat.c: pass SIGINT etc onto child and wait for it to exit 2242c7019bf7SSimon J. Gerraty before we self-terminate. 2243c7019bf7SSimon J. Gerraty 22448695518cSSimon J. Gerraty2017-07-11 Simon J. Gerraty <sjg@bad.crufty.net> 22458695518cSSimon J. Gerraty 22468695518cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170711 22478695518cSSimon J. Gerraty forgot to update after merge on 20170708 ;-) 22488695518cSSimon J. Gerraty o main.c: refactor to reduce size of main function. 22498695518cSSimon J. Gerraty add -v option to always fully expand values. 22508695518cSSimon J. Gerraty o meta.c: ensure command output in meta file has ending newline 22518695518cSSimon J. Gerraty even when filemon not being used. 22528695518cSSimon J. Gerraty When matching ${.MAKE.META.IGNORE_PATTERNS} do not use 22538695518cSSimon J. Gerraty pathname via ':L' since any ':' in pathname breaks that. 22548695518cSSimon J. Gerraty Instead set a '${.p.}' to pathname in the target context and 22558695518cSSimon J. Gerraty use that. 22568695518cSSimon J. Gerraty 2257cac6fd11SSimon J. Gerraty2017-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 2258cac6fd11SSimon J. Gerraty 2259cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170510 2260cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2261cac6fd11SSimon J. Gerraty o main.c: Main_SetObjdir: ensure buf2 is in scope 2262cac6fd11SSimon J. Gerraty 2263cac6fd11SSimon J. Gerraty2017-05-08 Simon J. Gerraty <sjg@bad.crufty.net> 2264cac6fd11SSimon J. Gerraty 2265cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170505 2266cac6fd11SSimon J. Gerraty see mk/ChangeLog 2267cac6fd11SSimon J. Gerraty 2268cac6fd11SSimon J. Gerraty2017-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 2269cac6fd11SSimon J. Gerraty 2270cac6fd11SSimon J. Gerraty * parse.c: not everyone has stdint.h 2271cac6fd11SSimon J. Gerraty 2272cac6fd11SSimon J. Gerraty2017-05-01 Simon J. Gerraty <sjg@bad.crufty.net> 2273cac6fd11SSimon J. Gerraty 2274cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170501 2275cac6fd11SSimon J. Gerraty see mk/ChangeLog 2276cac6fd11SSimon J. Gerraty 2277cac6fd11SSimon J. Gerraty2017-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 2278cac6fd11SSimon J. Gerraty 2279cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170421 2280cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2281cac6fd11SSimon J. Gerraty o str.c: Str_Match: fix closure tests for [^] and add unit-test. 2282cac6fd11SSimon J. Gerraty 2283e1cee40dSSimon J. Gerraty2017-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 2284e1cee40dSSimon J. Gerraty 2285e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170420 2286e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2287e1cee40dSSimon J. Gerraty o main.c: only use -C arg "as is" if it contains no 2288e1cee40dSSimon J. Gerraty relative component. 2289e1cee40dSSimon J. Gerraty 2290e1cee40dSSimon J. Gerraty2017-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2291e1cee40dSSimon J. Gerraty 2292e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170418 2293e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2294e1cee40dSSimon J. Gerraty o main.c: fix Main_SetObjdir() for relative paths (eg obj). 2295e1cee40dSSimon J. Gerraty 2296e1cee40dSSimon J. Gerraty2017-04-17 Simon J. Gerraty <sjg@bad.crufty.net> 2297e1cee40dSSimon J. Gerraty 2298e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170417 2299e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2300e1cee40dSSimon J. Gerraty o fixes a number of coverity complaints 2301e1cee40dSSimon J. Gerraty - check return value of fseek, fcntl 2302e1cee40dSSimon J. Gerraty - plug memory leak in Dir_FindFile, Var_LoopExpand, 2303e1cee40dSSimon J. Gerraty JobPrintCommand, ParseTraditionalInclude 2304e1cee40dSSimon J. Gerraty - use bmake_malloc() where NULL is not tollerated 2305e1cee40dSSimon J. Gerraty - use MAKE_ATTR_UNUSED rather that kludges like 2306e1cee40dSSimon J. Gerraty return(unused ? 0 : 0) 2307e1cee40dSSimon J. Gerraty - use purge_cached_realpaths() rather than abuse cached_realpath() 2308e1cee40dSSimon J. Gerraty 2309b46b9039SSimon J. Gerraty2017-04-13 Simon J. Gerraty <sjg@bad.crufty.net> 2310b46b9039SSimon J. Gerraty 2311b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170413 2312b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2313b46b9039SSimon J. Gerraty o main.c: when setting .OBJDIR ignore '$' in paths. 2314b46b9039SSimon J. Gerraty 2315b46b9039SSimon J. Gerraty * job.c: use MALLOC_OPTIONS to set malloc_options. 2316b46b9039SSimon J. Gerraty 2317b46b9039SSimon J. Gerraty2017-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2318b46b9039SSimon J. Gerraty 2319b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170411 2320b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2321b46b9039SSimon J. Gerraty o str.c: Str_Match: allow [^a-z] to behave as expected. 2322b46b9039SSimon J. Gerraty 2323b46b9039SSimon J. Gerraty2017-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2324b46b9039SSimon J. Gerraty 2325b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170326 2326b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2327b46b9039SSimon J. Gerraty o main.c: purge relative paths from realpath cache when .OBJDIR 2328b46b9039SSimon J. Gerraty is changed. 2329b46b9039SSimon J. Gerraty 2330b46b9039SSimon J. Gerraty2017-03-11 Simon J. Gerraty <sjg@bad.crufty.net> 2331b46b9039SSimon J. Gerraty 2332b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170311 2333b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2334b46b9039SSimon J. Gerraty o main.c: only use -C arg "as is" if it starts with '/'. 2335b46b9039SSimon J. Gerraty 23361ce939a7SSimon J. Gerraty2017-03-01 Simon J. Gerraty <sjg@bad.crufty.net> 23371ce939a7SSimon J. Gerraty 23381ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170301 23391ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 2340b46b9039SSimon J. Gerraty o main.c: use -C arg "as is" rather than getcwd() 23411ce939a7SSimon J. Gerraty if they identify the same directory. 23421ce939a7SSimon J. Gerraty o parse.c: ensure loadfile buffer is \n terminated in non-mmap case 23431ce939a7SSimon J. Gerraty 23441ce939a7SSimon J. Gerraty2017-02-01 Simon J. Gerraty <sjg@bad.crufty.net> 23451ce939a7SSimon J. Gerraty 23461ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170201 23471ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 23481ce939a7SSimon J. Gerraty o var.c: allow :_=var and avoid use of special context. 23491ce939a7SSimon J. Gerraty 23501ce939a7SSimon J. Gerraty2017-01-30 Simon J. Gerraty <sjg@bad.crufty.net> 23511ce939a7SSimon J. Gerraty 23521ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170130 23531ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 23541ce939a7SSimon J. Gerraty o var.c: add :range and :_ 23551ce939a7SSimon J. Gerraty o main.c: partially initialize Dir_* before MainParseArgs() 23561ce939a7SSimon J. Gerraty can be called. 23571ce939a7SSimon J. Gerraty If -V, skip Main_ExportMAKEFLAGS() 23581ce939a7SSimon J. Gerraty 23591ce939a7SSimon J. Gerraty2017-01-14 Simon J. Gerraty <sjg@bad.crufty.net> 23601ce939a7SSimon J. Gerraty 23611ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170114 23621ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 23631ce939a7SSimon J. Gerraty o var.c: allow specifying the utc value used by :{gm,local}time 23641ce939a7SSimon J. Gerraty 236545447996SSimon J. Gerraty2016-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 236645447996SSimon J. Gerraty 236745447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161212 236845447996SSimon J. Gerraty Merge with NetBSD make, pick up 236945447996SSimon J. Gerraty o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too. 237045447996SSimon J. Gerraty 237145447996SSimon J. Gerraty2016-12-09 Simon J. Gerraty <sjg@bad.crufty.net> 237245447996SSimon J. Gerraty 237345447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161209 237445447996SSimon J. Gerraty Merge with NetBSD make, pick up 237545447996SSimon J. Gerraty o main.c: cleanup setting of .OBJDIR 237645447996SSimon J. Gerraty o parse.c: avoid coredump from (var)=val 237745447996SSimon J. Gerraty 237845447996SSimon J. Gerraty2016-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 237945447996SSimon J. Gerraty 238045447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161126 238145447996SSimon J. Gerraty Merge with NetBSD make, pick up 238245447996SSimon J. Gerraty o make.c: Make_OODate: report src node name if path not set 238345447996SSimon J. Gerraty 238445447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 238545447996SSimon J. Gerraty 238645447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160926 238745447996SSimon J. Gerraty Merge with NetBSD make, pick up 238845447996SSimon J. Gerraty o support for .DELETE_ON_ERROR: (remove targets that fail) 238945447996SSimon J. Gerraty 239045447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 239145447996SSimon J. Gerraty 239245447996SSimon J. Gerraty * Makefile MAN: tweak .Dt to match ${PROG} 239345447996SSimon J. Gerraty 239495e3ed2cSSimon J. Gerraty2016-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 239595e3ed2cSSimon J. Gerraty 239695e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160818 239795e3ed2cSSimon J. Gerraty its a neater number; pick up whitespace fixes to man page. 239895e3ed2cSSimon J. Gerraty 239995e3ed2cSSimon J. Gerraty2016-08-17 Simon J. Gerraty <sjg@bad.crufty.net> 240095e3ed2cSSimon J. Gerraty 240195e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160817 240295e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 240395e3ed2cSSimon J. Gerraty o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore() 240495e3ed2cSSimon J. Gerraty so we can call it before adding entries to missingFiles. 240595e3ed2cSSimon J. Gerraty Thus we do not track files we have been told to ignore. 240695e3ed2cSSimon J. Gerraty 240795e3ed2cSSimon J. Gerraty2016-08-15 Simon J. Gerraty <sjg@bad.crufty.net> 240895e3ed2cSSimon J. Gerraty 240995e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160815 241095e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 241195e3ed2cSSimon J. Gerraty o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to 241295e3ed2cSSimon J. Gerraty pathnames, and skip if the expansion is empty. 241395e3ed2cSSimon J. Gerraty Useful for dirdeps.mk when checking DIRDEPS_CACHE. 241495e3ed2cSSimon J. Gerraty 241595e3ed2cSSimon J. Gerraty2016-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 241695e3ed2cSSimon J. Gerraty 241795e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160812 241895e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 241995e3ed2cSSimon J. Gerraty o meta.c: remove all missingFiles entries that match a deleted 242095e3ed2cSSimon J. Gerraty dir. 242195e3ed2cSSimon J. Gerraty o main.c: set .ERROR_CMD if possible. 242295e3ed2cSSimon J. Gerraty 242339ac7ef4SSimon J. Gerraty2016-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 242439ac7ef4SSimon J. Gerraty 242539ac7ef4SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160606 242639ac7ef4SSimon J. Gerraty Merge with NetBSD make, pick up 242739ac7ef4SSimon J. Gerraty o dir.c: extend mtimes cache to others via cached_stat() 242839ac7ef4SSimon J. Gerraty 2429b778b302SSimon J. Gerraty2016-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 2430b778b302SSimon J. Gerraty 2431b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160604 2432b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2433b778b302SSimon J. Gerraty o meta.c: missing filemon data is only relevant if we read a 2434b778b302SSimon J. Gerraty meta file. 2435b778b302SSimon J. Gerraty Also do not return oodate for a missing metafile if gn->path 2436b778b302SSimon J. Gerraty points to .CURDIR 2437b778b302SSimon J. Gerraty 2438b778b302SSimon J. Gerraty2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 2439b778b302SSimon J. Gerraty 2440b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160602 2441b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2442b778b302SSimon J. Gerraty o cached_realpath(): avoid hitting filesystem more than necessary. 2443b778b302SSimon J. Gerraty o meta.c: refactor need_meta decision, add knobs for 2444b778b302SSimon J. Gerraty missing meta file and filemon data wrt out-of-datedness. 2445b778b302SSimon J. Gerraty 2446b778b302SSimon J. Gerraty2016-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 2447b778b302SSimon J. Gerraty 2448b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160528 2449b778b302SSimon J. Gerraty 2450b778b302SSimon J. Gerraty * boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION 2451b778b302SSimon J. Gerraty 2452e48f47ddSSimon J. Gerraty2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2453e48f47ddSSimon J. Gerraty 2454e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160512 2455e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2456e48f47ddSSimon J. Gerraty o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS 2457e48f47ddSSimon J. Gerraty this is useful for gcov builds. 2458e48f47ddSSimon J. Gerraty o propagate errors from filemon(4). 2459e48f47ddSSimon J. Gerraty 2460e48f47ddSSimon J. Gerraty2016-05-09 Simon J. Gerraty <sjg@bad.crufty.net> 2461e48f47ddSSimon J. Gerraty 2462e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160509 2463e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2464e48f47ddSSimon J. Gerraty o remove use of non-standard types u_int etc. 2465e48f47ddSSimon J. Gerraty o meta.c: apply realpath() before matching against metaIgnorePaths 2466e48f47ddSSimon J. Gerraty 2467e48f47ddSSimon J. Gerraty2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net> 2468e48f47ddSSimon J. Gerraty 2469e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160404 2470e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2471e48f47ddSSimon J. Gerraty o allow makefile to set .MAKE.JOBS 2472e48f47ddSSimon J. Gerraty 2473e48f47ddSSimon J. Gerraty * Makefile (PROG_NAME): use ${_MAKE_VERSION} 2474e48f47ddSSimon J. Gerraty 24753bebe729SSimon J. Gerraty2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net> 24763bebe729SSimon J. Gerraty 24773bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160315 24783bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 24793bebe729SSimon J. Gerraty o fix handling of archive members 24803bebe729SSimon J. Gerraty 24813bebe729SSimon J. Gerraty2016-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 24823bebe729SSimon J. Gerraty 24833bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): rename variable to avoid interference 24843bebe729SSimon J. Gerraty with checks for ${MAKE_VERSION} 24853bebe729SSimon J. Gerraty 24863bebe729SSimon J. Gerraty2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net> 24873bebe729SSimon J. Gerraty 24883bebe729SSimon J. Gerraty * Makefile (MAKE_VERSION): 20160310 24893bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 24903bebe729SSimon J. Gerraty o meta.c: treat missing Read file same as Write, incase we Delete it. 24913bebe729SSimon J. Gerraty 2492be19d90bSSimon J. Gerraty2016-03-07 Simon J. Gerraty <sjg@bad.crufty.net> 2493be19d90bSSimon J. Gerraty 2494be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160307 2495be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2496be19d90bSSimon J. Gerraty o var.c: fix :ts\nnn to be octal by default. 2497be19d90bSSimon J. Gerraty o meta.c: meta_finish() to cleanup memory. 2498be19d90bSSimon J. Gerraty 2499be19d90bSSimon J. Gerraty2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 2500be19d90bSSimon J. Gerraty 2501be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160226 2502be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2503be19d90bSSimon J. Gerraty o meta.c: allow meta file for makeDepend if makefiles want it. 2504be19d90bSSimon J. Gerraty 2505be19d90bSSimon J. Gerraty2016-02-19 Simon J. Gerraty <sjg@bad.crufty.net> 2506be19d90bSSimon J. Gerraty 2507be19d90bSSimon J. Gerraty * var.c: default .MAKE.SAVE_DOLLARS to FALSE 2508be19d90bSSimon J. Gerraty for backwards compatability. 2509be19d90bSSimon J. Gerraty 2510be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160220 2511be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2512be19d90bSSimon J. Gerraty o var.c: add knob to control handling of '$$' in := 2513be19d90bSSimon J. Gerraty 2514be19d90bSSimon J. Gerraty2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 2515be19d90bSSimon J. Gerraty 2516be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160218 2517be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2518be19d90bSSimon J. Gerraty o var.c: add .export-literal allows us to fix sys.clean-env.mk 2519be19d90bSSimon J. Gerraty post the changes to Var_Subst. 2520be19d90bSSimon J. Gerraty Var_Subst now takes flags, and does not consume '$$' in := 2521be19d90bSSimon J. Gerraty 2522be19d90bSSimon J. Gerraty2016-02-17 Simon J. Gerraty <sjg@bad.crufty.net> 2523be19d90bSSimon J. Gerraty 2524be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160217 2525be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2526be19d90bSSimon J. Gerraty o var.c: preserve '$$' in := 2527be19d90bSSimon J. Gerraty o parse.c: add .dinclude for handling included 2528be19d90bSSimon J. Gerraty makefile like .depend 2529be19d90bSSimon J. Gerraty 25306e050540SSimon J. Gerraty2015-12-20 Simon J. Gerraty <sjg@bad.crufty.net> 25316e050540SSimon J. Gerraty 25326e050540SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151220 25336e050540SSimon J. Gerraty Merge with NetBSD make, pick up 25346e050540SSimon J. Gerraty o suff.c: re-initialize suffNull when clearing suffixes. 25356e050540SSimon J. Gerraty 2536ac3446e9SSimon J. Gerraty2015-12-01 Simon J. Gerraty <sjg@bad.crufty.net> 2537ac3446e9SSimon J. Gerraty 2538ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151201 2539ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2540ac3446e9SSimon J. Gerraty o cond.c: CondCvtArg: avoid access beyond end of empty buffer. 2541ac3446e9SSimon J. Gerraty o meta.c: meta_oodate: use lstat(2) for checking link target 2542ac3446e9SSimon J. Gerraty in case it is a symlink. 2543ac3446e9SSimon J. Gerraty o var.c: avoid calling brk_string and Var_Export1 with empty 2544ac3446e9SSimon J. Gerraty strings. 2545ac3446e9SSimon J. Gerraty 2546ac3446e9SSimon J. Gerraty2015-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 2547ac3446e9SSimon J. Gerraty 2548ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151126 2549ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2550ac3446e9SSimon J. Gerraty o parse.c: ParseTrackInput don't access beyond 2551ac3446e9SSimon J. Gerraty end of old value. 2552ac3446e9SSimon J. Gerraty 2553ac3446e9SSimon J. Gerraty2015-10-22 Simon J. Gerraty <sjg@bad.crufty.net> 2554ac3446e9SSimon J. Gerraty 2555ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151022 2556ac3446e9SSimon J. Gerraty 2557ac3446e9SSimon J. Gerraty * Add support for BSD/OS which lacks inttypes.h 2558ac3446e9SSimon J. Gerraty and really needs sys/param.h for sys/sysctl.h 2559ac3446e9SSimon J. Gerraty also 'type' is not a shell builtin. 2560ac3446e9SSimon J. Gerraty 2561ac3446e9SSimon J. Gerraty * var.c: eliminate uint32_t and need for inttypes.h 2562ac3446e9SSimon J. Gerraty 2563ac3446e9SSimon J. Gerraty * main.c: PrintOnError flush stdout before run .ERROR 2564ac3446e9SSimon J. Gerraty 2565ac3446e9SSimon J. Gerraty * parse.c: cope with _SC_PAGESIZE not being defined. 2566ac3446e9SSimon J. Gerraty 2567ac3446e9SSimon J. Gerraty 25684c620fe5SSimon J. Gerraty2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net> 25694c620fe5SSimon J. Gerraty 25704c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151020 25714c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 25724c620fe5SSimon J. Gerraty o var.c: fix uninitialized var 25734c620fe5SSimon J. Gerraty 25744c620fe5SSimon J. Gerraty2015-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 25754c620fe5SSimon J. Gerraty 25764c620fe5SSimon J. Gerraty * var.c: the conditional expressions used with ':?' can be 25774c620fe5SSimon J. Gerraty expensive, if already discarding do not evaluate or expand 25784c620fe5SSimon J. Gerraty anything. 25794c620fe5SSimon J. Gerraty 25804c620fe5SSimon J. Gerraty2015-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 25814c620fe5SSimon J. Gerraty 25824c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151010 25834c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 25844c620fe5SSimon J. Gerraty o Add Boolean wantit flag to Var_Subst and Var_Parse 25854c620fe5SSimon J. Gerraty when FALSE we know we are discarding the result and can 25864c620fe5SSimon J. Gerraty skip operations like Cmd_Exec. 25874c620fe5SSimon J. Gerraty 25884c620fe5SSimon J. Gerraty2015-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 25894c620fe5SSimon J. Gerraty 25904c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151009 25914c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 25924c620fe5SSimon J. Gerraty o var.c: don't check for NULL before free() 25934c620fe5SSimon J. Gerraty o meta.c: meta_oodate, do not hard code ignore of makeDependfile 25944c620fe5SSimon J. Gerraty 25954c620fe5SSimon J. Gerraty2015-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 25964c620fe5SSimon J. Gerraty 25974c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150910 25984c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 25994c620fe5SSimon J. Gerraty o main.c: with -w print Enter/Leaving messages for objdir too 26004c620fe5SSimon J. Gerraty if necessary. 26014c620fe5SSimon J. Gerraty o centralize shell metachar handling 26024c620fe5SSimon J. Gerraty 26034c620fe5SSimon J. Gerraty * FILES: add metachar.[ch] 26044c620fe5SSimon J. Gerraty 2605128a4105SSimon J. Gerraty2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 2606128a4105SSimon J. Gerraty 2607128a4105SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150606 2608128a4105SSimon J. Gerraty Merge with NetBSD make, pick up 2609128a4105SSimon J. Gerraty o make.1: document .OBJDIR target 2610128a4105SSimon J. Gerraty 261128a6bc81SSimon J. Gerraty2015-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 261228a6bc81SSimon J. Gerraty 261328a6bc81SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150505 261428a6bc81SSimon J. Gerraty Merge with NetBSD make, pick up 261528a6bc81SSimon J. Gerraty o cond.c: be strict about lhs of comparison when evaluating .if 261628a6bc81SSimon J. Gerraty but less so when called from variable expansion. 261728a6bc81SSimon J. Gerraty o unit-tests/cond2.mk: test various error conditions 261828a6bc81SSimon J. Gerraty 261928a6bc81SSimon J. Gerraty2015-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 262028a6bc81SSimon J. Gerraty 262128a6bc81SSimon J. Gerraty * machine.sh (MACHINE): Add Bitrig 262228a6bc81SSimon J. Gerraty patch from joerg@netbsd.org 262328a6bc81SSimon J. Gerraty 2624db29cad8SSimon J. Gerraty2015-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2625db29cad8SSimon J. Gerraty 2626db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150418 2627db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2628db29cad8SSimon J. Gerraty o job.c: use memmove() rather than memcpy() 2629db29cad8SSimon J. Gerraty 2630db29cad8SSimon J. Gerraty * unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL 2631db29cad8SSimon J. Gerraty case, so skip it. 2632db29cad8SSimon J. Gerraty 2633db29cad8SSimon J. Gerraty2015-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2634db29cad8SSimon J. Gerraty 2635db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150411 2636db29cad8SSimon J. Gerraty bump version - only mk/ changes. 2637db29cad8SSimon J. Gerraty 2638db29cad8SSimon J. Gerraty2015-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 2639db29cad8SSimon J. Gerraty 2640db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150410 2641db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2642db29cad8SSimon J. Gerraty o document different handling of '-' in jobs mode vs compat 2643db29cad8SSimon J. Gerraty o fix jobs mode so that '-' only applies to whole job 2644db29cad8SSimon J. Gerraty when shell lacks hasErrCtl 2645db29cad8SSimon J. Gerraty o meta.c: use separate vars to track lcwd and latestdir (read) 2646db29cad8SSimon J. Gerraty per process 2647db29cad8SSimon J. Gerraty 2648db29cad8SSimon J. Gerraty2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 2649db29cad8SSimon J. Gerraty 2650db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150401 2651db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2652db29cad8SSimon J. Gerraty o meta.c: close meta file in child 2653db29cad8SSimon J. Gerraty 2654db29cad8SSimon J. Gerraty * Makefile: use BINDIR.bmake if set. 2655db29cad8SSimon J. Gerraty Same for MANDIR and SHAREDIR 2656db29cad8SSimon J. Gerraty Handy for testing release candidates 2657db29cad8SSimon J. Gerraty in various environments. 2658db29cad8SSimon J. Gerraty 2659db29cad8SSimon J. Gerraty2015-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2660db29cad8SSimon J. Gerraty 2661db29cad8SSimon J. Gerraty * move initialization of savederr to block where it is used 2662db29cad8SSimon J. Gerraty to avoid spurious warning from gcc5 2663db29cad8SSimon J. Gerraty 2664db29cad8SSimon J. Gerraty2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 2665db29cad8SSimon J. Gerraty 2666db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141111 2667db29cad8SSimon J. Gerraty just a cooler number 2668db29cad8SSimon J. Gerraty 2669db29cad8SSimon J. Gerraty2014-11-05 Simon J. Gerraty <sjg@bad.crufty.net> 2670db29cad8SSimon J. Gerraty 2671db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141105 2672db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2673db29cad8SSimon J. Gerraty o revert major overhaul of suffix handling 2674db29cad8SSimon J. Gerraty and POSIX compliance - too much breakage 2675db29cad8SSimon J. Gerraty and impossible to make backwards compatible. 2676db29cad8SSimon J. Gerraty o we still have the new unit test structure which is ok. 2677db29cad8SSimon J. Gerraty o meta.c ensure "-- filemon" is at start of line. 2678db29cad8SSimon J. Gerraty 2679db29cad8SSimon J. Gerraty2014-09-17 Simon J. Gerraty <sjg@bad.crufty.net> 2680db29cad8SSimon J. Gerraty 2681db29cad8SSimon J. Gerraty * configure.in: test that result of getconf PATH_MAX is numeric 2682db29cad8SSimon J. Gerraty and discard if not. Apparently needed for Hurd. 2683db29cad8SSimon J. Gerraty 2684db29cad8SSimon J. Gerraty2014-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 2685db29cad8SSimon J. Gerraty 2686db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140830 2687db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2688db29cad8SSimon J. Gerraty o major overhaul of suffix handling 2689db29cad8SSimon J. Gerraty o improved POSIX compliance 2690db29cad8SSimon J. Gerraty o overhauled unit-tests 2691db29cad8SSimon J. Gerraty 26925bcb7424SSimon J. Gerraty2014-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 26935bcb7424SSimon J. Gerraty 26945bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140620 26955bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 2696db29cad8SSimon J. Gerraty o var.c return varNoError rather than var_Error for ::= modifiers. 26975bcb7424SSimon J. Gerraty 26985bcb7424SSimon J. Gerraty2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net> 26995bcb7424SSimon J. Gerraty 27005bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140522 27015bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 27025bcb7424SSimon J. Gerraty o var.c detect some parse errors. 27035bcb7424SSimon J. Gerraty 27045bcb7424SSimon J. Gerraty2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 27055bcb7424SSimon J. Gerraty 27065bcb7424SSimon J. Gerraty * Fix spelling errors - patch from Pedro Giffuni 27075bcb7424SSimon J. Gerraty 27085bcb7424SSimon J. Gerraty2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 27095bcb7424SSimon J. Gerraty 27105bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140214 27115bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 27125bcb7424SSimon J. Gerraty o .INCLUDEFROM* 27135bcb7424SSimon J. Gerraty o use Var_Value to get MAKEOBJDIR[PREFIX] 27145bcb7424SSimon J. Gerraty o reduced realloc'ign in brk_string. 27155bcb7424SSimon J. Gerraty * configure.in: add a check for compiler supporting __func__ 27165bcb7424SSimon J. Gerraty 27170dede8b0SSimon J. Gerraty2014-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 27180dede8b0SSimon J. Gerraty 27190dede8b0SSimon J. Gerraty * boot-strap: ignore mksrc=none 27200dede8b0SSimon J. Gerraty 27210dede8b0SSimon J. Gerraty2014-01-02 Simon J. Gerraty <sjg@bad.crufty.net> 27220dede8b0SSimon J. Gerraty 27230dede8b0SSimon J. Gerraty * Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk 27240dede8b0SSimon J. Gerraty 27250dede8b0SSimon J. Gerraty2014-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 27260dede8b0SSimon J. Gerraty 27270dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140101 27280dede8b0SSimon J. Gerraty * configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024) 27290dede8b0SSimon J. Gerraty * Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max 27300dede8b0SSimon J. Gerraty * make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for 27310dede8b0SSimon J. Gerraty Hurd) 27320dede8b0SSimon J. Gerraty * configure.in: Add AC_PREREQ and check for 27330dede8b0SSimon J. Gerraty sysctl; patch from Andrew Shadura andrewsh at debian.org 27340dede8b0SSimon J. Gerraty 27350dede8b0SSimon J. Gerraty2013-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 27360dede8b0SSimon J. Gerraty 27370dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131010 27380dede8b0SSimon J. Gerraty * lose the const from arg to systcl to avoid problems on older BSDs. 27390dede8b0SSimon J. Gerraty 27400dede8b0SSimon J. Gerraty2013-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 27410dede8b0SSimon J. Gerraty 27420dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131001 27430dede8b0SSimon J. Gerraty Merge with NetBSD make, pick up 27440dede8b0SSimon J. Gerraty o main.c: for NATIVE build sysctl to get MACHINE_ARCH from 27450dede8b0SSimon J. Gerraty hw.machine_arch if necessary. 27460dede8b0SSimon J. Gerraty o meta.c: meta_oodate - need to look at src of Link and target 27470dede8b0SSimon J. Gerraty of Move as well. 27480dede8b0SSimon J. Gerraty * main.c: check that CTL_HW and HW_MACHINE_ARCH exist. 27490dede8b0SSimon J. Gerraty provide __arraycount() if needed. 27500dede8b0SSimon J. Gerraty 27511bbe5942SSimon J. Gerraty2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net> 27521bbe5942SSimon J. Gerraty 27531bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130904 27541bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 27551bbe5942SSimon J. Gerraty o Add VAR_INTERNAL context, so that internal setting of 27561bbe5942SSimon J. Gerraty MAKEFILE does not override value set by makefiles. 27571bbe5942SSimon J. Gerraty 27581bbe5942SSimon J. Gerraty2013-09-02 Simon J. Gerraty <sjg@bad.crufty.net> 27591bbe5942SSimon J. Gerraty 27601bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130902 27611bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 27621bbe5942SSimon J. Gerraty o CompatRunCommand: only apply shellErrFlag when errCheck is true 27631bbe5942SSimon J. Gerraty 27641bbe5942SSimon J. Gerraty2013-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 27651bbe5942SSimon J. Gerraty 27661bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130828 27671bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 27681bbe5942SSimon J. Gerraty o Fix VAR :sh = syntax from Will Andrews at freebsd.org 27691bbe5942SSimon J. Gerraty o Call Job_SetPrefix() from Job_Init() so makefiles have 27701bbe5942SSimon J. Gerraty opportunity to set .MAKE.JOB.PREFIX 27711bbe5942SSimon J. Gerraty 277251ee2c1cSSimon J. Gerraty2013-07-30 Simon J. Gerraty <sjg@bad.crufty.net> 277351ee2c1cSSimon J. Gerraty 277451ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130730 277551ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 277651ee2c1cSSimon J. Gerraty o Allow suppression of --- job -- tokens by setting 277751ee2c1cSSimon J. Gerraty .MAKE.JOB.PREFIX empty. 277851ee2c1cSSimon J. Gerraty 277951ee2c1cSSimon J. Gerraty2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net> 278051ee2c1cSSimon J. Gerraty 278151ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130716 278251ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 27835bcb7424SSimon J. Gerraty o number of gmake compatibility tweaks 278451ee2c1cSSimon J. Gerraty -w for gmake style entering/leaving messages 278551ee2c1cSSimon J. Gerraty if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc. 278651ee2c1cSSimon J. Gerraty handle MAKEFLAGS containing only letters. 278751ee2c1cSSimon J. Gerraty o when overriding a GLOBAL variable on the command line, 278851ee2c1cSSimon J. Gerraty delete it from GLOBAL context so -V doesn't show the wrong 278951ee2c1cSSimon J. Gerraty value. 279051ee2c1cSSimon J. Gerraty 279151ee2c1cSSimon J. Gerraty2013-07-06 Simon J. Gerraty <sjg@bad.crufty.net> 279251ee2c1cSSimon J. Gerraty 279351ee2c1cSSimon J. Gerraty * configure.in: We don't need MAKE_LEVEL_SAFE anymore. 279451ee2c1cSSimon J. Gerraty 279551ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130706 279651ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 279751ee2c1cSSimon J. Gerraty o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is 279851ee2c1cSSimon J. Gerraty true so that CompatRunCommand() can use it, to ensure 279951ee2c1cSSimon J. Gerraty consistent behavior with jobs mode. 280051ee2c1cSSimon J. Gerraty o use MAKE_LEVEL_ENV to define the variable to propagate 280151ee2c1cSSimon J. Gerraty .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake). 280251ee2c1cSSimon J. Gerraty o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of 280351ee2c1cSSimon J. Gerraty paths to ignore. 280451ee2c1cSSimon J. Gerraty 280574d2e02bSSimon J. Gerraty2013-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 280674d2e02bSSimon J. Gerraty 280774d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130604 280874d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 280974d2e02bSSimon J. Gerraty o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's 281074d2e02bSSimon J. Gerraty to avoid leaking descriptors. 281174d2e02bSSimon J. Gerraty 281274d2e02bSSimon J. Gerraty2013-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 281374d2e02bSSimon J. Gerraty 281474d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130528 281574d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 281674d2e02bSSimon J. Gerraty o var.c: cleanup some left-overs in VarHash() 281774d2e02bSSimon J. Gerraty 281852d86256SSimon J. Gerraty2013-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 281952d86256SSimon J. Gerraty 282052d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130520 282152d86256SSimon J. Gerraty generate manifest from component FILES rather than have to 282252d86256SSimon J. Gerraty update FILES when mk/FILES changes. 282352d86256SSimon J. Gerraty 282452d86256SSimon J. Gerraty2013-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 282552d86256SSimon J. Gerraty 282652d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130518 282752d86256SSimon J. Gerraty Merge with NetBSD make, pick up 282852d86256SSimon J. Gerraty o suff.c: don't skip all processsing for .PHONY targets 282952d86256SSimon J. Gerraty else wildcard srcs do not get expanded. 283052d86256SSimon J. Gerraty o var.c: expand name of variable to delete if necessary. 283152d86256SSimon J. Gerraty 28321748de26SSimon J. Gerraty2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 28331748de26SSimon J. Gerraty 28341748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130330 28351748de26SSimon J. Gerraty Merge with NetBSD make, pick up 28361748de26SSimon J. Gerraty o meta.c: refine the handling of .OODATE in commands. 28371748de26SSimon J. Gerraty Rather than suppress command comparison for the entire script 28381748de26SSimon J. Gerraty as though .NOMETA_CMP had been used, only suppress it for the 28391748de26SSimon J. Gerraty one command line. 28401748de26SSimon J. Gerraty This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 28411748de26SSimon J. Gerraty suppress comparison of a command without otherwise affecting it. 28421748de26SSimon J. Gerraty o make.1: document that 28431748de26SSimon J. Gerraty 28441748de26SSimon J. Gerraty2013-03-22 Simon J. Gerraty <sjg@bad.crufty.net> 28451748de26SSimon J. Gerraty 28461748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130321 28471748de26SSimon J. Gerraty yes, not quite right but its a cooler number. 28481748de26SSimon J. Gerraty Merge with NetBSD make, pick up 28491748de26SSimon J. Gerraty o parse.c: fix ParseGmakeExport to be portable 28501748de26SSimon J. Gerraty and add a unit-test. 28511748de26SSimon J. Gerraty * meta.c: call meta_init() before makefiles are read and if built 28521748de26SSimon J. Gerraty with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON 28531748de26SSimon J. Gerraty this let's makefiles test for support. 28541748de26SSimon J. Gerraty Call meta_mode_init() to process .MAKE.MODE. 28551748de26SSimon J. Gerraty 28561748de26SSimon J. Gerraty2013-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 28571748de26SSimon J. Gerraty 28581748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130305 28591748de26SSimon J. Gerraty Merge with NetBSD make, pick up 28601748de26SSimon J. Gerraty o run .STALE: target when a dependency from .depend is missing. 28611748de26SSimon J. Gerraty o job.c: add Job_RunTarget() for the above and .BEGIN 28621748de26SSimon J. Gerraty 28631748de26SSimon J. Gerraty2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 28641748de26SSimon J. Gerraty 28651748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130303 28661748de26SSimon J. Gerraty Merge with NetBSD make, pick up 28671748de26SSimon J. Gerraty o main.c: set .MAKE.OS to utsname.sysname 28681748de26SSimon J. Gerraty o job.c: more checks for read and poll errors 28691748de26SSimon J. Gerraty o var.c: lose VarChangeCase() saves 4% time 28701748de26SSimon J. Gerraty 28711748de26SSimon J. Gerraty2013-03-02 Simon J. Gerraty <sjg@bad.crufty.net> 28721748de26SSimon J. Gerraty 28731748de26SSimon J. Gerraty * boot-strap: remove MAKEOBJDIRPREFIX from environment since we 28741748de26SSimon J. Gerraty want to use MAKEOBJDIR 28751748de26SSimon J. Gerraty 28763cbdda60SSimon J. Gerraty2013-01-27 Simon J. Gerraty <sjg@bad.crufty.net> 28773cbdda60SSimon J. Gerraty 28783cbdda60SSimon J. Gerraty * Merge with NetBSD make, pick up 28793cbdda60SSimon J. Gerraty o make.1: more info on how shell commands are handled. 28803cbdda60SSimon J. Gerraty o job.c,main.c: detect write errors to job pipes. 28813cbdda60SSimon J. Gerraty 28823cbdda60SSimon J. Gerraty2013-01-25 Simon J. Gerraty <sjg@bad.crufty.net> 28833cbdda60SSimon J. Gerraty 28843cbdda60SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130123 28853cbdda60SSimon J. Gerraty Merge with NetBSD make, pick up 28863cbdda60SSimon J. Gerraty o meta.c: if script uses .OODATE and meta_oodate() decides 28873cbdda60SSimon J. Gerraty rebuild is needed, .OODATE will be empty - set it to .ALLSRC. 28883cbdda60SSimon J. Gerraty o var.c: in debug output indicate which variabale modifiers 28893cbdda60SSimon J. Gerraty apply to. 28903cbdda60SSimon J. Gerraty o remove Check_Cwd logic the makefiles have been fixed. 28913cbdda60SSimon J. Gerraty 28923cbdda60SSimon J. Gerraty2012-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 28933cbdda60SSimon J. Gerraty 28943cbdda60SSimon J. Gerraty * makefile.in: add a simple makefile for folk who insist on 28953cbdda60SSimon J. Gerraty ./configure; make; make install 28963cbdda60SSimon J. Gerraty it just runs boot-strap 28973cbdda60SSimon J. Gerraty * include mk/* to accommodate the above 28983cbdda60SSimon J. Gerraty * boot-strap: re-work to accommodate the above 28993cbdda60SSimon J. Gerraty mksrc defaults to $Mydir/mk 29003cbdda60SSimon J. Gerraty allow op={configure,build,install,clean,all} 29013cbdda60SSimon J. Gerraty add options to facilitate install 29023cbdda60SSimon J. Gerraty * Makefile.config.in: just the bits set by configure 29033cbdda60SSimon J. Gerraty * Makefile: bump version to 20121212 29043cbdda60SSimon J. Gerraty abandon Makefile.in (NetBSD Makefile) 29053cbdda60SSimon J. Gerraty leverage mk/* instead 29063cbdda60SSimon J. Gerraty * configure.in: ensure srcdir is absolute 29073cbdda60SSimon J. Gerraty 290859a02420SSimon J. Gerraty2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 290959a02420SSimon J. Gerraty 291059a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121111 291159a02420SSimon J. Gerraty fix generation of bmake.cat1 291259a02420SSimon J. Gerraty 291359a02420SSimon J. Gerraty2012-11-09 Simon J. Gerraty <sjg@bad.crufty.net> 291459a02420SSimon J. Gerraty 291559a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121109 291659a02420SSimon J. Gerraty Merge with NetBSD make, pick up 291759a02420SSimon J. Gerraty o make.c: MakeBuildChild: return 0 so search continues if a 291859a02420SSimon J. Gerraty .ORDER dependency is detected. 291959a02420SSimon J. Gerraty o unit-tests/order: test the above 292059a02420SSimon J. Gerraty 292159a02420SSimon J. Gerraty2012-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 292259a02420SSimon J. Gerraty 292359a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121102 292459a02420SSimon J. Gerraty Merge with NetBSD make, pick up 292559a02420SSimon J. Gerraty o cond.c: allow cond_state[] to grow. 292659a02420SSimon J. Gerraty In meta mode with a very large tree, we can hit the limit 292759a02420SSimon J. Gerraty while processing dirdeps. 292859a02420SSimon J. Gerraty 292959a02420SSimon J. Gerraty2012-10-25 Simon J. Gerraty <sjg@bad.crufty.net> 293059a02420SSimon J. Gerraty 293159a02420SSimon J. Gerraty * Makefile.in: we need to use ${srcdir} not ${.CURDIR} 293259a02420SSimon J. Gerraty 293393036677SSimon J. Gerraty2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 293493036677SSimon J. Gerraty 293593036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121010 293693036677SSimon J. Gerraty o protect syntax that only bmake parses correctly. 293793036677SSimon J. Gerraty o remove auto setting of FORCE_MACHINE, use configure's 293893036677SSimon J. Gerraty --with-force-machine=whatever if that is desired. 293993036677SSimon J. Gerraty 294093036677SSimon J. Gerraty2012-10-08 Simon J. Gerraty <sjg@bad.crufty.net> 294193036677SSimon J. Gerraty 294293036677SSimon J. Gerraty * Makefile.in: do not lose history from make.1 when generating bmake.1 294393036677SSimon J. Gerraty 294493036677SSimon J. Gerraty2012-10-07 Simon J. Gerraty <sjg@bad.crufty.net> 294593036677SSimon J. Gerraty 294693036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121007 294793036677SSimon J. Gerraty Merge with NetBSD make, pick up 294893036677SSimon J. Gerraty o compat.c: ignore empty commands - same as jobs mode. 294993036677SSimon J. Gerraty o make.1: document meta chars that cause use of shell 295093036677SSimon J. Gerraty 295193036677SSimon J. Gerraty2012-09-11 Simon J. Gerraty <sjg@bad.crufty.net> 295293036677SSimon J. Gerraty 295393036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): bump version to 20120911 295493036677SSimon J. Gerraty * bsd.after-import.mk: include Makefile.inc early and allow it to 295593036677SSimon J. Gerraty override PROG 295693036677SSimon J. Gerraty 29573955d011SMarcel Moolenaar2012-08-31 Simon J. Gerraty <sjg@bad.crufty.net> 29583955d011SMarcel Moolenaar 29593955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120831 29603955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29613955d011SMarcel Moolenaar o cast sizeof() to int for comparison 29623955d011SMarcel Moolenaar o minor make.1 tweak 29633955d011SMarcel Moolenaar 29643955d011SMarcel Moolenaar2012-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 29653955d011SMarcel Moolenaar 29663955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120830 29673955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29683955d011SMarcel Moolenaar o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V 29693955d011SMarcel Moolenaar o debug flag -dV causes -V to show raw value regardless. 29703955d011SMarcel Moolenaar 29713955d011SMarcel Moolenaar2012-07-05 Simon J. Gerraty <sjg@bad.crufty.net> 29723955d011SMarcel Moolenaar 29733955d011SMarcel Moolenaar * bsd.after-import.mk (after-import): ensure unit-tests/Makefile 29743955d011SMarcel Moolenaar gets SRCTOP set. 29753955d011SMarcel Moolenaar 29763955d011SMarcel Moolenaar2012-07-04 Simon J. Gerraty <sjg@bad.crufty.net> 29773955d011SMarcel Moolenaar 29783955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120704 29793955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29803955d011SMarcel Moolenaar o Job_ParseShell should call Shell_Init if it has been 29813955d011SMarcel Moolenaar previously called. 29823955d011SMarcel Moolenaar * Makefile.in: set USE_META based on configure result. 29833955d011SMarcel Moolenaar also .PARSEDIR is safer indicator of bmake. 29843955d011SMarcel Moolenaar 29853955d011SMarcel Moolenaar2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net> 29863955d011SMarcel Moolenaar 29873955d011SMarcel Moolenaar * Makefile.in: bump version to 20120626 29883955d011SMarcel Moolenaar ensure CPPFLAGS is in CFLAGS 29893955d011SMarcel Moolenaar * meta.c: avoid nested externs 29903955d011SMarcel Moolenaar * bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target 29913955d011SMarcel Moolenaar 29923955d011SMarcel Moolenaar2012-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 29933955d011SMarcel Moolenaar 29943955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120620 29953955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29963955d011SMarcel Moolenaar o make_malloc.c: avoid including make_malloc.h again 29973955d011SMarcel Moolenaar 29983955d011SMarcel Moolenaar * Makefile.in: avoid bmake only syntax or protect with 29993955d011SMarcel Moolenaar .if defined(.MAKE.LEVEL) 30003955d011SMarcel Moolenaar * bsd.after-import.mk: replace .-include with .sinclude 30013955d011SMarcel Moolenaar ensure? SRCTOP gets a value 30023955d011SMarcel Moolenaar * configure.in: look for filemon.h in /usr/include/dev/filemon first. 30033955d011SMarcel Moolenaar 30043955d011SMarcel Moolenaar2012-06-19 Simon J. Gerraty <sjg@bad.crufty.net> 30053955d011SMarcel Moolenaar 30063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120612 30073955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30083955d011SMarcel Moolenaar o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler 30093955d011SMarcel Moolenaar for greater portability. 30103955d011SMarcel Moolenaar o unit-tests/forloop: check that .for works as expected wrt 30113955d011SMarcel Moolenaar number of times and with "quoted strings". 30123955d011SMarcel Moolenaar 30133955d011SMarcel Moolenaar2012-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 30143955d011SMarcel Moolenaar 30153955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120606 30163955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30173955d011SMarcel Moolenaar o compat.c: use kill(2) rather than raise(3). 30183955d011SMarcel Moolenaar * configure.in: look for sys/dev/filemon 30193955d011SMarcel Moolenaar * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile 30203955d011SMarcel Moolenaar and pass BOOTSTRAP_XTRAS to boot-strap. 30213955d011SMarcel Moolenaar 30223955d011SMarcel Moolenaar2012-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 30233955d011SMarcel Moolenaar 30243955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120604 30253955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30263955d011SMarcel Moolenaar o util.c and var.c share same var for tracking if environ 30273955d011SMarcel Moolenaar has been reallocated. 30283955d011SMarcel Moolenaar o util.c provide getenv with setenv. 30293955d011SMarcel Moolenaar * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL 30303955d011SMarcel Moolenaar when the shell actively strips .MAKE.* from the environment. 30313955d011SMarcel Moolenaar We still refer to the variable always as .MAKE.LEVEL 30323955d011SMarcel Moolenaar * util.c fix bug in findenv() was finding prefix of name. 30333955d011SMarcel Moolenaar * compat.c: re-raising SIGINT etc after running .INTERRUPT 30343955d011SMarcel Moolenaar results in more reliable termination of all activity on many 30353955d011SMarcel Moolenaar platforms. 30363955d011SMarcel Moolenaar 30373955d011SMarcel Moolenaar2012-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 30383955d011SMarcel Moolenaar 30393955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120602 30403955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30413955d011SMarcel Moolenaar o for.c: handle quoted items in .for list 30423955d011SMarcel Moolenaar 30433955d011SMarcel Moolenaar2012-05-30 Simon J. Gerraty <sjg@bad.crufty.net> 30443955d011SMarcel Moolenaar 30453955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120530 30463955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30473955d011SMarcel Moolenaar o compat.c: ignore empty command. 30483955d011SMarcel Moolenaar 30493955d011SMarcel Moolenaar2012-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 30503955d011SMarcel Moolenaar 30513955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120524 30523955d011SMarcel Moolenaar * FILES: add bsd.after-import.mk: 30533955d011SMarcel Moolenaar A simple means of integrating bmake into a BSD build system. 30543955d011SMarcel Moolenaar 30553955d011SMarcel Moolenaar2012-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 30563955d011SMarcel Moolenaar 30573955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120520 30583955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30593955d011SMarcel Moolenaar o increased limit for nested conditionals. 30603955d011SMarcel Moolenaar 30613955d011SMarcel Moolenaar2012-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 30623955d011SMarcel Moolenaar 30633955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120518 30643955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30653955d011SMarcel Moolenaar o use _exit(2) in signal hanlder 30663955d011SMarcel Moolenaar o Don't use the [dir] cache when building nodes that might have 30673955d011SMarcel Moolenaar changed since the last exec. 30683955d011SMarcel Moolenaar o Avoid nested extern declaration warnings. 30693955d011SMarcel Moolenaar 30703955d011SMarcel Moolenaar2012-04-27 Simon J. Gerraty <sjg@bad.crufty.net> 30713955d011SMarcel Moolenaar 30723955d011SMarcel Moolenaar * meta.c (fgetLine): avoid %z - not portable. 30733955d011SMarcel Moolenaar * parse.c: Since we moved include of sys/mman.h 30743955d011SMarcel Moolenaar and def's of MAP_COPY etc. we got dups from a merge. 30753955d011SMarcel Moolenaar 30763955d011SMarcel Moolenaar2012-04-24 Simon J. Gerraty <sjg@bad.crufty.net> 30773955d011SMarcel Moolenaar 30783955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 30793955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30803955d011SMarcel Moolenaar o restore duplicate supression in .MAKE.MAKEFILES 30813955d011SMarcel Moolenaar runtime saving can be significant. 30823955d011SMarcel Moolenaar o Var_Subst() uses Buf_DestroyCompact() to reduce memory 30833955d011SMarcel Moolenaar consumption up to 20%. 30843955d011SMarcel Moolenaar 30853955d011SMarcel Moolenaar2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 30863955d011SMarcel Moolenaar 30873955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 30883955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30893955d011SMarcel Moolenaar o remove duplicate supression in .MAKE.MAKEFILES 30903955d011SMarcel Moolenaar o improved dir cache behavior 30913955d011SMarcel Moolenaar o gmake'ish export command 30923955d011SMarcel Moolenaar 30933955d011SMarcel Moolenaar2012-03-25 Simon J. Gerraty <sjg@bad.crufty.net> 30943955d011SMarcel Moolenaar 30953955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120325 30963955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30973955d011SMarcel Moolenaar o fix parsing of :[#] in conditionals. 30983955d011SMarcel Moolenaar 30993955d011SMarcel Moolenaar2012-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 31003955d011SMarcel Moolenaar 31013955d011SMarcel Moolenaar * Makefile.in: replace use of .Nx in bmake.1 with NetBSD 31023955d011SMarcel Moolenaar since some systems cannot cope with .Nx <version> 31033955d011SMarcel Moolenaar 31043955d011SMarcel Moolenaar2011-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 31053955d011SMarcel Moolenaar 31063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111111 31073955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31083955d011SMarcel Moolenaar o debug output for .PARSEDIR and .PARSEFILE 31093955d011SMarcel Moolenaar 31103955d011SMarcel Moolenaar2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 31113955d011SMarcel Moolenaar 31123955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111010 31133955d011SMarcel Moolenaar 31143955d011SMarcel Moolenaar2011-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 31153955d011SMarcel Moolenaar 31163955d011SMarcel Moolenaar * boot-strap: check for an expected file in the dirs we look for. 31173955d011SMarcel Moolenaar * make-bootstrap.sh: pass on LDSTATIC 31183955d011SMarcel Moolenaar 31193955d011SMarcel Moolenaar2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 31203955d011SMarcel Moolenaar 31213955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111001 31223955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31233955d011SMarcel Moolenaar o ensure .PREFIX is set for .PHONY 31243955d011SMarcel Moolenaar and .TARGET set for .PHONY run via .END 31253955d011SMarcel Moolenaar o __dead used consistently 31263955d011SMarcel Moolenaar 31273955d011SMarcel Moolenaar2011-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 31283955d011SMarcel Moolenaar 31293955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-) 31303955d011SMarcel Moolenaar 31313955d011SMarcel Moolenaar2011-09-05 Simon J. Gerraty <sjg@bad.crufty.net> 31323955d011SMarcel Moolenaar 31333955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110905 31343955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31353955d011SMarcel Moolenaar o meta_oodate: ignore makeDependfile 31363955d011SMarcel Moolenaar 31373955d011SMarcel Moolenaar2011-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 31383955d011SMarcel Moolenaar 31393955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110828 31403955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31413955d011SMarcel Moolenaar o silent=yes in .MAKE.MODE causes meta mode to mark targets 31423955d011SMarcel Moolenaar as SILENT if a .meta file is created 31433955d011SMarcel Moolenaar 31443955d011SMarcel Moolenaar2011-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 31453955d011SMarcel Moolenaar 31463955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110818 31473955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31483955d011SMarcel Moolenaar o in meta mode, if target flagged .META a missing .meta file 31493955d011SMarcel Moolenaar means target is out-of-date 31503955d011SMarcel Moolenaar o fixes for gcc 4.5 warnings 31513955d011SMarcel Moolenaar o simplify job printing code 31523955d011SMarcel Moolenaar 31533955d011SMarcel Moolenaar2011-08-09 Simon J. Gerraty <sjg@bad.crufty.net> 31543955d011SMarcel Moolenaar 31553955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110808 31563955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31573955d011SMarcel Moolenaar o do not touch OP_SPECIAL targets when doing make -t 31583955d011SMarcel Moolenaar 31593955d011SMarcel Moolenaar2011-06-22 Simon J. Gerraty <sjg@bad.crufty.net> 31603955d011SMarcel Moolenaar 31613955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110622 31623955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31633955d011SMarcel Moolenaar o meta_oodate detect corrupted .meta file and declare oodate. 31643955d011SMarcel Moolenaar * configure.in: add check for setsid 31653955d011SMarcel Moolenaar 31663955d011SMarcel Moolenaar2011-06-07 Simon J. Gerraty <sjg@bad.crufty.net> 31673955d011SMarcel Moolenaar 31683955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 31693955d011SMarcel Moolenaar o unit-tests/modts now works on MirBSD 31703955d011SMarcel Moolenaar 31713955d011SMarcel Moolenaar2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 31723955d011SMarcel Moolenaar 31733955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110606 31743955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31753955d011SMarcel Moolenaar o ApplyModifiers: when we parse a variable which is not 31763955d011SMarcel Moolenaar the entire modifier string, or not followed by ':', do not 31773955d011SMarcel Moolenaar consider it as containing modifiers. 31783955d011SMarcel Moolenaar o loadfile: ensure newline at end of mapped file. 31793955d011SMarcel Moolenaar 31803955d011SMarcel Moolenaar2011-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 31813955d011SMarcel Moolenaar 31823955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110505 31833955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31843955d011SMarcel Moolenaar o .MAKE.META.BAILIWICK - list of prefixes which define the scope 31853955d011SMarcel Moolenaar of make's control. In meta mode, any generated file within 31863955d011SMarcel Moolenaar said bailiwick, which is found to be missing, causes current 31873955d011SMarcel Moolenaar target to be out-of-date. 31883955d011SMarcel Moolenaar 31893955d011SMarcel Moolenaar2011-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 31903955d011SMarcel Moolenaar 31913955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110411 31923955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31933955d011SMarcel Moolenaar o when long modifiers fail to match, check sysV style. 31943955d011SMarcel Moolenaar - add a test case 31953955d011SMarcel Moolenaar 31963955d011SMarcel Moolenaar2011-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 31973955d011SMarcel Moolenaar 31983955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110410 31993955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32003955d011SMarcel Moolenaar o :hash - cheap 32bit hash of value 32013955d011SMarcel Moolenaar o :localtime, :gmtime - use value as format string for strftime. 32023955d011SMarcel Moolenaar 32033955d011SMarcel Moolenaar2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 32043955d011SMarcel Moolenaar 32053955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110330 32063955d011SMarcel Moolenaar mostly because its a cooler version. 32073955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32083955d011SMarcel Moolenaar o NetBSD tags for meta.[ch] 32093955d011SMarcel Moolenaar o job.c call meta_job_finish() after meta_job_error(). 32103955d011SMarcel Moolenaar o meta_job_error() should call meta_job_finish() to ensure 32113955d011SMarcel Moolenaar .meta file is closed, and safe to copy - if .ERROR target wants. 32123955d011SMarcel Moolenaar meta_job_finish() is safe to call repeatedly. 32133955d011SMarcel Moolenaar 32143955d011SMarcel Moolenaar2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net> 32153955d011SMarcel Moolenaar 32163955d011SMarcel Moolenaar * unit-tests/modts: use printf if it is a builtin, 32173955d011SMarcel Moolenaar to save us from MirBSD 32183955d011SMarcel Moolenaar 32193955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110329 32203955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32213955d011SMarcel Moolenaar o fix for use after free() in CondDoExists(). 32223955d011SMarcel Moolenaar o meta_oodate() report extra commands and return earlier. 32233955d011SMarcel Moolenaar 32243955d011SMarcel Moolenaar2011-03-27 Simon J. Gerraty <sjg@bad.crufty.net> 32253955d011SMarcel Moolenaar 32263955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110327 32273955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32283955d011SMarcel Moolenaar o meta.c, if .MAKE.MODE contains curdirOk=yes 32293955d011SMarcel Moolenaar allow creating .meta files in .CURDIR 32303955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): aparently at least on linux distro 32313955d011SMarcel Moolenaar formats the output of 'type' differently - so eat any "()" 32323955d011SMarcel Moolenaar 32333955d011SMarcel Moolenaar2011-03-06 Simon J. Gerraty <sjg@bad.crufty.net> 32343955d011SMarcel Moolenaar 32353955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110306 32363955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32373955d011SMarcel Moolenaar o meta.c, only do getcwd() once 32383955d011SMarcel Moolenaar 32393955d011SMarcel Moolenaar2011-03-05 Simon J. Gerraty <sjg@bad.crufty.net> 32403955d011SMarcel Moolenaar 32413955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110305 32423955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32433955d011SMarcel Moolenaar o correct sysV substitution handling of empty lhs and variable 32443955d011SMarcel Moolenaar o correct exists() check for dir with trailing / 32453955d011SMarcel Moolenaar o correct handling of modifiers for non-existant variables 32463955d011SMarcel Moolenaar during evaluation of conditionals. 32473955d011SMarcel Moolenaar o ensure MAP_FILE is defined. 32483955d011SMarcel Moolenaar o meta.c use curdir[] now exported by main.c 32493955d011SMarcel Moolenaar 32503955d011SMarcel Moolenaar2011-02-25 Simon J. Gerraty <sjg@bad.crufty.net> 32513955d011SMarcel Moolenaar 32523955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110225 32533955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32543955d011SMarcel Moolenaar o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after 32553955d011SMarcel Moolenaar makefiles have been read. 32563955d011SMarcel Moolenaar o fix example of :? modifier in man page. 32573955d011SMarcel Moolenaar 32583955d011SMarcel Moolenaar2011-02-13 Simon J. Gerraty <sjg@bad.crufty.net> 32593955d011SMarcel Moolenaar 32603955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110214 32613955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32623955d011SMarcel Moolenaar o meta.c handle realpath() failing when generating meta file 32633955d011SMarcel Moolenaar name. 32643955d011SMarcel Moolenaar 32653955d011SMarcel Moolenaar * sigcompat.c: convert to ansi so we can use higher warning levels. 32663955d011SMarcel Moolenaar 32673955d011SMarcel Moolenaar 32683955d011SMarcel Moolenaar2011-02-07 Simon J. Gerraty <sjg@bad.crufty.net> 32693955d011SMarcel Moolenaar 32703955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110207 32713955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32723955d011SMarcel Moolenaar o fix for bug in meta mode. 32733955d011SMarcel Moolenaar 32743955d011SMarcel Moolenaar2011-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 32753955d011SMarcel Moolenaar 32763955d011SMarcel Moolenaar * parse.c: SunOS 5.8 at least does not have MAP_FILE 32773955d011SMarcel Moolenaar 32783955d011SMarcel Moolenaar2011-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 32793955d011SMarcel Moolenaar 32803955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110101 32813955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32823955d011SMarcel Moolenaar o use mmap(2) if available, for reading makefiles 32833955d011SMarcel Moolenaar 32843955d011SMarcel Moolenaar2010-12-15 Simon J. Gerraty <sjg@bad.crufty.net> 32853955d011SMarcel Moolenaar 32863955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101215 32873955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32883955d011SMarcel Moolenaar o ensure meta_job_error() does not report a previous .meta file 32893955d011SMarcel Moolenaar as being culprit. 32903955d011SMarcel Moolenaar 32913955d011SMarcel Moolenaar2010-12-10 Simon J. Gerraty <sjg@bad.crufty.net> 32923955d011SMarcel Moolenaar 32933955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101210 32943955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32953955d011SMarcel Moolenaar o meta_oodate: track cwd per process, and only consider target 32963955d011SMarcel Moolenaar out-of-date if missing file is outside make's CWD. 32973955d011SMarcel Moolenaar Ignore files in /tmp/ etc. 32983955d011SMarcel Moolenaar o to ensure unit-tests results match, need to control LC_ALL 32993955d011SMarcel Moolenaar as well as LANG. 33003955d011SMarcel Moolenaar o fix for parsing bug in var.c 33013955d011SMarcel Moolenaar 33023955d011SMarcel Moolenaar2010-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 33033955d011SMarcel Moolenaar 33043955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101126 33053955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33063955d011SMarcel Moolenaar o if stale dependency is an IMPSRC, search via .PATH 33073955d011SMarcel Moolenaar o meta_oodate: if a referenced file is missing, target is 33083955d011SMarcel Moolenaar out-of-date. 33093955d011SMarcel Moolenaar o meta_oodate: if a target uses .OODATE in its commands, 33103955d011SMarcel Moolenaar it (.OODATE) needs to be recomputed. 33113955d011SMarcel Moolenaar o keep a pointer to youngest child node, rather than just its 33123955d011SMarcel Moolenaar mtime. 33133955d011SMarcel Moolenaar 33143955d011SMarcel Moolenaar2010-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 33153955d011SMarcel Moolenaar 33163955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101101 33173955d011SMarcel Moolenaar 33183955d011SMarcel Moolenaar2010-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 33193955d011SMarcel Moolenaar 33203955d011SMarcel Moolenaar * machine.sh: like os.sh, 33213955d011SMarcel Moolenaar allow for uname -p producing useless drivel 33223955d011SMarcel Moolenaar 33233955d011SMarcel Moolenaar2010-09-13 Simon J. Gerraty <sjg@bad.crufty.net> 33243955d011SMarcel Moolenaar 33253955d011SMarcel Moolenaar * boot-strap: document configure knobs for meta and filemon. 33263955d011SMarcel Moolenaar 33273955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100911 33283955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33293955d011SMarcel Moolenaar o meta.c - meta mode 33303955d011SMarcel Moolenaar 33313955d011SMarcel Moolenaar * make-bootstrap.sh.in: handle meta.c 33323955d011SMarcel Moolenaar * configure.in: add knobs for use_meta and filemon_h 33333955d011SMarcel Moolenaar also, look for dirname, str[e]sep and strlcpy 33343955d011SMarcel Moolenaar * util.c: add simple err[x] and warn[x] 33353955d011SMarcel Moolenaar 33363955d011SMarcel Moolenaar2010-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 33373955d011SMarcel Moolenaar 33383955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): set this to ensure tests use 33393955d011SMarcel Moolenaar the same version of diff that configure tested 33403955d011SMarcel Moolenaar 33413955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100808 33423955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33433955d011SMarcel Moolenaar o in jobs mode, when we discover we cannot make something, 33443955d011SMarcel Moolenaar call PrintOnError before exit. 33453955d011SMarcel Moolenaar 33463955d011SMarcel Moolenaar2010-08-06 Simon J. Gerraty <sjg@bad.crufty.net> 33473955d011SMarcel Moolenaar 33483955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100806 33493955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33503955d011SMarcel Moolenaar o formatting fixes for ignored errors 33513955d011SMarcel Moolenaar o ensure jobs are cleaned up regardless of where wait() was called. 33523955d011SMarcel Moolenaar 33533955d011SMarcel Moolenaar2010-06-28 Simon J. Gerraty <sjg@bad.crufty.net> 33543955d011SMarcel Moolenaar 33553955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100618 33563955d011SMarcel Moolenaar * os.sh (MACHINE_ARCH): watch out for drivel from uname -p 33573955d011SMarcel Moolenaar 33583955d011SMarcel Moolenaar2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net> 33593955d011SMarcel Moolenaar 33603955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100616 33613955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33623955d011SMarcel Moolenaar o man page update 33633955d011SMarcel Moolenaar o call PrintOnError from JobFinish when we detect an error we 33643955d011SMarcel Moolenaar are not ignoring. 33653955d011SMarcel Moolenaar 33663955d011SMarcel Moolenaar2010-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 33673955d011SMarcel Moolenaar 33683955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100606 33693955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33703955d011SMarcel Moolenaar o man page update 33713955d011SMarcel Moolenaar 33723955d011SMarcel Moolenaar2010-06-05 Simon J. Gerraty <sjg@bad.crufty.net> 33733955d011SMarcel Moolenaar 33743955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100605 33753955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33763955d011SMarcel Moolenaar o use bmake_signal() which is a wrapper around sigaction() 33773955d011SMarcel Moolenaar in place of signal() 33783955d011SMarcel Moolenaar o add .export-env to allow exporting variables to environment 33793955d011SMarcel Moolenaar without tracking (so no re-export when the internal value is 33803955d011SMarcel Moolenaar changed). 33813955d011SMarcel Moolenaar 33823955d011SMarcel Moolenaar2010-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 33833955d011SMarcel Moolenaar 33843955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100524 33853955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33863955d011SMarcel Moolenaar o fix for .info et al being greedy. 33873955d011SMarcel Moolenaar 33883955d011SMarcel Moolenaar2010-05-23 Simon J. Gerraty <sjg@bad.crufty.net> 33893955d011SMarcel Moolenaar 33903955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100520 33913955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33923955d011SMarcel Moolenaar o back to using realpath on argv[0] 33933955d011SMarcel Moolenaar but only if contains '/' and does not start with '/'. 33943955d011SMarcel Moolenaar 33953955d011SMarcel Moolenaar2010-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 33963955d011SMarcel Moolenaar 33973955d011SMarcel Moolenaar * boot-strap: use absolute path for bmake when running tests. 33983955d011SMarcel Moolenaar 33993955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100510 34003955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34013955d011SMarcel Moolenaar o revert use of realpath on argv[0] 34023955d011SMarcel Moolenaar too many corner cases. 34033955d011SMarcel Moolenaar o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target. 34043955d011SMarcel Moolenaar 34053955d011SMarcel Moolenaar2010-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 34063955d011SMarcel Moolenaar 34073955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100505 34083955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34093955d011SMarcel Moolenaar o fix for missed SIGCHLD when compiled with SunPRO 34103955d011SMarcel Moolenaar actually for bmake, defining FORCE_POSIX_SIGNALS would have 34113955d011SMarcel Moolenaar done the job. 34123955d011SMarcel Moolenaar 34133955d011SMarcel Moolenaar2010-04-30 Simon J. Gerraty <sjg@bad.crufty.net> 34143955d011SMarcel Moolenaar 34153955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100430 34163955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34173955d011SMarcel Moolenaar o fflush stdout before writing to stdout 34183955d011SMarcel Moolenaar 34193955d011SMarcel Moolenaar2010-04-23 Simon J. Gerraty <sjg@bad.crufty.net> 34203955d011SMarcel Moolenaar 34213955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100423 34223955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34233955d011SMarcel Moolenaar o updated unit tests for Haiku (this time for sure). 34243955d011SMarcel Moolenaar * boot-strap: based on patch from joerg 34253955d011SMarcel Moolenaar honor --with-default-sys-path better. 34263955d011SMarcel Moolenaar * boot-strap: remove mention of --with-prefix-sys-path 34273955d011SMarcel Moolenaar 34283955d011SMarcel Moolenaar2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net> 34293955d011SMarcel Moolenaar 34303955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100422 34313955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 34323955d011SMarcel Moolenaar o fix for vfork() on Darwin. 34333955d011SMarcel Moolenaar o fix for bogus $TMPDIR. 34343955d011SMarcel Moolenaar o set .MAKE.MODE=compat for -B 34353955d011SMarcel Moolenaar o set .MAKE.JOBS=max_jobs for -j max_jobs 34363955d011SMarcel Moolenaar o allow unit-tests to run without any *.mk 34373955d011SMarcel Moolenaar o unit-tests/modmisc be more conservative in dirs presumed to exist. 34383955d011SMarcel Moolenaar * boot-strap: ignore /usr/share/mk except on NetBSD. 34393955d011SMarcel Moolenaar * unit-tests/Makefile.in: set LANG=C when running unit-tests to 34403955d011SMarcel Moolenaar ensure sort(1) behaves as expected. 34413955d011SMarcel Moolenaar 34423955d011SMarcel Moolenaar2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 34433955d011SMarcel Moolenaar 34443955d011SMarcel Moolenaar * boot-strap: add FindHereOrAbove so we can use -m .../mk 34453955d011SMarcel Moolenaar 34463955d011SMarcel Moolenaar2010-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 34473955d011SMarcel Moolenaar 34483955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100420 34493955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 34503955d011SMarcel Moolenaar o fix for variable realpath() behavior. 34513955d011SMarcel Moolenaar we have to stat(2) the result to be sure. 34523955d011SMarcel Moolenaar o fix for .export (all) when nested vars use :sh 34533955d011SMarcel Moolenaar 34543955d011SMarcel Moolenaar2010-04-14 Simon J. Gerraty <sjg@bad.crufty.net> 34553955d011SMarcel Moolenaar 34563955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100414 34573955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 34583955d011SMarcel Moolenaar o use realpath to resolve argv[0] (for .MAKE) if needed. 34593955d011SMarcel Moolenaar o add realpath from libc. 34603955d011SMarcel Moolenaar o add :tA to resolve variable via realpath(3) if possible. 34613955d011SMarcel Moolenaar 34623955d011SMarcel Moolenaar2010-04-08 Simon J. Gerraty <sjg@bad.crufty.net> 34633955d011SMarcel Moolenaar 34643955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100408 34653955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 34663955d011SMarcel Moolenaar o unit tests for .ERROR, .error 34673955d011SMarcel Moolenaar o fix for .ERROR to ensure it cannot be default target. 34683955d011SMarcel Moolenaar 34693955d011SMarcel Moolenaar2010-04-06 Simon J. Gerraty <sjg@bad.crufty.net> 34703955d011SMarcel Moolenaar 34713955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100406 34723955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 34733955d011SMarcel Moolenaar o fix for compat mode "Error code" going to debug_file. 34743955d011SMarcel Moolenaar o fix for .ALLSRC being populated twice. 34753955d011SMarcel Moolenaar o support for .info, .warning and .error directives 34763955d011SMarcel Moolenaar o .MAKE.MODE to control make's operational mode 34773955d011SMarcel Moolenaar o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile 34783955d011SMarcel Moolenaar name(s). 34793955d011SMarcel Moolenaar o .MAKE.DEPENDFILE to control the name of the depend file 34803955d011SMarcel Moolenaar o .ERROR target - run on failure. 34813955d011SMarcel Moolenaar 34823955d011SMarcel Moolenaar2010-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 34833955d011SMarcel Moolenaar 34843955d011SMarcel Moolenaar * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile 34853955d011SMarcel Moolenaar 34863955d011SMarcel Moolenaar * os.sh,arch.c: patch for Haiku from joerg at netbsd 34873955d011SMarcel Moolenaar 34883955d011SMarcel Moolenaar2010-03-17 Simon J. Gerraty <sjg@bad.crufty.net> 34893955d011SMarcel Moolenaar 34903955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100222 34913955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 34923955d011SMarcel Moolenaar o better error msg for .for with mutiple inter vars 34933955d011SMarcel Moolenaar 34943955d011SMarcel Moolenaar * boot-strap: 34953955d011SMarcel Moolenaar o use make-bootstrap.sh from joerg at netbsd 34963955d011SMarcel Moolenaar to avoid the need for a native make when bootstrapping. 34973955d011SMarcel Moolenaar o add "" everywhere ;-) 34983955d011SMarcel Moolenaar o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1 34993955d011SMarcel Moolenaar otherwise the pre-formated version. 35003955d011SMarcel Moolenaar 35013955d011SMarcel Moolenaar2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net> 35023955d011SMarcel Moolenaar 35033955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100102 35043955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35053955d011SMarcel Moolenaar o fix for -m .../ 35063955d011SMarcel Moolenaar 35073955d011SMarcel Moolenaar2009-11-18 Simon J. Gerraty <sjg@void.crufty.net> 35083955d011SMarcel Moolenaar 35093955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20091118 35103955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35113955d011SMarcel Moolenaar o .unexport 35123955d011SMarcel Moolenaar o report lines that start with '.' and should have ':' 35133955d011SMarcel Moolenaar (catch typo's of .el*if). 35143955d011SMarcel Moolenaar 35153955d011SMarcel Moolenaar2009-10-30 Simon J. Gerraty <sjg@void.crufty.net> 35163955d011SMarcel Moolenaar 35173955d011SMarcel Moolenaar * configure.in: Ensure that srcdir and mksrc are absolute paths. 35183955d011SMarcel Moolenaar 35193955d011SMarcel Moolenaar2009-10-09 Simon J. Gerraty <sjg@void.crufty.net> 35203955d011SMarcel Moolenaar 35213955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): fix version to 20091007 35223955d011SMarcel Moolenaar 35233955d011SMarcel Moolenaar2009-10-07 Simon J. Gerraty <sjg@void.crufty.net> 35243955d011SMarcel Moolenaar 35253955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 200910007 35263955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35273955d011SMarcel Moolenaar o fix for parsing of :S;...;...; applied to .for loop iterator 35283955d011SMarcel Moolenaar appearing in a dependency line. 35293955d011SMarcel Moolenaar 35303955d011SMarcel Moolenaar2009-09-09 Simon J. Gerraty <sjg@void.crufty.net> 35313955d011SMarcel Moolenaar 35323955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090909 35333955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35343955d011SMarcel Moolenaar o fix for -C, .CURDIR and .OBJDIR 35353955d011SMarcel Moolenaar * boot-strap: 35363955d011SMarcel Moolenaar o allow share_dir to be set independent of prefix. 35373955d011SMarcel Moolenaar o select default share_dir better when prefix ends in $HOST_TARGET 35383955d011SMarcel Moolenaar o if FORCE_BSD_MK etc were set, include them in the suggested 35393955d011SMarcel Moolenaar install-mk command. 35403955d011SMarcel Moolenaar 35413955d011SMarcel Moolenaar2009-09-08 Simon J. Gerraty <sjg@void.crufty.net> 35423955d011SMarcel Moolenaar 35433955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090908 35443955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35453955d011SMarcel Moolenaar o .MAKE.LEVEL for recursion tracking 35463955d011SMarcel Moolenaar o fix for :M scanning \: 35473955d011SMarcel Moolenaar 35483955d011SMarcel Moolenaar2009-09-03 Simon J. Gerraty <sjg@void.crufty.net> 35493955d011SMarcel Moolenaar 35503955d011SMarcel Moolenaar * configure.in: Don't -D__EXTENSIONS__ if 35513955d011SMarcel Moolenaar AC_USE_SYSTEM_EXTENSIONS says "no". 35523955d011SMarcel Moolenaar 35533955d011SMarcel Moolenaar2009-08-26 Simon J. Gerraty <sjg@void.crufty.net> 35543955d011SMarcel Moolenaar 35553955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090826 35563955d011SMarcel Moolenaar Simplify MAKE_VERSION to just the bare date. 35573955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35583955d011SMarcel Moolenaar o -C directory support. 35593955d011SMarcel Moolenaar o support for SIGINFO 35603955d011SMarcel Moolenaar o use $TMPDIR for temp files. 35613955d011SMarcel Moolenaar o child of vfork should be careful about modifying parent's state. 35623955d011SMarcel Moolenaar 35633955d011SMarcel Moolenaar 35643955d011SMarcel Moolenaar2009-03-26 Simon J. Gerraty <sjg@void.crufty.net> 35653955d011SMarcel Moolenaar 35663955d011SMarcel Moolenaar * Appy some patches for MiNT from David Brownlee 35673955d011SMarcel Moolenaar 35683955d011SMarcel Moolenaar2009-02-26 Simon J. Gerraty <sjg@void.crufty.net> 35693955d011SMarcel Moolenaar 35703955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090222 35713955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35723955d011SMarcel Moolenaar o Possible null pointer de-ref in Var_Set. 35733955d011SMarcel Moolenaar 35743955d011SMarcel Moolenaar2009-02-08 Simon J. Gerraty <sjg@void.crufty.net> 35753955d011SMarcel Moolenaar 35763955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090204 35773955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35783955d011SMarcel Moolenaar o bmake_malloc et al moved to their own .c 35793955d011SMarcel Moolenaar o Count both () and {} when looking for the end of a :M pattern 35803955d011SMarcel Moolenaar o Change 'Buffer' so that it is the actual struct, not a pointer to it. 35813955d011SMarcel Moolenaar o strlist.c - functions for processing extendable arrays of pointers to strings. 35823955d011SMarcel Moolenaar o ClientData replaced with void *, so const void * can be used. 35833955d011SMarcel Moolenaar o New debug flag C for DEBUG_CWD 35843955d011SMarcel Moolenaar 35853955d011SMarcel Moolenaar2008-11-11 Simon J. Gerraty <sjg@void.crufty.net> 35863955d011SMarcel Moolenaar 35873955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081111 35883955d011SMarcel Moolenaar Apply patch from Joerg Sonnenberge to 35893955d011SMarcel Moolenaar configure.in: 35903955d011SMarcel Moolenaar o remove some redundant checks 35913955d011SMarcel Moolenaar o check for emlloc etc only in libutil and require the whole family. 35923955d011SMarcel Moolenaar util.c: 35933955d011SMarcel Moolenaar o remove [v]asprintf which is no longer used. 35943955d011SMarcel Moolenaar 35953955d011SMarcel Moolenaar2008-11-04 Simon J. Gerraty <sjg@void.crufty.net> 35963955d011SMarcel Moolenaar 35973955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081101 35983955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35993955d011SMarcel Moolenaar o util.c: avoid use of putenv() - christos 36003955d011SMarcel Moolenaar 36013955d011SMarcel Moolenaar2008-10-30 Simon J. Gerraty <sjg@void.crufty.net> 36023955d011SMarcel Moolenaar 36033955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081030 36043955d011SMarcel Moolenaar pick up man page tweaks. 36053955d011SMarcel Moolenaar 36063955d011SMarcel Moolenaar2008-10-29 Simon J. Gerraty <sjg@void.crufty.net> 36073955d011SMarcel Moolenaar 36083955d011SMarcel Moolenaar * Makefile.in: move processing of LIBOBJS to after is definition! 36093955d011SMarcel Moolenaar thus we'll have getenv.c in SRCS only if needed. 36103955d011SMarcel Moolenaar 36113955d011SMarcel Moolenaar * make.1: add examples of how to use :? 36123955d011SMarcel Moolenaar 36133955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081029 36143955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36153955d011SMarcel Moolenaar o fix for .END processing with -j 36163955d011SMarcel Moolenaar o segfault from Parse_Error when no makefile is open 36173955d011SMarcel Moolenaar o handle numeric expressions in any variable expansion 36183955d011SMarcel Moolenaar o debug output now defaults to stderr, -dF to change it - apb 36193955d011SMarcel Moolenaar o make now uses bmake_malloc etc so that it can build natively 36203955d011SMarcel Moolenaar on A/UX - wasn't an issue for bmake, but we want to keep in sync. 36213955d011SMarcel Moolenaar 36223955d011SMarcel Moolenaar2008-09-27 Simon J. Gerraty <sjg@void.crufty.net> 36233955d011SMarcel Moolenaar 36243955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080808 36253955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36263955d011SMarcel Moolenaar o fix for PR/38840: Pierre Pronchery: make crashes while parsing 36273955d011SMarcel Moolenaar long lines in Makefiles 36283955d011SMarcel Moolenaar o optimizations for VarQuote by joerg 36293955d011SMarcel Moolenaar o fix for PR/38756: dominik: make dumps core on invalid makefile 36303955d011SMarcel Moolenaar 36313955d011SMarcel Moolenaar2008-05-15 Simon J. Gerraty <sjg@void.crufty.net> 36323955d011SMarcel Moolenaar 36333955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080515 36343955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36353955d011SMarcel Moolenaar o fix skip setting vars in VAR_GLOBAL context, to handle 36363955d011SMarcel Moolenaar cases where VAR_CMD is used for other than command line vars. 36373955d011SMarcel Moolenaar 36383955d011SMarcel Moolenaar2008-05-14 Simon J. Gerraty <sjg@void.crufty.net> 36393955d011SMarcel Moolenaar 36403955d011SMarcel Moolenaar * boot-strap (make_version): we may need to look in 36413955d011SMarcel Moolenaar $prefix/share/mk for sys.mk 36423955d011SMarcel Moolenaar 36433955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080514 36443955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36453955d011SMarcel Moolenaar o skip setting vars in VAR_GLOBAL context, when already set in 36463955d011SMarcel Moolenaar VAR_CMD which takes precedence. 36473955d011SMarcel Moolenaar 36483955d011SMarcel Moolenaar2008-03-30 Simon J. Gerraty <sjg@void.crufty.net> 36493955d011SMarcel Moolenaar 36503955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080330 36513955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36523955d011SMarcel Moolenaar o fix for ?= when LHS contains variable reference. 36533955d011SMarcel Moolenaar 36543955d011SMarcel Moolenaar2008-02-15 Simon J. Gerraty <sjg@void.crufty.net> 36553955d011SMarcel Moolenaar 36563955d011SMarcel Moolenaar * merge some patches from NetBSD pkgsrc. 36573955d011SMarcel Moolenaar 36583955d011SMarcel Moolenaar * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of 36593955d011SMarcel Moolenaar the MAKSYSPATH used during bootstrap. 36603955d011SMarcel Moolenaar 36613955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080215 36623955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36633955d011SMarcel Moolenaar o warn if non-space chars follow 'empty' in a conditional. 36643955d011SMarcel Moolenaar 36653955d011SMarcel Moolenaar2008-01-18 Simon J. Gerraty <sjg@void.crufty.net> 36663955d011SMarcel Moolenaar 36673955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080118 36683955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36693955d011SMarcel Moolenaar o consider dependencies read from .depend as optional - dsl 36703955d011SMarcel Moolenaar o remember when buffer for reading makefile grows - dsl 36713955d011SMarcel Moolenaar o add -dl (aka LOUD) - David O'Brien 36723955d011SMarcel Moolenaar 36733955d011SMarcel Moolenaar2007-10-22 Simon J. Gerraty <sjg@void.crufty.net> 36743955d011SMarcel Moolenaar 36753955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071022 36763955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36773955d011SMarcel Moolenaar o Allow .PATH<suffix> to be used for .include "" 36783955d011SMarcel Moolenaar 36793955d011SMarcel Moolenaar * boot-strap: source default settings from .bmake-boot-strap.rc 36803955d011SMarcel Moolenaar 36813955d011SMarcel Moolenaar2007-10-16 Simon J. Gerraty <sjg@void.crufty.net> 36823955d011SMarcel Moolenaar 36833955d011SMarcel Moolenaar * Makefile.in: fix maninstall on various systems 36843955d011SMarcel Moolenaar provided that our man.mk is used. 36853955d011SMarcel Moolenaar For non-BSD systems we install the preformatted page 36863955d011SMarcel Moolenaar into $MANDIR/cat1 36873955d011SMarcel Moolenaar 36883955d011SMarcel Moolenaar2007-10-15 Simon J. Gerraty <sjg@void.crufty.net> 36893955d011SMarcel Moolenaar 36903955d011SMarcel Moolenaar * boot-strap: make bmake.1 too, so maninstall works. 36913955d011SMarcel Moolenaar 36923955d011SMarcel Moolenaar2007-10-14 Simon J. Gerraty <sjg@void.crufty.net> 36933955d011SMarcel Moolenaar 36943955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071014 36953955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36963955d011SMarcel Moolenaar o revamped handling of defshell - configure no longer needs to 36973955d011SMarcel Moolenaar know the content of the shells array - apb 36983955d011SMarcel Moolenaar o stop Var_Subst modifying its input - apb 36993955d011SMarcel Moolenaar o avoid calling ParseTrackInput too often - dsl 37003955d011SMarcel Moolenaar 37013955d011SMarcel Moolenaar2007-10-11 Simon J. Gerraty <sjg@void.crufty.net> 37023955d011SMarcel Moolenaar 37033955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071011 37043955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37053955d011SMarcel Moolenaar o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path. 37063955d011SMarcel Moolenaar 37073955d011SMarcel Moolenaar * sigcompat.c: some tweaks for HP-UX 11.x based on 37083955d011SMarcel Moolenaar patch from Tobias Nygren 37093955d011SMarcel Moolenaar 37103955d011SMarcel Moolenaar * configure.in: update handling of --with-defshell to match 37113955d011SMarcel Moolenaar new make behavior. --with-defshell=/usr/xpg4/bin/sh 37123955d011SMarcel Moolenaar will now do what one might hope - provided the chosen shell 37133955d011SMarcel Moolenaar behaves enough like sh. 37143955d011SMarcel Moolenaar 37153955d011SMarcel Moolenaar2007-10-08 Simon J. Gerraty <sjg@void.crufty.net> 37163955d011SMarcel Moolenaar 37173955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20071008 37183955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37193955d011SMarcel Moolenaar o .MAKE.JOB.PREFIX - control the token output before jobs - sjg 37203955d011SMarcel Moolenaar o .export/.MAKE.EXPORTED - export of variables - sjg 37213955d011SMarcel Moolenaar o .MAKE.MAKEFILES - track all makefiles read - sjg 37223955d011SMarcel Moolenaar o performance improvements - dsl 37233955d011SMarcel Moolenaar o revamp parallel job scheduling - dsl 37243955d011SMarcel Moolenaar 37253955d011SMarcel Moolenaar2006-07-28 Simon J. Gerraty <sjg@void.crufty.net> 37263955d011SMarcel Moolenaar 37273955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060728 37283955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37293955d011SMarcel Moolenaar o extra debug info during variable and cond processing - sjg 37303955d011SMarcel Moolenaar o shell definition now covers newline - rillig 37313955d011SMarcel Moolenaar o minor mem leak in PrintOnError - sjg 37323955d011SMarcel Moolenaar 37333955d011SMarcel Moolenaar2006-05-11 Simon J. Gerraty <sjg@void.crufty.net> 37343955d011SMarcel Moolenaar 37353955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060511 37363955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37373955d011SMarcel Moolenaar o more memory leaks - coverity 37383955d011SMarcel Moolenaar o possible overflow in ArchFindMember - coverity 37393955d011SMarcel Moolenaar o extract variable modifier code out of Var_Parse() 37403955d011SMarcel Moolenaar so it can be called recursively - sjg 37413955d011SMarcel Moolenaar o unit-tests/moderrs - sjg 37423955d011SMarcel Moolenaar 37433955d011SMarcel Moolenaar2006-04-12 Simon J. Gerraty <sjg@void.crufty.net> 37443955d011SMarcel Moolenaar 37453955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060412 37463955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37473955d011SMarcel Moolenaar o fixes for some memory leaks - coverity 37483955d011SMarcel Moolenaar o only read first sys.mk etc when searching sysIncPath - sjg 37493955d011SMarcel Moolenaar 37503955d011SMarcel Moolenaar * main.c (ReadMakefile): remove hack for __INTERIX that prevented 37513955d011SMarcel Moolenaar setting ${MAKEFILE} - OBATA Akio 37523955d011SMarcel Moolenaar 37533955d011SMarcel Moolenaar2006-03-18 Simon J. Gerraty <sjg@void.crufty.net> 37543955d011SMarcel Moolenaar 37553955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060318 37563955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37573955d011SMarcel Moolenaar o cleanup of job.c to remove remote handling, distcc is more 37583955d011SMarcel Moolenaar useful and this code was likely bit-rotting - dsl 37593955d011SMarcel Moolenaar o fix for :P modifier - sjg 37603955d011SMarcel Moolenaar * boot-strap: set default prefix to something reasonable 37613955d011SMarcel Moolenaar (for me anyway). 37623955d011SMarcel Moolenaar 37633955d011SMarcel Moolenaar2006-03-01 Simon J. Gerraty <sjg@void.crufty.net> 37643955d011SMarcel Moolenaar 37653955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060301 37663955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37673955d011SMarcel Moolenaar o make .WAIT apply recursively, document and test case - apb 37683955d011SMarcel Moolenaar o allow variable modifiers in a variable appear anywhere in 37693955d011SMarcel Moolenaar modifier list, document and test case - sjg 37703955d011SMarcel Moolenaar 37713955d011SMarcel Moolenaar2006-02-22 Simon J. Gerraty <sjg@void.crufty.net> 37723955d011SMarcel Moolenaar 37733955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060222 37743955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37753955d011SMarcel Moolenaar o improved job token handling - dsl 37763955d011SMarcel Moolenaar o SIG_DFL the correct signal before exec - dsl 37773955d011SMarcel Moolenaar o more debug info during parsing - dsl 37783955d011SMarcel Moolenaar o allow variable modifiers to be specified via variable - sjg 37793955d011SMarcel Moolenaar * boot-strap: explain why we died if no mksrc 37803955d011SMarcel Moolenaar 37813955d011SMarcel Moolenaar2005-11-05 Simon J. Gerraty <sjg@void.crufty.net> 37823955d011SMarcel Moolenaar 37833955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051105 37843955d011SMarcel Moolenaar * configure.in: always set default_sys_path 37853955d011SMarcel Moolenaar default is ${prefix}/share/mk 37863955d011SMarcel Moolenaar - remove prefix_sys_path, anyone wanting more than above 37873955d011SMarcel Moolenaar needs to set it manually. 37883955d011SMarcel Moolenaar 37893955d011SMarcel Moolenaar2005-11-04 Simon J. Gerraty <sjg@void.crufty.net> 37903955d011SMarcel Moolenaar 37913955d011SMarcel Moolenaar * boot-strap: make this a bit easier for pkgsrc folk. 37923955d011SMarcel Moolenaar bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to 37933955d011SMarcel Moolenaar 'mips' while pkgsrc wants 'mipseb' or 'mipsel' 37943955d011SMarcel Moolenaar 37953955d011SMarcel Moolenaar2005-11-02 Simon J. Gerraty <sjg@void.crufty.net> 37963955d011SMarcel Moolenaar 37973955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051102 37983955d011SMarcel Moolenaar * job.c (JobFinish): fix likely ancient merge lossage 37993955d011SMarcel Moolenaar fix from Todd Vierling. 38003955d011SMarcel Moolenaar * boot-strap (srcdir): allow setting mksrc=none 38013955d011SMarcel Moolenaar 38023955d011SMarcel Moolenaar2005-10-31 Simon J. Gerraty <sjg@void.crufty.net> 38033955d011SMarcel Moolenaar 38043955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051031 38053955d011SMarcel Moolenaar * ranlib.h: skip on OSF too. 38063955d011SMarcel Moolenaar (NetBSD PR 31864) 38073955d011SMarcel Moolenaar 38083955d011SMarcel Moolenaar2005-10-10 Simon J. Gerraty <sjg@void.crufty.net> 38093955d011SMarcel Moolenaar 38103955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051002 38113955d011SMarcel Moolenaar fix a silly typo 38123955d011SMarcel Moolenaar 38133955d011SMarcel Moolenaar2005-10-09 Simon J. Gerraty <sjg@void.crufty.net> 38143955d011SMarcel Moolenaar 38153955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051001 38163955d011SMarcel Moolenaar support for UnixWare and some other systems, 38173955d011SMarcel Moolenaar based on patches from pkgsrc/bootstrap 38183955d011SMarcel Moolenaar 38193955d011SMarcel Moolenaar2005-09-03 Simon J. Gerraty <sjg@void.crufty.net> 38203955d011SMarcel Moolenaar 38213955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050901 38223955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38233955d011SMarcel Moolenaar o possible parse error causing us to wander off. 38243955d011SMarcel Moolenaar 38253955d011SMarcel Moolenaar2005-06-06 Simon J. Gerraty <sjg@void.crufty.net> 38263955d011SMarcel Moolenaar 38273955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050606 38283955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38293955d011SMarcel Moolenaar o :0x modifier for randomizing a list 38303955d011SMarcel Moolenaar o fixes for a number of -Wuninitialized issues. 38313955d011SMarcel Moolenaar 38323955d011SMarcel Moolenaar2005-05-30 Simon J. Gerraty <sjg@void.crufty.net> 38333955d011SMarcel Moolenaar 38343955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050530 38353955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38363955d011SMarcel Moolenaar o Handle dependencies for .BEGIN, .END and .INTERRUPT 38373955d011SMarcel Moolenaar 38383955d011SMarcel Moolenaar * README: was seriously out of date. 38393955d011SMarcel Moolenaar 38403955d011SMarcel Moolenaar2005-03-22 Simon J. Gerraty <sjg@void.crufty.net> 38413955d011SMarcel Moolenaar 38423955d011SMarcel Moolenaar * Important to use .MAKE rather than MAKE. 38433955d011SMarcel Moolenaar 38443955d011SMarcel Moolenaar2005-03-15 Simon J. Gerraty <sjg@void.crufty.net> 38453955d011SMarcel Moolenaar 38463955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050315 38473955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38483955d011SMarcel Moolenaar o don't mistake .elsefoo for .else 38493955d011SMarcel Moolenaar o use suffix-specific search path correctly 38503955d011SMarcel Moolenaar o bunch of style nits 38513955d011SMarcel Moolenaar 38523955d011SMarcel Moolenaar2004-05-11 Simon J. Gerraty <sjg@void.crufty.net> 38533955d011SMarcel Moolenaar 38543955d011SMarcel Moolenaar * boot-strap: 38553955d011SMarcel Moolenaar o ensure that args to --src and --with-mksrc 38563955d011SMarcel Moolenaar are resolved before giving them to configure. 38573955d011SMarcel Moolenaar o add -o "objdir" so that builder can control it, 38583955d011SMarcel Moolenaar default is $OS as determined by os.sh 38593955d011SMarcel Moolenaar o add -q to suppress all the install instructions. 38603955d011SMarcel Moolenaar 38613955d011SMarcel Moolenaar2004-05-08 Simon J. Gerraty <sjg@void.crufty.net> 38623955d011SMarcel Moolenaar 38633955d011SMarcel Moolenaar * Remove __IDSTRING() 38643955d011SMarcel Moolenaar 38653955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040508 38663955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38673955d011SMarcel Moolenaar o posix fixes 38683955d011SMarcel Moolenaar - remove '-e' from compat mode 38693955d011SMarcel Moolenaar - add support for '+' command-line prefix. 38703955d011SMarcel Moolenaar o fix for handling '--' on command-line. 38713955d011SMarcel Moolenaar o fix include in lst.lib/lstInt.h to simplify '-I's 38723955d011SMarcel Moolenaar o we also picked up replacement of MAKE_BOOTSTRAP 38733955d011SMarcel Moolenaar with !MAKE_NATIVE which is a noop, but possibly confusing. 38743955d011SMarcel Moolenaar 38753955d011SMarcel Moolenaar2004-04-14 Simon J. Gerraty <sjg@void.crufty.net> 38763955d011SMarcel Moolenaar 38773955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040414 38783955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38793955d011SMarcel Moolenaar o allow quoted strings on lhs of conditionals 38803955d011SMarcel Moolenaar o issue warning when extra .else is seen 38813955d011SMarcel Moolenaar o print line numer when errors encountered during parsing from 38823955d011SMarcel Moolenaar string. 38833955d011SMarcel Moolenaar 38843955d011SMarcel Moolenaar2004-02-20 Simon J. Gerraty <sjg@void.crufty.net> 38853955d011SMarcel Moolenaar 38863955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040220 38873955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38883955d011SMarcel Moolenaar o fix for old :M parsing bug. 38893955d011SMarcel Moolenaar o re-jigged unit-tests 38903955d011SMarcel Moolenaar 38913955d011SMarcel Moolenaar2004-02-15 Simon J. Gerraty <sjg@void.crufty.net> 38923955d011SMarcel Moolenaar 38933955d011SMarcel Moolenaar * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,} 38943955d011SMarcel Moolenaar so that './bmake -f Makefile test' works. 38953955d011SMarcel Moolenaar 38963955d011SMarcel Moolenaar2004-02-14 Simon J. Gerraty <sjg@void.crufty.net> 38973955d011SMarcel Moolenaar 38983955d011SMarcel Moolenaar * Makefile.in: (BMAKE_VERSION): bump to 20040214 38993955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39003955d011SMarcel Moolenaar o search upwards for *.mk 39013955d011SMarcel Moolenaar o fix for double free of var substitution buffers 39023955d011SMarcel Moolenaar o use of getopt replaced with custom code, since the usage 39033955d011SMarcel Moolenaar (re-scanning) isn't posix compatible. 39043955d011SMarcel Moolenaar 39053955d011SMarcel Moolenaar2004-02-12 Simon J. Gerraty <sjg@void.crufty.net> 39063955d011SMarcel Moolenaar 39073955d011SMarcel Moolenaar * arch.c: don't include ranlib.h on ELF systems 39083955d011SMarcel Moolenaar (thanks to Chuck Cranor <chuck@ece.cmu.edu>). 39093955d011SMarcel Moolenaar 39103955d011SMarcel Moolenaar2004-01-18 Simon J. Gerraty <sjg@void.crufty.net> 39113955d011SMarcel Moolenaar 39123955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040118 39133955d011SMarcel Moolenaar 39143955d011SMarcel Moolenaar * boot-strap (while): export vars we assign to on cmdline 39153955d011SMarcel Moolenaar * unit-test/Makefile.in: ternary is .PHONY 39163955d011SMarcel Moolenaar 39173955d011SMarcel Moolenaar2004-01-08 Simon J. Gerraty <sjg@void.crufty.net> 39183955d011SMarcel Moolenaar 39193955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040108 39203955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39213955d011SMarcel Moolenaar o fix for ternary modifier 39223955d011SMarcel Moolenaar 39233955d011SMarcel Moolenaar2004-01-06 Simon J. Gerraty <sjg@void.crufty.net> 39243955d011SMarcel Moolenaar 39253955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040105 39263955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39273955d011SMarcel Moolenaar o fix for cond.c to handle compound expressions better 39283955d011SMarcel Moolenaar o variable expansion within sysV style replacements 39293955d011SMarcel Moolenaar 39303955d011SMarcel Moolenaar2003-12-22 Simon J. Gerraty <sjg@void.crufty.net> 39313955d011SMarcel Moolenaar 39323955d011SMarcel Moolenaar * Make portable snprintf safer - output to /dev/null first to 39333955d011SMarcel Moolenaar check space needed. 39343955d011SMarcel Moolenaar 39353955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20031222 39363955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39373955d011SMarcel Moolenaar o -dg3 to show input graph when things go wrong. 39383955d011SMarcel Moolenaar o explicitly look for makefiles in objdir if not found in curdir so 39393955d011SMarcel Moolenaar that errors in .depend etc will be reported accurarely. 39403955d011SMarcel Moolenaar o avoid use of -e in shell scripts in jobs mode, use '|| exit $?' 39413955d011SMarcel Moolenaar instead as it more accurately reflects the expected behavior and 39423955d011SMarcel Moolenaar is more consistently implemented. 39433955d011SMarcel Moolenaar o avoid use of asprintf. 39443955d011SMarcel Moolenaar 39453955d011SMarcel Moolenaar2003-09-28 Simon J. Gerraty <sjg@void.crufty.net> 39463955d011SMarcel Moolenaar 39473955d011SMarcel Moolenaar * util.c: Add asprintf and vasprintf. 39483955d011SMarcel Moolenaar 39493955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030928 39503955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39513955d011SMarcel Moolenaar :[] modifier - allows picking words from a variable. 39523955d011SMarcel Moolenaar :tW modifier - allows treating value as one big word. 39533955d011SMarcel Moolenaar W flag for :C and :S - allows treating value as one big word. 39543955d011SMarcel Moolenaar 39553955d011SMarcel Moolenaar2003-09-12 Simon J. Gerraty <sjg@void.crufty.net> 39563955d011SMarcel Moolenaar 39573955d011SMarcel Moolenaar * Merge with NetBSD make 39583955d011SMarcel Moolenaar pick up -de flag to enable printing failed command. 39593955d011SMarcel Moolenaar don't skip 1st two dir entries (normally . and ..) since 39603955d011SMarcel Moolenaar coda does not have them. 39613955d011SMarcel Moolenaar 39623955d011SMarcel Moolenaar2003-09-09 Simon J. Gerraty <sjg@void.crufty.net> 39633955d011SMarcel Moolenaar 39643955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030909 39653955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39663955d011SMarcel Moolenaar - changes for -V '${VAR}' to print fully expanded value 39673955d011SMarcel Moolenaar cf. -V VAR 39683955d011SMarcel Moolenaar - CompatRunCommand now prints the command that failed. 39693955d011SMarcel Moolenaar - several files got updated 3 clause Berkeley license. 39703955d011SMarcel Moolenaar 39713955d011SMarcel Moolenaar2003-08-02 Simon J. Gerraty <sjg@void.crufty.net> 39723955d011SMarcel Moolenaar 39733955d011SMarcel Moolenaar * boot-strap: Allow setting configure args on command line. 39743955d011SMarcel Moolenaar 39753955d011SMarcel Moolenaar2003-07-31 Simon J. Gerraty <sjg@void.crufty.net> 39763955d011SMarcel Moolenaar 39773955d011SMarcel Moolenaar * configure.in: add --with-defshell to allow sh or ksh 39783955d011SMarcel Moolenaar to be selected as default shell. 39793955d011SMarcel Moolenaar 39803955d011SMarcel Moolenaar * Makefile.in: bump version to 20030731 39813955d011SMarcel Moolenaar 39823955d011SMarcel Moolenaar * Merge with NetBSD make 39833955d011SMarcel Moolenaar Pick up .SHELL spec for ksh and associate man page changes. 39843955d011SMarcel Moolenaar Also compat mode now uses the same shell specs. 39853955d011SMarcel Moolenaar 39863955d011SMarcel Moolenaar2003-07-29 Simon J. Gerraty <sjg@void.crufty.net> 39873955d011SMarcel Moolenaar 39883955d011SMarcel Moolenaar * var.c (Var_Parse): ensure delim is initialized. 39893955d011SMarcel Moolenaar 39903955d011SMarcel Moolenaar * unit-tests/Makefile.in: use single quotes to avoid problems from 39913955d011SMarcel Moolenaar some shells. 39923955d011SMarcel Moolenaar 39933955d011SMarcel Moolenaar * makefile.boot.in: 39943955d011SMarcel Moolenaar Run the unit-tests as part of the bootstrap procedure. 39953955d011SMarcel Moolenaar 39963955d011SMarcel Moolenaar2003-07-28 Simon J. Gerraty <sjg@void.crufty.net> 39973955d011SMarcel Moolenaar 39983955d011SMarcel Moolenaar * unit-tests/Makefile.in: always force complaints from 39993955d011SMarcel Moolenaar ${TEST_MAKE} to be from 'make'. 40003955d011SMarcel Moolenaar 40013955d011SMarcel Moolenaar * configure.in: add check for 'diff -u' 40023955d011SMarcel Moolenaar also fix some old autoconf'isms 40033955d011SMarcel Moolenaar 40043955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030728. 40053955d011SMarcel Moolenaar if using GCC add -Wno-cast-qual to CFLAGS for var.o 40063955d011SMarcel Moolenaar 40073955d011SMarcel Moolenaar * Merge with NetBSD make 40083955d011SMarcel Moolenaar Pick up fix for :ts parsing error in some cases. 40093955d011SMarcel Moolenaar Pick unit-tests. 40103955d011SMarcel Moolenaar 40113955d011SMarcel Moolenaar2003-07-23 Simon J. Gerraty <sjg@void.crufty.net> 40123955d011SMarcel Moolenaar 40133955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030723. 40143955d011SMarcel Moolenaar 40153955d011SMarcel Moolenaar * var.c (Var_Parse): fix bug in :ts modifier, after const 40163955d011SMarcel Moolenaar correctness fixes, must pass nstr to VarModify. 40173955d011SMarcel Moolenaar 40183955d011SMarcel Moolenaar2003-07-14 Simon J. Gerraty <sjg@void.crufty.net> 40193955d011SMarcel Moolenaar 40203955d011SMarcel Moolenaar * Makefile.in: BMAKE_VERSION switch to a date based version. 40213955d011SMarcel Moolenaar We'll generally use the date of last import from NetBSD. 40223955d011SMarcel Moolenaar 40233955d011SMarcel Moolenaar * Merge with NetBSD make 40243955d011SMarcel Moolenaar Pick up fixes for const-correctness, now passes WARNS=3 on 40253955d011SMarcel Moolenaar NetBSD. 40263955d011SMarcel Moolenaar Pick up :ts modifier, allows controlling the separator used 40273955d011SMarcel Moolenaar between words in variable expansion. 40283955d011SMarcel Moolenaar 40293955d011SMarcel Moolenaar2003-07-11 Simon J. Gerraty <sjg@void.crufty.net> 40303955d011SMarcel Moolenaar 40313955d011SMarcel Moolenaar * FILES: include boot-strap and os.sh 40323955d011SMarcel Moolenaar 40333955d011SMarcel Moolenaar * Makefile.in: only set WARNS if we are NetBSD, the effect on 40343955d011SMarcel Moolenaar FreeBSD is known to be bad. 40353955d011SMarcel Moolenaar 40363955d011SMarcel Moolenaar * makefile.boot.in (bootstrap): make this the default target. 40373955d011SMarcel Moolenaar 40383955d011SMarcel Moolenaar * Makefile.in: bump version to 3.1.19 40393955d011SMarcel Moolenaar 40403955d011SMarcel Moolenaar * machine.sh: avoid A-Z with tr as it is bound to lose. 40413955d011SMarcel Moolenaar 40423955d011SMarcel Moolenaar2003-07-10 Simon J. Gerraty <sjg@void.crufty.net> 40433955d011SMarcel Moolenaar 40443955d011SMarcel Moolenaar * Merge with NetBSD make 40453955d011SMarcel Moolenaar Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo 40463955d011SMarcel Moolenaar Plus some doc fixes. 40473955d011SMarcel Moolenaar 40483955d011SMarcel Moolenaar2003-04-27 Simon J. Gerraty <sjg@void.crufty.net> 40493955d011SMarcel Moolenaar 40503955d011SMarcel Moolenaar * Merge with NetBSD make 40513955d011SMarcel Moolenaar Pick up fix for PR/1523 - don't count a library as built, if there 40523955d011SMarcel Moolenaar is no way to build it 40533955d011SMarcel Moolenaar 40543955d011SMarcel Moolenaar * Bump version to 3.1.18 40553955d011SMarcel Moolenaar 40563955d011SMarcel Moolenaar2003-03-23 Simon J. Gerraty <sjg@void.crufty.net> 40573955d011SMarcel Moolenaar 40583955d011SMarcel Moolenaar * Merge with NetBSD make 40593955d011SMarcel Moolenaar Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT 40603955d011SMarcel Moolenaar appears in src list. 40613955d011SMarcel Moolenaar 40623955d011SMarcel Moolenaar2003-03-21 Simon J. Gerraty <sjg@void.crufty.net> 40633955d011SMarcel Moolenaar 40643955d011SMarcel Moolenaar * Merge with NetBSD make (mmm 10th anniversary!) 40653955d011SMarcel Moolenaar pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828) 40663955d011SMarcel Moolenaar pick up -X which tells us to not export VAR=val via setenv if 40673955d011SMarcel Moolenaar we are already doing so via MAKEFLAGS. This saves valuable env 40683955d011SMarcel Moolenaar space on systems like Darwin. 40693955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.17 40703955d011SMarcel Moolenaar 40713955d011SMarcel Moolenaar * parse.c: pix up fix for suffix rules 40723955d011SMarcel Moolenaar 40733955d011SMarcel Moolenaar2003-03-06 Simon J. Gerraty <sjg@void.crufty.net> 40743955d011SMarcel Moolenaar 40753955d011SMarcel Moolenaar * Merge with NetBSD make. 40763955d011SMarcel Moolenaar pick up fix for propagating -B via MAKEFLAGS. 40773955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.16 40783955d011SMarcel Moolenaar 40793955d011SMarcel Moolenaar * Apply some patches from pkgsrc-bootstrap/bmake 40803955d011SMarcel Moolenaar Originally by Grant Beattie <grant@netbsd.org> 40813955d011SMarcel Moolenaar I may have missed some - since they are based on bmake-3.1.12 40823955d011SMarcel Moolenaar 40833955d011SMarcel Moolenaar2002-12-03 Simon J. Gerraty <sjg@void.crufty.net> 40843955d011SMarcel Moolenaar 40853955d011SMarcel Moolenaar * makefile.boot.in (bmake): update install targets for those that 40863955d011SMarcel Moolenaar use them, also clear MAKEFLAGS when invoking bmake.boot to avoid 40873955d011SMarcel Moolenaar havoc from gmake -w. Thanks to Harlan Stenn <hstenn@cisco.com>. 40883955d011SMarcel Moolenaar 40893955d011SMarcel Moolenaar * bmake.cat1: update the pre-formatted man page! 40903955d011SMarcel Moolenaar 40913955d011SMarcel Moolenaar2002-11-30 Simon J. Gerraty <sjg@void.crufty.net> 40923955d011SMarcel Moolenaar 40933955d011SMarcel Moolenaar * Merge with NetBSD make. 40943955d011SMarcel Moolenaar pick up fix for premature free of pointer used in call 40953955d011SMarcel Moolenaar to Dir_InitCur(). 40963955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.15 40973955d011SMarcel Moolenaar 40983955d011SMarcel Moolenaar2002-11-26 Simon J. Gerraty <sjg@void.crufty.net> 40993955d011SMarcel Moolenaar 41003955d011SMarcel Moolenaar * configure.in: determine suitable value for MKSRC. 41013955d011SMarcel Moolenaar override using --with-mksrc=PATH. 41023955d011SMarcel Moolenaar 41033955d011SMarcel Moolenaar * machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems. 41043955d011SMarcel Moolenaar configs(8) will use 'sun4' as an alias for 'sparc'. 41053955d011SMarcel Moolenaar 41063955d011SMarcel Moolenaar2002-11-25 Simon J. Gerraty <sjg@void.crufty.net> 41073955d011SMarcel Moolenaar 41083955d011SMarcel Moolenaar * Merge with NetBSD make. 41093955d011SMarcel Moolenaar pick up ${.PATH} 41103955d011SMarcel Moolenaar pick up fix for finding ../cat.c via .PATH when .CURDIR=.. 41113955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.14 41123955d011SMarcel Moolenaar add configure checks for killpg and sys/socket.h 41133955d011SMarcel Moolenaar 41143955d011SMarcel Moolenaar2002-09-16 Simon J. Gerraty <sjg@void.crufty.net> 41153955d011SMarcel Moolenaar 41163955d011SMarcel Moolenaar * tag bmake-3-1-13 41173955d011SMarcel Moolenaar 41183955d011SMarcel Moolenaar * makefile.boot.in (bmake): use install-mk 41193955d011SMarcel Moolenaar Also setup ./mk before trying to invoke bmake.boot incase we 41203955d011SMarcel Moolenaar needed install-mk to create a sys.mk for us. 41213955d011SMarcel Moolenaar 41223955d011SMarcel Moolenaar * configure.in: If we need to add -I${srcdir}/missing, make it an 41233955d011SMarcel Moolenaar absolute path so that it works for lst.lib too. 41243955d011SMarcel Moolenaar 41253955d011SMarcel Moolenaar * make.h: always include sys/cdefs.h since we provide one if the 41263955d011SMarcel Moolenaar host does not. 41273955d011SMarcel Moolenaar 41283955d011SMarcel Moolenaar * Makefile.in (install-mk): 41293955d011SMarcel Moolenaar use MKSRC/install-mk which will do the right thing. 41303955d011SMarcel Moolenaar use uname -p for ARCH if possible. 41313955d011SMarcel Moolenaar since install-mk will setup links bsd.prog.mk -> prog.mk if 41323955d011SMarcel Moolenaar needed, just .include bsd.prog.mk 41333955d011SMarcel Moolenaar 41343955d011SMarcel Moolenaar * Merge with NetBSD make (NetBSD-1.6) 41353955d011SMarcel Moolenaar Code is ansi-C only now. 41363955d011SMarcel Moolenaar Bug in handling of dotLast is fixed. 41373955d011SMarcel Moolenaar Can now assign .OBJDIR and make will reset its notions of life. 41383955d011SMarcel Moolenaar New modifiers :tu :tl for toUpper and toLower. 41393955d011SMarcel Moolenaar 41403955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001 Simon J. Gerraty <sjg@zen.crufty.net> 41413955d011SMarcel Moolenaar 41423955d011SMarcel Moolenaar * Merge with NetBSD make 41433955d011SMarcel Moolenaar pick up fix for .END failure in compat mode. 41443955d011SMarcel Moolenaar pick up fix for extra va_end() in ParseVErrorInternal. 41453955d011SMarcel Moolenaar 41463955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001 Simon J. Gerraty <sjg@zen.crufty.net> 41473955d011SMarcel Moolenaar 41483955d011SMarcel Moolenaar * configure.in: for systems that have sys/cdefs.h check if it is 41493955d011SMarcel Moolenaar compatible. If not, include the one under missing, but tell it to 41503955d011SMarcel Moolenaar include the native one too - necessary on Linux. 41513955d011SMarcel Moolenaar 41523955d011SMarcel Moolenaar * missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use 41533955d011SMarcel Moolenaar include_next (for gcc) to get the native sys/cdefs.h 41543955d011SMarcel Moolenaar 41553955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 41563955d011SMarcel Moolenaar 41573955d011SMarcel Moolenaar * job.c (JobFinish): Fix an earlier merge bug that resulted in 41583955d011SMarcel Moolenaar leaking descriptors when using -jN. 41593955d011SMarcel Moolenaar 41603955d011SMarcel Moolenaar * job.c (JobPrintCommand): See if "curdir" exists before 41613955d011SMarcel Moolenaar attempting to chdir(). Doing the chdir directly in make (when in 41623955d011SMarcel Moolenaar compat mode) fails silently, so let the -jN version do the same. 41633955d011SMarcel Moolenaar This can happen when building kernels in an object tree and 41643955d011SMarcel Moolenaar playing clever games to reset .CURDIR. 41653955d011SMarcel Moolenaar 41663955d011SMarcel Moolenaar * Merged with NetBSD make 41673955d011SMarcel Moolenaar pick up .USEBEFORE 41683955d011SMarcel Moolenaar 41693955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 41703955d011SMarcel Moolenaar 41713955d011SMarcel Moolenaar * makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work. 41723955d011SMarcel Moolenaar 41733955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 41743955d011SMarcel Moolenaar 41753955d011SMarcel Moolenaar * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell 41763955d011SMarcel Moolenaar us not to export the iterator variable when using VAR_CMD context. 41773955d011SMarcel Moolenaar 41783955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 41793955d011SMarcel Moolenaar 41803955d011SMarcel Moolenaar * job.c (Job_CatchChildren): don't call Job_CatchOutput() here, 41813955d011SMarcel Moolenaar its the wrong "fix". 41823955d011SMarcel Moolenaar 41833955d011SMarcel MoolenaarSat Jun 9 00:11:24 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 41843955d011SMarcel Moolenaar 41853955d011SMarcel Moolenaar * Redesigned export of VAR_CMD's via MAKEFLAGS. 41863955d011SMarcel Moolenaar We now simply append the variable names to .MAKEOVERRIDES, and 41873955d011SMarcel Moolenaar handle duplicate suppression and quoting in ExportMAKEFLAGS using: 41883955d011SMarcel Moolenaar ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@} 41893955d011SMarcel Moolenaar Apart from fixing quoting bugs in previous version, this allows us 41903955d011SMarcel Moolenaar to export vars to the environment by simply doing: 41913955d011SMarcel Moolenaar .MAKEOVERRIDES+= PATH 41923955d011SMarcel Moolenaar Merged again with NetBSD make, but the above is the only change. 41933955d011SMarcel Moolenaar 41943955d011SMarcel Moolenaar * configure.in: added 41953955d011SMarcel Moolenaar --disable-pwd-override disable $PWD overriding getcwd() 41963955d011SMarcel Moolenaar --disable-check-make-chdir disable make trying to guess 41973955d011SMarcel Moolenaar when it should automatically cd ${.CURDIR} 41983955d011SMarcel Moolenaar 41993955d011SMarcel Moolenaar * Merge with NetBSD make, changes include: 42003955d011SMarcel Moolenaar parse.c (ParseDoDependency): Spot that the syntax error is 42013955d011SMarcel Moolenaar caused by an unresolved cvs/rcs conflict and say so. 42023955d011SMarcel Moolenaar var.c: most of Var* functions now take a ctxt as 1st arg. 42033955d011SMarcel Moolenaar now does variable substituion on rhs of sysv style modifiers. 42043955d011SMarcel Moolenaar 42053955d011SMarcel Moolenaar * var.c (Var_Set): exporting of command line variables (VAR_CMD) 42063955d011SMarcel Moolenaar is now done here. We append the name='value' to .MAKEOVERRIDES 42073955d011SMarcel Moolenaar rather than directly into MAKEFLAGS as this allows a Makefile to 42083955d011SMarcel Moolenaar use .MAKEOVERRIDES= to disable this behaviour. GNU make uses a 42093955d011SMarcel Moolenaar very similar mechanism. Note that in adding name='value' to 42103955d011SMarcel Moolenaar .MAKEOVERRIDES we do the moral equivalent of: 42113955d011SMarcel Moolenaar .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val' 42123955d011SMarcel Moolenaar 42133955d011SMarcel MoolenaarFri Jun 1 14:08:02 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 42143955d011SMarcel Moolenaar 42153955d011SMarcel Moolenaar * make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H 42163955d011SMarcel Moolenaar 42173955d011SMarcel Moolenaar * Merged with NetBSD make 42183955d011SMarcel Moolenaar make -dx can now be used to run commands via sh -x 42193955d011SMarcel Moolenaar better error messages on exec failures. 42203955d011SMarcel Moolenaar 42213955d011SMarcel MoolenaarThu May 31 01:44:54 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 42223955d011SMarcel Moolenaar 42233955d011SMarcel Moolenaar * Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that 42243955d011SMarcel Moolenaar MAKE_VERSION gets updated. Also don't use ?= for MAKE_VERSION, 42253955d011SMarcel Moolenaar MACHINE etc otherwise they propagate from the previous bmake. 42263955d011SMarcel Moolenaar 42273955d011SMarcel Moolenaar * configure.in (machine): allow --with-machine=generic to make 42283955d011SMarcel Moolenaar configure use machine.sh to set MACHINE. 42293955d011SMarcel Moolenaar 42303955d011SMarcel Moolenaar * job.c (JobInterrupt): convert to using WAIT_T and friends. 42313955d011SMarcel Moolenaar 42323955d011SMarcel Moolenaar * Makefile.in: mention in bmake.1 that we use autoconf. 42333955d011SMarcel Moolenaar 42343955d011SMarcel Moolenaar * make.1: mention MAKE_PRINT_VAR_ON_ERROR. 42353955d011SMarcel Moolenaar 42363955d011SMarcel MoolenaarWed May 30 23:17:18 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 42373955d011SMarcel Moolenaar 42383955d011SMarcel Moolenaar * main.c (ReadMakefile): don't set MAKEFILE if reading ".depend" 42393955d011SMarcel Moolenaar as that rather defeats the usefulness of ${MAKEFILE}. 42403955d011SMarcel Moolenaar 42413955d011SMarcel Moolenaar * main.c (MainParseArgs): append command line variable assignments 42423955d011SMarcel Moolenaar to MAKEFLAGS so that they get propagated to child make's. 42433955d011SMarcel Moolenaar Apparently this is required POSIX behaviour? Its useful anyway. 42443955d011SMarcel Moolenaar 42453955d011SMarcel MoolenaarTue May 29 02:20:07 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 42463955d011SMarcel Moolenaar 42473955d011SMarcel Moolenaar * compat.c (CompatRunCommand): don't use perror() since stdio may 42483955d011SMarcel Moolenaar cause problems in child of vfork(). 42493955d011SMarcel Moolenaar 42503955d011SMarcel Moolenaar * compat.c, main.c: Call PrintOnError() when we are going to bail. 42513955d011SMarcel Moolenaar This routine prints out the .curdir where we stopped and will also 42523955d011SMarcel Moolenaar display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}. 42533955d011SMarcel Moolenaar 42543955d011SMarcel Moolenaar * main.c: add ${.newline} to hold a "\n" - sometimes handy in 42553955d011SMarcel Moolenaar :@ expansion. 42563955d011SMarcel Moolenaar 42573955d011SMarcel Moolenaar * var.c: VarLoopExpand: ignore addSpace if a \n is present. 42583955d011SMarcel Moolenaar 42593955d011SMarcel Moolenaar * Added RCSid's for the files we've touched. 42603955d011SMarcel Moolenaar 42613955d011SMarcel MoolenaarThu May 24 15:41:37 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 42623955d011SMarcel Moolenaar 42633955d011SMarcel Moolenaar * configure.in: Thanks to some clues from mdb@juniper.net, 42643955d011SMarcel Moolenaar added autoconf magic to control setting of MACHINE, MACHINE_ARCH 42653955d011SMarcel Moolenaar as well as what ends up in _PATH_DEFSYSPATH. We now have: 42663955d011SMarcel Moolenaar 42673955d011SMarcel Moolenaar --with-machine=MACHINE explicitly set MACHINE 42683955d011SMarcel Moolenaar --with-force-machine=MACHINE set FORCE_MACHINE 42693955d011SMarcel Moolenaar --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH 42703955d011SMarcel Moolenaar --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 42713955d011SMarcel Moolenaar --with-prefix-sys-path=PATH:DIR:LIST prefix _PATH_PREFIX_SYSPATH 42723955d011SMarcel Moolenaar --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX 42733955d011SMarcel Moolenaar 42743955d011SMarcel Moolenaar If _PATH_OBJDIRPREFIX is set to "no" we won't define it. 42753955d011SMarcel Moolenaar 42763955d011SMarcel Moolenaar * makefile: added a pathetically simple makefile to drive 42773955d011SMarcel Moolenaar bootstrapping. Running configure by hand is more useful. 42783955d011SMarcel Moolenaar 42793955d011SMarcel Moolenaar * Makefile.in: added MAKE_VERSION, and reworked things to be less 42803955d011SMarcel Moolenaar dependent on NetBSD bsd.*.mk 42813955d011SMarcel Moolenaar 42823955d011SMarcel Moolenaar * pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining 42833955d011SMarcel Moolenaar _PATH_OBJDIRPREFIX for those that don't want a default. 42843955d011SMarcel Moolenaar construct _PATH_DEFSYSPATH from the info we get from configure. 42853955d011SMarcel Moolenaar 42863955d011SMarcel Moolenaar * main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION} 42873955d011SMarcel Moolenaar if MAKE_VERSION is defined. 42883955d011SMarcel Moolenaar 42893955d011SMarcel Moolenaar * compat.c: when we bail, print out the .CURDIR we were in. 42903955d011SMarcel Moolenaar 42913955d011SMarcel MoolenaarSat May 12 00:34:12 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 42923955d011SMarcel Moolenaar 42933955d011SMarcel Moolenaar * Merged with NetBSD make 42943955d011SMarcel Moolenaar 42953955d011SMarcel Moolenaar * var.c: fixed a bug in the handling of the modifier :P 42963955d011SMarcel Moolenaar if the node as found but the path was null, we segfault trying to 42973955d011SMarcel Moolenaar duplicate it. 42983955d011SMarcel Moolenaar 42993955d011SMarcel MoolenaarMon Mar 5 16:20:33 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 43003955d011SMarcel Moolenaar 43013955d011SMarcel Moolenaar * Merged with NetBSD make 43023955d011SMarcel Moolenaar 43033955d011SMarcel Moolenaar * make.c: Make_OODate's test for a library out of date was using 43043955d011SMarcel Moolenaar cmtime where it should have used mtime (my bug). 43053955d011SMarcel Moolenaar 43063955d011SMarcel Moolenaar * compat.c: Use perror() to tell us what really went wrong when we 43073955d011SMarcel Moolenaar cannot exec a command. 43083955d011SMarcel Moolenaar 43093955d011SMarcel MoolenaarFri Dec 15 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 43103955d011SMarcel Moolenaar 43113955d011SMarcel Moolenaar * Merged with NetBSD make 43123955d011SMarcel Moolenaar 43133955d011SMarcel MoolenaarSat Jun 10 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 43143955d011SMarcel Moolenaar 43153955d011SMarcel Moolenaar * Merged with NetBSD make 43163955d011SMarcel Moolenaar 43173955d011SMarcel MoolenaarThu Jun 1 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 43183955d011SMarcel Moolenaar 43193955d011SMarcel Moolenaar * Merged with NetBSD make 43203955d011SMarcel Moolenaar 43213955d011SMarcel MoolenaarTue May 30 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 43223955d011SMarcel Moolenaar 43233955d011SMarcel Moolenaar * Merged with NetBSD make 43243955d011SMarcel Moolenaar 43253955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 43263955d011SMarcel Moolenaar 43273955d011SMarcel Moolenaar * util.c: don't provide signal() since we use sigcompat.c 43283955d011SMarcel Moolenaar 43293955d011SMarcel Moolenaar * Makefile.in: added a build target. 43303955d011SMarcel Moolenaar 43313955d011SMarcel Moolenaar * var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :! 43323955d011SMarcel Moolenaar These allow some quite clever magic. 43333955d011SMarcel Moolenaar 43343955d011SMarcel Moolenaar * main.c (main): added support for getenv(MAKESYSPATH). 43353955d011SMarcel Moolenaar 43363955d011SMarcel MoolenaarMon Apr 2 16:25:13 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 43373955d011SMarcel Moolenaar 43383955d011SMarcel Moolenaar * Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set. 43393955d011SMarcel Moolenaar This avoids objdir having a different value depending on how a 43403955d011SMarcel Moolenaar directory was reached (via command line, or subdir.mk). 43413955d011SMarcel Moolenaar 43423955d011SMarcel Moolenaar * If FORCE_MACHINE is defined, ignore getenv("MACHINE"). 43433955d011SMarcel Moolenaar 43443955d011SMarcel MoolenaarMon Apr 2 23:15:31 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 43453955d011SMarcel Moolenaar 43463955d011SMarcel Moolenaar * Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if 43473955d011SMarcel Moolenaar MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not. 43483955d011SMarcel Moolenaar I've been testing this in NetBSD's make for some weeks. 43493955d011SMarcel Moolenaar 43503955d011SMarcel Moolenaar * Turn Makefile into Makefile.in and make it useful. 43513955d011SMarcel Moolenaar 43523955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 43533955d011SMarcel Moolenaar 43543955d011SMarcel Moolenaar * Imported NetBSD's -current make(1) and resolve conflicts. 43553955d011SMarcel Moolenaar 43563955d011SMarcel Moolenaar * Applied autoconf patches from bmake v2 43573955d011SMarcel Moolenaar 43583955d011SMarcel Moolenaar * Imported clean code base from NetBSD-1.0 4359