1*9d3df31eSSimon J. Gerraty2024-05-20 Simon J Gerraty <sjg@beast.crufty.net> 2*9d3df31eSSimon J. Gerraty 3*9d3df31eSSimon J. Gerraty * VERSION (_MAKE_VERSION): 4*9d3df31eSSimon J. Gerraty Merge with NetBSD make, pick up 5*9d3df31eSSimon J. Gerraty o dir.c: in FindFile restore last search of .CURDIR even for 6*9d3df31eSSimon J. Gerraty includes, as a number of existing makefiles are broken otherwise. 7*9d3df31eSSimon J. Gerraty 8*9d3df31eSSimon J. Gerraty2024-05-19 Simon J Gerraty <sjg@beast.crufty.net> 9*9d3df31eSSimon J. Gerraty 10*9d3df31eSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240519 11*9d3df31eSSimon J. Gerraty Merge with NetBSD make, pick up 12*9d3df31eSSimon J. Gerraty o dir.c: Add Dir_FindInclude, FindFile without looking in .CURDIR. 13*9d3df31eSSimon J. Gerraty Also fix Dir_SetSYSPATH to use defSysIncPath if sysIncPath is empty. 14*9d3df31eSSimon J. Gerraty o main.c: no need to set .DOTLAST in sysIncPath 15*9d3df31eSSimon J. Gerraty 16c9f4001fSSimon J. Gerraty2024-05-07 Simon J Gerraty <sjg@beast.crufty.net> 17c9f4001fSSimon J. Gerraty 18c9f4001fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240508 19c9f4001fSSimon J. Gerraty Merge with NetBSD make, pick up 20c9f4001fSSimon J. Gerraty o make: ensure variables set on command line get added to 21c9f4001fSSimon J. Gerraty .MAKEOVERRIDES (even if they start with '.') so they are passed to 22c9f4001fSSimon J. Gerraty sub-makes. 23c9f4001fSSimon J. Gerraty 24548bfc56SSimon J. Gerraty2024-04-30 Simon J Gerraty <sjg@beast.crufty.net> 25548bfc56SSimon J. Gerraty 26548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240430 27548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 28548bfc56SSimon J. Gerraty o main.c: ensure '.include <makefile>' respects MAKESYSPATH. 29548bfc56SSimon J. Gerraty Dir_FindFile will search .CURDIR first unless ".DOTLAST" is seen. 30548bfc56SSimon J. Gerraty 31548bfc56SSimon J. Gerraty2024-04-28 Simon J Gerraty <sjg@beast.crufty.net> 32548bfc56SSimon J. Gerraty 33548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240428 34548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 35548bfc56SSimon J. Gerraty o simplify freeing of lists 36548bfc56SSimon J. Gerraty o arch.c: trim pointless comments 37548bfc56SSimon J. Gerraty o var.c: delay variable assignments until actually needed 38548bfc56SSimon J. Gerraty don't reallocate memory after evaluating an expression, result is 39548bfc56SSimon J. Gerraty almost always short-lived. 40548bfc56SSimon J. Gerraty 41548bfc56SSimon J. Gerraty2024-04-26 Simon J Gerraty <sjg@beast.crufty.net> 42548bfc56SSimon J. Gerraty 43548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240426 44548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 45548bfc56SSimon J. Gerraty o job.c: in debug output, print the directory in which a job 46548bfc56SSimon J. Gerraty failed at same time as failed target so it is more easily found in 47548bfc56SSimon J. Gerraty build log. 48548bfc56SSimon J. Gerraty 49548bfc56SSimon J. Gerraty2024-04-24 Simon J Gerraty <sjg@beast.crufty.net> 50548bfc56SSimon J. Gerraty 51548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240424 52548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 53548bfc56SSimon J. Gerraty o clean up comments, code and tests 54548bfc56SSimon J. Gerraty 55548bfc56SSimon J. Gerraty2024-04-23 Simon J Gerraty <sjg@beast.crufty.net> 56548bfc56SSimon J. Gerraty 57548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240422 58548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 59548bfc56SSimon J. Gerraty o var.c: avoid LazyBuf for :*time modifiers. 60548bfc56SSimon J. Gerraty LazyBuf's are not nul terminated so not suitable for passing to 61548bfc56SSimon J. Gerraty functions that expect that. These modifiers are used sparingly so 62548bfc56SSimon J. Gerraty an extra allocation is not a problem. 63548bfc56SSimon J. Gerraty 64548bfc56SSimon J. Gerraty2024-04-20 Simon J Gerraty <sjg@beast.crufty.net> 65548bfc56SSimon J. Gerraty 66548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240420 67548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 68548bfc56SSimon J. Gerraty o provide more context information for parse/evaluate errors 69548bfc56SSimon J. Gerraty 70548bfc56SSimon J. Gerraty2024-04-14 Simon J Gerraty <sjg@beast.crufty.net> 71548bfc56SSimon J. Gerraty 72548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240414 73548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 74548bfc56SSimon J. Gerraty o parse.c: print -dp debug info earlier so we see which 75548bfc56SSimon J. Gerraty .if or .for line is being parsed. 76548bfc56SSimon J. Gerraty 77548bfc56SSimon J. Gerraty2024-04-04 Simon J Gerraty <sjg@beast.crufty.net> 78548bfc56SSimon J. Gerraty 79548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240404 80548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 81548bfc56SSimon J. Gerraty o fix some unit tests for Cygwin 82548bfc56SSimon J. Gerraty o parse.c: exit immediately after reading a null byte from a makefile 83548bfc56SSimon J. Gerraty 84548bfc56SSimon J. Gerraty * fix generation of bmake.cat1 85548bfc56SSimon J. Gerraty 86548bfc56SSimon J. Gerraty2024-03-19 Simon J Gerraty <sjg@beast.crufty.net> 87548bfc56SSimon J. Gerraty 88548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240314 89548bfc56SSimon J. Gerraty Add/Improve support for Cygwin 90548bfc56SSimon J. Gerraty o uname -s output isn't useful so allow configure to 91548bfc56SSimon J. Gerraty set FORCE_MAKE_OS - to force the value of .MAKE.OS 92548bfc56SSimon J. Gerraty and use Cygwin which matches uname -o 93548bfc56SSimon J. Gerraty o fix some unit-tests for Cygwin 94548bfc56SSimon J. Gerraty 95c59c3bf3SSimon J. Gerraty2024-03-10 Simon J Gerraty <sjg@beast.crufty.net> 96c59c3bf3SSimon J. Gerraty 97c59c3bf3SSimon J. Gerraty * boot-strap: tests can take a long time; use a cookie to 98c59c3bf3SSimon J. Gerraty skip them if bmake has not been updated since tests last 99c59c3bf3SSimon J. Gerraty ran successfully. 100c59c3bf3SSimon J. Gerraty 101c59c3bf3SSimon J. Gerraty * Makefile: Cygwin handles MANTARGET man 102c59c3bf3SSimon J. Gerraty 103c59c3bf3SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for Cygwin 104c59c3bf3SSimon J. Gerraty 105c59c3bf3SSimon J. Gerraty2024-03-09 Simon J Gerraty <sjg@beast.crufty.net> 106c59c3bf3SSimon J. Gerraty 107c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240309 108c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 109c59c3bf3SSimon J. Gerraty o set .ERROR_EXIT to the exit status of .ERROR_TARGET 110c59c3bf3SSimon J. Gerraty this allows a .ERROR target to ignore the case of 111c59c3bf3SSimon J. Gerraty .ERROR_EXIT==6 which just means that the build actually 112c59c3bf3SSimon J. Gerraty failed somewhere else. 113c59c3bf3SSimon J. Gerraty 114c59c3bf3SSimon J. Gerraty2024-03-04 Simon J Gerraty <sjg@beast.crufty.net> 115c59c3bf3SSimon J. Gerraty 116c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240303 117c59c3bf3SSimon J. Gerraty 118c59c3bf3SSimon J. Gerraty * var.c: on IRIX we need both inttypes.h and stdint.h 119c59c3bf3SSimon J. Gerraty 120c59c3bf3SSimon J. Gerraty2024-03-01 Simon J Gerraty <sjg@beast.crufty.net> 121c59c3bf3SSimon J. Gerraty 122c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240301 123c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 124c59c3bf3SSimon J. Gerraty o export variables with value from target scope 125c59c3bf3SSimon J. Gerraty when appropriate. 126c59c3bf3SSimon J. Gerraty 127c59c3bf3SSimon J. Gerraty2024-02-12 Simon J Gerraty <sjg@beast.crufty.net> 128c59c3bf3SSimon J. Gerraty 129c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240212 130c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 131c59c3bf3SSimon J. Gerraty o remove unneeded conditional-compilation toggles 132c59c3bf3SSimon J. Gerraty INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB, 133c59c3bf3SSimon J. Gerraty GMAKEEXPORT NO_REGEX and SUNSHCMD 134c59c3bf3SSimon J. Gerraty 135c59c3bf3SSimon J. Gerraty * configure.in: add check for regex.h 136c59c3bf3SSimon J. Gerraty 137c59c3bf3SSimon J. Gerraty * var.c: replace use of NO_REGEX with HAVE_REGEX_H 138c59c3bf3SSimon J. Gerraty 139c59c3bf3SSimon J. Gerraty2024-02-04 Simon J Gerraty <sjg@beast.crufty.net> 140c59c3bf3SSimon J. Gerraty 141c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240204 142c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 143c59c3bf3SSimon J. Gerraty o var.c: fix some lint (-dL) mode parsing issues 144c59c3bf3SSimon J. Gerraty 145c59c3bf3SSimon J. Gerraty2024-02-02 Simon J Gerraty <sjg@beast.crufty.net> 146c59c3bf3SSimon J. Gerraty 147c59c3bf3SSimon J. Gerraty * VERSION: (_MAKE_VERSION): 20240202 148c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 149c59c3bf3SSimon J. Gerraty o make.1: note that arg to :D and :U can be empty 150c59c3bf3SSimon J. Gerraty o var.c: $$ is not a parse error when .MAKE.SAVE_DOLLARS=no 151c59c3bf3SSimon J. Gerraty 152d5e0a182SSimon J. Gerraty2024-01-08 Simon J Gerraty <sjg@beast.crufty.net> 153d5e0a182SSimon J. Gerraty 154d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240108 155d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 156d5e0a182SSimon J. Gerraty o miscellaneous cleanups 157d5e0a182SSimon J. Gerraty 158d5e0a182SSimon J. Gerraty2024-01-06 Simon J Gerraty <sjg@beast.crufty.net> 159d5e0a182SSimon J. Gerraty 160d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240106 161d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 162d5e0a182SSimon J. Gerraty o fix duplicate progname when reporting an unknown target 163d5e0a182SSimon J. Gerraty o unit tests for Cmd_Exec using temp file 164d5e0a182SSimon J. Gerraty 165d5e0a182SSimon J. Gerraty2024-01-05 Simon J Gerraty <sjg@beast.crufty.net> 166d5e0a182SSimon J. Gerraty 167d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240105 168d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 169d5e0a182SSimon J. Gerraty o main.c: Cmd_Exec write cmd to a file if too big 170d5e0a182SSimon J. Gerraty avoid blowing commandline/env limits 171d5e0a182SSimon J. Gerraty 172d5e0a182SSimon J. Gerraty2024-01-02 Simon J Gerraty <sjg@beast.crufty.net> 173d5e0a182SSimon J. Gerraty 174d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240101 175d5e0a182SSimon J. Gerraty o util.c: flesh out more of strftime 176d5e0a182SSimon J. Gerraty * configure.in: add --with-bmake-strftime 177d5e0a182SSimon J. Gerraty it is not a full implementation but enough to pass all 178d5e0a182SSimon J. Gerraty the unit-tests. 179d5e0a182SSimon J. Gerraty * parse.c: LoadFile do not append \n to empty buffer. 180d5e0a182SSimon J. Gerraty 181d5e0a182SSimon J. Gerraty2023-12-30 Simon J Gerraty <sjg@beast.crufty.net> 182d5e0a182SSimon J. Gerraty 183d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231230 184d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 185d5e0a182SSimon J. Gerraty o simplify memory allocation for string buffers 186d5e0a182SSimon J. Gerraty o fix declared types of list nodes 187d5e0a182SSimon J. Gerraty o suff.c: clean up freeing of suffixes 188d5e0a182SSimon J. Gerraty o var.c: simplify debug message for the ':@var@...@' modifier 189d5e0a182SSimon J. Gerraty clean up variable handling 190d5e0a182SSimon J. Gerraty 191d5e0a182SSimon J. Gerraty2023-12-26 Simon J Gerraty <sjg@beast.crufty.net> 192d5e0a182SSimon J. Gerraty 193d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231226 194d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 195d5e0a182SSimon J. Gerraty o compat.c: ensure make's output is correctly ordered with that of 196d5e0a182SSimon J. Gerraty the target when not going to a tty 197d5e0a182SSimon J. Gerraty o main.c: check for shellPath whether to call Shell_Init() 198d5e0a182SSimon J. Gerraty 199d5e0a182SSimon J. Gerraty2023-12-24 Simon J Gerraty <sjg@beast.crufty.net> 200d5e0a182SSimon J. Gerraty 201d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231224 202d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 203d5e0a182SSimon J. Gerraty o compat.c: check for shellPath whether to call Shell_Init() 204d5e0a182SSimon J. Gerraty tweak the unit test to detect the bug thus fixed. 205d5e0a182SSimon J. Gerraty o make.1: do not claim .SHELL is only used by jobs mode. 206d5e0a182SSimon J. Gerraty 207d5e0a182SSimon J. Gerraty2023-12-22 Simon J Gerraty <sjg@beast.crufty.net> 208d5e0a182SSimon J. Gerraty 209d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231220 210d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 211d5e0a182SSimon J. Gerraty o str.c: speed up pattern matching in the ':M' modifier 212d5e0a182SSimon J. Gerraty o var.c: fix confusing debug logging when deleting a variable 213d5e0a182SSimon J. Gerraty use consistent debug messages style when ignoring variables 214d5e0a182SSimon J. Gerraty 215d5e0a182SSimon J. Gerraty2023-12-10 Simon J Gerraty <sjg@beast.crufty.net> 216d5e0a182SSimon J. Gerraty 217d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231210 218d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 219d5e0a182SSimon J. Gerraty o var.c: avoid segfault on empty :C match expression 220d5e0a182SSimon J. Gerraty explain in debug log why variable assignment is ignored. 221d5e0a182SSimon J. Gerraty 222d5e0a182SSimon J. Gerraty2023-12-08 Simon J Gerraty <sjg@beast.crufty.net> 223d5e0a182SSimon J. Gerraty 224d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231208 225d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 226d5e0a182SSimon J. Gerraty o var.c: ensure fromCmd is set correctly for variables set on 227d5e0a182SSimon J. Gerraty command line. 228d5e0a182SSimon J. Gerraty 229d5e0a182SSimon J. Gerraty2023-11-26 Simon J Gerraty <sjg@beast.crufty.net> 230d5e0a182SSimon J. Gerraty 231d5e0a182SSimon J. Gerraty * configure.in: disable generation of 'makefile' for 232d5e0a182SSimon J. Gerraty Darwin by default. 233d5e0a182SSimon J. Gerraty 234d5e0a182SSimon J. Gerraty * boot-strap: docuement --without-makefile 235d5e0a182SSimon J. Gerraty 236d5e0a182SSimon J. Gerraty2023-11-24 Simon J Gerraty <sjg@beast.crufty.net> 237d5e0a182SSimon J. Gerraty 238d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231124 239d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 240d5e0a182SSimon J. Gerraty o main.c: cleanup processing of -j 241d5e0a182SSimon J. Gerraty fix lint warning about strchr 242d5e0a182SSimon J. Gerraty o var.c: more accurate error message for invalid ':mtime' argument 243d5e0a182SSimon J. Gerraty cleanup :[...] modifier 244d5e0a182SSimon J. Gerraty avoid reading beyond substring when comparing 245d5e0a182SSimon J. Gerraty o unit-tests cover all cases of :mtime, test and explain exporting 246d5e0a182SSimon J. Gerraty of variables 247d5e0a182SSimon J. Gerraty o cleanup comments 248d5e0a182SSimon J. Gerraty 249d5e0a182SSimon J. Gerraty2023-09-17 Simon J Gerraty <sjg@beast.crufty.net> 250d5e0a182SSimon J. Gerraty 251d5e0a182SSimon J. Gerraty * bsd.after-import.mk (ECHO_TAG): FreeBSD no longer uses 252d5e0a182SSimon J. Gerraty $FreeBSD$ tag, so avoid adding it. 253d5e0a182SSimon J. Gerraty 25498875883SSimon J. Gerraty2023-09-09 Simon J Gerraty <sjg@beast.crufty.net> 25598875883SSimon J. Gerraty 25698875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230909 25798875883SSimon J. Gerraty Merge with NetBSD make, pick up 25898875883SSimon J. Gerraty o main.c: allow -j to compute a multiple of ncpu 25998875883SSimon J. Gerraty If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating 26098875883SSimon J. Gerraty point number or ends in 'C' compute .MAKE.JOBS as a multiple of 26198875883SSimon J. Gerraty _SC_NPROCESSORS_ONLN 26298875883SSimon J. Gerraty .MAKE.JOBS.C will be "yes" if -jC is supported 26398875883SSimon J. Gerraty 26498875883SSimon J. Gerraty2023-08-20 Simon J Gerraty <sjg@beast.crufty.net> 26598875883SSimon J. Gerraty 26698875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230820 26798875883SSimon J. Gerraty Merge with NetBSD make, pick up 26898875883SSimon J. Gerraty o make.1: note that :localtime is better for %s 26998875883SSimon J. Gerraty o parse.c: improve error messages for invalid input. 27098875883SSimon J. Gerraty o var.c: fix for %s:L:gmtime - set TZ=UTC and use localtime to get 27198875883SSimon J. Gerraty correct result, it is still better to use %s:L:localtime. 27298875883SSimon J. Gerraty 27398875883SSimon J. Gerraty2023-08-18 Simon J Gerraty <sjg@beast.crufty.net> 27498875883SSimon J. Gerraty 27598875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230818 27698875883SSimon J. Gerraty Merge with NetBSD make, pick up 27798875883SSimon J. Gerraty o meta.c: meta_ignore - check raw path against metaIgnorePaths 27898875883SSimon J. Gerraty to potentially skip call to realpath. 27998875883SSimon J. Gerraty o var.c: be strict when parsing the argument of the ':mtime' modifier 28098875883SSimon J. Gerraty o unit-tests/varmod-mtime.mk: document why '${%s:L:localtime}' 28198875883SSimon J. Gerraty should be used to get an equivalent value to time(3). 28298875883SSimon J. Gerraty 28398875883SSimon J. Gerraty2023-08-16 Simon J Gerraty <sjg@beast.crufty.net> 28498875883SSimon J. Gerraty 28598875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230816 28698875883SSimon J. Gerraty Merge with NetBSD make, pick up 28798875883SSimon J. Gerraty o cond.c: clean up multiple-inclusion guards 28898875883SSimon J. Gerraty 28998875883SSimon J. Gerraty2023-07-25 Simon J Gerraty <sjg@beast.crufty.net> 29098875883SSimon J. Gerraty 29198875883SSimon J. Gerraty * unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS 29298875883SSimon J. Gerraty if configure cannot work out how to control TZ. 29398875883SSimon J. Gerraty Remove varmod-localtime from BROKEN_TESTS for IRIX* 29498875883SSimon J. Gerraty 29598875883SSimon J. Gerraty2023-07-24 Simon J Gerraty <sjg@beast.crufty.net> 29698875883SSimon J. Gerraty 29798875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230723 29898875883SSimon J. Gerraty 29998875883SSimon J. Gerraty * configure.in: fix the test for wether TZ=Europe/Berlin works. 30098875883SSimon J. Gerraty Depending on the time of year, if run between 22:00 and 00:00 UTC 30198875883SSimon J. Gerraty the check in configure would fail incorrectly. 30298875883SSimon J. Gerraty Take the day into account as well. 30398875883SSimon J. Gerraty 30498875883SSimon J. Gerraty2023-07-18 Simon J Gerraty <sjg@beast.crufty.net> 30598875883SSimon J. Gerraty 30698875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 30798875883SSimon J. Gerraty Merge with NetBSD make, pick up 30898875883SSimon J. Gerraty o make.1: clean up wording, clarify scope of '!' in conditions 30998875883SSimon J. Gerraty 31098875883SSimon J. Gerraty2023-07-15 Simon J Gerraty <sjg@beast.crufty.net> 31198875883SSimon J. Gerraty 31298875883SSimon J. Gerraty * make-bootstrap.sh.in: set prefix 31398875883SSimon J. Gerraty If configure is run using ksh we get unexpanded ${prefix} in 31498875883SSimon J. Gerraty DEFAULT_SYS_PATH, by ensuring prefix is set we should still get 31598875883SSimon J. Gerraty correct result. 31698875883SSimon J. Gerraty 31798875883SSimon J. Gerraty2023-07-13 Simon J Gerraty <sjg@beast.crufty.net> 31898875883SSimon J. Gerraty 31998875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 32098875883SSimon J. Gerraty bump version for IRIX tweaks 32198875883SSimon J. Gerraty 32298875883SSimon J. Gerraty * make.h: undef OP_NONE if defined 32398875883SSimon J. Gerraty 32498875883SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for IRIX 32598875883SSimon J. Gerraty 32698875883SSimon J. Gerraty * configure.in: override INSTALL on IRIX 32798875883SSimon J. Gerraty 32898875883SSimon J. Gerraty2023-06-27 Simon J Gerraty <sjg@beast.crufty.net> 32998875883SSimon J. Gerraty 33098875883SSimon J. Gerraty * boot-strap op_test: ensure we set TEST_MAKE as we want it. 33198875883SSimon J. Gerraty 332148ee845SSimon J. Gerraty2023-06-22 Simon J Gerraty <sjg@beast.crufty.net> 333148ee845SSimon J. Gerraty 334148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230622 335148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 336148ee845SSimon J. Gerraty o optimize string matching for ':M' and ':N' 337148ee845SSimon J. Gerraty o warn about malformed patterns in ':M', ':N' and '.if make(...)' 338148ee845SSimon J. Gerraty 339148ee845SSimon J. Gerraty2023-06-21 Simon J Gerraty <sjg@beast.crufty.net> 340148ee845SSimon J. Gerraty 341148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230621 342148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 343148ee845SSimon J. Gerraty o more extensive tests for include guards 344148ee845SSimon J. Gerraty o parse.c: if a guard is already defined a file that uses the same 345148ee845SSimon J. Gerraty guard is still guarded by it. 346148ee845SSimon J. Gerraty 347148ee845SSimon J. Gerraty2023-06-20 Simon J Gerraty <sjg@beast.crufty.net> 348148ee845SSimon J. Gerraty 349148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230620 350148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 351148ee845SSimon J. Gerraty o allow guards to be targets as well as variables 352148ee845SSimon J. Gerraty The guard targets may include variable references like 353148ee845SSimon J. Gerraty __${.PARSEDIR:tA}/${.PARSEFILE}__ 354148ee845SSimon J. Gerraty 355148ee845SSimon J. Gerraty2023-06-19 Simon J Gerraty <sjg@beast.crufty.net> 356148ee845SSimon J. Gerraty 357148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230619 358148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 359148ee845SSimon J. Gerraty o unit test for .undef of readOnly vars 360148ee845SSimon J. Gerraty o optimization for makefiles protected from multiple-inclusion 361148ee845SSimon J. Gerraty skip even opening the file after first include. 362148ee845SSimon J. Gerraty Initially this only handles makefiles guarded by a variable 363148ee845SSimon J. Gerraty target guards are next. 364148ee845SSimon J. Gerraty 365148ee845SSimon J. Gerraty2023-06-16 Simon J Gerraty <sjg@beast.crufty.net> 366148ee845SSimon J. Gerraty 367148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230616 368148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 369148ee845SSimon J. Gerraty o var.c: do not allow delete of readOnly variable 370148ee845SSimon J. Gerraty 371148ee845SSimon J. Gerraty2023-06-03 Simon J Gerraty <sjg@beast.crufty.net> 372148ee845SSimon J. Gerraty 373148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230601 374148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 375148ee845SSimon J. Gerraty o parse.c: .break takes no args 376148ee845SSimon J. Gerraty o lots of unit test updates 377148ee845SSimon J. Gerraty 378148ee845SSimon J. Gerraty2023-05-29 Simon J Gerraty <sjg@beast.crufty.net> 379148ee845SSimon J. Gerraty 380148ee845SSimon J. Gerraty * unit-tests/Makefile: skip tests that require /dev/filemon 381148ee845SSimon J. Gerraty if it does not exists - issue a warning. 382148ee845SSimon J. Gerraty 383148ee845SSimon J. Gerraty2023-05-22 Simon J Gerraty <sjg@beast.crufty.net> 384148ee845SSimon J. Gerraty 385148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230522 386148ee845SSimon J. Gerraty Fix building on darwin ppc 387148ee845SSimon J. Gerraty 388148ee845SSimon J. Gerraty * os.sh (MACHINE): Darwin powerpc cannot use `uname -m` 389148ee845SSimon J. Gerraty also recent NetBSD uses x86_64 for MACHINE_ARCH so conform. 390148ee845SSimon J. Gerraty 391148ee845SSimon J. Gerraty2023-05-15 Simon J Gerraty <sjg@beast.crufty.net> 392148ee845SSimon J. Gerraty 393148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230515 394148ee845SSimon J. Gerraty 395148ee845SSimon J. Gerraty * Makefile (COPTS.filemon_ktrace.c): NetBSD 7 needs help to 396148ee845SSimon J. Gerraty compile filemon_ktrace.c 397148ee845SSimon J. Gerraty 398148ee845SSimon J. Gerraty2023-05-13 Simon J Gerraty <sjg@beast.crufty.net> 399148ee845SSimon J. Gerraty 400148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230512 401148ee845SSimon J. Gerraty o sys.dirdeps.mk - broke after-import target 402148ee845SSimon J. Gerraty 403c1d01b5fSSimon J. Gerraty2023-05-10 Simon J Gerraty <sjg@beast.crufty.net> 404c1d01b5fSSimon J. Gerraty 405c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230510 406c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 407c1d01b5fSSimon J. Gerraty o parse.c: don't print null filename in stack traces 408c1d01b5fSSimon J. Gerraty o var.c: :mtime operate on each word in variable value 409c1d01b5fSSimon J. Gerraty 410c1d01b5fSSimon J. Gerraty2023-05-09 Simon J Gerraty <sjg@beast.crufty.net> 411c1d01b5fSSimon J. Gerraty 412c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230509 413c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 414c1d01b5fSSimon J. Gerraty o for.c: skip syntactically wrong .for loops 415c1d01b5fSSimon J. Gerraty o var.c: allow for :gmtime=${mtime} 416c1d01b5fSSimon J. Gerraty add :mtime[=timestamp] where timestamp is used if stat(2) 417c1d01b5fSSimon J. Gerraty fails, if :mtime=error stat(2) failure causes error. 418c1d01b5fSSimon J. Gerraty 419c1d01b5fSSimon J. Gerraty2023-05-05 Simon J Gerraty <sjg@beast.crufty.net> 420c1d01b5fSSimon J. Gerraty 421c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230504 422c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 423c1d01b5fSSimon J. Gerraty o compat.c: fix compile on NetBSD 7.2 424c1d01b5fSSimon J. Gerraty o make.1: fix documentation of .PREFIX to match reality and POSIX 425c1d01b5fSSimon J. Gerraty o unit-tests: improved var-scope-local 426c1d01b5fSSimon J. Gerraty 4278c973ee2SSimon J. Gerraty2023-04-14 Simon J Gerraty <sjg@beast.crufty.net> 4288c973ee2SSimon J. Gerraty 4298c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230414 4308c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4318c973ee2SSimon J. Gerraty o minor cleanup 4328c973ee2SSimon J. Gerraty 4338c973ee2SSimon J. Gerraty2023-03-25 Simon J Gerraty <sjg@beast.crufty.net> 4348c973ee2SSimon J. Gerraty 4358c973ee2SSimon J. Gerraty * main.c: on some systems (eg OS/X) setting RLIMIT_NOFILE to 4368c973ee2SSimon J. Gerraty unlimited results in an insane number (0x7fffffffffffffff). 4378c973ee2SSimon J. Gerraty If BMAKE_NOFILE_MAX is defined, use that instead. 4388c973ee2SSimon J. Gerraty 4398c973ee2SSimon J. Gerraty2023-03-22 Simon J Gerraty <sjg@beast.crufty.net> 4408c973ee2SSimon J. Gerraty 4418c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230321 4428c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4438c973ee2SSimon J. Gerraty * make.1: document seemingly unexplained Error code 6. 4448c973ee2SSimon J. Gerraty 4458c973ee2SSimon J. Gerraty2023-03-18 Simon J Gerraty <sjg@beast.crufty.net> 4468c973ee2SSimon J. Gerraty 4478c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230317 4488c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4498c973ee2SSimon J. Gerraty o compat.c: CompatDeleteTarget skip .PHONY targets to be 4508c973ee2SSimon J. Gerraty consistent with JobDeleteTarget. 4518c973ee2SSimon J. Gerraty o job.c: fix memory leak in handling sysv :from=to modifiers 4528c973ee2SSimon J. Gerraty 4538c973ee2SSimon J. Gerraty2023-03-04 Simon J Gerraty <sjg@beast.crufty.net> 4548c973ee2SSimon J. Gerraty 4558c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230303 4568c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4578c973ee2SSimon J. Gerraty o several updated unit-tests 4588c973ee2SSimon J. Gerraty 4598c973ee2SSimon J. Gerraty2023-02-22 Simon J Gerraty <sjg@beast.crufty.net> 4608c973ee2SSimon J. Gerraty 4618c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230222 4628c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4638c973ee2SSimon J. Gerraty o unit tests for .MAKE.META.IGNORE_{FILTER,PATHS,PATTERNS} 4648c973ee2SSimon J. Gerraty 4658c973ee2SSimon J. Gerraty2023-02-20 Simon J Gerraty <sjg@beast.crufty.net> 4668c973ee2SSimon J. Gerraty 4678c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230218 4688c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4698c973ee2SSimon J. Gerraty o var.c: fix parsing of unevaluated subexpressions with 4708c973ee2SSimon J. Gerraty unbalanced '{}' 4718c973ee2SSimon J. Gerraty 4728c973ee2SSimon J. Gerraty2023-02-17 Simon J Gerraty <sjg@beast.crufty.net> 4738c973ee2SSimon J. Gerraty 4748c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230215 4758c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4768c973ee2SSimon J. Gerraty o inline macros for some variable names 4778c973ee2SSimon J. Gerraty o cond.c: reduce complexity of evaluating expressions 4788c973ee2SSimon J. Gerraty 479dc1b8c9aSSimon J. Gerraty2023-02-08 Simon J Gerraty <sjg@beast.crufty.net> 480dc1b8c9aSSimon J. Gerraty 481dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230208 482dc1b8c9aSSimon J. Gerraty Merge with NetBSD make, pick up 483dc1b8c9aSSimon J. Gerraty o var.c: always use SCOPE_GLOBAL for :_ to avoid problems 484dc1b8c9aSSimon J. Gerraty when it has been used within conditional expressions 485dc1b8c9aSSimon J. Gerraty 486dc1b8c9aSSimon J. Gerraty2023-01-27 Simon J Gerraty <sjg@beast.crufty.net> 487dc1b8c9aSSimon J. Gerraty 488dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230127 489dc1b8c9aSSimon J. Gerraty 490dc1b8c9aSSimon J. Gerraty * install-sh: if making directories ensure umask is set 491dc1b8c9aSSimon J. Gerraty to match mode. 492dc1b8c9aSSimon J. Gerraty 493dc1b8c9aSSimon J. Gerraty * Makefile: use DIRMODE for directories and 494dc1b8c9aSSimon J. Gerraty NONBINMODE for man pages and mk files 495dc1b8c9aSSimon J. Gerraty 4964fde40d9SSimon J. Gerraty2023-01-26 Simon J Gerraty <sjg@beast.crufty.net> 4974fde40d9SSimon J. Gerraty 4984fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230126 4994fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5004fde40d9SSimon J. Gerraty o variables like .newline and .MAKE.{GID,PID,PPID,UID} 5014fde40d9SSimon J. Gerraty should be read-only. 5024fde40d9SSimon J. Gerraty 5034fde40d9SSimon J. Gerraty2023-01-23 Simon J Gerraty <sjg@beast.crufty.net> 5044fde40d9SSimon J. Gerraty 5054fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230123 5064fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5074fde40d9SSimon J. Gerraty o .[NO]READONLY: for control of read-only variables 5084fde40d9SSimon J. Gerraty o .SYSPATH: for controlling the path searched for makefiles 5094fde40d9SSimon J. Gerraty 5104fde40d9SSimon J. Gerraty2023-01-20 Simon J Gerraty <sjg@beast.crufty.net> 5114fde40d9SSimon J. Gerraty 5124fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230120 5134fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5144fde40d9SSimon J. Gerraty o allow for white-space between command specifiers @+- 5154fde40d9SSimon J. Gerraty o add more details to warning 'Extra targets ignored' 5164fde40d9SSimon J. Gerraty 5174fde40d9SSimon J. Gerraty2023-01-12 Simon J Gerraty <sjg@beast.crufty.net> 5184fde40d9SSimon J. Gerraty 5194fde40d9SSimon J. Gerraty * machine.sh: leverage os.sh rather than duplicate 5204fde40d9SSimon J. Gerraty also dispence with the $OS.$MACHINE values - we have $HOST_TARGET 5214fde40d9SSimon J. Gerraty for that purpose for the past decade or so. 5224fde40d9SSimon J. Gerraty We invariably get MACHINE and MACHINE_ARCH at runtime anyway. 5234fde40d9SSimon J. Gerraty 5244fde40d9SSimon J. Gerraty2023-01-02 Simon J Gerraty <sjg@beast.crufty.net> 5254fde40d9SSimon J. Gerraty 5264fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230101 5274fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5284fde40d9SSimon J. Gerraty o cleanup comments, inline some LazyBuf_ methods 5294fde40d9SSimon J. Gerraty o unit-tests/ add/improve comments in tests 5304fde40d9SSimon J. Gerraty o make.1: sync list of built-in variables with reality 5314fde40d9SSimon J. Gerraty sort list of built-in variables 5324fde40d9SSimon J. Gerraty reduce indentation of the long list of variable names 5334fde40d9SSimon J. Gerraty use consistent markup for boolean flags 5344fde40d9SSimon J. Gerraty move description of .MAKE.MODE below the .MAKE.META block 5354fde40d9SSimon J. Gerraty clarify in which case an expression may omit braces 5364fde40d9SSimon J. Gerraty 5374fde40d9SSimon J. Gerraty2022-11-08 Simon J Gerraty <sjg@beast.crufty.net> 5384fde40d9SSimon J. Gerraty 5394fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20221024 5404fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5414fde40d9SSimon J. Gerraty o change return type of unlink_file back to int 5424fde40d9SSimon J. Gerraty 5434fde40d9SSimon J. Gerraty2022-10-07 Simon J Gerraty <sjg@beast.crufty.net> 5444fde40d9SSimon J. Gerraty 5454fde40d9SSimon J. Gerraty * Makefile: Darwin and Linux can handle MANTARGET=man 5464fde40d9SSimon J. Gerraty 5474fde40d9SSimon J. Gerraty2022-09-28 Simon J Gerraty <sjg@beast.crufty.net> 5484fde40d9SSimon J. Gerraty 5494fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220928 5504fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5514fde40d9SSimon J. Gerraty o fix more ignored returns from snprintf 5524fde40d9SSimon J. Gerraty o compile with higher warnings 5534fde40d9SSimon J. Gerraty 5544fde40d9SSimon J. Gerraty2022-09-26 Simon J Gerraty <sjg@beast.crufty.net> 5554fde40d9SSimon J. Gerraty 5564fde40d9SSimon J. Gerraty * main.c meta.c: do not ignore return from snprintf 5574fde40d9SSimon J. Gerraty 5584fde40d9SSimon J. Gerraty * meta.c strlcpy.c: we need prototype for strlcpy 5594fde40d9SSimon J. Gerraty 5604fde40d9SSimon J. Gerraty * sigcompat.c: fix unused function warnings 5614fde40d9SSimon J. Gerraty 5624fde40d9SSimon J. Gerraty2022-09-24 Simon J Gerraty <sjg@beast.crufty.net> 5634fde40d9SSimon J. Gerraty 5644fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220924 5654fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5664fde40d9SSimon J. Gerraty o fix bug in .break reset of conditional depth 5674fde40d9SSimon J. Gerraty o overhaul and simplify tracking of conditional depth 5684fde40d9SSimon J. Gerraty 5694fde40d9SSimon J. Gerraty2022-09-17 Simon J Gerraty <sjg@beast.crufty.net> 5704fde40d9SSimon J. Gerraty 5714fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220912 5724fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5734fde40d9SSimon J. Gerraty o man page updates 5744fde40d9SSimon J. Gerraty 5754fde40d9SSimon J. Gerraty2022-09-09 Simon J Gerraty <sjg@beast.crufty.net> 5764fde40d9SSimon J. Gerraty 5774fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220909 5784fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5794fde40d9SSimon J. Gerraty o update unit-tests to handle deprecation of egrep 5804fde40d9SSimon J. Gerraty o cond.c: add more details to error message for numeric comparison 5814fde40d9SSimon J. Gerraty 5824fde40d9SSimon J. Gerraty * configure.in: allow for deprecation of egrep 5834fde40d9SSimon J. Gerraty 5844fde40d9SSimon J. Gerraty * Makefile: Linux can handle MANTARGET=man 5854fde40d9SSimon J. Gerraty 5864fde40d9SSimon J. Gerraty2022-09-03 Simon J Gerraty <sjg@beast.crufty.net> 5874fde40d9SSimon J. Gerraty 5884fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220903 5894fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5904fde40d9SSimon J. Gerraty o job.c: fix handling of null bytes in output 5914fde40d9SSimon J. Gerraty 5924fde40d9SSimon J. Gerraty2022-09-02 Simon J Gerraty <sjg@beast.crufty.net> 5934fde40d9SSimon J. Gerraty 5944fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220902 5954fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5964fde40d9SSimon J. Gerraty o Allow .break to terminate a .for loop early 5974fde40d9SSimon J. Gerraty 5984fde40d9SSimon J. Gerraty2022-09-01 Simon J Gerraty <sjg@beast.crufty.net> 5994fde40d9SSimon J. Gerraty 6004fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220901 6014fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6024fde40d9SSimon J. Gerraty o var.c: fix out-of-bounds errors when parsing 6034fde40d9SSimon J. Gerraty 6044fde40d9SSimon J. Gerraty2022-08-24 Simon J Gerraty <sjg@beast.crufty.net> 6054fde40d9SSimon J. Gerraty 6064fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220824 6074fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6084fde40d9SSimon J. Gerraty o var.c: revert change to modifier parsing that breaks 6094fde40d9SSimon J. Gerraty shell variable references within ':@var@body@' 6104fde40d9SSimon J. Gerraty o adjust unit-tests 6114fde40d9SSimon J. Gerraty 6124fde40d9SSimon J. Gerraty2022-08-18 Simon J Gerraty <sjg@beast.crufty.net> 6134fde40d9SSimon J. Gerraty 6144fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220818 6154fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6164fde40d9SSimon J. Gerraty o fix exit status for '-q' (since 1994) 6174fde40d9SSimon J. Gerraty 6184fde40d9SSimon J. Gerraty2022-08-08 Simon J Gerraty <sjg@beast.crufty.net> 6194fde40d9SSimon J. Gerraty 6204fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220808 6214fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6224fde40d9SSimon J. Gerraty o var.c: fix parsing of modifiers containing unbalanced subexpressions 6234fde40d9SSimon J. Gerraty extract parsing of ':D' and ':U' modifiers into separate function 6244fde40d9SSimon J. Gerraty 625532d4fbfSSimon J. Gerraty2022-07-26 Simon J Gerraty <sjg@beast.crufty.net> 626532d4fbfSSimon J. Gerraty 627532d4fbfSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220726 628532d4fbfSSimon J. Gerraty 629532d4fbfSSimon J. Gerraty * Auto-create objdir for bmake/unit-tests if appropriate 630532d4fbfSSimon J. Gerraty 631954401e6SSimon J. Gerraty2022-07-24 Simon J Gerraty <sjg@beast.crufty.net> 632954401e6SSimon J. Gerraty 633954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220724 634954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 635954401e6SSimon J. Gerraty o make.1: describe variable assignment and evaluation more precisely 636954401e6SSimon J. Gerraty o parse.c: fix out-of-bounds read when parsing an invalid line 637954401e6SSimon J. Gerraty o var.c: simplify return type of IsShortVarnameValid 638954401e6SSimon J. Gerraty 639954401e6SSimon J. Gerraty2022-06-12 Simon J Gerraty <sjg@beast.crufty.net> 640954401e6SSimon J. Gerraty 641954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220612 642954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 643954401e6SSimon J. Gerraty o allow to randomize build order of targets 644954401e6SSimon J. Gerraty .MAKE.MODE += randomize-targets can help uncover dependency bugs 645954401e6SSimon J. Gerraty within a makefile. 646954401e6SSimon J. Gerraty o compat.c: rename Compat_Run to Compat_MakeAll 647954401e6SSimon J. Gerraty o make.c: inline MakeBuildParent 648954401e6SSimon J. Gerraty inline make_abort, improve error details 649954401e6SSimon J. Gerraty o parse.c: reorganize Parse_Error 650954401e6SSimon J. Gerraty fix memory leak in wildcard targets and sources 651954401e6SSimon J. Gerraty separate cases in HandleDependencyTargetMundane 652954401e6SSimon J. Gerraty extract HandleSingleDependencyTargetMundane 653954401e6SSimon J. Gerraty rename loadfile to LoadFile 654954401e6SSimon J. Gerraty split IncludeFile into separate functions 655954401e6SSimon J. Gerraty condense code for searching a file in the paths 656954401e6SSimon J. Gerraty fix off-by-one error in buffer for .WAIT nodes 657954401e6SSimon J. Gerraty o str.c: condense Str_Match 658954401e6SSimon J. Gerraty make code for string matching syntactically more consistent 659954401e6SSimon J. Gerraty 6602f2a5ecdSSimon J. Gerraty2022-04-18 Simon J Gerraty <sjg@beast.crufty.net> 6612f2a5ecdSSimon J. Gerraty 6622f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220418 6632f2a5ecdSSimon J. Gerraty Merge with NetBSD make, pick up 6642f2a5ecdSSimon J. Gerraty o ignore '.POSIX:' if not in first non-comment line 6652f2a5ecdSSimon J. Gerraty of Makefile as specified by POSIX. 6662f2a5ecdSSimon J. Gerraty add unit-tests for above. 6672f2a5ecdSSimon J. Gerraty o meta.c: make it easier to find usage of identifiers 6682f2a5ecdSSimon J. Gerraty o targ.c: add .USEBEFORE to Targ_PrintType 6692f2a5ecdSSimon J. Gerraty 6702f2a5ecdSSimon J. Gerraty2022-04-14 Simon J Gerraty <sjg@beast.crufty.net> 6712f2a5ecdSSimon J. Gerraty 6722f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220414 6732f2a5ecdSSimon J. Gerraty 6742f2a5ecdSSimon J. Gerraty * unit-tests/Makefile: simplify checks for shells with 6752f2a5ecdSSimon J. Gerraty BROKEN_TESTS, this helps with other Linux distros that 6762f2a5ecdSSimon J. Gerraty use dash. 6772f2a5ecdSSimon J. Gerraty 6781d3f2ddcSSimon J. Gerraty2022-03-30 Simon J Gerraty <sjg@beast.crufty.net> 6791d3f2ddcSSimon J. Gerraty 6801d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220330 6811d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 6821d3f2ddcSSimon J. Gerraty o var.c: fix spacing, and a typo in a test 6831d3f2ddcSSimon J. Gerraty 6841d3f2ddcSSimon J. Gerraty2022-03-26 Simon J Gerraty <sjg@beast.crufty.net> 6851d3f2ddcSSimon J. Gerraty 6861d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220326 6871d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 6881d3f2ddcSSimon J. Gerraty o parse.c: try to include 'posix.mk' the first time 6891d3f2ddcSSimon J. Gerraty .POSIX: is encountered, to allow for beter POSIX compliance. 6901d3f2ddcSSimon J. Gerraty o var.c: make debug logs more readable 6911d3f2ddcSSimon J. Gerraty prefer 'long long' over 'long' on 32-bit C99 platforms 6921d3f2ddcSSimon J. Gerraty fix crash on .undef of an environment variable 6931d3f2ddcSSimon J. Gerraty 6941d3f2ddcSSimon J. Gerraty2022-03-03 Simon J Gerraty <sjg@beast.crufty.net> 6951d3f2ddcSSimon J. Gerraty 6961d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220303 6971d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 6981d3f2ddcSSimon J. Gerraty o tell meta mode unit tests not to expect filemon 6991d3f2ddcSSimon J. Gerraty o cond.c: make debug logging for comparisons less technical 7001d3f2ddcSSimon J. Gerraty o lst.c: fix mem leak in Lst_Remove 7011d3f2ddcSSimon J. Gerraty o str.c: make code for string matching syntactically more consistent 7021d3f2ddcSSimon J. Gerraty o var.c: simplify ParseModifier_Match 7031d3f2ddcSSimon J. Gerraty 7041d3f2ddcSSimon J. Gerraty2022-02-14 Simon J Gerraty <sjg@beast.crufty.net> 7051d3f2ddcSSimon J. Gerraty 7061d3f2ddcSSimon J. Gerraty * unit-tests/Makefile: control MAKESYSPATH for deptgt-phony 7071d3f2ddcSSimon J. Gerraty 7081d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220214 7091d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 7101d3f2ddcSSimon J. Gerraty o cond.c: simplify control flow in CondParser_Comparison 7111d3f2ddcSSimon J. Gerraty o job.c: fix echoing of command with '-' in silent target in jobs mode 7121d3f2ddcSSimon J. Gerraty o main.c: prefix the warning about read-only .OBJDIR with a colon 7131d3f2ddcSSimon J. Gerraty o parse.c: remove redundant conditions 7141d3f2ddcSSimon J. Gerraty o var.c: simplify control flow in ModifyWord_SysVSubst 7151d3f2ddcSSimon J. Gerraty 716a6f0e10bSSimon J. Gerraty2022-02-08 Simon J Gerraty <sjg@beast.crufty.net> 717a6f0e10bSSimon J. Gerraty 718a6f0e10bSSimon J. Gerraty * unit-tests/Makefile: disable opt-debug-x-trace on Linux if there 719a6f0e10bSSimon J. Gerraty is any chance we have dash as .SHELL 720a6f0e10bSSimon J. Gerraty 721a6f0e10bSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220208 722a6f0e10bSSimon J. Gerraty Merge with NetBSD make, pick up 723a6f0e10bSSimon J. Gerraty o more unit tests 724a6f0e10bSSimon J. Gerraty o meta.c: use a variable to hold command line to be filtered 725a6f0e10bSSimon J. Gerraty to avoid any side effects from content of command line. 726a6f0e10bSSimon J. Gerraty 7279f45a3c8SSimon J. Gerraty2022-02-04 Simon J Gerraty <sjg@beast.crufty.net> 7289f45a3c8SSimon J. Gerraty 7299f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220204 7309f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7319f45a3c8SSimon J. Gerraty o use unsigned consistently for line numbers, avoid the need for %z 7329f45a3c8SSimon J. Gerraty o parse.c: do not step off end of input in Parse_IsVar 7339f45a3c8SSimon J. Gerraty when checking for target local variable assignments 7349f45a3c8SSimon J. Gerraty 7359f45a3c8SSimon J. Gerraty2022-02-02 Simon J Gerraty <sjg@beast.crufty.net> 7369f45a3c8SSimon J. Gerraty 7379f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220202 7389f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7399f45a3c8SSimon J. Gerraty o remove redundant declaration of HashIter_Init 7409f45a3c8SSimon J. Gerraty o make DEBUG0 simpler 7419f45a3c8SSimon J. Gerraty 7429f45a3c8SSimon J. Gerraty2022-01-30 Simon J Gerraty <sjg@beast.crufty.net> 7439f45a3c8SSimon J. Gerraty 7449f45a3c8SSimon J. Gerraty * cast gn->lineno to avoid %z 7459f45a3c8SSimon J. Gerraty 7469f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220130 7479f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7489f45a3c8SSimon J. Gerraty o more unit tests 7499f45a3c8SSimon J. Gerraty o make GNode lineno unsigned to please lint 7509f45a3c8SSimon J. Gerraty o print location of recursive variable references in commands 7519f45a3c8SSimon J. Gerraty o print "stack trace" (makefile includes) on fatal errors 7529f45a3c8SSimon J. Gerraty o make.1: refine documentation for target local assignments 7539f45a3c8SSimon J. Gerraty 7549f45a3c8SSimon J. Gerraty2022-01-28 Simon J Gerraty <sjg@beast.crufty.net> 7559f45a3c8SSimon J. Gerraty 7569f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220128 7579f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7589f45a3c8SSimon J. Gerraty o inline functions called only once 7599f45a3c8SSimon J. Gerraty o for.c: clean up AddEscape for building the body of a .for loop 7609f45a3c8SSimon J. Gerraty o hash.c: merge duplicate code for finding an entry in a hash table 7619f45a3c8SSimon J. Gerraty replace HashEntry_KeyEquals with strncmp 7629f45a3c8SSimon J. Gerraty o make.1: document quirks of target local variable assignments. 7639f45a3c8SSimon J. Gerraty o parse.c: cleanup white-space 7649f45a3c8SSimon J. Gerraty 7659f45a3c8SSimon J. Gerraty2022-01-26 Simon J Gerraty <sjg@beast.crufty.net> 7669f45a3c8SSimon J. Gerraty 7679f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220126 7689f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7699f45a3c8SSimon J. Gerraty o allow setting target local variables 7709f45a3c8SSimon J. Gerraty o more unit tests 7719f45a3c8SSimon J. Gerraty o add missing newline after "cannot continue" message 7729f45a3c8SSimon J. Gerraty o meta.c: clean up eat_dots 7739f45a3c8SSimon J. Gerraty o parse.c: fix filename in warning about duplicate script 7749f45a3c8SSimon J. Gerraty o var.c: when expanding nested variables, check simple things first 7759f45a3c8SSimon J. Gerraty 7769f45a3c8SSimon J. Gerraty2022-01-16 Simon J Gerraty <sjg@beast.crufty.net> 7779f45a3c8SSimon J. Gerraty 7789f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220116 7799f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7809f45a3c8SSimon J. Gerraty o fix for unit-tests/varname-makeflags on non-BSD systems 7819f45a3c8SSimon J. Gerraty o use Var_Exists rather than Var_Value where appropriate 7829f45a3c8SSimon J. Gerraty o remove unnecessary functions for expanding variable names 7839f45a3c8SSimon J. Gerraty o cond.c: inline EvalBare 7849f45a3c8SSimon J. Gerraty o main.c: lint cleanup 7859f45a3c8SSimon J. Gerraty o parse.c: condense code in Parse_IsVar 7869f45a3c8SSimon J. Gerraty use islower for parsing directives (none have upper case) 7879f45a3c8SSimon J. Gerraty 7889f45a3c8SSimon J. Gerraty2022-01-12 Simon J Gerraty <sjg@beast.crufty.net> 7899f45a3c8SSimon J. Gerraty 7909f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220112 7919f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7929f45a3c8SSimon J. Gerraty o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before 7939f45a3c8SSimon J. Gerraty comparion, rarely needed but useful when it is. 7949f45a3c8SSimon J. Gerraty 7959f45a3c8SSimon J. Gerraty2022-01-10 Simon J Gerraty <sjg@beast.crufty.net> 7969f45a3c8SSimon J. Gerraty 7979f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220110 7989f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7999f45a3c8SSimon J. Gerraty o inline Buf_Clear 8009f45a3c8SSimon J. Gerraty o remove redundant braces 8019f45a3c8SSimon J. Gerraty o rename and inline Targ_Precious 8029f45a3c8SSimon J. Gerraty o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf 8039f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops 8049f45a3c8SSimon J. Gerraty fix reported line numbers of continuation lines 8059f45a3c8SSimon J. Gerraty add details about .for loop variables to stack traces 8069f45a3c8SSimon J. Gerraty o job.c: reduce code for initializing error handling in shell 8079f45a3c8SSimon J. Gerraty o main.c: in Cmd_Exec, return error message instead of format string 8089f45a3c8SSimon J. Gerraty have as few statements as possible between va_start and va_end 8099f45a3c8SSimon J. Gerraty add debug logging for capturing the output of external commands 8109f45a3c8SSimon J. Gerraty o make.c: use consistent variable names for varargs 8119f45a3c8SSimon J. Gerraty o make_malloc.c: remove duplicate code from bmake_strdup 8129f45a3c8SSimon J. Gerraty o parse.c: add missing printflike annotations 8139f45a3c8SSimon J. Gerraty remove redundant lines from stack traces 8149f45a3c8SSimon J. Gerraty fix stack traces in -dp mode 8159f45a3c8SSimon J. Gerraty reduce confusing code in ParseForLoop 8169f45a3c8SSimon J. Gerraty fix line number in debug log after returning from a file 8179f45a3c8SSimon J. Gerraty rename IFile and its fields to match their actual content 8189f45a3c8SSimon J. Gerraty clean up ParseDependencySources 8199f45a3c8SSimon J. Gerraty o var.c: shorten ApplyModifier_Assign 8209f45a3c8SSimon J. Gerraty rename is_shell_metachar, fix character conversion warning 8219f45a3c8SSimon J. Gerraty merge calls to ApplyModifier_Time 8229f45a3c8SSimon J. Gerraty merge duplicate code for modifiers 'gmtime' and 'localtime' 8239f45a3c8SSimon J. Gerraty 8249f45a3c8SSimon J. Gerraty2022-01-04 Simon J Gerraty <sjg@beast.crufty.net> 8259f45a3c8SSimon J. Gerraty 8269f45a3c8SSimon J. Gerraty * parse.c: loadfile restore extra byte in buffer. 8279f45a3c8SSimon J. Gerraty 8289f45a3c8SSimon J. Gerraty2022-01-01 Simon J Gerraty <sjg@beast.crufty.net> 8299f45a3c8SSimon J. Gerraty 8309f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220101 8319f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8329f45a3c8SSimon J. Gerraty o more unit-tests 8339f45a3c8SSimon J. Gerraty o remove unnecessary words from command line options in CmdOpts 8349f45a3c8SSimon J. Gerraty o rename eunlink to unlink_file 8359f45a3c8SSimon J. Gerraty o cond.c: make ParseWord in condition parser simpler 8369f45a3c8SSimon J. Gerraty internally return false for irrelevant leaves in conditions 8379f45a3c8SSimon J. Gerraty replace table for function lookup in conditions with simple code 8389f45a3c8SSimon J. Gerraty merge duplicate types CondEvalResult and CondResult 8399f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops and .include directives 8409f45a3c8SSimon J. Gerraty o main.c: constify cached_realpath 8419f45a3c8SSimon J. Gerraty clean up Cmd_Exec 8429f45a3c8SSimon J. Gerraty o parse.c: sync API documentation 8439f45a3c8SSimon J. Gerraty fix error message when reading more than 1 GB from stdin 8449f45a3c8SSimon J. Gerraty clean up parsing of makefiles 8459f45a3c8SSimon J. Gerraty fix line number in error message about open conditionals 8469f45a3c8SSimon J. Gerraty unexport types VarAssignOp and VarAssign 8479f45a3c8SSimon J. Gerraty clean up function names 8489f45a3c8SSimon J. Gerraty remove redundant parameters in dependency parsing functions 8499f45a3c8SSimon J. Gerraty reduce scope of the list of wildcard target names 8509f45a3c8SSimon J. Gerraty extract OP_NOTARGET into separate function 8519f45a3c8SSimon J. Gerraty clean up variable names for parsing dependency lines 8529f45a3c8SSimon J. Gerraty make debug logging a bit more human-friendly 8539f45a3c8SSimon J. Gerraty o var.c: condense code in ApplyModifier_Assign 8549f45a3c8SSimon J. Gerraty 8559f45a3c8SSimon J. Gerraty2021-12-21 Simon J Gerraty <sjg@beast.crufty.net> 8569f45a3c8SSimon J. Gerraty 8579f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211221 8589f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8599f45a3c8SSimon J. Gerraty o more unit-tests 8609f45a3c8SSimon J. Gerraty o style cleanup 8619f45a3c8SSimon J. Gerraty o in CLEANUP mode, free interned strings at the very end 8629f45a3c8SSimon J. Gerraty o fix memory leak for filenames in .for loops 8639f45a3c8SSimon J. Gerraty o buf.c: avoid memory leak 8649f45a3c8SSimon J. Gerraty o cond.c: condense CondParser_ComparisonOp 8659f45a3c8SSimon J. Gerraty o hash.c: change return type of HashTable_Set to void 8669f45a3c8SSimon J. Gerraty o job.c: change return type of Compat_RunCommand from int to bool 8679f45a3c8SSimon J. Gerraty o main.c: remove bmake_free 8689f45a3c8SSimon J. Gerraty o parse.c: condense repetetive code in ParseDirective 8699f45a3c8SSimon J. Gerraty remove dead code for handling traditional include directives 8709f45a3c8SSimon J. Gerraty clean up parsing of variable assignments 8719f45a3c8SSimon J. Gerraty remove unreachable code for parsing the dependency operator 8729f45a3c8SSimon J. Gerraty clean up loading of files 8739f45a3c8SSimon J. Gerraty fix memory leak in IncludeFile 8749f45a3c8SSimon J. Gerraty o var.c: fix memory leak when parsing a variable name 8759f45a3c8SSimon J. Gerraty fix memory leak from ${.SUFFIXES} 8769f45a3c8SSimon J. Gerraty reduce memory allocation in modifier ':?' and ':C' 8779f45a3c8SSimon J. Gerraty condense RegexReplace for the modifier ':C' and avoid strlen 8789f45a3c8SSimon J. Gerraty merge duplicate code for memory handling in Var_Parse 8799f45a3c8SSimon J. Gerraty distinguish between short-lived and environment variables 8809f45a3c8SSimon J. Gerraty rename VarFreeEnv to VarFreeShortLived 8819f45a3c8SSimon J. Gerraty 88212904384SSimon J. Gerraty2021-12-15 Simon J Gerraty <sjg@beast.crufty.net> 88312904384SSimon J. Gerraty 88412904384SSimon J. Gerraty * cond.c: fix mem leak in CondParser_Leaf 88512904384SSimon J. Gerraty 88612904384SSimon J. Gerraty2021-12-12 Simon J Gerraty <sjg@beast.crufty.net> 88712904384SSimon J. Gerraty 88812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211212 88912904384SSimon J. Gerraty Merge with NetBSD make, pick up 89012904384SSimon J. Gerraty o rename Parse_SetInput to Parse_PushInput 89112904384SSimon J. Gerraty o remove remove period from end of error messages and warnings 89212904384SSimon J. Gerraty to be more consistent 89312904384SSimon J. Gerraty o arch.c: use simpler memory management for parsing archive members 89412904384SSimon J. Gerraty o cond.c: rework and reduce recursion 89512904384SSimon J. Gerraty o for.c: rename some functions to better reflect purpose 89612904384SSimon J. Gerraty o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string. 89712904384SSimon J. Gerraty o var.c: in parse errors, mark whitespace more clearly 89812904384SSimon J. Gerraty inline ParseEmptyArg into CondParser_FuncCallEmpty 89912904384SSimon J. Gerraty minimize calls to LazyBuf_Get in ParseVarnameLong 90012904384SSimon J. Gerraty treat .SUFFIXES as a read-only variable 90112904384SSimon J. Gerraty 90212904384SSimon J. Gerraty2021-12-07 Simon J Gerraty <sjg@beast.crufty.net> 90312904384SSimon J. Gerraty 90412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211207 90512904384SSimon J. Gerraty Merge with NetBSD make, pick up 90612904384SSimon J. Gerraty o inline HashIter_Init 90712904384SSimon J. Gerraty o parse.c: inline common subexpression in ParseRawLine 90812904384SSimon J. Gerraty o var.c: merge branches for modifiers ':D' and ':U' 90912904384SSimon J. Gerraty extract common code into Expr_Words 91012904384SSimon J. Gerraty extract common code into Expr_Str 91112904384SSimon J. Gerraty move low-level implementation details out of Var_Parse 91212904384SSimon J. Gerraty 91312904384SSimon J. Gerraty2021-12-06 Simon J Gerraty <sjg@beast.crufty.net> 91412904384SSimon J. Gerraty 91512904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211206 91612904384SSimon J. Gerraty Merge with NetBSD make, pick up 91712904384SSimon J. Gerraty o add unit-tests/varmod-loop-delete 91812904384SSimon J. Gerraty o for.c: inline Str_Words - reduce memory allocation 91912904384SSimon J. Gerraty o parse.c: do not try to expand fixed variable names 92012904384SSimon J. Gerraty only allocate the name of an included file if necessary 92112904384SSimon J. Gerraty clean up ParseInclude 92212904384SSimon J. Gerraty o var.c: fix use-after-free in modifier ':@' 92312904384SSimon J. Gerraty save a memory allocation in each modifier ':O' and ':u' 92412904384SSimon J. Gerraty save a memory allocation in the modifier ':[...]' 92512904384SSimon J. Gerraty in UnexportVars, replace Str_Words with Substring_Words to 92612904384SSimon J. Gerraty reduce allocations and copying. 92712904384SSimon J. Gerraty 92812904384SSimon J. Gerraty2021-12-04 Simon J Gerraty <sjg@beast.crufty.net> 92912904384SSimon J. Gerraty 93012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211204 93112904384SSimon J. Gerraty Merge with NetBSD make, pick up 93212904384SSimon J. Gerraty o flesh out a number of tests 93312904384SSimon J. Gerraty o replace enums with bitfields, this simplifies a lot of code. 93412904384SSimon J. Gerraty o var.c: refactor ParseModifierPartSubst 93512904384SSimon J. Gerraty 93612904384SSimon J. Gerraty2021-10-24 Simon J Gerraty <sjg@beast.crufty.net> 93712904384SSimon J. Gerraty 93812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211024 93912904384SSimon J. Gerraty Merge with NetBSD make, pick up 94012904384SSimon J. Gerraty o Punt on write errors - ENOSPC etc. 94112904384SSimon J. Gerraty 94212904384SSimon J. Gerraty2021-10-22 Simon J Gerraty <sjg@beast.crufty.net> 94312904384SSimon J. Gerraty 94412904384SSimon J. Gerraty * configure.in: use_defshell, set both DEFSHELL_INDEX 94512904384SSimon J. Gerraty and defshell_path if appropriate. 94612904384SSimon J. Gerraty This makes it easier to use say the KSH specification with 94712904384SSimon J. Gerraty and alternate path for the shell. 94812904384SSimon J. Gerraty 94912904384SSimon J. Gerraty * configure.in compat.c: for SCO we need to force UseShell 95012904384SSimon J. Gerraty 95112904384SSimon J. Gerraty * configure.in: SCO /bin/sh is not usable, provide a list of 95212904384SSimon J. Gerraty alternatives for use as .SHELL. 95312904384SSimon J. Gerraty We still have to mark some tests as broken, plus more if we end up 95412904384SSimon J. Gerraty with ksh as .SHELL. 95512904384SSimon J. Gerraty Issue a warning about skipped tests. 95612904384SSimon J. Gerraty 95712904384SSimon J. Gerraty * boot-strap: leave TOOL_DIFF to configure 95812904384SSimon J. Gerraty 95912904384SSimon J. Gerraty * configure.in: on SCO native cc is not usable, 96012904384SSimon J. Gerraty gcc is to be found in /usr/gnu/bin 96112904384SSimon J. Gerraty and while ancient is at least able to compile bmake. 96212904384SSimon J. Gerraty Thus we add /usr/gnu/bin to PATH if it exists, and later 96312904384SSimon J. Gerraty check if $CC would have been found via $PATH. 96412904384SSimon J. Gerraty If not we set CC to the full path of $CC. 96512904384SSimon J. Gerraty Also gnu diff is known to support -u, so if it exists use it. 96612904384SSimon J. Gerraty 96712904384SSimon J. Gerraty * configure.in: move getopt to AC_REPLACE_FUNCS 96812904384SSimon J. Gerraty also add AC_C_INLINE - in an attempt to compile using 96912904384SSimon J. Gerraty native cc on SCO. 97012904384SSimon J. Gerraty 97112904384SSimon J. Gerraty * configure.in: check for stresep as well as strsep, since we 97212904384SSimon J. Gerraty define the later to the former if necessary, and if we have to 97312904384SSimon J. Gerraty provide stresep we also need to provide a prototype. 97412904384SSimon J. Gerraty 97512904384SSimon J. Gerraty * configure.in: we no longer need to worry about 97612904384SSimon J. Gerraty sys/cdefs.h providing __RCSID which simplifies things quite a bit. 97712904384SSimon J. Gerraty 97812904384SSimon J. Gerraty * make.h: make sure we have __RCSID 97912904384SSimon J. Gerraty 98012904384SSimon J. Gerraty * unit-tests/Makefile.config.in: add TOOL_DIFF so configure 98112904384SSimon J. Gerraty can control it. 98212904384SSimon J. Gerraty 98312904384SSimon J. Gerraty2021-10-20 Simon J Gerraty <sjg@beast.crufty.net> 98412904384SSimon J. Gerraty 98512904384SSimon J. Gerraty * VERSION: 20211020 98612904384SSimon J. Gerraty Merge with NetBSD make, pick up 98712904384SSimon J. Gerraty o confirm sync of unit-tests 98812904384SSimon J. Gerraty 98912904384SSimon J. Gerraty2021-10-18 Simon J Gerraty <sjg@beast.crufty.net> 99012904384SSimon J. Gerraty 99112904384SSimon J. Gerraty * configure.in: check if timezone Europe/Berlin is supported 99212904384SSimon J. Gerraty if not try UTC-1 99312904384SSimon J. Gerraty * configure.in: if .OBJDIR is $srcdir/obj we need to create a 99412904384SSimon J. Gerraty symlink unit-tests -> ../unit-tests/obj so that 99512904384SSimon J. Gerraty unit-tests/Makefile.config is put in the right place. 99612904384SSimon J. Gerraty * refine filtering of .OBJDIR in unit-tests 99712904384SSimon J. Gerraty 99812904384SSimon J. Gerraty2021-10-16 Simon J Gerraty <sjg@beast.crufty.net> 99912904384SSimon J. Gerraty 100012904384SSimon J. Gerraty * Fix unit-tests on Minix 3.2.0 100112904384SSimon J. Gerraty o job.c: do not punt if read of token pipe fails for EAGAIN. 100212904384SSimon J. Gerraty On Minix at least, we are not ready to read the childExitJob pipe 100312904384SSimon J. Gerraty when poll says we are. 100412904384SSimon J. Gerraty There should actually be no reason for this pipe to be 100512904384SSimon J. Gerraty non-blocking, but while that works fine on {Net,Free}BSD it 100612904384SSimon J. Gerraty breaks another test case on Minix. 100712904384SSimon J. Gerraty o unit-tests/Makefile: deal with variants of error messages 100812904384SSimon J. Gerraty and use of obj as .OBJDIR 100912904384SSimon J. Gerraty 101012904384SSimon J. Gerraty2021-10-14 Simon J Gerraty <sjg@beast.crufty.net> 101112904384SSimon J. Gerraty 101212904384SSimon J. Gerraty * configure.in: add sigaction to AC_REPLACE_FUNCS 101312904384SSimon J. Gerraty we also need to check for sigaddset etc just for the benefit of 101412904384SSimon J. Gerraty sigact.c 101512904384SSimon J. Gerraty 101612904384SSimon J. Gerraty * Add sigact.c as sigaction.c so this "just works". 101712904384SSimon J. Gerraty This should have been done back when bmake_signal started using 101812904384SSimon J. Gerraty sigaction (I only just noticed that sigact.c wasn't here ;-) 101912904384SSimon J. Gerraty Note: I no longer have access to any system where this would matter. 102012904384SSimon J. Gerraty 102112904384SSimon J. Gerraty2021-10-13 Simon J Gerraty <sjg@beast.crufty.net> 102212904384SSimon J. Gerraty 102312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211011 102412904384SSimon J. Gerraty 102512904384SSimon J. Gerraty * Makefile: cleanup a little 102612904384SSimon J. Gerraty 102712904384SSimon J. Gerraty * configure.in: check for sigsetmask 102812904384SSimon J. Gerraty 102912904384SSimon J. Gerraty2021-10-01 Simon J Gerraty <sjg@beast.crufty.net> 103012904384SSimon J. Gerraty 103112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211001 103212904384SSimon J. Gerraty Merge with NetBSD make, pick up 103312904384SSimon J. Gerraty o reduce locations reducing text size 103412904384SSimon J. Gerraty o remove unnecessary const 103512904384SSimon J. Gerraty o cond.c: fix lint warning on i386 103612904384SSimon J. Gerraty do not allow unquoted 'left == right' after modifier ':?' 103712904384SSimon J. Gerraty o hash.c: fix build for DEBUG_HASH_LOOKUP 103812904384SSimon J. Gerraty o var.c: fix memory leak in error case of the ':?' modifier 103912904384SSimon J. Gerraty 104012904384SSimon J. Gerraty2021-09-11 Simon J Gerraty <sjg@beast.crufty.net> 104112904384SSimon J. Gerraty 104212904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210911 104312904384SSimon J. Gerraty Merge with NetBSD make, pick up 104412904384SSimon J. Gerraty o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval 104512904384SSimon J. Gerraty 104612904384SSimon J. Gerraty2021-09-08 Simon J Gerraty <sjg@beast.crufty.net> 104712904384SSimon J. Gerraty 104812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210906 104912904384SSimon J. Gerraty Merge with NetBSD make, pick up 105012904384SSimon J. Gerraty o more unit tests 105112904384SSimon J. Gerraty o lint cleanup 105212904384SSimon J. Gerraty o rename some functions to better fit purpose 105312904384SSimon J. Gerraty o for.c: cleanup - remove unnecessary optimization 105412904384SSimon J. Gerraty fix embedded newlines 105512904384SSimon J. Gerraty o parse.c: correct case for CVS/RCS 105612904384SSimon J. Gerraty 105712904384SSimon J. Gerraty2021-08-11 Simon J Gerraty <sjg@beast.crufty.net> 105812904384SSimon J. Gerraty 105912904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210808 106012904384SSimon J. Gerraty Merge with NetBSD make, pick up 106112904384SSimon J. Gerraty o var.c: remove redundant initialization in ApplyModifier_Order 106212904384SSimon J. Gerraty 106312904384SSimon J. Gerraty * mk/options.mk: issue warning for incorrect usage 106412904384SSimon J. Gerraty 106512904384SSimon J. Gerraty2021-08-03 Simon J Gerraty <sjg@beast.crufty.net> 106612904384SSimon J. Gerraty 106712904384SSimon J. Gerraty * var.c: use long for :On if we don't have a 64bit int type 106812904384SSimon J. Gerraty 106912904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210803 107012904384SSimon J. Gerraty Merge with NetBSD make, pick up 107112904384SSimon J. Gerraty o rework varmod-order tests to avoid qsort instability 107212904384SSimon J. Gerraty o make.1: clarify :On entry 107312904384SSimon J. Gerraty 107412904384SSimon J. Gerraty2021-07-31 Simon J Gerraty <sjg@beast.crufty.net> 107512904384SSimon J. Gerraty 107612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210731 107712904384SSimon J. Gerraty Merge with NetBSD make, pick up 107812904384SSimon J. Gerraty o fix some lint issues 107912904384SSimon J. Gerraty o more unit tests 108012904384SSimon J. Gerraty o var.c: rework of ApplyModifier_Order 108112904384SSimon J. Gerraty 108212904384SSimon J. Gerraty2021-07-30 Simon J Gerraty <sjg@beast.crufty.net> 108312904384SSimon J. Gerraty 108412904384SSimon J. Gerraty * util.c: add strto*l if HAVE_STRTO*L not defined 108512904384SSimon J. Gerraty 108612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210730 108712904384SSimon J. Gerraty Merge with NetBSD make, pick up 108812904384SSimon J. Gerraty o var.c: add :On and :Orn for numeric sort 108912904384SSimon J. Gerraty disabled if no 64bit type available. 109012904384SSimon J. Gerraty o _strtol.h: to implement strto*l functions 109112904384SSimon J. Gerraty 109212904384SSimon J. Gerraty2021-07-04 Simon J Gerraty <sjg@beast.crufty.net> 109312904384SSimon J. Gerraty 109412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210704 109512904384SSimon J. Gerraty Merge with NetBSD make, pick up 109612904384SSimon J. Gerraty o unit-tests: fix some tests to be more portable 109712904384SSimon J. Gerraty - job-output-null not all shells do the same number of write calls 109812904384SSimon J. Gerraty - objdir-writable if TMPDIR is set; /tmp may not be usable 109912904384SSimon J. Gerraty 110012904384SSimon J. Gerraty2021-07-01 Simon J Gerraty <sjg@beast.crufty.net> 110112904384SSimon J. Gerraty 110212904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210701 110312904384SSimon J. Gerraty Merge with NetBSD make, pick up 110412904384SSimon J. Gerraty o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped; 110512904384SSimon J. Gerraty some tests just cannot work in some environments. 110612904384SSimon J. Gerraty o buf.c: simpler upper bound for length in Buf_AddInt 110712904384SSimon J. Gerraty o cond.c: fix grammar in error message for malformed conditional 110812904384SSimon J. Gerraty o for.c: prevent newline injection (from ${.newline}) in .for loops 110912904384SSimon J. Gerraty o var.c: use more practical data type in RegexReplace 111012904384SSimon J. Gerraty (avoid need for %zu) 111112904384SSimon J. Gerraty extract RegexReplace from ModifyWord_SubstRegex 111212904384SSimon J. Gerraty 1113b0c40a00SSimon J. Gerraty2021-06-21 Simon J Gerraty <sjg@beast.crufty.net> 1114b0c40a00SSimon J. Gerraty 1115b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210621 1116b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1117b0c40a00SSimon J. Gerraty o var.c: only report error for unmatched regex subexpression 1118b0c40a00SSimon J. Gerraty when linting (-dL) since we cannot tell when an unmatched 1119b0c40a00SSimon J. Gerraty subexpression is an expected result. 1120b0c40a00SSimon J. Gerraty o move unmatched regex subexpression tests to 1121b0c40a00SSimon J. Gerraty varmod-subst-regex.mk and enable strict (lint) mode 1122b0c40a00SSimon J. Gerraty 1123b0c40a00SSimon J. Gerraty2021-06-16 Simon J Gerraty <sjg@beast.crufty.net> 1124b0c40a00SSimon J. Gerraty 1125b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210616 1126b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1127b0c40a00SSimon J. Gerraty o more unit tests 1128b0c40a00SSimon J. Gerraty o cond.c: rename If_Eval to EvalBare 1129b0c40a00SSimon J. Gerraty improve function names for parsing conditions 1130b0c40a00SSimon J. Gerraty o job.c: fix error handling of targets that cannot be made 1131b0c40a00SSimon J. Gerraty o var.c: uncompress code in ApplyModifier_Unique 1132b0c40a00SSimon J. Gerraty 1133b0c40a00SSimon J. Gerraty2021-05-18 Simon J Gerraty <sjg@beast.crufty.net> 1134b0c40a00SSimon J. Gerraty 1135b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210518 1136b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1137b0c40a00SSimon J. Gerraty o fix unit-tests/opt-chdir to cope with /nonexistent existing. 1138b0c40a00SSimon J. Gerraty o job.c: Print -de error information when running multiple jobs 1139b0c40a00SSimon J. Gerraty 1140b0c40a00SSimon J. Gerraty2021-04-20 Simon J Gerraty <sjg@beast.crufty.net> 1141b0c40a00SSimon J. Gerraty 1142b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210420 1143b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1144b0c40a00SSimon J. Gerraty o use C99 bool type 1145b0c40a00SSimon J. Gerraty o convert VarEvalFlags back into an enum 1146b0c40a00SSimon J. Gerraty o cond.c: do not complain when skipping the condition 'no >= 10' 1147b0c40a00SSimon J. Gerraty o hash.c: avoid allocating memory for simple variable names 1148b0c40a00SSimon J. Gerraty o job.c: use distinct wording for writing to the shell commands file 1149b0c40a00SSimon J. Gerraty remove type name for the abort status in job handling 1150b0c40a00SSimon J. Gerraty rename PrintOutput to PrintFilteredOutput to avoid confusion 1151b0c40a00SSimon J. Gerraty o main.c: avoid double slash in name of temporary directory 1152b0c40a00SSimon J. Gerraty o var.c: use straight quotes for error 'Bad conditional expression' 1153b0c40a00SSimon J. Gerraty reduce memory allocations in the modifiers ':D' and ':U' 1154b0c40a00SSimon J. Gerraty rename members of ModifyWord_LoopArgs 1155b0c40a00SSimon J. Gerraty clean up pattern flags for the modifiers ':S' and ':C' 1156b0c40a00SSimon J. Gerraty reduce memory allocation and strlen calls in modifier ':from=to' 1157b0c40a00SSimon J. Gerraty in the ':Q' modifier, only allocate memory if necessary 1158b0c40a00SSimon J. Gerraty improve performance for LazyBuf 1159b0c40a00SSimon J. Gerraty remove redundant parameter from ParseVarnameLong 1160b0c40a00SSimon J. Gerraty migrate ParseModifierPart to use Substring 1161b0c40a00SSimon J. Gerraty avoid unnecessary calls to strlen when evaluating modifiers 1162b0c40a00SSimon J. Gerraty migrate ModifyWord functions to use Substring 1163b0c40a00SSimon J. Gerraty migrate handling of the modifier ':S,from,to,' to Substring 1164b0c40a00SSimon J. Gerraty reduce debug logging and memory allocation for ${:U...} 1165b0c40a00SSimon J. Gerraty reduce verbosity of the -dv debug logging for standard cases 1166b0c40a00SSimon J. Gerraty clean up debug logging for ':M' and ':N' 1167b0c40a00SSimon J. Gerraty disallow '$' in the variable name of the modifier ':@' 1168b0c40a00SSimon J. Gerraty simplify access to the name of an expression during evaluation 1169b0c40a00SSimon J. Gerraty 1170b0c40a00SSimon J. Gerraty2021-03-30 Simon J Gerraty <sjg@beast.crufty.net> 1171b0c40a00SSimon J. Gerraty 1172b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210330 1173b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1174b0c40a00SSimon J. Gerraty o replace enum bit-field with struct bit-field for VarEvalFlags 1175b0c40a00SSimon J. Gerraty o rename VARE_NONE to VARE_PARSE_ONLY 1176b0c40a00SSimon J. Gerraty o var.c: rename ApplyModifiersState to ModChain 1177b0c40a00SSimon J. Gerraty fix double varname expansion in the variable modifier '::=' 1178b0c40a00SSimon J. Gerraty change debug log for variable evaluation flags to lowercase 1179b0c40a00SSimon J. Gerraty 1180b0c40a00SSimon J. Gerraty2021-03-14 Simon J Gerraty <sjg@beast.crufty.net> 1181b0c40a00SSimon J. Gerraty 1182b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210314 1183b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1184b0c40a00SSimon J. Gerraty o var.c: avoid evaluating many modifiers in parse only mode 1185b0c40a00SSimon J. Gerraty in strict mode (-dL) many variable references are parsed twice, 1186b0c40a00SSimon J. Gerraty the first time just to report parse errors early, so we want to 1187b0c40a00SSimon J. Gerraty avoid side effects and wasted effort to the extent possible. 1188b0c40a00SSimon J. Gerraty 1189b0c40a00SSimon J. Gerraty2021-02-26 Simon J Gerraty <sjg@beast.crufty.net> 1190b0c40a00SSimon J. Gerraty 1191b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210226 1192b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1193b0c40a00SSimon J. Gerraty o remove freestanding freeIt variables 1194b0c40a00SSimon J. Gerraty link via FStr 1195b0c40a00SSimon J. Gerraty o var.c: restructure code in ParseVarname to target human readers 1196b0c40a00SSimon J. Gerraty improve error message for; 1197b0c40a00SSimon J. Gerraty bad modifier in variable expression 1198b0c40a00SSimon J. Gerraty unclosed modifier 1199b0c40a00SSimon J. Gerraty unknown modifier 1200b0c40a00SSimon J. Gerraty remove redundant parameter of ApplySingleModifier 1201b0c40a00SSimon J. Gerraty explain non-obvious code around indirect variable modifiers 1202b0c40a00SSimon J. Gerraty quote ':S' in error message about missing delimiter 1203b0c40a00SSimon J. Gerraty extract ParseModifier_Match into separate function 1204b0c40a00SSimon J. Gerraty add context information to error message about ':range' modifier 1205b0c40a00SSimon J. Gerraty add quotes around variable name in an error message 1206b0c40a00SSimon J. Gerraty reorder code in ModifyWords 1207b0c40a00SSimon J. Gerraty use more common parameter order for VarSelectWords 1208b0c40a00SSimon J. Gerraty make ModifyWord_Subst a little easier to understand 1209b0c40a00SSimon J. Gerraty do not expand variable name from the command line twice 1210b0c40a00SSimon J. Gerraty extract ExistsInCmdline from Var_SetWithFlags 1211b0c40a00SSimon J. Gerraty save a hash map lookup when defining a cmdline variable 1212b0c40a00SSimon J. Gerraty clean up VarAdd, Var_Delete, Var_ReexportVars 1213b0c40a00SSimon J. Gerraty use bit-shift expressions for VarFlags constants 1214b0c40a00SSimon J. Gerraty rename constants for VarFlags 1215b0c40a00SSimon J. Gerraty rename ExprDefined constants for debug logging 1216b0c40a00SSimon J. Gerraty rename ExprStatus to ExprDefined 1217b0c40a00SSimon J. Gerraty split parameters for evaluating variable expressions 1218b0c40a00SSimon J. Gerraty reduce redundant code around ModifyWords 1219b0c40a00SSimon J. Gerraty print error about failed shell command before overwriting variable 1220b0c40a00SSimon J. Gerraty clean up ValidShortVarname, ParseVarnameShort 1221b0c40a00SSimon J. Gerraty rename VarExprStatus to ExprStatus 1222b0c40a00SSimon J. Gerraty add functions for assigning the value of an expression 1223b0c40a00SSimon J. Gerraty rename ApplyModifiersState_Define to Expr_Define 1224b0c40a00SSimon J. Gerraty condense the code for parsing :S and :C modifiers 1225b0c40a00SSimon J. Gerraty 1226dba7b0efSSimon J. Gerraty2021-02-06 Simon J Gerraty <sjg@beast.crufty.net> 1227dba7b0efSSimon J. Gerraty 1228dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210206 1229dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1230dba7b0efSSimon J. Gerraty o unit-tests: use private TMPDIR to avoid errors from other users 1231dba7b0efSSimon J. Gerraty 1232dba7b0efSSimon J. Gerraty2021-02-05 Simon J Gerraty <sjg@beast.crufty.net> 1233dba7b0efSSimon J. Gerraty 1234dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210205 1235dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1236dba7b0efSSimon J. Gerraty o avoid strdup in mkTempFile 1237dba7b0efSSimon J. Gerraty o always use vfork 1238dba7b0efSSimon J. Gerraty o rename context and ctxt to scope 1239dba7b0efSSimon J. Gerraty o rename some VAR constants to SCOPE 1240dba7b0efSSimon J. Gerraty o Var_ functions, move the scope to the front 1241dba7b0efSSimon J. Gerraty o use shortcut functions Global_Set and Global_Append 1242dba7b0efSSimon J. Gerraty o add shortcut Global_Delete for deleting a global variable 1243dba7b0efSSimon J. Gerraty o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete 1244dba7b0efSSimon J. Gerraty o compat.c: when exiting due to an error, print graph information 1245dba7b0efSSimon J. Gerraty o enum.c: remove overengineered Enum_ValueToString 1246dba7b0efSSimon J. Gerraty o make.c: remove unused INTERNAL flag 1247dba7b0efSSimon J. Gerraty remove unused return type of MakeBuildParent 1248dba7b0efSSimon J. Gerraty o parse.c: replace parse error "Need an operator" with better message 1249dba7b0efSSimon J. Gerraty o var.c: improve documentation about variable scopes 1250dba7b0efSSimon J. Gerraty rename Var_ValueDirect to GNode_ValueDirect 1251dba7b0efSSimon J. Gerraty rename old Var_SetWithFlags to Var_SetExpandWithFlags 1252dba7b0efSSimon J. Gerraty merge SetVar into Var_SetWithFlags 1253dba7b0efSSimon J. Gerraty split Var_Exists into plain Var_Exists and Var_ExistsExpand 1254dba7b0efSSimon J. Gerraty split Var_Append into Var_Append and Var_AppendExpand 1255dba7b0efSSimon J. Gerraty replace enum bit-set with bit-field 1256dba7b0efSSimon J. Gerraty o unit-tests/var-op-shell: use kill rather than kill -14 1257dba7b0efSSimon J. Gerraty which broke on darwin with recent update. 1258dba7b0efSSimon J. Gerraty 1259dba7b0efSSimon J. Gerraty2021-02-01 Simon J Gerraty <sjg@beast.crufty.net> 1260dba7b0efSSimon J. Gerraty 1261dba7b0efSSimon J. Gerraty * configure.in: check for sig_atomic_t and define it as 'int' 1262dba7b0efSSimon J. Gerraty if missing. 1263dba7b0efSSimon J. Gerraty 1264dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210201 1265dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1266dba7b0efSSimon J. Gerraty o use sig_atomic_t for caught_sigchld 1267dba7b0efSSimon J. Gerraty 1268dba7b0efSSimon J. Gerraty2021-01-30 Simon J Gerraty <sjg@beast.crufty.net> 1269dba7b0efSSimon J. Gerraty 1270dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210130 1271dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1272dba7b0efSSimon J. Gerraty o more unit tests 1273dba7b0efSSimon J. Gerraty o convert SearchPath to struct 1274dba7b0efSSimon J. Gerraty o split Buf_Destroy into Buf_Done and Buf_DoneData 1275dba7b0efSSimon J. Gerraty o for.c: split For_Eval into separate functions 1276dba7b0efSSimon J. Gerraty rename struct For to struct ForLoop 1277dba7b0efSSimon J. Gerraty o job.c: do not create empty shell files in jobs mode 1278dba7b0efSSimon J. Gerraty rename JobOpenTmpFile to JobWriteShellCommands 1279dba7b0efSSimon J. Gerraty reduce unnecessary calls to waitpid 1280dba7b0efSSimon J. Gerraty o parse.c: in -dp mode, print stack trace with each diagnostic 1281dba7b0efSSimon J. Gerraty 1282dba7b0efSSimon J. Gerraty2021-01-23 Simon J Gerraty <sjg@beast.crufty.net> 1283dba7b0efSSimon J. Gerraty 1284dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210123 1285dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1286dba7b0efSSimon J. Gerraty o rename Dir_Expand to SearchPath_Expand 1287dba7b0efSSimon J. Gerraty o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags 1288dba7b0efSSimon J. Gerraty o cond.c: fix debug output for comparison operators in conditionals 1289dba7b0efSSimon J. Gerraty o dir.c: split Dir_FindFile into separate functions 1290dba7b0efSSimon J. Gerraty 1291dba7b0efSSimon J. Gerraty2021-01-20 Simon J Gerraty <sjg@beast.crufty.net> 1292dba7b0efSSimon J. Gerraty 1293dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210120 1294dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1295dba7b0efSSimon J. Gerraty o fix some more lint nits 1296dba7b0efSSimon J. Gerraty o refine some unit tests for portability 1297dba7b0efSSimon J. Gerraty o cond.c: rework parsing 1298dba7b0efSSimon J. Gerraty 129906b9b3e0SSimon J. Gerraty2021-01-10 Simon J Gerraty <sjg@beast.crufty.net> 130006b9b3e0SSimon J. Gerraty 130106b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210110 130206b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 130306b9b3e0SSimon J. Gerraty o fix lint warnings 130406b9b3e0SSimon J. Gerraty o consistently use boolean expressions in conditions 130506b9b3e0SSimon J. Gerraty 130606b9b3e0SSimon J. Gerraty2021-01-08 Simon J Gerraty <sjg@beast.crufty.net> 130706b9b3e0SSimon J. Gerraty 130806b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210108 130906b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 131006b9b3e0SSimon J. Gerraty o job.c: back to polling token pipe if we want a token 131106b9b3e0SSimon J. Gerraty o main.c: always print 'stopped in' on first call 131206b9b3e0SSimon J. Gerraty The execption is if we bail because of an abort token 131306b9b3e0SSimon J. Gerraty in which case just exit 6. 131406b9b3e0SSimon J. Gerraty 131506b9b3e0SSimon J. Gerraty2021-01-01 Simon J Gerraty <sjg@beast.crufty.net> 131606b9b3e0SSimon J. Gerraty 131706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210101 131806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 131906b9b3e0SSimon J. Gerraty o Happy New Year! 132006b9b3e0SSimon J. Gerraty o rename CmdOpts.lint to strict 132106b9b3e0SSimon J. Gerraty o exit 2 on technical errors 132206b9b3e0SSimon J. Gerraty o replace pointers in controlling conditions with booleans 132306b9b3e0SSimon J. Gerraty o replace global preserveUndefined with VARE_KEEP_UNDEF 132406b9b3e0SSimon J. Gerraty o compat.c: re-export variables from the actual make process 132506b9b3e0SSimon J. Gerraty if using vfork this is the effect anyway 132606b9b3e0SSimon J. Gerraty o cond.c: clean up VarParseResult constants 132706b9b3e0SSimon J. Gerraty o for.c: fix undefined behavior in SubstVarLong 132806b9b3e0SSimon J. Gerraty make control flow in SubstVarLong of .for loops more obvious 132906b9b3e0SSimon J. Gerraty clean up SubstVarShort in .for loops 133006b9b3e0SSimon J. Gerraty extract ForSubstBody from ForReadMore 133106b9b3e0SSimon J. Gerraty clean up ForReadMore 133206b9b3e0SSimon J. Gerraty simplify termination condition for .for loop 133306b9b3e0SSimon J. Gerraty add error handling for .for loop items 133406b9b3e0SSimon J. Gerraty job.c: re-export variables from the actual make process 133506b9b3e0SSimon J. Gerraty parse.c: remove mmap for loading files, only allow files < 1 GiB 133606b9b3e0SSimon J. Gerraty fix edge case in := with undefined in variable name 133706b9b3e0SSimon J. Gerraty skip variable expansion in ParseDependencyTargetWord 133806b9b3e0SSimon J. Gerraty var.c: split ExportVar into separate functions 133906b9b3e0SSimon J. Gerraty clean up code in extracted ExportVar functions 134006b9b3e0SSimon J. Gerraty remove dead code from ApplyModifiersIndirect 134106b9b3e0SSimon J. Gerraty split Var_Subst into easily understandable functions 134206b9b3e0SSimon J. Gerraty clean up VarParseResult constants 134306b9b3e0SSimon J. Gerraty 134406b9b3e0SSimon J. Gerraty2020-12-25 Simon J Gerraty <sjg@beast.crufty.net> 134506b9b3e0SSimon J. Gerraty 134606b9b3e0SSimon J. Gerraty * main.c: use .MAKE.DEPENDFILE as set by makefiles 134706b9b3e0SSimon J. Gerraty 134806b9b3e0SSimon J. Gerraty2020-12-22 Simon J Gerraty <sjg@beast.crufty.net> 134906b9b3e0SSimon J. Gerraty 135006b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201222 135106b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 135206b9b3e0SSimon J. Gerraty o make DEBUG macro return boolean 135306b9b3e0SSimon J. Gerraty o parse.c: fix assertion failure for files without trailing newline 135406b9b3e0SSimon J. Gerraty o var.c: allow .undef to undefine multiple variables at once 135506b9b3e0SSimon J. Gerraty remove excess newline from parse errors 135606b9b3e0SSimon J. Gerraty 135706b9b3e0SSimon J. Gerraty2020-12-21 Simon J Gerraty <sjg@beast.crufty.net> 135806b9b3e0SSimon J. Gerraty 135906b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201221 136006b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 136106b9b3e0SSimon J. Gerraty o some unit-test updates 136206b9b3e0SSimon J. Gerraty 136306b9b3e0SSimon J. Gerraty2020-12-20 Simon J Gerraty <sjg@beast.crufty.net> 136406b9b3e0SSimon J. Gerraty 136506b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201220 136606b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 136706b9b3e0SSimon J. Gerraty o more unit tests 136806b9b3e0SSimon J. Gerraty o return FStr from Var_Parse and Var_Value 136906b9b3e0SSimon J. Gerraty o spell nonexistent consistently 137006b9b3e0SSimon J. Gerraty o add str_basename to reduce duplicate code 137106b9b3e0SSimon J. Gerraty o compat.c: fix .ERROR_TARGET in compat -k mode 137206b9b3e0SSimon J. Gerraty extract InitSignals from Compat_Run 137306b9b3e0SSimon J. Gerraty extract UseShell from Compat_RunCommand 137406b9b3e0SSimon J. Gerraty o cond.c: error out if an '.endif' or '.else' contain extraneous text 137506b9b3e0SSimon J. Gerraty o for.c: rename ForIterate to ForReadMore 137606b9b3e0SSimon J. Gerraty o hash.c: clean up hash function for HashTable 137706b9b3e0SSimon J. Gerraty o lst.c: rename Vector.priv_cap to cap 137806b9b3e0SSimon J. Gerraty o main.c: remove constant parameter from MakeMode 137906b9b3e0SSimon J. Gerraty o make.c: use symbolic time for 0 in Make_Recheck 138006b9b3e0SSimon J. Gerraty extract MakeChildren from MakeStartJobs 138106b9b3e0SSimon J. Gerraty o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar 138206b9b3e0SSimon J. Gerraty fix error message for .info/.warning/.error without argument 138306b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 138406b9b3e0SSimon J. Gerraty extract ParseSkippedBranches, ParseForLoop from ParseReadLine 138506b9b3e0SSimon J. Gerraty rename mode constants for ParseGetLine to be more expressive 138606b9b3e0SSimon J. Gerraty reduce debugging details in Parse_SetInput 138706b9b3e0SSimon J. Gerraty fix line numbers in .for loops 138806b9b3e0SSimon J. Gerraty split ParseGetLine into separate functions 138906b9b3e0SSimon J. Gerraty fix garbled output for failed shell command 139006b9b3e0SSimon J. Gerraty var.c: remove redundant assignment in ApplyModifier_SysV 139106b9b3e0SSimon J. Gerraty error out on unknown variable modifiers at parse time 139206b9b3e0SSimon J. Gerraty remove wrong error message for indirect modifier in lint mode 139306b9b3e0SSimon J. Gerraty extract ApplySingleModifier from ApplyModifiers 139406b9b3e0SSimon J. Gerraty use FStr for memory management in Var_SetWithFlags 139506b9b3e0SSimon J. Gerraty extract SetVar from Var_SetWithFlags 139606b9b3e0SSimon J. Gerraty use FStr in VarNew 139706b9b3e0SSimon J. Gerraty extract string functions from ApplyModifier_To 139806b9b3e0SSimon J. Gerraty error out if .undef has not exactly 1 argument 139906b9b3e0SSimon J. Gerraty extract Var_DeleteVar from Var_Delete 140006b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 140106b9b3e0SSimon J. Gerraty clean up memory management for expanding variable expressions 140206b9b3e0SSimon J. Gerraty 140306b9b3e0SSimon J. Gerraty2020-12-12 Simon J Gerraty <sjg@beast.crufty.net> 140406b9b3e0SSimon J. Gerraty 140506b9b3e0SSimon J. Gerraty * avoid %zu 140606b9b3e0SSimon J. Gerraty 140706b9b3e0SSimon J. Gerraty * lst.c: avoid anonymous union 140806b9b3e0SSimon J. Gerraty 140906b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201212 141006b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 141106b9b3e0SSimon J. Gerraty o more unit tests 141206b9b3e0SSimon J. Gerraty o inline Targ_Ignore and Targ_Silent 141306b9b3e0SSimon J. Gerraty o split JobFlags into separate fields 141406b9b3e0SSimon J. Gerraty o remove const from function parameters (left overs from refactoring) 141506b9b3e0SSimon J. Gerraty o eliminate boolean argument of Var_Export 141606b9b3e0SSimon J. Gerraty o make API of Buf_Init simpler 141706b9b3e0SSimon J. Gerraty o rename ParseRunOptions to ParseCommandFlags 141806b9b3e0SSimon J. Gerraty o replace *line with line[0] 141906b9b3e0SSimon J. Gerraty o compat.c: fix wrong exit status for multiple failed main targets 142006b9b3e0SSimon J. Gerraty refactor Compat_Run to show the error condition more clearly 142106b9b3e0SSimon J. Gerraty don't make .END if the main targets already failed (-k mode) 142206b9b3e0SSimon J. Gerraty fix exit status in -k mode if a dependency fails 142306b9b3e0SSimon J. Gerraty o for.c: clean up Buf_AddEscaped in .for loops 142406b9b3e0SSimon J. Gerraty o job.c: extract ShellWriter_ErrOn from JobPrintCommand 142506b9b3e0SSimon J. Gerraty make Job_Touch simpler 142606b9b3e0SSimon J. Gerraty refactor JobFinish 142706b9b3e0SSimon J. Gerraty rename Shell.exitFlag to errFlag 142806b9b3e0SSimon J. Gerraty move Job.xtraced to ShellWriter 142906b9b3e0SSimon J. Gerraty make printing of shell commands independent from the job 143006b9b3e0SSimon J. Gerraty rename shell flags in struct Shell 143106b9b3e0SSimon J. Gerraty extract JobOpenTmpFile from JobStart 143206b9b3e0SSimon J. Gerraty rename RunFlags to CommandFlags 143306b9b3e0SSimon J. Gerraty split various Job.* into separate fields 143406b9b3e0SSimon J. Gerraty rename commandShell to shell 143506b9b3e0SSimon J. Gerraty extract InitShellNameAndPath from Shell_Init 143606b9b3e0SSimon J. Gerraty replace signal handling macros with local functions 143706b9b3e0SSimon J. Gerraty replace macro MESSAGE with local function 143806b9b3e0SSimon J. Gerraty parse.c: error out on null bytes in makefiles 143906b9b3e0SSimon J. Gerraty error out on misspelled directives 144006b9b3e0SSimon J. Gerraty rename IFile.nextbuf to readMore 144106b9b3e0SSimon J. Gerraty fix undefined behavior in ParseEOF 144206b9b3e0SSimon J. Gerraty str.c: remove redundant call to strlen in Str_Words 144306b9b3e0SSimon J. Gerraty var.c: error out on misspelled .unexport-env 144406b9b3e0SSimon J. Gerraty error out on misspelled .export directives 144506b9b3e0SSimon J. Gerraty extract ExportVars from Var_Export 144606b9b3e0SSimon J. Gerraty extract ExportVarsExpand from Var_Export 144706b9b3e0SSimon J. Gerraty eliminate boolean argument of Var_Export 144806b9b3e0SSimon J. Gerraty fix undefined behavior when exporting ${:U } 144906b9b3e0SSimon J. Gerraty rename Var_ExportVars to Var_ReexportVars 145006b9b3e0SSimon J. Gerraty rename Var_Export1 to ExportVar 145106b9b3e0SSimon J. Gerraty 145206b9b3e0SSimon J. Gerraty2020-12-06 Simon J Gerraty <sjg@beast.crufty.net> 145306b9b3e0SSimon J. Gerraty 145406b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201206 145506b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 145606b9b3e0SSimon J. Gerraty o more unit tests 145706b9b3e0SSimon J. Gerraty o inline macros for debug logging 145806b9b3e0SSimon J. Gerraty o use consistent variable names for list nodes 145906b9b3e0SSimon J. Gerraty o define constants for enum zero-values 146006b9b3e0SSimon J. Gerraty o dir.c: use fixed format for debug output of the directory cache 146106b9b3e0SSimon J. Gerraty remove Dir_InitDir 146206b9b3e0SSimon J. Gerraty o lst.c: inline Lst_Enqueue, Vector_Done 146306b9b3e0SSimon J. Gerraty o meta.c: remove unused parameter from meta_needed 146406b9b3e0SSimon J. Gerraty o parse.c: rename parse functions 146506b9b3e0SSimon J. Gerraty o suff.c: extract ExpandChildrenRegular from ExpandChildren 146606b9b3e0SSimon J. Gerraty o targ.c: don't concatenate identifiers in Targ_PrintType 146706b9b3e0SSimon J. Gerraty o var.c: remove comment decoration 146806b9b3e0SSimon J. Gerraty extract UnexportVars from Var_UnExport 146906b9b3e0SSimon J. Gerraty extract GetVarnamesToUnexport from Var_UnExport 147006b9b3e0SSimon J. Gerraty extract UnexportEnv from Var_UnExport 147106b9b3e0SSimon J. Gerraty extract UnexportVar from Var_UnExport 147206b9b3e0SSimon J. Gerraty move CleanEnv to UnexportVars 147306b9b3e0SSimon J. Gerraty replace pointer comparisons with enum 147406b9b3e0SSimon J. Gerraty add FStr to var.c to make memory handling simpler 147506b9b3e0SSimon J. Gerraty use FStr in Var_UnExport 147606b9b3e0SSimon J. Gerraty move type definitions in var.c to the top 147706b9b3e0SSimon J. Gerraty extract FreeEnvVar from Var_Parse 147806b9b3e0SSimon J. Gerraty extract ShuffleStrings from ApplyModifier_Order 147906b9b3e0SSimon J. Gerraty 148006b9b3e0SSimon J. Gerraty2020-11-30 Simon J Gerraty <sjg@beast.crufty.net> 148106b9b3e0SSimon J. Gerraty 148206b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201130 148306b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 148406b9b3e0SSimon J. Gerraty o add unit tests for META MODE 148506b9b3e0SSimon J. Gerraty o reduce memory allocation for dirSearchPath, GNode.parents, 148606b9b3e0SSimon J. Gerraty GNode.children, OpenDirs 148706b9b3e0SSimon J. Gerraty o reduce pointer indirection for GNode.cohorts and 148806b9b3e0SSimon J. Gerraty GNode.implicitParents 148906b9b3e0SSimon J. Gerraty o remove pointer indirection from GNode.commands 149006b9b3e0SSimon J. Gerraty o inline Lst_ForEachUntil in meta mode 149106b9b3e0SSimon J. Gerraty o dir.c: fix memory leak for lstat cache in -DCLEANUP mode 149206b9b3e0SSimon J. Gerraty clean up memory management for CachedDirs 149306b9b3e0SSimon J. Gerraty fix the reference count of dotLast going negative 149406b9b3e0SSimon J. Gerraty add debug logging for OpenDirs_Done 149506b9b3e0SSimon J. Gerraty extract CacheNewDir from Dir_AddDir 149606b9b3e0SSimon J. Gerraty add debug logging for reference counting of CachedDir 149706b9b3e0SSimon J. Gerraty rename some Dir functions to SearchPath 149806b9b3e0SSimon J. Gerraty o job.c: rename some global variables 149906b9b3e0SSimon J. Gerraty o main.c: reduce memory allocation in ReadBuiltinRules 150006b9b3e0SSimon J. Gerraty reduce memory allocation in CmdOpts.create, CmdOpts.variables, 150106b9b3e0SSimon J. Gerraty CmdOpts.makefiles 150206b9b3e0SSimon J. Gerraty Add .MAKE.UID and .MAKE.GID 150306b9b3e0SSimon J. Gerraty o make.c: reduce memory allocation for/in toBeMade, 150406b9b3e0SSimon J. Gerraty Make_ProcessWait, Make_ExpandUse 150506b9b3e0SSimon J. Gerraty o meta.c: reduce memory allocation in meta_oodate 150606b9b3e0SSimon J. Gerraty o parse.c: reduce memory allocations for parsing dependencies and 150706b9b3e0SSimon J. Gerraty targets 150806b9b3e0SSimon J. Gerraty o suff.c: reduce memory allocation in suffix handling 150906b9b3e0SSimon J. Gerraty 151006b9b3e0SSimon J. Gerraty2020-11-24 Simon J Gerraty <sjg@beast.crufty.net> 151106b9b3e0SSimon J. Gerraty 151206b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201124 151306b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 151406b9b3e0SSimon J. Gerraty o .MAKE.{UID,GID} represent uid and gid running make. 151506b9b3e0SSimon J. Gerraty o fix error handling for .BEGIN and .END dependency in -k mode 151606b9b3e0SSimon J. Gerraty o fix missing "Stop." after failed .END node in -k mode 151706b9b3e0SSimon J. Gerraty o use properly typed comparisons in boolean contexts 151806b9b3e0SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 151906b9b3e0SSimon J. Gerraty o add HashSet type 152006b9b3e0SSimon J. Gerraty o compat.c: split Compat_Make into smaller functions 152106b9b3e0SSimon J. Gerraty extract DebugFailedTarget from Compat_RunCommand 152206b9b3e0SSimon J. Gerraty o dir.c: refactor Dir_UpdateMTime 152306b9b3e0SSimon J. Gerraty migrate CachedDir.files from HashTable to HashSet 152406b9b3e0SSimon J. Gerraty o make.c: add high-level API for GNode.made 152506b9b3e0SSimon J. Gerraty 152606b9b3e0SSimon J. Gerraty2020-11-22 Simon J Gerraty <sjg@beast.crufty.net> 152706b9b3e0SSimon J. Gerraty 152806b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201122 152906b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 153006b9b3e0SSimon J. Gerraty o rename GNode.context to vars 153106b9b3e0SSimon J. Gerraty o suff.c: cleanup and refactor 153206b9b3e0SSimon J. Gerraty rename some functions and vars to better reflect usage 153306b9b3e0SSimon J. Gerraty add high-level API for CandidateSearcher 153406b9b3e0SSimon J. Gerraty o targ.c: add more debug logging for suffix handling 153506b9b3e0SSimon J. Gerraty o more unit tests 153606b9b3e0SSimon J. Gerraty o add debug logging for setting and resetting the main target 153706b9b3e0SSimon J. Gerraty 1538e2eeea75SSimon J. Gerraty2020-11-17 Simon J Gerraty <sjg@beast.crufty.net> 1539e2eeea75SSimon J. Gerraty 1540e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201117 1541e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 154206b9b3e0SSimon J. Gerraty o fix some unit-tests when .SHELL is dash 1543e2eeea75SSimon J. Gerraty o rename Targ_NewGN to GNode_New 1544e2eeea75SSimon J. Gerraty o make some GNode functions const 1545e2eeea75SSimon J. Gerraty o main.c: call Targ_Init before Var_Init 1546e2eeea75SSimon J. Gerraty cleanup PrintOnError, getTmpdir and ParseBoolean 1547e2eeea75SSimon J. Gerraty o var.c: fix error message of failed :!cmd! modifier 1548e2eeea75SSimon J. Gerraty 1549e2eeea75SSimon J. Gerraty2020-11-14 Simon J Gerraty <sjg@beast.crufty.net> 1550e2eeea75SSimon J. Gerraty 1551e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201114 1552e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1553e2eeea75SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 1554e2eeea75SSimon J. Gerraty o clean up cached_stats 1555e2eeea75SSimon J. Gerraty o rename DEFAULT to defaultNode 1556e2eeea75SSimon J. Gerraty o remove redundant struct make_stat 1557e2eeea75SSimon J. Gerraty o cond.c: in lint mode, check for ".else <cond>" 1558e2eeea75SSimon J. Gerraty use bitset for IfState 1559e2eeea75SSimon J. Gerraty replace large switch with if-else in Cond_EvalLine 1560e2eeea75SSimon J. Gerraty o job.c: clean up JobExec, JobStart, JobDoOutput 1561e2eeea75SSimon J. Gerraty use stderr for error message about failed touch 1562e2eeea75SSimon J. Gerraty clean up Job_Touch 1563e2eeea75SSimon J. Gerraty replace macro DBPRINTF with JobPrintln 1564e2eeea75SSimon J. Gerraty rename JobState to JobStatus 1565e2eeea75SSimon J. Gerraty main.c: switch cache for realpath from GNode to HashTable 1566e2eeea75SSimon J. Gerraty clean up Fatal 1567e2eeea75SSimon J. Gerraty clean up InitDefSysIncPath 1568e2eeea75SSimon J. Gerraty use progname instead of hard-coded 'make' in warning 1569e2eeea75SSimon J. Gerraty rename Main_SetVarObjdir to SetVarObjdir 1570e2eeea75SSimon J. Gerraty make.1: document the -S option 1571e2eeea75SSimon J. Gerraty make.c: fix debug output for GNode details 1572e2eeea75SSimon J. Gerraty use symbolic names in debug output of GNodes 1573e2eeea75SSimon J. Gerraty 1574e2eeea75SSimon J. Gerraty2020-11-12 Simon J Gerraty <sjg@beast.crufty.net> 1575e2eeea75SSimon J. Gerraty 1576e2eeea75SSimon J. Gerraty * configure.in: fix --with-force-machine-arch 1577e2eeea75SSimon J. Gerraty 1578e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201112 1579e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1580e2eeea75SSimon J. Gerraty o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable 1581e2eeea75SSimon J. Gerraty checks in InitObjdir. Explicit .OBJDIR target always allows 1582e2eeea75SSimon J. Gerraty read-only directory. 1583e2eeea75SSimon J. Gerraty o cond.c: clean up Cond_EvalLine 1584e2eeea75SSimon J. Gerraty 1585e2eeea75SSimon J. Gerraty2020-11-11 Simon J Gerraty <sjg@beast.crufty.net> 1586e2eeea75SSimon J. Gerraty 1587e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201111 1588e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1589e2eeea75SSimon J. Gerraty o more unit-tests 1590e2eeea75SSimon J. Gerraty o style cleanup 1591e2eeea75SSimon J. Gerraty remove redundant parentheses from sizeof operator 1592e2eeea75SSimon J. Gerraty replace character literal 0 with '\0'. 1593e2eeea75SSimon J. Gerraty replace pointer literal 0 with NULL. 1594e2eeea75SSimon J. Gerraty remove redundant parentheses. 1595e2eeea75SSimon J. Gerraty replace (expr & mask) == 0 with !(expr & mask). 1596e2eeea75SSimon J. Gerraty use strict typing in conditions of the form !var 1597e2eeea75SSimon J. Gerraty o rename Make_OODate to GNode_IsOODate 1598e2eeea75SSimon J. Gerraty o rename Make_TimeStamp to GNode_UpdateYoungestChild 1599e2eeea75SSimon J. Gerraty o rename Var_Set_with_flags to Var_SetWithFlags 1600e2eeea75SSimon J. Gerraty o rename dieQuietly to shouldDieQuietly 1601e2eeea75SSimon J. Gerraty o buf.c: make API of Buf_Init simpler 1602e2eeea75SSimon J. Gerraty o compat.c: clean up Compat_Make, Compat_RunCommand, 1603e2eeea75SSimon J. Gerraty CompatDeleteTarget and CompatInterrupt 1604e2eeea75SSimon J. Gerraty o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|' 1605e2eeea75SSimon J. Gerraty clean up CondParser_Comparison 1606e2eeea75SSimon J. Gerraty o main.c: rename getBoolean and s2Boolean 1607e2eeea75SSimon J. Gerraty rename MAKEFILE_PREFERENCE for consistency 1608e2eeea75SSimon J. Gerraty o parse.c: replace strstr in ParseMaybeSubMake with optimized code 1609e2eeea75SSimon J. Gerraty o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR 1610e2eeea75SSimon J. Gerraty replace emptyString with allocated empty string 1611e2eeea75SSimon J. Gerraty error out on unclosed expressions after the colon 1612e2eeea75SSimon J. Gerraty 1613956e45f6SSimon J. Gerraty2020-11-01 Simon J Gerraty <sjg@beast.crufty.net> 1614956e45f6SSimon J. Gerraty 1615956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201101 1616956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1617956e45f6SSimon J. Gerraty o negate NoExecute to GNode_ShouldExecute 1618956e45f6SSimon J. Gerraty o job.c: rename JobMatchShell to FindShellByName 1619956e45f6SSimon J. Gerraty extract EscapeShellDblQuot from JobPrintCommand 1620956e45f6SSimon J. Gerraty extract ParseRunOptions from JobPrintCommand 1621956e45f6SSimon J. Gerraty o var.c: extract ApplyModifiersIndirect from ApplyModifiers 1622956e45f6SSimon J. Gerraty treat malformed :range, :ts and :[...] as errors 1623956e45f6SSimon J. Gerraty add tests for the variable modifiers :[words] and :range 1624956e45f6SSimon J. Gerraty 1625956e45f6SSimon J. Gerraty2020-10-31 Simon J Gerraty <sjg@beast.crufty.net> 1626956e45f6SSimon J. Gerraty 1627956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201031 1628956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1629956e45f6SSimon J. Gerraty o format #include directives consistently 1630956e45f6SSimon J. Gerraty o do not look up local variables like .TARGET anywhere else 1631956e45f6SSimon J. Gerraty o main.c: Main_SetObjdir is first called for curdir which may be 1632956e45f6SSimon J. Gerraty readonly 1633956e45f6SSimon J. Gerraty reduce the scope where recursive expressions are detected 1634956e45f6SSimon J. Gerraty remove redundant :tl from getBoolean 1635956e45f6SSimon J. Gerraty clean up mkTempFile 1636956e45f6SSimon J. Gerraty o meta.c: simplify memory allocation in meta_create and meta_oodate 1637956e45f6SSimon J. Gerraty o parse.c: extract loadedfile_mmap from loadfile 1638956e45f6SSimon J. Gerraty o trace.c: document possible undefined behavior with .CURDIR 1639956e45f6SSimon J. Gerraty o var.c: make parsing of the :gmtime and :localtime modifiers stricter 1640956e45f6SSimon J. Gerraty rename ismeta to is_shell_metachar 1641956e45f6SSimon J. Gerraty remove debug logging for the :Q variable modifier 1642956e45f6SSimon J. Gerraty rename VarIsDynamic to VarnameIsDynamic 1643956e45f6SSimon J. Gerraty use consistent parameter order in varname parsing functions 1644956e45f6SSimon J. Gerraty extract ParseVarnameLong from Var_Parse 1645956e45f6SSimon J. Gerraty extract ParseVarnameShort from Var_Parse 1646956e45f6SSimon J. Gerraty fix type of ParseModifierPart parameter delim 1647956e45f6SSimon J. Gerraty extract IsEscapedModifierPart from ParseModifierPart 1648956e45f6SSimon J. Gerraty clean up ModifyWords 1649956e45f6SSimon J. Gerraty add test for combining the :@ and :? variable modifiers 1650956e45f6SSimon J. Gerraty 1651956e45f6SSimon J. Gerraty2020-10-30 Simon J Gerraty <sjg@beast.crufty.net> 1652956e45f6SSimon J. Gerraty 1653956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201030 1654956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1655956e45f6SSimon J. Gerraty o change char * to void * in Var_Value 1656956e45f6SSimon J. Gerraty o make iterating over HashTable simpler 1657956e45f6SSimon J. Gerraty o rename VAR_CMD to VAR_CMDLINE 1658956e45f6SSimon J. Gerraty o cond.c: clean up is_separator 1659956e45f6SSimon J. Gerraty fix parse error in string literal in conditional 1660956e45f6SSimon J. Gerraty o main.c: do not use objdir that is not writable 1661956e45f6SSimon J. Gerraty in lint mode, exit with error status on errors 1662956e45f6SSimon J. Gerraty o parse.c: clean up StrContainsWord 1663956e45f6SSimon J. Gerraty fix out-of-bounds pointer in ParseTrackInput 1664956e45f6SSimon J. Gerraty o var.c: rename Str_SYSVMatch and its parameters 1665956e45f6SSimon J. Gerraty remove unsatisfiable conditions in Var_Set_with_flags 1666956e45f6SSimon J. Gerraty document where the variable name is expanded 1667956e45f6SSimon J. Gerraty fix documentation for VARP_SUB_ONE 1668956e45f6SSimon J. Gerraty rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME 1669956e45f6SSimon J. Gerraty document VAR_READONLY 1670956e45f6SSimon J. Gerraty prevent appending to read-only variables 1671956e45f6SSimon J. Gerraty extract MayExport from Var_Export1 1672956e45f6SSimon J. Gerraty remove redundant evaluations in VarFind 1673956e45f6SSimon J. Gerraty replace VarFindFlags with a simple Boolean 1674956e45f6SSimon J. Gerraty rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE 1675956e45f6SSimon J. Gerraty 1676956e45f6SSimon J. Gerraty2020-10-28 Simon J Gerraty <sjg@beast.crufty.net> 1677956e45f6SSimon J. Gerraty 1678956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201028 1679956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1680956e45f6SSimon J. Gerraty o rename defIncPath to defSysIncPath 1681956e45f6SSimon J. Gerraty o initialize all CmdOpts fields 1682956e45f6SSimon J. Gerraty o lst.c: inline Vector_Get 1683956e45f6SSimon J. Gerraty o main.c: refactor main extract 1684956e45f6SSimon J. Gerraty InitMaxJobs,InitObjdir,InitVarMake,InitRandom, 1685956e45f6SSimon J. Gerraty ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules, 1686956e45f6SSimon J. Gerraty InitDefIncPath,CmdOpts_Init,UnlimitFiles 1687956e45f6SSimon J. Gerraty o parse.c: merge curFile into includes 1688956e45f6SSimon J. Gerraty rename predecessor to order_pred 1689956e45f6SSimon J. Gerraty sort ParseSpecial alphabetically 1690956e45f6SSimon J. Gerraty remove unused, undocumented .NOEXPORT 1691956e45f6SSimon J. Gerraty rename ParseSpecial enum values consistently 1692956e45f6SSimon J. Gerraty rename some fields of struct IFile 1693956e45f6SSimon J. Gerraty 1694956e45f6SSimon J. Gerraty2020-10-26 Simon J Gerraty <sjg@beast.crufty.net> 1695956e45f6SSimon J. Gerraty 1696956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201026 1697956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1698956e45f6SSimon J. Gerraty o group the command line options and arguments into a struct 1699956e45f6SSimon J. Gerraty o rename GNode.cmgn to youngestChild 1700956e45f6SSimon J. Gerraty o rename hash functions to identify the type name 1701956e45f6SSimon J. Gerraty o negate OP_NOP and rename it to GNode_IsTarget 1702956e45f6SSimon J. Gerraty o add GNode_Path to access the path of a GNode 1703956e45f6SSimon J. Gerraty o remove macros MIN and MAX 1704956e45f6SSimon J. Gerraty o remove unused Lst_Find and Lst_FindFrom 1705956e45f6SSimon J. Gerraty o arch.c: and make Arch_FindLib simpler 1706956e45f6SSimon J. Gerraty clean up code layout 1707956e45f6SSimon J. Gerraty make Arch_ParseArchive simpler 1708956e45f6SSimon J. Gerraty o cond.c: inline CondFindStrMatch into FuncMake 1709956e45f6SSimon J. Gerraty o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath 1710956e45f6SSimon J. Gerraty omit trailing space in debug output for expanding file patterns 1711956e45f6SSimon J. Gerraty refactor DirMatchFiles 1712956e45f6SSimon J. Gerraty document that the SearchPath of Dir_FindFile may be NULL 1713956e45f6SSimon J. Gerraty remove UNCONST from Dir_Expand 1714956e45f6SSimon J. Gerraty inline DirFindName 1715956e45f6SSimon J. Gerraty o for.c: clean up code for handling .for loops 1716956e45f6SSimon J. Gerraty o hash.c: print hash in debug log with fixed width 1717956e45f6SSimon J. Gerraty clean up hash table functions 1718956e45f6SSimon J. Gerraty reduce amount of string hashing 1719956e45f6SSimon J. Gerraty o job.c: refactor JobDeleteTarget 1720956e45f6SSimon J. Gerraty use proper enum constants for aborting 1721956e45f6SSimon J. Gerraty convert result of JobStart from macros to enum 1722956e45f6SSimon J. Gerraty convert abort reason macros to enum 1723956e45f6SSimon J. Gerraty rework Job_CheckCommands to reduce indentation 1724956e45f6SSimon J. Gerraty rename Shell fields 1725956e45f6SSimon J. Gerraty add field names in declaration of DEFSHELL_CUSTOM 1726956e45f6SSimon J. Gerraty convert JobState and JobFlags to enum types 1727956e45f6SSimon J. Gerraty move handling of the "..." command to JobPrintCommands 1728956e45f6SSimon J. Gerraty o lst.c: clean up 1729956e45f6SSimon J. Gerraty refactor LstNodeNew 1730956e45f6SSimon J. Gerraty remove Lst_Open, Lst_Next, Lst_Close 1731956e45f6SSimon J. Gerraty remove code for circular lists from Lst_Next 1732956e45f6SSimon J. Gerraty o main.c: do not attempt to read .MAKE.DEPENFILE if set to 1733956e45f6SSimon J. Gerraty /dev/null or anything starting with "no" 1734956e45f6SSimon J. Gerraty convert macros for debug flags into enum 1735956e45f6SSimon J. Gerraty o make.c: inline Lst_Copy in Make_ExpandUse 1736956e45f6SSimon J. Gerraty o meta.c: inline Lst_Find in meta_oodate 1737956e45f6SSimon J. Gerraty make Lst_RemoveIf simpler in meta_oodate 1738956e45f6SSimon J. Gerraty o parse.c: convert error level for Parse_Error to an enum 1739956e45f6SSimon J. Gerraty o suff.c: properly terminate debug output with newline 1740956e45f6SSimon J. Gerraty add more details to DEBUG_SRC log 1741956e45f6SSimon J. Gerraty replace Dir_CopyDir with Dir_CopyDirSearchPath 1742956e45f6SSimon J. Gerraty don't modify GNode name while rebuilding the suffix graph 1743956e45f6SSimon J. Gerraty o var.c: reduce duplicate code in VarFind 1744956e45f6SSimon J. Gerraty 1745956e45f6SSimon J. Gerraty2020-10-22 Simon J Gerraty <sjg@beast.crufty.net> 1746956e45f6SSimon J. Gerraty 1747956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201022 1748956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1749956e45f6SSimon J. Gerraty o more refactoring and simplification to reduce code size 1750956e45f6SSimon J. Gerraty o var.c: extract CanonicalVarname from VarFind 1751956e45f6SSimon J. Gerraty o make.c: extract UpdateImplicitParentsVars from Make_Update 1752956e45f6SSimon J. Gerraty o main.c: extract PrintVar from doPrintVars 1753956e45f6SSimon J. Gerraty extract HandlePWD from main 1754956e45f6SSimon J. Gerraty o lst.c: inline simple Lst getters 1755956e45f6SSimon J. Gerraty remove unused Lst_ForEach 1756956e45f6SSimon J. Gerraty o job.c: move struct Shell from job.h to job.c 1757956e45f6SSimon J. Gerraty o more unit tests 1758956e45f6SSimon J. Gerraty 1759956e45f6SSimon J. Gerraty2020-10-19 Simon J Gerraty <sjg@beast.crufty.net> 1760956e45f6SSimon J. Gerraty 1761956e45f6SSimon J. Gerraty * configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT 1762956e45f6SSimon J. Gerraty 1763956e45f6SSimon J. Gerraty2020-10-18 Simon J Gerraty <sjg@beast.crufty.net> 1764956e45f6SSimon J. Gerraty 1765956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201018 1766956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1767956e45f6SSimon J. Gerraty o remove USE_IOVEC 1768956e45f6SSimon J. Gerraty o rename some Hash_* apis to Hash* 1769956e45f6SSimon J. Gerraty o replace execError with execDie 1770956e45f6SSimon J. Gerraty o rename Lst_Init to Lst_New 1771956e45f6SSimon J. Gerraty o add tags to enum types 1772956e45f6SSimon J. Gerraty o rename Stack to Vector 1773956e45f6SSimon J. Gerraty o parse.c: more refactoring 1774956e45f6SSimon J. Gerraty o unit-tests: make some tests use line buffered stdout 1775956e45f6SSimon J. Gerraty o unit-tests/Makefile: in meta mode do not make all tests depend on 1776956e45f6SSimon J. Gerraty Makefile, it isn't necessary. 1777956e45f6SSimon J. Gerraty 1778956e45f6SSimon J. Gerraty2020-10-10 Simon J Gerraty <sjg@beast.crufty.net> 1779956e45f6SSimon J. Gerraty 1780956e45f6SSimon J. Gerraty * main.c: check for CTL_HW being defined. 1781956e45f6SSimon J. Gerraty * unit-tests/Makefile: ensure export tests output are POSIX compliant 1782956e45f6SSimon J. Gerraty disable opt-debug-jobs test until it works on ubuntu 1783956e45f6SSimon J. Gerraty 1784956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201010 1785956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1786956e45f6SSimon J. Gerraty o dir.c: remove pathname limit for Dir_FindHereOrAbove 1787956e45f6SSimon J. Gerraty o hash.c: replace strcpy with memcpy in Hash_CreateEntry 1788956e45f6SSimon J. Gerraty o main.c: extract init_machine and init_machine_arch from main 1789956e45f6SSimon J. Gerraty allow to disable debug logging options 1790956e45f6SSimon J. Gerraty o parse.c: enable format string truncation warnings 1791956e45f6SSimon J. Gerraty extract parsing of sources from ParseDoDependency 1792956e45f6SSimon J. Gerraty split ParseDoSrc into smaller functions 1793956e45f6SSimon J. Gerraty hide implementation details from Parse_DoVar 1794956e45f6SSimon J. Gerraty clean up parsing of variable assignments 1795956e45f6SSimon J. Gerraty split Parse_DoVar into manageable pieces 1796956e45f6SSimon J. Gerraty don't modify the given line during Parse_DoVar 1797956e45f6SSimon J. Gerraty fix out-of-bounds memory access in Parse_DoVar 1798956e45f6SSimon J. Gerraty fix parsing of the :sh assignment modifier 1799956e45f6SSimon J. Gerraty o var.c: rework memory allocation for the name of variables 1800956e45f6SSimon J. Gerraty extract ApplyModifier_Literal into separate function 1801956e45f6SSimon J. Gerraty in lint mode, reject modifiers without delimiter 1802956e45f6SSimon J. Gerraty do not export variable names starting with '-' 1803956e45f6SSimon J. Gerraty o fix double-free bug in -DCLEANUP mode 1804956e45f6SSimon J. Gerraty o more cleanup to enable higher warnings level 1805956e45f6SSimon J. Gerraty o more unit tests 1806956e45f6SSimon J. Gerraty 1807956e45f6SSimon J. Gerraty2020-10-02 Simon J Gerraty <sjg@beast.crufty.net> 1808956e45f6SSimon J. Gerraty 1809956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201002 1810956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1811956e45f6SSimon J. Gerraty o dir.c: use hash table for looking up open directories by name 1812956e45f6SSimon J. Gerraty o main.c: clean up option handling 1813956e45f6SSimon J. Gerraty o parse.c: add missing const for Parse_AddIncludeDir 1814956e45f6SSimon J. Gerraty o var.c: ApplyModifier_To, update pp in each branch 1815956e45f6SSimon J. Gerraty o remove redundant function prototypes 1816956e45f6SSimon J. Gerraty o more unit tests 1817956e45f6SSimon J. Gerraty 1818956e45f6SSimon J. Gerraty2020-10-01 Simon J Gerraty <sjg@beast.crufty.net> 1819956e45f6SSimon J. Gerraty 1820956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201001 1821956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1822956e45f6SSimon J. Gerraty o compat.c: comment about "..." 1823956e45f6SSimon J. Gerraty 1824956e45f6SSimon J. Gerraty2020-09-30 Simon J Gerraty <sjg@beast.crufty.net> 1825956e45f6SSimon J. Gerraty 1826956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200930 1827956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1828956e45f6SSimon J. Gerraty o job.c: split Job.jobPipe into 2 separate fields 1829956e45f6SSimon J. Gerraty replace Lst_Open with direct iteration 1830956e45f6SSimon J. Gerraty o lst.c: remove redundant assertions 1831956e45f6SSimon J. Gerraty o targ.c: replace Lst_Open with direct iteration 1832956e45f6SSimon J. Gerraty o var.c: fix bug in evaluation of indirect variable modifiers 1833956e45f6SSimon J. Gerraty extract ApplyModifier_Quote into separate function 1834956e45f6SSimon J. Gerraty o make debug logging simpler 1835956e45f6SSimon J. Gerraty 1836956e45f6SSimon J. Gerraty2020-09-27 Simon J Gerraty <sjg@beast.crufty.net> 1837956e45f6SSimon J. Gerraty 1838956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200927 1839956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1840956e45f6SSimon J. Gerraty o parse.c: ensure parse errors result in 'stopped in' message. 1841956e45f6SSimon J. Gerraty o compat.c: make parameter of Compat_RunCommand const 1842956e45f6SSimon J. Gerraty o main.c: extract InitVarTarget from main 1843956e45f6SSimon J. Gerraty o parse.c: rename ParseFinishLine to FinishDependencyGroup 1844956e45f6SSimon J. Gerraty refactor ParseDoDependency 1845956e45f6SSimon J. Gerraty o var.c: Var_Subst no longer returns string result 1846956e45f6SSimon J. Gerraty rename Var_ParsePP back to Var_Parse 1847956e45f6SSimon J. Gerraty in lint mode, improve error handling for undefined variables 1848956e45f6SSimon J. Gerraty extract ParseVarname from Var_Parse 1849956e45f6SSimon J. Gerraty o rename Lst_ForEach to Lst_ForEachUntil 1850956e45f6SSimon J. Gerraty o inline Lst_ForEachUntil in several cases 1851956e45f6SSimon J. Gerraty o clean up API for finding and creating GNodes 1852956e45f6SSimon J. Gerraty o fix assertion failure in -j mode with .END node 1853956e45f6SSimon J. Gerraty o inline and remove LstNode_Prev and LstNode_Next 1854956e45f6SSimon J. Gerraty o use fine-grained type names for lists and their nodes 1855956e45f6SSimon J. Gerraty o more unit tests 1856956e45f6SSimon J. Gerraty 1857956e45f6SSimon J. Gerraty2020-09-11 Simon J Gerraty <sjg@beast.crufty.net> 1858956e45f6SSimon J. Gerraty 1859956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200911 1860956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1861956e45f6SSimon J. Gerraty o cond.c: split EvalComparison into smaller functions 1862956e45f6SSimon J. Gerraty reorder parameters of condition parsing functions 1863956e45f6SSimon J. Gerraty reduce code size in CondParser_Eval 1864956e45f6SSimon J. Gerraty rename CondGetString to CondParser_String 1865956e45f6SSimon J. Gerraty add CondLexer_SkipWhitespace 1866956e45f6SSimon J. Gerraty group the condition parsing state into a struct 1867956e45f6SSimon J. Gerraty in CondGetString, replace repeated Buf_Add with Buf_AddStr 1868956e45f6SSimon J. Gerraty o migrate Var_Parse to Var_ParsePP 1869956e45f6SSimon J. Gerraty o add wrappers around ctype.h functions 1870956e45f6SSimon J. Gerraty o lst.c: use a stack instead of a list for the nested include path 1871956e45f6SSimon J. Gerraty o more unit tests 1872956e45f6SSimon J. Gerraty 1873956e45f6SSimon J. Gerraty2020-09-04 Simon J Gerraty <sjg@beast.crufty.net> 1874956e45f6SSimon J. Gerraty 1875956e45f6SSimon J. Gerraty * make-bootstrap.sh.in: adjust object list 1876956e45f6SSimon J. Gerraty 18772c3632d1SSimon J. Gerraty2020-09-02 Simon J Gerraty <sjg@beast.crufty.net> 18782c3632d1SSimon J. Gerraty 18792c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200902 18802c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18812c3632d1SSimon J. Gerraty o use make_stat to ensure no confusion over valid fields 18822c3632d1SSimon J. Gerraty returned by cached_stat 18832c3632d1SSimon J. Gerraty o var.c: make VarQuote const-correct 18842c3632d1SSimon J. Gerraty o add unit tests for .for 18852c3632d1SSimon J. Gerraty 18862c3632d1SSimon J. Gerraty2020-09-01 Simon J Gerraty <sjg@beast.crufty.net> 18872c3632d1SSimon J. Gerraty 18882c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200901 18892c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18902c3632d1SSimon J. Gerraty o rename Hash_Table fields 18912c3632d1SSimon J. Gerraty o make data types in Dir_HasWildcards more precise 18922c3632d1SSimon J. Gerraty 18932c3632d1SSimon J. Gerraty2020-08-31 Simon J Gerraty <sjg@beast.crufty.net> 18942c3632d1SSimon J. Gerraty 18952c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200831 18962c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 18972c3632d1SSimon J. Gerraty o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds 18982c3632d1SSimon J. Gerraty o lst.c: Lst_Open renable assert that list isn't open 18992c3632d1SSimon J. Gerraty o unit test for .TARGET dependent flags 19002c3632d1SSimon J. Gerraty o var.c: fix aliasing bug in VarUniq 19012c3632d1SSimon J. Gerraty o more unit tests for :u 19022c3632d1SSimon J. Gerraty 19032c3632d1SSimon J. Gerraty2020-08-30 Simon J Gerraty <sjg@beast.crufty.net> 19042c3632d1SSimon J. Gerraty 19052c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200830 19062c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19072c3632d1SSimon J. Gerraty o allow for strict type checking for Boolean 19082c3632d1SSimon J. Gerraty o Var_Parse never returns NULL 19092c3632d1SSimon J. Gerraty o Var_Subst never returns NULL 19102c3632d1SSimon J. Gerraty o Lst_Find now takes boolean match function 19112c3632d1SSimon J. Gerraty o rename Lst_Memeber to Lst_FindDatum 19122c3632d1SSimon J. Gerraty o rename LstNode functions to match their type 19132c3632d1SSimon J. Gerraty o rename GNode.iParents to implicitParents 19142c3632d1SSimon J. Gerraty o fix assertion failure for .SUFFIXES in archives 19152c3632d1SSimon J. Gerraty o compat.c: clean up documentation for CompatInterrupt and Compat_Run 19162c3632d1SSimon J. Gerraty remove unreachable code from CompatRunCommand 19172c3632d1SSimon J. Gerraty o main.c: simplify getBoolean 19182c3632d1SSimon J. Gerraty o stc.c: replace brk_string with simpler Str_Words 19192c3632d1SSimon J. Gerraty o suff.c: add debug macros 19202c3632d1SSimon J. Gerraty 19212c3632d1SSimon J. Gerraty2020-08-28 Simon J Gerraty <sjg@beast.crufty.net> 19222c3632d1SSimon J. Gerraty 19232c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200828 19242c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19252c3632d1SSimon J. Gerraty o lst.c: inline LstIsValid and LstNodeIsValid 19262c3632d1SSimon J. Gerraty o remove trailing S from Lst function names after migration complete 19272c3632d1SSimon J. Gerraty o more comment cleanup/clarification 19282c3632d1SSimon J. Gerraty o suff.c: clean up suffix handling 19292c3632d1SSimon J. Gerraty o more unit tests 19302c3632d1SSimon J. Gerraty 19312c3632d1SSimon J. Gerraty2020-08-26 Simon J Gerraty <sjg@beast.crufty.net> 19322c3632d1SSimon J. Gerraty 19332c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200826 19342c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19352c3632d1SSimon J. Gerraty o enum.c: distinguish between bitsets containing flags and 19362c3632d1SSimon J. Gerraty ordinary enums 19372c3632d1SSimon J. Gerraty o var.c: fix error message for ::!= modifier with shell error 19382c3632d1SSimon J. Gerraty o fix bugs in -DCLEANUP mode 19392c3632d1SSimon J. Gerraty 19402c3632d1SSimon J. Gerraty2020-08-24 Simon J Gerraty <sjg@beast.crufty.net> 19412c3632d1SSimon J. Gerraty 19422c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200824 19432c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19442c3632d1SSimon J. Gerraty o in debug mode, print GNode details in symbols 19452c3632d1SSimon J. Gerraty 19462c3632d1SSimon J. Gerraty2020-08-23 Simon J Gerraty <sjg@beast.crufty.net> 19472c3632d1SSimon J. Gerraty 19482c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200823 19492c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19502c3632d1SSimon J. Gerraty o lst.c: more asserts, 19512c3632d1SSimon J. Gerraty make args to Lst_Find match others. 19522c3632d1SSimon J. Gerraty o var.c: pass flags to VarAdd 19532c3632d1SSimon J. Gerraty o arch.c: use Buffer 19542c3632d1SSimon J. Gerraty o str.c: brk_string return size_t for nwords 19552c3632d1SSimon J. Gerraty o more unit tests 19562c3632d1SSimon J. Gerraty 19572c3632d1SSimon J. Gerraty2020-08-22 Simon J Gerraty <sjg@beast.crufty.net> 19582c3632d1SSimon J. Gerraty 19592c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 19602c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19612c3632d1SSimon J. Gerraty o var.c: support for read-only variables eg .SHELL 19622c3632d1SSimon J. Gerraty being the shell used to run scripts. 19632c3632d1SSimon J. Gerraty o lst.c: more simplification 19642c3632d1SSimon J. Gerraty o more documentation and style cleanup 19652c3632d1SSimon J. Gerraty o more unit tests 19662c3632d1SSimon J. Gerraty o ensure unit-test/Makefile is run by TEST_MAKE 19672c3632d1SSimon J. Gerraty o reduce duplication of header inclusion 19682c3632d1SSimon J. Gerraty 19692c3632d1SSimon J. Gerraty2020-08-21 Simon J Gerraty <sjg@beast.crufty.net> 19702c3632d1SSimon J. Gerraty 19712c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200821 19722c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19732c3632d1SSimon J. Gerraty o lst.c: revert invalid assertion - but document it 19742c3632d1SSimon J. Gerraty o dir.c: split Dir_Init into two functions 19752c3632d1SSimon J. Gerraty 19762c3632d1SSimon J. Gerraty2020-08-20 Simon J Gerraty <sjg@beast.crufty.net> 19772c3632d1SSimon J. Gerraty 19782c3632d1SSimon J. Gerraty * lst.c: needs inttypes.h on Linux 19792c3632d1SSimon J. Gerraty 19802c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200820 19812c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19822c3632d1SSimon J. Gerraty o make.1: clarify some passages 19832c3632d1SSimon J. Gerraty o var.c: more cleanup, clarify comments 19842c3632d1SSimon J. Gerraty o make_malloc.c: remove unreachable code 19852c3632d1SSimon J. Gerraty o cond.c: make CondGetString easier to debug 19862c3632d1SSimon J. Gerraty o simplify list usage 19872c3632d1SSimon J. Gerraty o unit-tests: more 19882c3632d1SSimon J. Gerraty 19892c3632d1SSimon J. Gerraty2020-08-16 Simon J Gerraty <sjg@beast.crufty.net> 19902c3632d1SSimon J. Gerraty 19912c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200816 19922c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19932c3632d1SSimon J. Gerraty o refactor unit-tests to be more fine grained 19942c3632d1SSimon J. Gerraty not all tests moved yet 19952c3632d1SSimon J. Gerraty 19962c3632d1SSimon J. Gerraty2020-08-14 Simon J Gerraty <sjg@beast.crufty.net> 19972c3632d1SSimon J. Gerraty 19982c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200814 19992c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20002c3632d1SSimon J. Gerraty o more str_concat variants 20012c3632d1SSimon J. Gerraty o more enums for flags 20022c3632d1SSimon J. Gerraty o var.c: cleanup for higher warnings level 20032c3632d1SSimon J. Gerraty 20042c3632d1SSimon J. Gerraty2020-08-10 Simon J Gerraty <sjg@beast.crufty.net> 20052c3632d1SSimon J. Gerraty 20062c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200810 20072c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20082c3632d1SSimon J. Gerraty o more unit tests 20092c3632d1SSimon J. Gerraty o general comment and style cleanup 20102c3632d1SSimon J. Gerraty 20112c3632d1SSimon J. Gerraty2020-08-08 Simon J Gerraty <sjg@beast.crufty.net> 20122c3632d1SSimon J. Gerraty 20132c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200808 20142c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20152c3632d1SSimon J. Gerraty o enum.[ch]: streamline, enums for use in flags and debug output 20162c3632d1SSimon J. Gerraty o cond.c: cleanup 20172c3632d1SSimon J. Gerraty o var.c: reduce duplicate code for modifiers 20182c3632d1SSimon J. Gerraty debug logging for Var_Parse 20192c3632d1SSimon J. Gerraty more detailed debug output 20202c3632d1SSimon J. Gerraty o more unit tests 20212c3632d1SSimon J. Gerraty 20222c3632d1SSimon J. Gerraty2020-08-06 Simon J Gerraty <sjg@beast.crufty.net> 20232c3632d1SSimon J. Gerraty 20242c3632d1SSimon J. Gerraty * unit-tests/Makefile: -r for recursive and include Makefile.inc 20252c3632d1SSimon J. Gerraty so I can run tests in meta mode 20262c3632d1SSimon J. Gerraty supress extra noise if in meta mode 20272c3632d1SSimon J. Gerraty 20282c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200806 20292c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20302c3632d1SSimon J. Gerraty o parse.c: remove VARE_WANTRES for LINT 20312c3632d1SSimon J. Gerraty we just want to check parsing (for now). 20322c3632d1SSimon J. Gerraty 20332c3632d1SSimon J. Gerraty2020-08-05 Simon J Gerraty <sjg@beast.crufty.net> 20342c3632d1SSimon J. Gerraty 20352c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200805 20362c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20372c3632d1SSimon J. Gerraty o make.1: Rework the description of dependence operators 20382c3632d1SSimon J. Gerraty 20392c3632d1SSimon J. Gerraty2020-08-03 Simon J Gerraty <sjg@beast.crufty.net> 20402c3632d1SSimon J. Gerraty 20412c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200803 20422c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20432c3632d1SSimon J. Gerraty o revert some C99 usage, for max portability 20442c3632d1SSimon J. Gerraty o unit-tests/lint 20452c3632d1SSimon J. Gerraty 20462c3632d1SSimon J. Gerraty2020-08-02 Simon J Gerraty <sjg@beast.crufty.net> 20472c3632d1SSimon J. Gerraty 20482c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200802 20492c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20502c3632d1SSimon J. Gerraty o more unit tests 20512c3632d1SSimon J. Gerraty 20522c3632d1SSimon J. Gerraty2020-08-01 Simon J Gerraty <sjg@beast.crufty.net> 20532c3632d1SSimon J. Gerraty 20542c3632d1SSimon J. Gerraty * Remove NetBSD specific plumbing from unit-tests/Makefile 20552c3632d1SSimon J. Gerraty 20562c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200801 20572c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20582c3632d1SSimon J. Gerraty o make Var_Value return const 20592c3632d1SSimon J. Gerraty o size_t for buf sizes 20602c3632d1SSimon J. Gerraty o optimize some buffer operations - avoid strlen 20612c3632d1SSimon J. Gerraty 20622c3632d1SSimon J. Gerraty2020-07-31 Simon J Gerraty <sjg@beast.crufty.net> 20632c3632d1SSimon J. Gerraty 20642c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200731 20652c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20662c3632d1SSimon J. Gerraty o var.c: fix undefinded behavior for incomplete :t modifier 20672c3632d1SSimon J. Gerraty fixes unit-test/moderrs on Ubuntu 20682c3632d1SSimon J. Gerraty o parse.c: When parsing variable assignments other than := 20692c3632d1SSimon J. Gerraty if DEBUG(LINT) test substition of value, so we get a file and 20702c3632d1SSimon J. Gerraty line number in the resulting error. 20712c3632d1SSimon J. Gerraty o dir.c: fix parsing of nested braces in dependency lines 20722c3632d1SSimon J. Gerraty add unit-tests 20732c3632d1SSimon J. Gerraty 20742c3632d1SSimon J. Gerraty2020-07-30 Simon J Gerraty <sjg@beast.crufty.net> 20752c3632d1SSimon J. Gerraty 20762c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200730 20772c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20782c3632d1SSimon J. Gerraty o var.c: minor cleanup 20792c3632d1SSimon J. Gerraty o unit-tests: more tests to improve code coverage 20802c3632d1SSimon J. Gerraty 20812c3632d1SSimon J. Gerraty2020-07-28 Simon J Gerraty <sjg@beast.crufty.net> 20822c3632d1SSimon J. Gerraty 20832c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200728 20842c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20852c3632d1SSimon J. Gerraty o var.c: more optimizations 20862c3632d1SSimon J. Gerraty 20872c3632d1SSimon J. Gerraty2020-07-26 Simon J Gerraty <sjg@beast.crufty.net> 20882c3632d1SSimon J. Gerraty 20892c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200726 20902c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20912c3632d1SSimon J. Gerraty o collapse lsd.lib into lst.c - reduce code size and allow inlining 20922c3632d1SSimon J. Gerraty o lots of function comment updates 20932c3632d1SSimon J. Gerraty o var.c: more optimizations 20942c3632d1SSimon J. Gerraty o make return of Var_Parse const 20952c3632d1SSimon J. Gerraty 20962c3632d1SSimon J. Gerraty2020-07-20 Simon J Gerraty <sjg@beast.crufty.net> 20972c3632d1SSimon J. Gerraty 20982c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200720 20992c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21002c3632d1SSimon J. Gerraty o DEBUG_HASH report stats at end and tone down the noise 21012c3632d1SSimon J. Gerraty o var.c: each flag type gets its own prefix. 21022c3632d1SSimon J. Gerraty move SysV string matching to var.c 21032c3632d1SSimon J. Gerraty make ampersand in ${VAR:from=to&} an ordinary character 21042c3632d1SSimon J. Gerraty cleanup and simplify implementation of modifiers 21052c3632d1SSimon J. Gerraty o make.1: move documentation for assignment modifiers 21062c3632d1SSimon J. Gerraty 21072c3632d1SSimon J. Gerraty2020-07-18 Simon J Gerraty <sjg@beast.crufty.net> 21082c3632d1SSimon J. Gerraty 21092c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200718 21102c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21112c3632d1SSimon J. Gerraty o DEBUG_HASH to see how well the hash tables are working 21122c3632d1SSimon J. Gerraty 21132c3632d1SSimon J. Gerraty2020-07-11 Simon J Gerraty <sjg@beast.crufty.net> 21142c3632d1SSimon J. Gerraty 21152c3632d1SSimon J. Gerraty * bsd.after-import.mk: make sure we update unit-tests/Makefile 21162c3632d1SSimon J. Gerraty 21173841c287SSimon J. Gerraty2020-07-10 Simon J Gerraty <sjg@beast.crufty.net> 21183841c287SSimon J. Gerraty 21193841c287SSimon J. Gerraty * configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC 21203841c287SSimon J. Gerraty 21213841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200710 21223841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21233841c287SSimon J. Gerraty o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall 21243841c287SSimon J. Gerraty o meta.c: target flagged .META is out-of-date if meta file missing 21253841c287SSimon J. Gerraty 21263841c287SSimon J. Gerraty2020-07-09 Simon J Gerraty <sjg@beast.crufty.net> 21273841c287SSimon J. Gerraty 21283841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200709 21293841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21303841c287SSimon J. Gerraty o cond.c: fix for compare_expression when doEval=0 21313841c287SSimon J. Gerraty o unit-tests/Makefile: rework 21323841c287SSimon J. Gerraty o filemon/filemon_dev.c: ensure filemon fd is closed on exec. 21333841c287SSimon J. Gerraty 21343841c287SSimon J. Gerraty2020-07-04 Simon J Gerraty <sjg@beast.crufty.net> 21353841c287SSimon J. Gerraty 21363841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200704 21373841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21383841c287SSimon J. Gerraty (most of this by rillig@) 21393841c287SSimon J. Gerraty o lots of style and white-space cleanup 21403841c287SSimon J. Gerraty o lots more unit tests for variable modifiers 21413841c287SSimon J. Gerraty o simplified description of some functions 21423841c287SSimon J. Gerraty o str.c: refactor Str_Match 21433841c287SSimon J. Gerraty o var.c: debugging output for :@ 21443841c287SSimon J. Gerraty constify VarModify parameter 21453841c287SSimon J. Gerraty fix :hash modifier on 16-bit platforms 21463841c287SSimon J. Gerraty remove unnecessary forward declarations 21473841c287SSimon J. Gerraty refactor ApplyModifier_SysV to have less indentation 21483841c287SSimon J. Gerraty simplify code for :E and :R 21493841c287SSimon J. Gerraty clean up code for :H and :T 21503841c287SSimon J. Gerraty refactor ApplyModifiers 21513841c287SSimon J. Gerraty 21523841c287SSimon J. Gerraty * var.c: we need stdint.h on some platforms to get uint32_t 21533841c287SSimon J. Gerraty * unit-test/Makefile: we need to supress the specific error 21543841c287SSimon J. Gerraty for RE substitution error in modmisc, since it varies accross 21553841c287SSimon J. Gerraty different OS. 21563841c287SSimon J. Gerraty 21573841c287SSimon J. Gerraty2020-07-02 Simon J Gerraty <sjg@beast.crufty.net> 21583841c287SSimon J. Gerraty 21593841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200702 21603841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21613841c287SSimon J. Gerraty o var.c: more improvements to avoiding unnecessary evaluation 21623841c287SSimon J. Gerraty use enums for flags 21633841c287SSimon J. Gerraty o remove flags arg to Var_Set which outside of var.c is always 0 21643841c287SSimon J. Gerraty 21653841c287SSimon J. Gerraty2020-07-01 Simon J Gerraty <sjg@beast.crufty.net> 21663841c287SSimon J. Gerraty 21673841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200701 21683841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21693841c287SSimon J. Gerraty o var.c: with change to cond.c; ensure that nested variables 21703841c287SSimon J. Gerraty within a variable name are expanded. 21713841c287SSimon J. Gerraty o unit-tests/varmisc.mk: test for nested varname 21723841c287SSimon J. Gerraty 21733841c287SSimon J. Gerraty2020-06-29 Simon J Gerraty <sjg@beast.crufty.net> 21743841c287SSimon J. Gerraty 21753841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200629 21763841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21773841c287SSimon J. Gerraty o cond.c: do not eval unnecessary terms of conditionals. 21783841c287SSimon J. Gerraty 21793841c287SSimon J. Gerraty2020-06-25 Simon J Gerraty <sjg@beast.crufty.net> 21803841c287SSimon J. Gerraty 21813841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200625 21823841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21833841c287SSimon J. Gerraty o meta.c: report error if lseek in filemon_read fails 21843841c287SSimon J. Gerraty 21853841c287SSimon J. Gerraty2020-06-22 Simon J Gerraty <sjg@beast.crufty.net> 21863841c287SSimon J. Gerraty 21873841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200622 21883841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21893841c287SSimon J. Gerraty o dieQuietly: ignore OP_SUBMAKE as too aggressive 21903841c287SSimon J. Gerraty 21913841c287SSimon J. Gerraty2020-06-19 Simon J Gerraty <sjg@beast.crufty.net> 21923841c287SSimon J. Gerraty 21933841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200619 21943841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21953841c287SSimon J. Gerraty o str.c: performance improvement for Str_Match for multiple '*' 21963841c287SSimon J. Gerraty o dieQuietly: supress the failure output from make 21973841c287SSimon J. Gerraty when failing node is a sub-make or a sibling failed. 21983841c287SSimon J. Gerraty This cuts down greatly on unhelpful noise at the end of 21993841c287SSimon J. Gerraty build log. Disabled by -dj or .MAKE.DIE_QUIETLY=no 22003841c287SSimon J. Gerraty 22013841c287SSimon J. Gerraty2020-06-10 Simon J Gerraty <sjg@beast.crufty.net> 22023841c287SSimon J. Gerraty 22033841c287SSimon J. Gerraty * FILES: add LICENSE to appease some packagers. 22043841c287SSimon J. Gerraty This is an attempt to fairly represent the license on almost 22053841c287SSimon J. Gerraty 200 files, which are almost all BSD-3-Clause 22063841c287SSimon J. Gerraty The few exceptions being more liberal. 22073841c287SSimon J. Gerraty 22083841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200610 22093841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22103841c287SSimon J. Gerraty o unit test for :Or 22113841c287SSimon J. Gerraty 2212ef0b2538SSimon J. Gerraty2020-06-06 Simon J Gerraty <sjg@beast.crufty.net> 2213ef0b2538SSimon J. Gerraty 2214ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200606 2215ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 2216ef0b2538SSimon J. Gerraty o make.1: cleanup 2217ef0b2538SSimon J. Gerraty 2218ef0b2538SSimon J. Gerraty * Makefile: fix depends for main.o which broke MAKE_VERSION 2219ef0b2538SSimon J. Gerraty 2220ef0b2538SSimon J. Gerraty2020-06-05 Simon J Gerraty <sjg@beast.crufty.net> 2221ef0b2538SSimon J. Gerraty 2222ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200605 2223ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 2224ef0b2538SSimon J. Gerraty o dir.c: cached_stats - don't confuse stat and lstat results. 2225ef0b2538SSimon J. Gerraty o var.c: add :Or for reverse sort. 2226ef0b2538SSimon J. Gerraty 2227ef0b2538SSimon J. Gerraty2020-05-24 Simon J Gerraty <sjg@beast.crufty.net> 2228ef0b2538SSimon J. Gerraty 2229ef0b2538SSimon J. Gerraty * configure.in: add AC_PROG_CC_C99 for mipspro compiler 2230ef0b2538SSimon J. Gerraty also if --with-filemon= specifies path to filemon.h 2231ef0b2538SSimon J. Gerraty set use_filemon=dev 2232ef0b2538SSimon J. Gerraty * dirname.c: remove include of namespace.h 2233ef0b2538SSimon J. Gerraty 223449caa483SSimon J. Gerraty2020-05-17 Simon J Gerraty <sjg@beast.crufty.net> 223549caa483SSimon J. Gerraty 223649caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200517 223749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 223849caa483SSimon J. Gerraty o modified dollar tests to avoid shell dependencies 223949caa483SSimon J. Gerraty o new tests for .INCLUDEFROM 224049caa483SSimon J. Gerraty 224149caa483SSimon J. Gerraty2020-05-16 Simon J Gerraty <sjg@beast.crufty.net> 224249caa483SSimon J. Gerraty 224349caa483SSimon J. Gerraty * unit-tests/dollar.mk: tweak '1 dollar literal' test 224449caa483SSimon J. Gerraty to not depend so much on shell behavior 224549caa483SSimon J. Gerraty 224649caa483SSimon J. Gerraty2020-05-10 Simon J Gerraty <sjg@beast.crufty.net> 224749caa483SSimon J. Gerraty 224849caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200510 224949caa483SSimon J. Gerraty Merge with NetBSD make, pick up 225049caa483SSimon J. Gerraty o unit test for dollar handling 225149caa483SSimon J. Gerraty 225249caa483SSimon J. Gerraty2020-05-06 Simon J Gerraty <sjg@beast.crufty.net> 225349caa483SSimon J. Gerraty 225449caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200506 225549caa483SSimon J. Gerraty Merge with NetBSD make, pick up 225649caa483SSimon J. Gerraty o str.c: empty string does not match % pattern 225749caa483SSimon J. Gerraty plus unit-test changes 225849caa483SSimon J. Gerraty 225949caa483SSimon J. Gerraty2020-05-04 Simon J Gerraty <sjg@beast.crufty.net> 226049caa483SSimon J. Gerraty 226149caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200504 226249caa483SSimon J. Gerraty May the 4th be with you 226349caa483SSimon J. Gerraty Merge with NetBSD make, pick up 226449caa483SSimon J. Gerraty o var.c: import handling of old sysV style modifier using '%' 226549caa483SSimon J. Gerraty o str.c: refactor brk_string 226649caa483SSimon J. Gerraty o unit-tests: add test case for lazy conditions 226749caa483SSimon J. Gerraty 226849caa483SSimon J. Gerraty2020-04-18 Simon J Gerraty <sjg@beast.crufty.net> 226949caa483SSimon J. Gerraty 227049caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200418 227149caa483SSimon J. Gerraty 2272548bfc56SSimon J. Gerraty * configure.in: use_makefile=no for Cygwin et al. 227349caa483SSimon J. Gerraty case insensitive filesystems just don't work if both 227449caa483SSimon J. Gerraty makefile and Makefile exist. 2275548bfc56SSimon J. Gerraty NOTE: bmake does not support Cygwin and likely never will, 227649caa483SSimon J. Gerraty but if brave souls want to try it - help them out. 227749caa483SSimon J. Gerraty 227849caa483SSimon J. Gerraty2020-04-02 Simon J Gerraty <sjg@beast.crufty.net> 227949caa483SSimon J. Gerraty 228049caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200402 228149caa483SSimon J. Gerraty Merge with NetBSD make, pick up 228249caa483SSimon J. Gerraty o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD 228349caa483SSimon J. Gerraty a blank command is perfectly valid. 228449caa483SSimon J. Gerraty 228549caa483SSimon J. Gerraty2020-03-30 Simon J Gerraty <sjg@beast.crufty.net> 228649caa483SSimon J. Gerraty 228749caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200330 228849caa483SSimon J. Gerraty Merge with NetBSD make, pick up 228949caa483SSimon J. Gerraty o make.h: extern debug_file 229049caa483SSimon J. Gerraty 229149caa483SSimon J. Gerraty2020-03-18 Simon J Gerraty <sjg@beast.crufty.net> 229249caa483SSimon J. Gerraty 229349caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200318 229449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 229549caa483SSimon J. Gerraty o meta.c: meta_oodate, check for corrupted meta file 229649caa483SSimon J. Gerraty earlier and more often. 229749caa483SSimon J. Gerraty 229849caa483SSimon J. Gerraty2020-02-20 Simon J Gerraty <sjg@beast.crufty.net> 229949caa483SSimon J. Gerraty 230049caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200220 230149caa483SSimon J. Gerraty 230249caa483SSimon J. Gerraty2020-02-19 Simon J Gerraty <sjg@beast.crufty.net> 230349caa483SSimon J. Gerraty 230449caa483SSimon J. Gerraty * boot-strap: unset MAKEFLAGS 230549caa483SSimon J. Gerraty 230649caa483SSimon J. Gerraty2020-02-12 Simon J Gerraty <sjg@beast.crufty.net> 230749caa483SSimon J. Gerraty 230849caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200212 230949caa483SSimon J. Gerraty * meta.c: meta_compat_parent check for USE_FILEMON 231049caa483SSimon J. Gerraty patch from Soeren Tempel 231149caa483SSimon J. Gerraty 231249caa483SSimon J. Gerraty2020-02-05 Simon J Gerraty <sjg@beast.crufty.net> 231349caa483SSimon J. Gerraty 231449caa483SSimon J. Gerraty * VERSION: 20200205 231549caa483SSimon J. Gerraty Merge with NetBSD make, pick up 231649caa483SSimon J. Gerraty o meta.c: fix compat mode, need to call meta_job_output() 231749caa483SSimon J. Gerraty o job.c: extra fds for meta mode not needed if using filemon_dev 231849caa483SSimon J. Gerraty 231949caa483SSimon J. Gerraty2020-01-22 Simon J Gerraty <sjg@beast.crufty.net> 232049caa483SSimon J. Gerraty 232149caa483SSimon J. Gerraty * VERSION: 20200122 232249caa483SSimon J. Gerraty Merge with NetBSD make, pick up 232349caa483SSimon J. Gerraty o meta.c: avoid passing NULL to filemon_*() when meta_needed() 232449caa483SSimon J. Gerraty returns FALSE. 232549caa483SSimon J. Gerraty 232649caa483SSimon J. Gerraty2020-01-21 Simon J Gerraty <sjg@beast.crufty.net> 232749caa483SSimon J. Gerraty 232849caa483SSimon J. Gerraty * VERSION: 20200121 232949caa483SSimon J. Gerraty Merge with NetBSD make, pick up 233049caa483SSimon J. Gerraty o filemon/filemon_{dev,ktrace}.c: allow selection of 233149caa483SSimon J. Gerraty filemon implementation. filemon_dev.c uses the kernel module 233249caa483SSimon J. Gerraty while filemon_ktrace.c leverages the fktrace api available in 233349caa483SSimon J. Gerraty NetBSD. filemon_ktrace.c can hopefully form the basis for 233449caa483SSimon J. Gerraty adding support for other tracing mechanisms such as strace on 233549caa483SSimon J. Gerraty Linux. 233649caa483SSimon J. Gerraty o meta.c: when target is out-of-date per normal make rules 233749caa483SSimon J. Gerraty record value of .OODATE in meta file. 233849caa483SSimon J. Gerraty 233949caa483SSimon J. Gerraty2019-09-26 Simon J Gerraty <sjg@beast.crufty.net> 234049caa483SSimon J. Gerraty 234149caa483SSimon J. Gerraty * VERSION: 20190926 234249caa483SSimon J. Gerraty Merge with NetBSD make, pick up 234349caa483SSimon J. Gerraty o parse.c: don't pass NULL to realpath(3) 234449caa483SSimon J. Gerraty some versions cannot handle it. 234549caa483SSimon J. Gerraty 234649caa483SSimon J. Gerraty2019-04-09 Simon J Gerraty <sjg@beast.crufty.net> 234749caa483SSimon J. Gerraty 234849caa483SSimon J. Gerraty * VERSION: 20190409 234949caa483SSimon J. Gerraty Merge with NetBSD make, pick up 235049caa483SSimon J. Gerraty o parse.c: ParseDoDependency: free paths rather than assert 235149caa483SSimon J. Gerraty 235249caa483SSimon J. Gerraty2018-12-22 Simon J Gerraty <sjg@beast.crufty.net> 235349caa483SSimon J. Gerraty 235449caa483SSimon J. Gerraty * VERSION: 20181222 235549caa483SSimon J. Gerraty 235649caa483SSimon J. Gerraty * configure.in: add --without-makefile to avoid generating 235749caa483SSimon J. Gerraty makefile and make-bootstrap.sh 235849caa483SSimon J. Gerraty 235949caa483SSimon J. Gerraty * include Makefile.inc if it exists 236049caa483SSimon J. Gerraty 236149caa483SSimon J. Gerraty * Use Makefile and Makefile.config.in in unit-tests 236249caa483SSimon J. Gerraty so we can use just: make obj && make && make test 236349caa483SSimon J. Gerraty when bmake is already available. 236449caa483SSimon J. Gerraty We add --without-makefile to CONFIGURE_ARGS in this case. 236549caa483SSimon J. Gerraty 236649caa483SSimon J. Gerraty * tweak bsd.after-import.mk (captures Makefile.config etc 236749caa483SSimon J. Gerraty after import to FreeBSD for example) to cope with all the above. 236849caa483SSimon J. Gerraty 2369dfd669abSSimon J. Gerraty2018-12-21 Simon J Gerraty <sjg@beast.crufty.net> 2370dfd669abSSimon J. Gerraty 2371dfd669abSSimon J. Gerraty * VERSION: 20181221 2372dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2373dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .PARSEDIR 2374dfd669abSSimon J. Gerraty and apply if relative, and then use .PARSEFILE 2375dfd669abSSimon J. Gerraty for consistent result. 2376dfd669abSSimon J. Gerraty 2377dfd669abSSimon J. Gerraty2018-12-20 Simon J Gerraty <sjg@beast.crufty.net> 2378dfd669abSSimon J. Gerraty 2379dfd669abSSimon J. Gerraty * VERSION: 20181220 2380dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2381dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR 2382dfd669abSSimon J. Gerraty is relative 2383dfd669abSSimon J. Gerraty o var.c: avoid SEGFAULT in .unexport-env 2384dfd669abSSimon J. Gerraty when MAKELEVEL is not set 2385dfd669abSSimon J. Gerraty 2386dfd669abSSimon J. Gerraty2018-12-16 Simon J Gerraty <sjg@beast.crufty.net> 2387dfd669abSSimon J. Gerraty 2388dfd669abSSimon J. Gerraty * VERSION: 20181216 2389dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2390dfd669abSSimon J. Gerraty o fix for unit-tests/varquote.mk on Debian 2391dfd669abSSimon J. Gerraty 23922eae894cSSimon J. Gerraty2018-09-21 Simon J. Gerraty <sjg@bad.crufty.net> 23932eae894cSSimon J. Gerraty 23942eae894cSSimon J. Gerraty * VERSION: 20180919 23952eae894cSSimon J. Gerraty Merge with NetBSD make, pick up 23962eae894cSSimon J. Gerraty o var.c: add :q 23972eae894cSSimon J. Gerraty o dir.c: cleanup caching of stats 23982eae894cSSimon J. Gerraty 23992eae894cSSimon J. Gerraty2018-09-21 Simon J Gerraty <sjg@beast.crufty.net> 24002eae894cSSimon J. Gerraty 24012eae894cSSimon J. Gerraty * Makefile.config.in: use += where it makes sense. 24022eae894cSSimon J. Gerraty 2403494f7191SSimon J. Gerraty2018-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2404494f7191SSimon J. Gerraty 2405494f7191SSimon J. Gerraty * VERSION: 20180512 2406494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2407494f7191SSimon J. Gerraty o job.c: skip polling job token pipe 2408494f7191SSimon J. Gerraty 2409494f7191SSimon J. Gerraty2018-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 2410494f7191SSimon J. Gerraty 2411494f7191SSimon J. Gerraty * VERSION: 20180405 2412494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2413494f7191SSimon J. Gerraty o parse.c: be more cautious about detecting depenency line 2414494f7191SSimon J. Gerraty rather than sysV style include. 2415494f7191SSimon J. Gerraty 241650d2e745SSimon J. Gerraty2018-02-22 Simon J. Gerraty <sjg@bad.crufty.net> 241750d2e745SSimon J. Gerraty 241850d2e745SSimon J. Gerraty * VERSION: 20180222 241950d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 242050d2e745SSimon J. Gerraty o parse.c: avoid calling sysconf for every call to loadfile 242150d2e745SSimon J. Gerraty 242250d2e745SSimon J. Gerraty2018-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 242350d2e745SSimon J. Gerraty 242450d2e745SSimon J. Gerraty * VERSION: 20180218 242550d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 242650d2e745SSimon J. Gerraty o var.c: Var_Set handle NULL value anytime. 242750d2e745SSimon J. Gerraty 242850d2e745SSimon J. Gerraty2018-02-12 Simon J. Gerraty <sjg@bad.crufty.net> 242950d2e745SSimon J. Gerraty 243050d2e745SSimon J. Gerraty * VERSION: 20180212 243150d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 243250d2e745SSimon J. Gerraty o parse.c: do not treat .info as warning with -W 243350d2e745SSimon J. Gerraty 243450d2e745SSimon J. Gerraty2017-12-07 Simon J. Gerraty <sjg@bad.crufty.net> 243550d2e745SSimon J. Gerraty 243650d2e745SSimon J. Gerraty * VERSION: 20171207 243750d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 243850d2e745SSimon J. Gerraty o var.c: Var_Append use Var_Set if var not previously set 243950d2e745SSimon J. Gerraty so that VAR_CMD is handled correctly. 244050d2e745SSimon J. Gerraty Add a suitable unit-test. 244150d2e745SSimon J. Gerraty 244250d2e745SSimon J. Gerraty2017-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 244350d2e745SSimon J. Gerraty 244450d2e745SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20171126 244550d2e745SSimon J. Gerraty 244650d2e745SSimon J. Gerraty * aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__ 244750d2e745SSimon J. Gerraty since AC_TRY_COMPILE puts input inside main() 244850d2e745SSimon J. Gerraty which upsets modern compilers. 244950d2e745SSimon J. Gerraty 245050d2e745SSimon J. Gerraty2017-11-18 Simon J. Gerraty <sjg@bad.crufty.net> 245150d2e745SSimon J. Gerraty 245250d2e745SSimon J. Gerraty * VERSION: 20171118 245350d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 245450d2e745SSimon J. Gerraty o var.c: do not append to variable set on command line 245550d2e745SSimon J. Gerraty add unit-test to catch this. 245650d2e745SSimon J. Gerraty 2457e22fef7dSSimon J. Gerraty2017-10-28 Simon J. Gerraty <sjg@bad.crufty.net> 2458e22fef7dSSimon J. Gerraty 2459e22fef7dSSimon J. Gerraty * VERSION: 20171028 2460e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2461e22fef7dSSimon J. Gerraty o main.c: ignore empty MAKEOBJDIR 2462e22fef7dSSimon J. Gerraty 2463e22fef7dSSimon J. Gerraty * Makefile.config.in: 2464e22fef7dSSimon J. Gerraty make @prefix@ @machine*@ and @default_sys_path@ defaults. 2465e22fef7dSSimon J. Gerraty 2466e22fef7dSSimon J. Gerraty2017-10-05 Simon J. Gerraty <sjg@bad.crufty.net> 2467e22fef7dSSimon J. Gerraty 2468e22fef7dSSimon J. Gerraty * VERSION: 20171005 2469e22fef7dSSimon J. Gerraty 2470e22fef7dSSimon J. Gerraty * unit-tests/dotwait.mk: redirect stderr through pipe for more 2471e22fef7dSSimon J. Gerraty consistent result on some platforms. 2472e22fef7dSSimon J. Gerraty 2473e22fef7dSSimon J. Gerraty2017-08-13 Simon J. Gerraty <sjg@bad.crufty.net> 2474e22fef7dSSimon J. Gerraty 2475e22fef7dSSimon J. Gerraty * machine.sh: entry for AIX 2476e22fef7dSSimon J. Gerraty 2477e22fef7dSSimon J. Gerraty2017-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 2478e22fef7dSSimon J. Gerraty 2479e22fef7dSSimon J. Gerraty * VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION 2480e22fef7dSSimon J. Gerraty to a file that can be included by configure as well as make. 2481e22fef7dSSimon J. Gerraty This allows configure to set set _MAKE_VERSION in make-bootstrap.sh 2482e22fef7dSSimon J. Gerraty 2483e22fef7dSSimon J. Gerraty2017-08-10 Simon J. Gerraty <sjg@bad.crufty.net> 2484e22fef7dSSimon J. Gerraty 2485e22fef7dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170810 2486e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2487e22fef7dSSimon J. Gerraty o meta.c: if target is in subdir we only need subdir name in 2488e22fef7dSSimon J. Gerraty meta_name. 2489e22fef7dSSimon J. Gerraty 2490c7019bf7SSimon J. Gerraty2017-07-20 Simon J. Gerraty <sjg@bad.crufty.net> 2491c7019bf7SSimon J. Gerraty 2492c7019bf7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170720 2493c7019bf7SSimon J. Gerraty Merge with NetBSD make, pick up 2494c7019bf7SSimon J. Gerraty o compat.c: pass SIGINT etc onto child and wait for it to exit 2495c7019bf7SSimon J. Gerraty before we self-terminate. 2496c7019bf7SSimon J. Gerraty 24978695518cSSimon J. Gerraty2017-07-11 Simon J. Gerraty <sjg@bad.crufty.net> 24988695518cSSimon J. Gerraty 24998695518cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170711 25008695518cSSimon J. Gerraty forgot to update after merge on 20170708 ;-) 25018695518cSSimon J. Gerraty o main.c: refactor to reduce size of main function. 25028695518cSSimon J. Gerraty add -v option to always fully expand values. 25038695518cSSimon J. Gerraty o meta.c: ensure command output in meta file has ending newline 25048695518cSSimon J. Gerraty even when filemon not being used. 25058695518cSSimon J. Gerraty When matching ${.MAKE.META.IGNORE_PATTERNS} do not use 25068695518cSSimon J. Gerraty pathname via ':L' since any ':' in pathname breaks that. 25078695518cSSimon J. Gerraty Instead set a '${.p.}' to pathname in the target context and 25088695518cSSimon J. Gerraty use that. 25098695518cSSimon J. Gerraty 2510cac6fd11SSimon J. Gerraty2017-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 2511cac6fd11SSimon J. Gerraty 2512cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170510 2513cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2514cac6fd11SSimon J. Gerraty o main.c: Main_SetObjdir: ensure buf2 is in scope 2515cac6fd11SSimon J. Gerraty 2516cac6fd11SSimon J. Gerraty2017-05-08 Simon J. Gerraty <sjg@bad.crufty.net> 2517cac6fd11SSimon J. Gerraty 2518cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170505 2519cac6fd11SSimon J. Gerraty see mk/ChangeLog 2520cac6fd11SSimon J. Gerraty 2521cac6fd11SSimon J. Gerraty2017-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 2522cac6fd11SSimon J. Gerraty 2523cac6fd11SSimon J. Gerraty * parse.c: not everyone has stdint.h 2524cac6fd11SSimon J. Gerraty 2525cac6fd11SSimon J. Gerraty2017-05-01 Simon J. Gerraty <sjg@bad.crufty.net> 2526cac6fd11SSimon J. Gerraty 2527cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170501 2528cac6fd11SSimon J. Gerraty see mk/ChangeLog 2529cac6fd11SSimon J. Gerraty 2530cac6fd11SSimon J. Gerraty2017-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 2531cac6fd11SSimon J. Gerraty 2532cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170421 2533cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2534cac6fd11SSimon J. Gerraty o str.c: Str_Match: fix closure tests for [^] and add unit-test. 2535cac6fd11SSimon J. Gerraty 2536e1cee40dSSimon J. Gerraty2017-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 2537e1cee40dSSimon J. Gerraty 2538e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170420 2539e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2540e1cee40dSSimon J. Gerraty o main.c: only use -C arg "as is" if it contains no 2541e1cee40dSSimon J. Gerraty relative component. 2542e1cee40dSSimon J. Gerraty 2543e1cee40dSSimon J. Gerraty2017-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2544e1cee40dSSimon J. Gerraty 2545e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170418 2546e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2547e1cee40dSSimon J. Gerraty o main.c: fix Main_SetObjdir() for relative paths (eg obj). 2548e1cee40dSSimon J. Gerraty 2549e1cee40dSSimon J. Gerraty2017-04-17 Simon J. Gerraty <sjg@bad.crufty.net> 2550e1cee40dSSimon J. Gerraty 2551e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170417 2552e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2553e1cee40dSSimon J. Gerraty o fixes a number of coverity complaints 2554e1cee40dSSimon J. Gerraty - check return value of fseek, fcntl 2555e1cee40dSSimon J. Gerraty - plug memory leak in Dir_FindFile, Var_LoopExpand, 2556e1cee40dSSimon J. Gerraty JobPrintCommand, ParseTraditionalInclude 2557e1cee40dSSimon J. Gerraty - use bmake_malloc() where NULL is not tollerated 2558e1cee40dSSimon J. Gerraty - use MAKE_ATTR_UNUSED rather that kludges like 2559e1cee40dSSimon J. Gerraty return(unused ? 0 : 0) 2560e1cee40dSSimon J. Gerraty - use purge_cached_realpaths() rather than abuse cached_realpath() 2561e1cee40dSSimon J. Gerraty 2562b46b9039SSimon J. Gerraty2017-04-13 Simon J. Gerraty <sjg@bad.crufty.net> 2563b46b9039SSimon J. Gerraty 2564b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170413 2565b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2566b46b9039SSimon J. Gerraty o main.c: when setting .OBJDIR ignore '$' in paths. 2567b46b9039SSimon J. Gerraty 2568b46b9039SSimon J. Gerraty * job.c: use MALLOC_OPTIONS to set malloc_options. 2569b46b9039SSimon J. Gerraty 2570b46b9039SSimon J. Gerraty2017-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2571b46b9039SSimon J. Gerraty 2572b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170411 2573b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2574b46b9039SSimon J. Gerraty o str.c: Str_Match: allow [^a-z] to behave as expected. 2575b46b9039SSimon J. Gerraty 2576b46b9039SSimon J. Gerraty2017-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2577b46b9039SSimon J. Gerraty 2578b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170326 2579b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2580b46b9039SSimon J. Gerraty o main.c: purge relative paths from realpath cache when .OBJDIR 2581b46b9039SSimon J. Gerraty is changed. 2582b46b9039SSimon J. Gerraty 2583b46b9039SSimon J. Gerraty2017-03-11 Simon J. Gerraty <sjg@bad.crufty.net> 2584b46b9039SSimon J. Gerraty 2585b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170311 2586b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2587b46b9039SSimon J. Gerraty o main.c: only use -C arg "as is" if it starts with '/'. 2588b46b9039SSimon J. Gerraty 25891ce939a7SSimon J. Gerraty2017-03-01 Simon J. Gerraty <sjg@bad.crufty.net> 25901ce939a7SSimon J. Gerraty 25911ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170301 25921ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 2593b46b9039SSimon J. Gerraty o main.c: use -C arg "as is" rather than getcwd() 25941ce939a7SSimon J. Gerraty if they identify the same directory. 25951ce939a7SSimon J. Gerraty o parse.c: ensure loadfile buffer is \n terminated in non-mmap case 25961ce939a7SSimon J. Gerraty 25971ce939a7SSimon J. Gerraty2017-02-01 Simon J. Gerraty <sjg@bad.crufty.net> 25981ce939a7SSimon J. Gerraty 25991ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170201 26001ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 26011ce939a7SSimon J. Gerraty o var.c: allow :_=var and avoid use of special context. 26021ce939a7SSimon J. Gerraty 26031ce939a7SSimon J. Gerraty2017-01-30 Simon J. Gerraty <sjg@bad.crufty.net> 26041ce939a7SSimon J. Gerraty 26051ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170130 26061ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 26071ce939a7SSimon J. Gerraty o var.c: add :range and :_ 26081ce939a7SSimon J. Gerraty o main.c: partially initialize Dir_* before MainParseArgs() 26091ce939a7SSimon J. Gerraty can be called. 26101ce939a7SSimon J. Gerraty If -V, skip Main_ExportMAKEFLAGS() 26111ce939a7SSimon J. Gerraty 26121ce939a7SSimon J. Gerraty2017-01-14 Simon J. Gerraty <sjg@bad.crufty.net> 26131ce939a7SSimon J. Gerraty 26141ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170114 26151ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 26161ce939a7SSimon J. Gerraty o var.c: allow specifying the utc value used by :{gm,local}time 26171ce939a7SSimon J. Gerraty 261845447996SSimon J. Gerraty2016-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 261945447996SSimon J. Gerraty 262045447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161212 262145447996SSimon J. Gerraty Merge with NetBSD make, pick up 262245447996SSimon J. Gerraty o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too. 262345447996SSimon J. Gerraty 262445447996SSimon J. Gerraty2016-12-09 Simon J. Gerraty <sjg@bad.crufty.net> 262545447996SSimon J. Gerraty 262645447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161209 262745447996SSimon J. Gerraty Merge with NetBSD make, pick up 262845447996SSimon J. Gerraty o main.c: cleanup setting of .OBJDIR 262945447996SSimon J. Gerraty o parse.c: avoid coredump from (var)=val 263045447996SSimon J. Gerraty 263145447996SSimon J. Gerraty2016-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 263245447996SSimon J. Gerraty 263345447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161126 263445447996SSimon J. Gerraty Merge with NetBSD make, pick up 263545447996SSimon J. Gerraty o make.c: Make_OODate: report src node name if path not set 263645447996SSimon J. Gerraty 263745447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 263845447996SSimon J. Gerraty 263945447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160926 264045447996SSimon J. Gerraty Merge with NetBSD make, pick up 264145447996SSimon J. Gerraty o support for .DELETE_ON_ERROR: (remove targets that fail) 264245447996SSimon J. Gerraty 264345447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 264445447996SSimon J. Gerraty 264545447996SSimon J. Gerraty * Makefile MAN: tweak .Dt to match ${PROG} 264645447996SSimon J. Gerraty 264795e3ed2cSSimon J. Gerraty2016-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 264895e3ed2cSSimon J. Gerraty 264995e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160818 265095e3ed2cSSimon J. Gerraty its a neater number; pick up whitespace fixes to man page. 265195e3ed2cSSimon J. Gerraty 265295e3ed2cSSimon J. Gerraty2016-08-17 Simon J. Gerraty <sjg@bad.crufty.net> 265395e3ed2cSSimon J. Gerraty 265495e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160817 265595e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 265695e3ed2cSSimon J. Gerraty o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore() 265795e3ed2cSSimon J. Gerraty so we can call it before adding entries to missingFiles. 265895e3ed2cSSimon J. Gerraty Thus we do not track files we have been told to ignore. 265995e3ed2cSSimon J. Gerraty 266095e3ed2cSSimon J. Gerraty2016-08-15 Simon J. Gerraty <sjg@bad.crufty.net> 266195e3ed2cSSimon J. Gerraty 266295e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160815 266395e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 266495e3ed2cSSimon J. Gerraty o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to 266595e3ed2cSSimon J. Gerraty pathnames, and skip if the expansion is empty. 266695e3ed2cSSimon J. Gerraty Useful for dirdeps.mk when checking DIRDEPS_CACHE. 266795e3ed2cSSimon J. Gerraty 266895e3ed2cSSimon J. Gerraty2016-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 266995e3ed2cSSimon J. Gerraty 267095e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160812 267195e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 267295e3ed2cSSimon J. Gerraty o meta.c: remove all missingFiles entries that match a deleted 267395e3ed2cSSimon J. Gerraty dir. 267495e3ed2cSSimon J. Gerraty o main.c: set .ERROR_CMD if possible. 267595e3ed2cSSimon J. Gerraty 267639ac7ef4SSimon J. Gerraty2016-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 267739ac7ef4SSimon J. Gerraty 267839ac7ef4SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160606 267939ac7ef4SSimon J. Gerraty Merge with NetBSD make, pick up 268039ac7ef4SSimon J. Gerraty o dir.c: extend mtimes cache to others via cached_stat() 268139ac7ef4SSimon J. Gerraty 2682b778b302SSimon J. Gerraty2016-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 2683b778b302SSimon J. Gerraty 2684b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160604 2685b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2686b778b302SSimon J. Gerraty o meta.c: missing filemon data is only relevant if we read a 2687b778b302SSimon J. Gerraty meta file. 2688b778b302SSimon J. Gerraty Also do not return oodate for a missing metafile if gn->path 2689b778b302SSimon J. Gerraty points to .CURDIR 2690b778b302SSimon J. Gerraty 2691b778b302SSimon J. Gerraty2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 2692b778b302SSimon J. Gerraty 2693b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160602 2694b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2695b778b302SSimon J. Gerraty o cached_realpath(): avoid hitting filesystem more than necessary. 2696b778b302SSimon J. Gerraty o meta.c: refactor need_meta decision, add knobs for 2697b778b302SSimon J. Gerraty missing meta file and filemon data wrt out-of-datedness. 2698b778b302SSimon J. Gerraty 2699b778b302SSimon J. Gerraty2016-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 2700b778b302SSimon J. Gerraty 2701b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160528 2702b778b302SSimon J. Gerraty 2703b778b302SSimon J. Gerraty * boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION 2704b778b302SSimon J. Gerraty 2705e48f47ddSSimon J. Gerraty2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2706e48f47ddSSimon J. Gerraty 2707e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160512 2708e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2709e48f47ddSSimon J. Gerraty o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS 2710e48f47ddSSimon J. Gerraty this is useful for gcov builds. 2711e48f47ddSSimon J. Gerraty o propagate errors from filemon(4). 2712e48f47ddSSimon J. Gerraty 2713e48f47ddSSimon J. Gerraty2016-05-09 Simon J. Gerraty <sjg@bad.crufty.net> 2714e48f47ddSSimon J. Gerraty 2715e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160509 2716e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2717e48f47ddSSimon J. Gerraty o remove use of non-standard types u_int etc. 2718e48f47ddSSimon J. Gerraty o meta.c: apply realpath() before matching against metaIgnorePaths 2719e48f47ddSSimon J. Gerraty 2720e48f47ddSSimon J. Gerraty2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net> 2721e48f47ddSSimon J. Gerraty 2722e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160404 2723e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2724e48f47ddSSimon J. Gerraty o allow makefile to set .MAKE.JOBS 2725e48f47ddSSimon J. Gerraty 2726e48f47ddSSimon J. Gerraty * Makefile (PROG_NAME): use ${_MAKE_VERSION} 2727e48f47ddSSimon J. Gerraty 27283bebe729SSimon J. Gerraty2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net> 27293bebe729SSimon J. Gerraty 27303bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160315 27313bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 27323bebe729SSimon J. Gerraty o fix handling of archive members 27333bebe729SSimon J. Gerraty 27343bebe729SSimon J. Gerraty2016-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 27353bebe729SSimon J. Gerraty 27363bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): rename variable to avoid interference 27373bebe729SSimon J. Gerraty with checks for ${MAKE_VERSION} 27383bebe729SSimon J. Gerraty 27393bebe729SSimon J. Gerraty2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net> 27403bebe729SSimon J. Gerraty 27413bebe729SSimon J. Gerraty * Makefile (MAKE_VERSION): 20160310 27423bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 27433bebe729SSimon J. Gerraty o meta.c: treat missing Read file same as Write, incase we Delete it. 27443bebe729SSimon J. Gerraty 2745be19d90bSSimon J. Gerraty2016-03-07 Simon J. Gerraty <sjg@bad.crufty.net> 2746be19d90bSSimon J. Gerraty 2747be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160307 2748be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2749be19d90bSSimon J. Gerraty o var.c: fix :ts\nnn to be octal by default. 2750be19d90bSSimon J. Gerraty o meta.c: meta_finish() to cleanup memory. 2751be19d90bSSimon J. Gerraty 2752be19d90bSSimon J. Gerraty2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 2753be19d90bSSimon J. Gerraty 2754be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160226 2755be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2756be19d90bSSimon J. Gerraty o meta.c: allow meta file for makeDepend if makefiles want it. 2757be19d90bSSimon J. Gerraty 2758be19d90bSSimon J. Gerraty2016-02-19 Simon J. Gerraty <sjg@bad.crufty.net> 2759be19d90bSSimon J. Gerraty 2760be19d90bSSimon J. Gerraty * var.c: default .MAKE.SAVE_DOLLARS to FALSE 2761be19d90bSSimon J. Gerraty for backwards compatability. 2762be19d90bSSimon J. Gerraty 2763be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160220 2764be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2765be19d90bSSimon J. Gerraty o var.c: add knob to control handling of '$$' in := 2766be19d90bSSimon J. Gerraty 2767be19d90bSSimon J. Gerraty2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 2768be19d90bSSimon J. Gerraty 2769be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160218 2770be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2771be19d90bSSimon J. Gerraty o var.c: add .export-literal allows us to fix sys.clean-env.mk 2772be19d90bSSimon J. Gerraty post the changes to Var_Subst. 2773be19d90bSSimon J. Gerraty Var_Subst now takes flags, and does not consume '$$' in := 2774be19d90bSSimon J. Gerraty 2775be19d90bSSimon J. Gerraty2016-02-17 Simon J. Gerraty <sjg@bad.crufty.net> 2776be19d90bSSimon J. Gerraty 2777be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160217 2778be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2779be19d90bSSimon J. Gerraty o var.c: preserve '$$' in := 2780be19d90bSSimon J. Gerraty o parse.c: add .dinclude for handling included 2781be19d90bSSimon J. Gerraty makefile like .depend 2782be19d90bSSimon J. Gerraty 27836e050540SSimon J. Gerraty2015-12-20 Simon J. Gerraty <sjg@bad.crufty.net> 27846e050540SSimon J. Gerraty 27856e050540SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151220 27866e050540SSimon J. Gerraty Merge with NetBSD make, pick up 27876e050540SSimon J. Gerraty o suff.c: re-initialize suffNull when clearing suffixes. 27886e050540SSimon J. Gerraty 2789ac3446e9SSimon J. Gerraty2015-12-01 Simon J. Gerraty <sjg@bad.crufty.net> 2790ac3446e9SSimon J. Gerraty 2791ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151201 2792ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2793ac3446e9SSimon J. Gerraty o cond.c: CondCvtArg: avoid access beyond end of empty buffer. 2794ac3446e9SSimon J. Gerraty o meta.c: meta_oodate: use lstat(2) for checking link target 2795ac3446e9SSimon J. Gerraty in case it is a symlink. 2796ac3446e9SSimon J. Gerraty o var.c: avoid calling brk_string and Var_Export1 with empty 2797ac3446e9SSimon J. Gerraty strings. 2798ac3446e9SSimon J. Gerraty 2799ac3446e9SSimon J. Gerraty2015-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 2800ac3446e9SSimon J. Gerraty 2801ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151126 2802ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2803ac3446e9SSimon J. Gerraty o parse.c: ParseTrackInput don't access beyond 2804ac3446e9SSimon J. Gerraty end of old value. 2805ac3446e9SSimon J. Gerraty 2806ac3446e9SSimon J. Gerraty2015-10-22 Simon J. Gerraty <sjg@bad.crufty.net> 2807ac3446e9SSimon J. Gerraty 2808ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151022 2809ac3446e9SSimon J. Gerraty 2810ac3446e9SSimon J. Gerraty * Add support for BSD/OS which lacks inttypes.h 2811ac3446e9SSimon J. Gerraty and really needs sys/param.h for sys/sysctl.h 2812ac3446e9SSimon J. Gerraty also 'type' is not a shell builtin. 2813ac3446e9SSimon J. Gerraty 2814ac3446e9SSimon J. Gerraty * var.c: eliminate uint32_t and need for inttypes.h 2815ac3446e9SSimon J. Gerraty 2816ac3446e9SSimon J. Gerraty * main.c: PrintOnError flush stdout before run .ERROR 2817ac3446e9SSimon J. Gerraty 2818ac3446e9SSimon J. Gerraty * parse.c: cope with _SC_PAGESIZE not being defined. 2819ac3446e9SSimon J. Gerraty 2820ac3446e9SSimon J. Gerraty 28214c620fe5SSimon J. Gerraty2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net> 28224c620fe5SSimon J. Gerraty 28234c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151020 28244c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 28254c620fe5SSimon J. Gerraty o var.c: fix uninitialized var 28264c620fe5SSimon J. Gerraty 28274c620fe5SSimon J. Gerraty2015-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 28284c620fe5SSimon J. Gerraty 28294c620fe5SSimon J. Gerraty * var.c: the conditional expressions used with ':?' can be 28304c620fe5SSimon J. Gerraty expensive, if already discarding do not evaluate or expand 28314c620fe5SSimon J. Gerraty anything. 28324c620fe5SSimon J. Gerraty 28334c620fe5SSimon J. Gerraty2015-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 28344c620fe5SSimon J. Gerraty 28354c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151010 28364c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 28374c620fe5SSimon J. Gerraty o Add Boolean wantit flag to Var_Subst and Var_Parse 28384c620fe5SSimon J. Gerraty when FALSE we know we are discarding the result and can 28394c620fe5SSimon J. Gerraty skip operations like Cmd_Exec. 28404c620fe5SSimon J. Gerraty 28414c620fe5SSimon J. Gerraty2015-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 28424c620fe5SSimon J. Gerraty 28434c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151009 28444c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 28454c620fe5SSimon J. Gerraty o var.c: don't check for NULL before free() 28464c620fe5SSimon J. Gerraty o meta.c: meta_oodate, do not hard code ignore of makeDependfile 28474c620fe5SSimon J. Gerraty 28484c620fe5SSimon J. Gerraty2015-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 28494c620fe5SSimon J. Gerraty 28504c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150910 28514c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 28524c620fe5SSimon J. Gerraty o main.c: with -w print Enter/Leaving messages for objdir too 28534c620fe5SSimon J. Gerraty if necessary. 28544c620fe5SSimon J. Gerraty o centralize shell metachar handling 28554c620fe5SSimon J. Gerraty 28564c620fe5SSimon J. Gerraty * FILES: add metachar.[ch] 28574c620fe5SSimon J. Gerraty 2858128a4105SSimon J. Gerraty2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 2859128a4105SSimon J. Gerraty 2860128a4105SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150606 2861128a4105SSimon J. Gerraty Merge with NetBSD make, pick up 2862128a4105SSimon J. Gerraty o make.1: document .OBJDIR target 2863128a4105SSimon J. Gerraty 286428a6bc81SSimon J. Gerraty2015-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 286528a6bc81SSimon J. Gerraty 286628a6bc81SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150505 286728a6bc81SSimon J. Gerraty Merge with NetBSD make, pick up 286828a6bc81SSimon J. Gerraty o cond.c: be strict about lhs of comparison when evaluating .if 286928a6bc81SSimon J. Gerraty but less so when called from variable expansion. 287028a6bc81SSimon J. Gerraty o unit-tests/cond2.mk: test various error conditions 287128a6bc81SSimon J. Gerraty 287228a6bc81SSimon J. Gerraty2015-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 287328a6bc81SSimon J. Gerraty 287428a6bc81SSimon J. Gerraty * machine.sh (MACHINE): Add Bitrig 287528a6bc81SSimon J. Gerraty patch from joerg@netbsd.org 287628a6bc81SSimon J. Gerraty 2877db29cad8SSimon J. Gerraty2015-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2878db29cad8SSimon J. Gerraty 2879db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150418 2880db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2881db29cad8SSimon J. Gerraty o job.c: use memmove() rather than memcpy() 2882db29cad8SSimon J. Gerraty 2883db29cad8SSimon J. Gerraty * unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL 2884db29cad8SSimon J. Gerraty case, so skip it. 2885db29cad8SSimon J. Gerraty 2886db29cad8SSimon J. Gerraty2015-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2887db29cad8SSimon J. Gerraty 2888db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150411 2889db29cad8SSimon J. Gerraty bump version - only mk/ changes. 2890db29cad8SSimon J. Gerraty 2891db29cad8SSimon J. Gerraty2015-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 2892db29cad8SSimon J. Gerraty 2893db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150410 2894db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2895db29cad8SSimon J. Gerraty o document different handling of '-' in jobs mode vs compat 2896db29cad8SSimon J. Gerraty o fix jobs mode so that '-' only applies to whole job 2897db29cad8SSimon J. Gerraty when shell lacks hasErrCtl 2898db29cad8SSimon J. Gerraty o meta.c: use separate vars to track lcwd and latestdir (read) 2899db29cad8SSimon J. Gerraty per process 2900db29cad8SSimon J. Gerraty 2901db29cad8SSimon J. Gerraty2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 2902db29cad8SSimon J. Gerraty 2903db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150401 2904db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2905db29cad8SSimon J. Gerraty o meta.c: close meta file in child 2906db29cad8SSimon J. Gerraty 2907db29cad8SSimon J. Gerraty * Makefile: use BINDIR.bmake if set. 2908db29cad8SSimon J. Gerraty Same for MANDIR and SHAREDIR 2909db29cad8SSimon J. Gerraty Handy for testing release candidates 2910db29cad8SSimon J. Gerraty in various environments. 2911db29cad8SSimon J. Gerraty 2912db29cad8SSimon J. Gerraty2015-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2913db29cad8SSimon J. Gerraty 2914db29cad8SSimon J. Gerraty * move initialization of savederr to block where it is used 2915db29cad8SSimon J. Gerraty to avoid spurious warning from gcc5 2916db29cad8SSimon J. Gerraty 2917db29cad8SSimon J. Gerraty2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 2918db29cad8SSimon J. Gerraty 2919db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141111 2920db29cad8SSimon J. Gerraty just a cooler number 2921db29cad8SSimon J. Gerraty 2922db29cad8SSimon J. Gerraty2014-11-05 Simon J. Gerraty <sjg@bad.crufty.net> 2923db29cad8SSimon J. Gerraty 2924db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141105 2925db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2926db29cad8SSimon J. Gerraty o revert major overhaul of suffix handling 2927db29cad8SSimon J. Gerraty and POSIX compliance - too much breakage 2928db29cad8SSimon J. Gerraty and impossible to make backwards compatible. 2929db29cad8SSimon J. Gerraty o we still have the new unit test structure which is ok. 2930db29cad8SSimon J. Gerraty o meta.c ensure "-- filemon" is at start of line. 2931db29cad8SSimon J. Gerraty 2932db29cad8SSimon J. Gerraty2014-09-17 Simon J. Gerraty <sjg@bad.crufty.net> 2933db29cad8SSimon J. Gerraty 2934db29cad8SSimon J. Gerraty * configure.in: test that result of getconf PATH_MAX is numeric 2935db29cad8SSimon J. Gerraty and discard if not. Apparently needed for Hurd. 2936db29cad8SSimon J. Gerraty 2937db29cad8SSimon J. Gerraty2014-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 2938db29cad8SSimon J. Gerraty 2939db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140830 2940db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2941db29cad8SSimon J. Gerraty o major overhaul of suffix handling 2942db29cad8SSimon J. Gerraty o improved POSIX compliance 2943db29cad8SSimon J. Gerraty o overhauled unit-tests 2944db29cad8SSimon J. Gerraty 29455bcb7424SSimon J. Gerraty2014-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 29465bcb7424SSimon J. Gerraty 29475bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140620 29485bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 2949db29cad8SSimon J. Gerraty o var.c return varNoError rather than var_Error for ::= modifiers. 29505bcb7424SSimon J. Gerraty 29515bcb7424SSimon J. Gerraty2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net> 29525bcb7424SSimon J. Gerraty 29535bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140522 29545bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 29555bcb7424SSimon J. Gerraty o var.c detect some parse errors. 29565bcb7424SSimon J. Gerraty 29575bcb7424SSimon J. Gerraty2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 29585bcb7424SSimon J. Gerraty 29595bcb7424SSimon J. Gerraty * Fix spelling errors - patch from Pedro Giffuni 29605bcb7424SSimon J. Gerraty 29615bcb7424SSimon J. Gerraty2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 29625bcb7424SSimon J. Gerraty 29635bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140214 29645bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 29655bcb7424SSimon J. Gerraty o .INCLUDEFROM* 29665bcb7424SSimon J. Gerraty o use Var_Value to get MAKEOBJDIR[PREFIX] 29675bcb7424SSimon J. Gerraty o reduced realloc'ign in brk_string. 29685bcb7424SSimon J. Gerraty * configure.in: add a check for compiler supporting __func__ 29695bcb7424SSimon J. Gerraty 29700dede8b0SSimon J. Gerraty2014-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 29710dede8b0SSimon J. Gerraty 29720dede8b0SSimon J. Gerraty * boot-strap: ignore mksrc=none 29730dede8b0SSimon J. Gerraty 29740dede8b0SSimon J. Gerraty2014-01-02 Simon J. Gerraty <sjg@bad.crufty.net> 29750dede8b0SSimon J. Gerraty 29760dede8b0SSimon J. Gerraty * Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk 29770dede8b0SSimon J. Gerraty 29780dede8b0SSimon J. Gerraty2014-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 29790dede8b0SSimon J. Gerraty 29800dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140101 29810dede8b0SSimon J. Gerraty * configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024) 29820dede8b0SSimon J. Gerraty * Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max 29830dede8b0SSimon J. Gerraty * make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for 29840dede8b0SSimon J. Gerraty Hurd) 29850dede8b0SSimon J. Gerraty * configure.in: Add AC_PREREQ and check for 29860dede8b0SSimon J. Gerraty sysctl; patch from Andrew Shadura andrewsh at debian.org 29870dede8b0SSimon J. Gerraty 29880dede8b0SSimon J. Gerraty2013-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 29890dede8b0SSimon J. Gerraty 29900dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131010 29910dede8b0SSimon J. Gerraty * lose the const from arg to systcl to avoid problems on older BSDs. 29920dede8b0SSimon J. Gerraty 29930dede8b0SSimon J. Gerraty2013-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 29940dede8b0SSimon J. Gerraty 29950dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131001 29960dede8b0SSimon J. Gerraty Merge with NetBSD make, pick up 29970dede8b0SSimon J. Gerraty o main.c: for NATIVE build sysctl to get MACHINE_ARCH from 29980dede8b0SSimon J. Gerraty hw.machine_arch if necessary. 29990dede8b0SSimon J. Gerraty o meta.c: meta_oodate - need to look at src of Link and target 30000dede8b0SSimon J. Gerraty of Move as well. 30010dede8b0SSimon J. Gerraty * main.c: check that CTL_HW and HW_MACHINE_ARCH exist. 30020dede8b0SSimon J. Gerraty provide __arraycount() if needed. 30030dede8b0SSimon J. Gerraty 30041bbe5942SSimon J. Gerraty2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net> 30051bbe5942SSimon J. Gerraty 30061bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130904 30071bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 30081bbe5942SSimon J. Gerraty o Add VAR_INTERNAL context, so that internal setting of 30091bbe5942SSimon J. Gerraty MAKEFILE does not override value set by makefiles. 30101bbe5942SSimon J. Gerraty 30111bbe5942SSimon J. Gerraty2013-09-02 Simon J. Gerraty <sjg@bad.crufty.net> 30121bbe5942SSimon J. Gerraty 30131bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130902 30141bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 30151bbe5942SSimon J. Gerraty o CompatRunCommand: only apply shellErrFlag when errCheck is true 30161bbe5942SSimon J. Gerraty 30171bbe5942SSimon J. Gerraty2013-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 30181bbe5942SSimon J. Gerraty 30191bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130828 30201bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 30211bbe5942SSimon J. Gerraty o Fix VAR :sh = syntax from Will Andrews at freebsd.org 30221bbe5942SSimon J. Gerraty o Call Job_SetPrefix() from Job_Init() so makefiles have 30231bbe5942SSimon J. Gerraty opportunity to set .MAKE.JOB.PREFIX 30241bbe5942SSimon J. Gerraty 302551ee2c1cSSimon J. Gerraty2013-07-30 Simon J. Gerraty <sjg@bad.crufty.net> 302651ee2c1cSSimon J. Gerraty 302751ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130730 302851ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 302951ee2c1cSSimon J. Gerraty o Allow suppression of --- job -- tokens by setting 303051ee2c1cSSimon J. Gerraty .MAKE.JOB.PREFIX empty. 303151ee2c1cSSimon J. Gerraty 303251ee2c1cSSimon J. Gerraty2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net> 303351ee2c1cSSimon J. Gerraty 303451ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130716 303551ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 30365bcb7424SSimon J. Gerraty o number of gmake compatibility tweaks 303751ee2c1cSSimon J. Gerraty -w for gmake style entering/leaving messages 303851ee2c1cSSimon J. Gerraty if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc. 303951ee2c1cSSimon J. Gerraty handle MAKEFLAGS containing only letters. 304051ee2c1cSSimon J. Gerraty o when overriding a GLOBAL variable on the command line, 304151ee2c1cSSimon J. Gerraty delete it from GLOBAL context so -V doesn't show the wrong 304251ee2c1cSSimon J. Gerraty value. 304351ee2c1cSSimon J. Gerraty 304451ee2c1cSSimon J. Gerraty2013-07-06 Simon J. Gerraty <sjg@bad.crufty.net> 304551ee2c1cSSimon J. Gerraty 304651ee2c1cSSimon J. Gerraty * configure.in: We don't need MAKE_LEVEL_SAFE anymore. 304751ee2c1cSSimon J. Gerraty 304851ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130706 304951ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 305051ee2c1cSSimon J. Gerraty o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is 305151ee2c1cSSimon J. Gerraty true so that CompatRunCommand() can use it, to ensure 305251ee2c1cSSimon J. Gerraty consistent behavior with jobs mode. 305351ee2c1cSSimon J. Gerraty o use MAKE_LEVEL_ENV to define the variable to propagate 305451ee2c1cSSimon J. Gerraty .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake). 305551ee2c1cSSimon J. Gerraty o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of 305651ee2c1cSSimon J. Gerraty paths to ignore. 305751ee2c1cSSimon J. Gerraty 305874d2e02bSSimon J. Gerraty2013-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 305974d2e02bSSimon J. Gerraty 306074d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130604 306174d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 306274d2e02bSSimon J. Gerraty o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's 306374d2e02bSSimon J. Gerraty to avoid leaking descriptors. 306474d2e02bSSimon J. Gerraty 306574d2e02bSSimon J. Gerraty2013-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 306674d2e02bSSimon J. Gerraty 306774d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130528 306874d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 306974d2e02bSSimon J. Gerraty o var.c: cleanup some left-overs in VarHash() 307074d2e02bSSimon J. Gerraty 307152d86256SSimon J. Gerraty2013-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 307252d86256SSimon J. Gerraty 307352d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130520 307452d86256SSimon J. Gerraty generate manifest from component FILES rather than have to 307552d86256SSimon J. Gerraty update FILES when mk/FILES changes. 307652d86256SSimon J. Gerraty 307752d86256SSimon J. Gerraty2013-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 307852d86256SSimon J. Gerraty 307952d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130518 308052d86256SSimon J. Gerraty Merge with NetBSD make, pick up 308152d86256SSimon J. Gerraty o suff.c: don't skip all processsing for .PHONY targets 308252d86256SSimon J. Gerraty else wildcard srcs do not get expanded. 308352d86256SSimon J. Gerraty o var.c: expand name of variable to delete if necessary. 308452d86256SSimon J. Gerraty 30851748de26SSimon J. Gerraty2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 30861748de26SSimon J. Gerraty 30871748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130330 30881748de26SSimon J. Gerraty Merge with NetBSD make, pick up 30891748de26SSimon J. Gerraty o meta.c: refine the handling of .OODATE in commands. 30901748de26SSimon J. Gerraty Rather than suppress command comparison for the entire script 30911748de26SSimon J. Gerraty as though .NOMETA_CMP had been used, only suppress it for the 30921748de26SSimon J. Gerraty one command line. 30931748de26SSimon J. Gerraty This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 30941748de26SSimon J. Gerraty suppress comparison of a command without otherwise affecting it. 30951748de26SSimon J. Gerraty o make.1: document that 30961748de26SSimon J. Gerraty 30971748de26SSimon J. Gerraty2013-03-22 Simon J. Gerraty <sjg@bad.crufty.net> 30981748de26SSimon J. Gerraty 30991748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130321 31001748de26SSimon J. Gerraty yes, not quite right but its a cooler number. 31011748de26SSimon J. Gerraty Merge with NetBSD make, pick up 31021748de26SSimon J. Gerraty o parse.c: fix ParseGmakeExport to be portable 31031748de26SSimon J. Gerraty and add a unit-test. 31041748de26SSimon J. Gerraty * meta.c: call meta_init() before makefiles are read and if built 31051748de26SSimon J. Gerraty with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON 31061748de26SSimon J. Gerraty this let's makefiles test for support. 31071748de26SSimon J. Gerraty Call meta_mode_init() to process .MAKE.MODE. 31081748de26SSimon J. Gerraty 31091748de26SSimon J. Gerraty2013-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 31101748de26SSimon J. Gerraty 31111748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130305 31121748de26SSimon J. Gerraty Merge with NetBSD make, pick up 31131748de26SSimon J. Gerraty o run .STALE: target when a dependency from .depend is missing. 31141748de26SSimon J. Gerraty o job.c: add Job_RunTarget() for the above and .BEGIN 31151748de26SSimon J. Gerraty 31161748de26SSimon J. Gerraty2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 31171748de26SSimon J. Gerraty 31181748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130303 31191748de26SSimon J. Gerraty Merge with NetBSD make, pick up 31201748de26SSimon J. Gerraty o main.c: set .MAKE.OS to utsname.sysname 31211748de26SSimon J. Gerraty o job.c: more checks for read and poll errors 31221748de26SSimon J. Gerraty o var.c: lose VarChangeCase() saves 4% time 31231748de26SSimon J. Gerraty 31241748de26SSimon J. Gerraty2013-03-02 Simon J. Gerraty <sjg@bad.crufty.net> 31251748de26SSimon J. Gerraty 31261748de26SSimon J. Gerraty * boot-strap: remove MAKEOBJDIRPREFIX from environment since we 31271748de26SSimon J. Gerraty want to use MAKEOBJDIR 31281748de26SSimon J. Gerraty 31293cbdda60SSimon J. Gerraty2013-01-27 Simon J. Gerraty <sjg@bad.crufty.net> 31303cbdda60SSimon J. Gerraty 31313cbdda60SSimon J. Gerraty * Merge with NetBSD make, pick up 31323cbdda60SSimon J. Gerraty o make.1: more info on how shell commands are handled. 31333cbdda60SSimon J. Gerraty o job.c,main.c: detect write errors to job pipes. 31343cbdda60SSimon J. Gerraty 31353cbdda60SSimon J. Gerraty2013-01-25 Simon J. Gerraty <sjg@bad.crufty.net> 31363cbdda60SSimon J. Gerraty 31373cbdda60SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130123 31383cbdda60SSimon J. Gerraty Merge with NetBSD make, pick up 31393cbdda60SSimon J. Gerraty o meta.c: if script uses .OODATE and meta_oodate() decides 31403cbdda60SSimon J. Gerraty rebuild is needed, .OODATE will be empty - set it to .ALLSRC. 31413cbdda60SSimon J. Gerraty o var.c: in debug output indicate which variabale modifiers 31423cbdda60SSimon J. Gerraty apply to. 31433cbdda60SSimon J. Gerraty o remove Check_Cwd logic the makefiles have been fixed. 31443cbdda60SSimon J. Gerraty 31453cbdda60SSimon J. Gerraty2012-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 31463cbdda60SSimon J. Gerraty 31473cbdda60SSimon J. Gerraty * makefile.in: add a simple makefile for folk who insist on 31483cbdda60SSimon J. Gerraty ./configure; make; make install 31493cbdda60SSimon J. Gerraty it just runs boot-strap 31503cbdda60SSimon J. Gerraty * include mk/* to accommodate the above 31513cbdda60SSimon J. Gerraty * boot-strap: re-work to accommodate the above 31523cbdda60SSimon J. Gerraty mksrc defaults to $Mydir/mk 31533cbdda60SSimon J. Gerraty allow op={configure,build,install,clean,all} 31543cbdda60SSimon J. Gerraty add options to facilitate install 31553cbdda60SSimon J. Gerraty * Makefile.config.in: just the bits set by configure 31563cbdda60SSimon J. Gerraty * Makefile: bump version to 20121212 31573cbdda60SSimon J. Gerraty abandon Makefile.in (NetBSD Makefile) 31583cbdda60SSimon J. Gerraty leverage mk/* instead 31593cbdda60SSimon J. Gerraty * configure.in: ensure srcdir is absolute 31603cbdda60SSimon J. Gerraty 316159a02420SSimon J. Gerraty2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 316259a02420SSimon J. Gerraty 316359a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121111 316459a02420SSimon J. Gerraty fix generation of bmake.cat1 316559a02420SSimon J. Gerraty 316659a02420SSimon J. Gerraty2012-11-09 Simon J. Gerraty <sjg@bad.crufty.net> 316759a02420SSimon J. Gerraty 316859a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121109 316959a02420SSimon J. Gerraty Merge with NetBSD make, pick up 317059a02420SSimon J. Gerraty o make.c: MakeBuildChild: return 0 so search continues if a 317159a02420SSimon J. Gerraty .ORDER dependency is detected. 317259a02420SSimon J. Gerraty o unit-tests/order: test the above 317359a02420SSimon J. Gerraty 317459a02420SSimon J. Gerraty2012-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 317559a02420SSimon J. Gerraty 317659a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121102 317759a02420SSimon J. Gerraty Merge with NetBSD make, pick up 317859a02420SSimon J. Gerraty o cond.c: allow cond_state[] to grow. 317959a02420SSimon J. Gerraty In meta mode with a very large tree, we can hit the limit 318059a02420SSimon J. Gerraty while processing dirdeps. 318159a02420SSimon J. Gerraty 318259a02420SSimon J. Gerraty2012-10-25 Simon J. Gerraty <sjg@bad.crufty.net> 318359a02420SSimon J. Gerraty 318459a02420SSimon J. Gerraty * Makefile.in: we need to use ${srcdir} not ${.CURDIR} 318559a02420SSimon J. Gerraty 318693036677SSimon J. Gerraty2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 318793036677SSimon J. Gerraty 318893036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121010 318993036677SSimon J. Gerraty o protect syntax that only bmake parses correctly. 319093036677SSimon J. Gerraty o remove auto setting of FORCE_MACHINE, use configure's 319193036677SSimon J. Gerraty --with-force-machine=whatever if that is desired. 319293036677SSimon J. Gerraty 319393036677SSimon J. Gerraty2012-10-08 Simon J. Gerraty <sjg@bad.crufty.net> 319493036677SSimon J. Gerraty 319593036677SSimon J. Gerraty * Makefile.in: do not lose history from make.1 when generating bmake.1 319693036677SSimon J. Gerraty 319793036677SSimon J. Gerraty2012-10-07 Simon J. Gerraty <sjg@bad.crufty.net> 319893036677SSimon J. Gerraty 319993036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121007 320093036677SSimon J. Gerraty Merge with NetBSD make, pick up 320193036677SSimon J. Gerraty o compat.c: ignore empty commands - same as jobs mode. 320293036677SSimon J. Gerraty o make.1: document meta chars that cause use of shell 320393036677SSimon J. Gerraty 320493036677SSimon J. Gerraty2012-09-11 Simon J. Gerraty <sjg@bad.crufty.net> 320593036677SSimon J. Gerraty 320693036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): bump version to 20120911 320793036677SSimon J. Gerraty * bsd.after-import.mk: include Makefile.inc early and allow it to 320893036677SSimon J. Gerraty override PROG 320993036677SSimon J. Gerraty 32103955d011SMarcel Moolenaar2012-08-31 Simon J. Gerraty <sjg@bad.crufty.net> 32113955d011SMarcel Moolenaar 32123955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120831 32133955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32143955d011SMarcel Moolenaar o cast sizeof() to int for comparison 32153955d011SMarcel Moolenaar o minor make.1 tweak 32163955d011SMarcel Moolenaar 32173955d011SMarcel Moolenaar2012-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 32183955d011SMarcel Moolenaar 32193955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120830 32203955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32213955d011SMarcel Moolenaar o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V 32223955d011SMarcel Moolenaar o debug flag -dV causes -V to show raw value regardless. 32233955d011SMarcel Moolenaar 32243955d011SMarcel Moolenaar2012-07-05 Simon J. Gerraty <sjg@bad.crufty.net> 32253955d011SMarcel Moolenaar 32263955d011SMarcel Moolenaar * bsd.after-import.mk (after-import): ensure unit-tests/Makefile 32273955d011SMarcel Moolenaar gets SRCTOP set. 32283955d011SMarcel Moolenaar 32293955d011SMarcel Moolenaar2012-07-04 Simon J. Gerraty <sjg@bad.crufty.net> 32303955d011SMarcel Moolenaar 32313955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120704 32323955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32333955d011SMarcel Moolenaar o Job_ParseShell should call Shell_Init if it has been 32343955d011SMarcel Moolenaar previously called. 32353955d011SMarcel Moolenaar * Makefile.in: set USE_META based on configure result. 32363955d011SMarcel Moolenaar also .PARSEDIR is safer indicator of bmake. 32373955d011SMarcel Moolenaar 32383955d011SMarcel Moolenaar2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net> 32393955d011SMarcel Moolenaar 32403955d011SMarcel Moolenaar * Makefile.in: bump version to 20120626 32413955d011SMarcel Moolenaar ensure CPPFLAGS is in CFLAGS 32423955d011SMarcel Moolenaar * meta.c: avoid nested externs 32433955d011SMarcel Moolenaar * bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target 32443955d011SMarcel Moolenaar 32453955d011SMarcel Moolenaar2012-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 32463955d011SMarcel Moolenaar 32473955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120620 32483955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32493955d011SMarcel Moolenaar o make_malloc.c: avoid including make_malloc.h again 32503955d011SMarcel Moolenaar 32513955d011SMarcel Moolenaar * Makefile.in: avoid bmake only syntax or protect with 32523955d011SMarcel Moolenaar .if defined(.MAKE.LEVEL) 32533955d011SMarcel Moolenaar * bsd.after-import.mk: replace .-include with .sinclude 32543955d011SMarcel Moolenaar ensure? SRCTOP gets a value 32553955d011SMarcel Moolenaar * configure.in: look for filemon.h in /usr/include/dev/filemon first. 32563955d011SMarcel Moolenaar 32573955d011SMarcel Moolenaar2012-06-19 Simon J. Gerraty <sjg@bad.crufty.net> 32583955d011SMarcel Moolenaar 32593955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120612 32603955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32613955d011SMarcel Moolenaar o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler 32623955d011SMarcel Moolenaar for greater portability. 32633955d011SMarcel Moolenaar o unit-tests/forloop: check that .for works as expected wrt 32643955d011SMarcel Moolenaar number of times and with "quoted strings". 32653955d011SMarcel Moolenaar 32663955d011SMarcel Moolenaar2012-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 32673955d011SMarcel Moolenaar 32683955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120606 32693955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32703955d011SMarcel Moolenaar o compat.c: use kill(2) rather than raise(3). 32713955d011SMarcel Moolenaar * configure.in: look for sys/dev/filemon 32723955d011SMarcel Moolenaar * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile 32733955d011SMarcel Moolenaar and pass BOOTSTRAP_XTRAS to boot-strap. 32743955d011SMarcel Moolenaar 32753955d011SMarcel Moolenaar2012-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 32763955d011SMarcel Moolenaar 32773955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120604 32783955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32793955d011SMarcel Moolenaar o util.c and var.c share same var for tracking if environ 32803955d011SMarcel Moolenaar has been reallocated. 32813955d011SMarcel Moolenaar o util.c provide getenv with setenv. 32823955d011SMarcel Moolenaar * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL 32833955d011SMarcel Moolenaar when the shell actively strips .MAKE.* from the environment. 32843955d011SMarcel Moolenaar We still refer to the variable always as .MAKE.LEVEL 32853955d011SMarcel Moolenaar * util.c fix bug in findenv() was finding prefix of name. 32863955d011SMarcel Moolenaar * compat.c: re-raising SIGINT etc after running .INTERRUPT 32873955d011SMarcel Moolenaar results in more reliable termination of all activity on many 32883955d011SMarcel Moolenaar platforms. 32893955d011SMarcel Moolenaar 32903955d011SMarcel Moolenaar2012-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 32913955d011SMarcel Moolenaar 32923955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120602 32933955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32943955d011SMarcel Moolenaar o for.c: handle quoted items in .for list 32953955d011SMarcel Moolenaar 32963955d011SMarcel Moolenaar2012-05-30 Simon J. Gerraty <sjg@bad.crufty.net> 32973955d011SMarcel Moolenaar 32983955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120530 32993955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33003955d011SMarcel Moolenaar o compat.c: ignore empty command. 33013955d011SMarcel Moolenaar 33023955d011SMarcel Moolenaar2012-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 33033955d011SMarcel Moolenaar 33043955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120524 33053955d011SMarcel Moolenaar * FILES: add bsd.after-import.mk: 33063955d011SMarcel Moolenaar A simple means of integrating bmake into a BSD build system. 33073955d011SMarcel Moolenaar 33083955d011SMarcel Moolenaar2012-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 33093955d011SMarcel Moolenaar 33103955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120520 33113955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33123955d011SMarcel Moolenaar o increased limit for nested conditionals. 33133955d011SMarcel Moolenaar 33143955d011SMarcel Moolenaar2012-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 33153955d011SMarcel Moolenaar 33163955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120518 33173955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33183955d011SMarcel Moolenaar o use _exit(2) in signal hanlder 33193955d011SMarcel Moolenaar o Don't use the [dir] cache when building nodes that might have 33203955d011SMarcel Moolenaar changed since the last exec. 33213955d011SMarcel Moolenaar o Avoid nested extern declaration warnings. 33223955d011SMarcel Moolenaar 33233955d011SMarcel Moolenaar2012-04-27 Simon J. Gerraty <sjg@bad.crufty.net> 33243955d011SMarcel Moolenaar 33253955d011SMarcel Moolenaar * meta.c (fgetLine): avoid %z - not portable. 33263955d011SMarcel Moolenaar * parse.c: Since we moved include of sys/mman.h 33273955d011SMarcel Moolenaar and def's of MAP_COPY etc. we got dups from a merge. 33283955d011SMarcel Moolenaar 33293955d011SMarcel Moolenaar2012-04-24 Simon J. Gerraty <sjg@bad.crufty.net> 33303955d011SMarcel Moolenaar 33313955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 33323955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33333955d011SMarcel Moolenaar o restore duplicate supression in .MAKE.MAKEFILES 33343955d011SMarcel Moolenaar runtime saving can be significant. 33353955d011SMarcel Moolenaar o Var_Subst() uses Buf_DestroyCompact() to reduce memory 33363955d011SMarcel Moolenaar consumption up to 20%. 33373955d011SMarcel Moolenaar 33383955d011SMarcel Moolenaar2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 33393955d011SMarcel Moolenaar 33403955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 33413955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33423955d011SMarcel Moolenaar o remove duplicate supression in .MAKE.MAKEFILES 33433955d011SMarcel Moolenaar o improved dir cache behavior 33443955d011SMarcel Moolenaar o gmake'ish export command 33453955d011SMarcel Moolenaar 33463955d011SMarcel Moolenaar2012-03-25 Simon J. Gerraty <sjg@bad.crufty.net> 33473955d011SMarcel Moolenaar 33483955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120325 33493955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33503955d011SMarcel Moolenaar o fix parsing of :[#] in conditionals. 33513955d011SMarcel Moolenaar 33523955d011SMarcel Moolenaar2012-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 33533955d011SMarcel Moolenaar 33543955d011SMarcel Moolenaar * Makefile.in: replace use of .Nx in bmake.1 with NetBSD 33553955d011SMarcel Moolenaar since some systems cannot cope with .Nx <version> 33563955d011SMarcel Moolenaar 33573955d011SMarcel Moolenaar2011-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 33583955d011SMarcel Moolenaar 33593955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111111 33603955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33613955d011SMarcel Moolenaar o debug output for .PARSEDIR and .PARSEFILE 33623955d011SMarcel Moolenaar 33633955d011SMarcel Moolenaar2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 33643955d011SMarcel Moolenaar 33653955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111010 33663955d011SMarcel Moolenaar 33673955d011SMarcel Moolenaar2011-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 33683955d011SMarcel Moolenaar 33693955d011SMarcel Moolenaar * boot-strap: check for an expected file in the dirs we look for. 33703955d011SMarcel Moolenaar * make-bootstrap.sh: pass on LDSTATIC 33713955d011SMarcel Moolenaar 33723955d011SMarcel Moolenaar2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 33733955d011SMarcel Moolenaar 33743955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111001 33753955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33763955d011SMarcel Moolenaar o ensure .PREFIX is set for .PHONY 33773955d011SMarcel Moolenaar and .TARGET set for .PHONY run via .END 33783955d011SMarcel Moolenaar o __dead used consistently 33793955d011SMarcel Moolenaar 33803955d011SMarcel Moolenaar2011-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 33813955d011SMarcel Moolenaar 33823955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-) 33833955d011SMarcel Moolenaar 33843955d011SMarcel Moolenaar2011-09-05 Simon J. Gerraty <sjg@bad.crufty.net> 33853955d011SMarcel Moolenaar 33863955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110905 33873955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33883955d011SMarcel Moolenaar o meta_oodate: ignore makeDependfile 33893955d011SMarcel Moolenaar 33903955d011SMarcel Moolenaar2011-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 33913955d011SMarcel Moolenaar 33923955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110828 33933955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33943955d011SMarcel Moolenaar o silent=yes in .MAKE.MODE causes meta mode to mark targets 33953955d011SMarcel Moolenaar as SILENT if a .meta file is created 33963955d011SMarcel Moolenaar 33973955d011SMarcel Moolenaar2011-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 33983955d011SMarcel Moolenaar 33993955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110818 34003955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34013955d011SMarcel Moolenaar o in meta mode, if target flagged .META a missing .meta file 34023955d011SMarcel Moolenaar means target is out-of-date 34033955d011SMarcel Moolenaar o fixes for gcc 4.5 warnings 34043955d011SMarcel Moolenaar o simplify job printing code 34053955d011SMarcel Moolenaar 34063955d011SMarcel Moolenaar2011-08-09 Simon J. Gerraty <sjg@bad.crufty.net> 34073955d011SMarcel Moolenaar 34083955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110808 34093955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34103955d011SMarcel Moolenaar o do not touch OP_SPECIAL targets when doing make -t 34113955d011SMarcel Moolenaar 34123955d011SMarcel Moolenaar2011-06-22 Simon J. Gerraty <sjg@bad.crufty.net> 34133955d011SMarcel Moolenaar 34143955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110622 34153955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34163955d011SMarcel Moolenaar o meta_oodate detect corrupted .meta file and declare oodate. 34173955d011SMarcel Moolenaar * configure.in: add check for setsid 34183955d011SMarcel Moolenaar 34193955d011SMarcel Moolenaar2011-06-07 Simon J. Gerraty <sjg@bad.crufty.net> 34203955d011SMarcel Moolenaar 34213955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 34223955d011SMarcel Moolenaar o unit-tests/modts now works on MirBSD 34233955d011SMarcel Moolenaar 34243955d011SMarcel Moolenaar2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 34253955d011SMarcel Moolenaar 34263955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110606 34273955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34283955d011SMarcel Moolenaar o ApplyModifiers: when we parse a variable which is not 34293955d011SMarcel Moolenaar the entire modifier string, or not followed by ':', do not 34303955d011SMarcel Moolenaar consider it as containing modifiers. 34313955d011SMarcel Moolenaar o loadfile: ensure newline at end of mapped file. 34323955d011SMarcel Moolenaar 34333955d011SMarcel Moolenaar2011-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 34343955d011SMarcel Moolenaar 34353955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110505 34363955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34373955d011SMarcel Moolenaar o .MAKE.META.BAILIWICK - list of prefixes which define the scope 34383955d011SMarcel Moolenaar of make's control. In meta mode, any generated file within 34393955d011SMarcel Moolenaar said bailiwick, which is found to be missing, causes current 34403955d011SMarcel Moolenaar target to be out-of-date. 34413955d011SMarcel Moolenaar 34423955d011SMarcel Moolenaar2011-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 34433955d011SMarcel Moolenaar 34443955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110411 34453955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34463955d011SMarcel Moolenaar o when long modifiers fail to match, check sysV style. 34473955d011SMarcel Moolenaar - add a test case 34483955d011SMarcel Moolenaar 34493955d011SMarcel Moolenaar2011-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 34503955d011SMarcel Moolenaar 34513955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110410 34523955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34533955d011SMarcel Moolenaar o :hash - cheap 32bit hash of value 34543955d011SMarcel Moolenaar o :localtime, :gmtime - use value as format string for strftime. 34553955d011SMarcel Moolenaar 34563955d011SMarcel Moolenaar2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 34573955d011SMarcel Moolenaar 34583955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110330 34593955d011SMarcel Moolenaar mostly because its a cooler version. 34603955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34613955d011SMarcel Moolenaar o NetBSD tags for meta.[ch] 34623955d011SMarcel Moolenaar o job.c call meta_job_finish() after meta_job_error(). 34633955d011SMarcel Moolenaar o meta_job_error() should call meta_job_finish() to ensure 34643955d011SMarcel Moolenaar .meta file is closed, and safe to copy - if .ERROR target wants. 34653955d011SMarcel Moolenaar meta_job_finish() is safe to call repeatedly. 34663955d011SMarcel Moolenaar 34673955d011SMarcel Moolenaar2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net> 34683955d011SMarcel Moolenaar 34693955d011SMarcel Moolenaar * unit-tests/modts: use printf if it is a builtin, 34703955d011SMarcel Moolenaar to save us from MirBSD 34713955d011SMarcel Moolenaar 34723955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110329 34733955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34743955d011SMarcel Moolenaar o fix for use after free() in CondDoExists(). 34753955d011SMarcel Moolenaar o meta_oodate() report extra commands and return earlier. 34763955d011SMarcel Moolenaar 34773955d011SMarcel Moolenaar2011-03-27 Simon J. Gerraty <sjg@bad.crufty.net> 34783955d011SMarcel Moolenaar 34793955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110327 34803955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34813955d011SMarcel Moolenaar o meta.c, if .MAKE.MODE contains curdirOk=yes 34823955d011SMarcel Moolenaar allow creating .meta files in .CURDIR 34833955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): aparently at least on linux distro 34843955d011SMarcel Moolenaar formats the output of 'type' differently - so eat any "()" 34853955d011SMarcel Moolenaar 34863955d011SMarcel Moolenaar2011-03-06 Simon J. Gerraty <sjg@bad.crufty.net> 34873955d011SMarcel Moolenaar 34883955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110306 34893955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34903955d011SMarcel Moolenaar o meta.c, only do getcwd() once 34913955d011SMarcel Moolenaar 34923955d011SMarcel Moolenaar2011-03-05 Simon J. Gerraty <sjg@bad.crufty.net> 34933955d011SMarcel Moolenaar 34943955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110305 34953955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34963955d011SMarcel Moolenaar o correct sysV substitution handling of empty lhs and variable 34973955d011SMarcel Moolenaar o correct exists() check for dir with trailing / 34983955d011SMarcel Moolenaar o correct handling of modifiers for non-existant variables 34993955d011SMarcel Moolenaar during evaluation of conditionals. 35003955d011SMarcel Moolenaar o ensure MAP_FILE is defined. 35013955d011SMarcel Moolenaar o meta.c use curdir[] now exported by main.c 35023955d011SMarcel Moolenaar 35033955d011SMarcel Moolenaar2011-02-25 Simon J. Gerraty <sjg@bad.crufty.net> 35043955d011SMarcel Moolenaar 35053955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110225 35063955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35073955d011SMarcel Moolenaar o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after 35083955d011SMarcel Moolenaar makefiles have been read. 35093955d011SMarcel Moolenaar o fix example of :? modifier in man page. 35103955d011SMarcel Moolenaar 35113955d011SMarcel Moolenaar2011-02-13 Simon J. Gerraty <sjg@bad.crufty.net> 35123955d011SMarcel Moolenaar 35133955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110214 35143955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35153955d011SMarcel Moolenaar o meta.c handle realpath() failing when generating meta file 35163955d011SMarcel Moolenaar name. 35173955d011SMarcel Moolenaar 35183955d011SMarcel Moolenaar * sigcompat.c: convert to ansi so we can use higher warning levels. 35193955d011SMarcel Moolenaar 35203955d011SMarcel Moolenaar 35213955d011SMarcel Moolenaar2011-02-07 Simon J. Gerraty <sjg@bad.crufty.net> 35223955d011SMarcel Moolenaar 35233955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110207 35243955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35253955d011SMarcel Moolenaar o fix for bug in meta mode. 35263955d011SMarcel Moolenaar 35273955d011SMarcel Moolenaar2011-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 35283955d011SMarcel Moolenaar 35293955d011SMarcel Moolenaar * parse.c: SunOS 5.8 at least does not have MAP_FILE 35303955d011SMarcel Moolenaar 35313955d011SMarcel Moolenaar2011-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 35323955d011SMarcel Moolenaar 35333955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110101 35343955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35353955d011SMarcel Moolenaar o use mmap(2) if available, for reading makefiles 35363955d011SMarcel Moolenaar 35373955d011SMarcel Moolenaar2010-12-15 Simon J. Gerraty <sjg@bad.crufty.net> 35383955d011SMarcel Moolenaar 35393955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101215 35403955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35413955d011SMarcel Moolenaar o ensure meta_job_error() does not report a previous .meta file 35423955d011SMarcel Moolenaar as being culprit. 35433955d011SMarcel Moolenaar 35443955d011SMarcel Moolenaar2010-12-10 Simon J. Gerraty <sjg@bad.crufty.net> 35453955d011SMarcel Moolenaar 35463955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101210 35473955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35483955d011SMarcel Moolenaar o meta_oodate: track cwd per process, and only consider target 35493955d011SMarcel Moolenaar out-of-date if missing file is outside make's CWD. 35503955d011SMarcel Moolenaar Ignore files in /tmp/ etc. 35513955d011SMarcel Moolenaar o to ensure unit-tests results match, need to control LC_ALL 35523955d011SMarcel Moolenaar as well as LANG. 35533955d011SMarcel Moolenaar o fix for parsing bug in var.c 35543955d011SMarcel Moolenaar 35553955d011SMarcel Moolenaar2010-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 35563955d011SMarcel Moolenaar 35573955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101126 35583955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35593955d011SMarcel Moolenaar o if stale dependency is an IMPSRC, search via .PATH 35603955d011SMarcel Moolenaar o meta_oodate: if a referenced file is missing, target is 35613955d011SMarcel Moolenaar out-of-date. 35623955d011SMarcel Moolenaar o meta_oodate: if a target uses .OODATE in its commands, 35633955d011SMarcel Moolenaar it (.OODATE) needs to be recomputed. 35643955d011SMarcel Moolenaar o keep a pointer to youngest child node, rather than just its 35653955d011SMarcel Moolenaar mtime. 35663955d011SMarcel Moolenaar 35673955d011SMarcel Moolenaar2010-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 35683955d011SMarcel Moolenaar 35693955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101101 35703955d011SMarcel Moolenaar 35713955d011SMarcel Moolenaar2010-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 35723955d011SMarcel Moolenaar 35733955d011SMarcel Moolenaar * machine.sh: like os.sh, 35743955d011SMarcel Moolenaar allow for uname -p producing useless drivel 35753955d011SMarcel Moolenaar 35763955d011SMarcel Moolenaar2010-09-13 Simon J. Gerraty <sjg@bad.crufty.net> 35773955d011SMarcel Moolenaar 35783955d011SMarcel Moolenaar * boot-strap: document configure knobs for meta and filemon. 35793955d011SMarcel Moolenaar 35803955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100911 35813955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35823955d011SMarcel Moolenaar o meta.c - meta mode 35833955d011SMarcel Moolenaar 35843955d011SMarcel Moolenaar * make-bootstrap.sh.in: handle meta.c 35853955d011SMarcel Moolenaar * configure.in: add knobs for use_meta and filemon_h 35863955d011SMarcel Moolenaar also, look for dirname, str[e]sep and strlcpy 35873955d011SMarcel Moolenaar * util.c: add simple err[x] and warn[x] 35883955d011SMarcel Moolenaar 35893955d011SMarcel Moolenaar2010-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 35903955d011SMarcel Moolenaar 35913955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): set this to ensure tests use 35923955d011SMarcel Moolenaar the same version of diff that configure tested 35933955d011SMarcel Moolenaar 35943955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100808 35953955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35963955d011SMarcel Moolenaar o in jobs mode, when we discover we cannot make something, 35973955d011SMarcel Moolenaar call PrintOnError before exit. 35983955d011SMarcel Moolenaar 35993955d011SMarcel Moolenaar2010-08-06 Simon J. Gerraty <sjg@bad.crufty.net> 36003955d011SMarcel Moolenaar 36013955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100806 36023955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36033955d011SMarcel Moolenaar o formatting fixes for ignored errors 36043955d011SMarcel Moolenaar o ensure jobs are cleaned up regardless of where wait() was called. 36053955d011SMarcel Moolenaar 36063955d011SMarcel Moolenaar2010-06-28 Simon J. Gerraty <sjg@bad.crufty.net> 36073955d011SMarcel Moolenaar 36083955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100618 36093955d011SMarcel Moolenaar * os.sh (MACHINE_ARCH): watch out for drivel from uname -p 36103955d011SMarcel Moolenaar 36113955d011SMarcel Moolenaar2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net> 36123955d011SMarcel Moolenaar 36133955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100616 36143955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36153955d011SMarcel Moolenaar o man page update 36163955d011SMarcel Moolenaar o call PrintOnError from JobFinish when we detect an error we 36173955d011SMarcel Moolenaar are not ignoring. 36183955d011SMarcel Moolenaar 36193955d011SMarcel Moolenaar2010-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 36203955d011SMarcel Moolenaar 36213955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100606 36223955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36233955d011SMarcel Moolenaar o man page update 36243955d011SMarcel Moolenaar 36253955d011SMarcel Moolenaar2010-06-05 Simon J. Gerraty <sjg@bad.crufty.net> 36263955d011SMarcel Moolenaar 36273955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100605 36283955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36293955d011SMarcel Moolenaar o use bmake_signal() which is a wrapper around sigaction() 36303955d011SMarcel Moolenaar in place of signal() 36313955d011SMarcel Moolenaar o add .export-env to allow exporting variables to environment 36323955d011SMarcel Moolenaar without tracking (so no re-export when the internal value is 36333955d011SMarcel Moolenaar changed). 36343955d011SMarcel Moolenaar 36353955d011SMarcel Moolenaar2010-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 36363955d011SMarcel Moolenaar 36373955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100524 36383955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36393955d011SMarcel Moolenaar o fix for .info et al being greedy. 36403955d011SMarcel Moolenaar 36413955d011SMarcel Moolenaar2010-05-23 Simon J. Gerraty <sjg@bad.crufty.net> 36423955d011SMarcel Moolenaar 36433955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100520 36443955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36453955d011SMarcel Moolenaar o back to using realpath on argv[0] 36463955d011SMarcel Moolenaar but only if contains '/' and does not start with '/'. 36473955d011SMarcel Moolenaar 36483955d011SMarcel Moolenaar2010-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 36493955d011SMarcel Moolenaar 36503955d011SMarcel Moolenaar * boot-strap: use absolute path for bmake when running tests. 36513955d011SMarcel Moolenaar 36523955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100510 36533955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36543955d011SMarcel Moolenaar o revert use of realpath on argv[0] 36553955d011SMarcel Moolenaar too many corner cases. 36563955d011SMarcel Moolenaar o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target. 36573955d011SMarcel Moolenaar 36583955d011SMarcel Moolenaar2010-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 36593955d011SMarcel Moolenaar 36603955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100505 36613955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36623955d011SMarcel Moolenaar o fix for missed SIGCHLD when compiled with SunPRO 36633955d011SMarcel Moolenaar actually for bmake, defining FORCE_POSIX_SIGNALS would have 36643955d011SMarcel Moolenaar done the job. 36653955d011SMarcel Moolenaar 36663955d011SMarcel Moolenaar2010-04-30 Simon J. Gerraty <sjg@bad.crufty.net> 36673955d011SMarcel Moolenaar 36683955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100430 36693955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36703955d011SMarcel Moolenaar o fflush stdout before writing to stdout 36713955d011SMarcel Moolenaar 36723955d011SMarcel Moolenaar2010-04-23 Simon J. Gerraty <sjg@bad.crufty.net> 36733955d011SMarcel Moolenaar 36743955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100423 36753955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36763955d011SMarcel Moolenaar o updated unit tests for Haiku (this time for sure). 36773955d011SMarcel Moolenaar * boot-strap: based on patch from joerg 36783955d011SMarcel Moolenaar honor --with-default-sys-path better. 36793955d011SMarcel Moolenaar * boot-strap: remove mention of --with-prefix-sys-path 36803955d011SMarcel Moolenaar 36813955d011SMarcel Moolenaar2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net> 36823955d011SMarcel Moolenaar 36833955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100422 36843955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 36853955d011SMarcel Moolenaar o fix for vfork() on Darwin. 36863955d011SMarcel Moolenaar o fix for bogus $TMPDIR. 36873955d011SMarcel Moolenaar o set .MAKE.MODE=compat for -B 36883955d011SMarcel Moolenaar o set .MAKE.JOBS=max_jobs for -j max_jobs 36893955d011SMarcel Moolenaar o allow unit-tests to run without any *.mk 36903955d011SMarcel Moolenaar o unit-tests/modmisc be more conservative in dirs presumed to exist. 36913955d011SMarcel Moolenaar * boot-strap: ignore /usr/share/mk except on NetBSD. 36923955d011SMarcel Moolenaar * unit-tests/Makefile.in: set LANG=C when running unit-tests to 36933955d011SMarcel Moolenaar ensure sort(1) behaves as expected. 36943955d011SMarcel Moolenaar 36953955d011SMarcel Moolenaar2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 36963955d011SMarcel Moolenaar 36973955d011SMarcel Moolenaar * boot-strap: add FindHereOrAbove so we can use -m .../mk 36983955d011SMarcel Moolenaar 36993955d011SMarcel Moolenaar2010-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 37003955d011SMarcel Moolenaar 37013955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100420 37023955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37033955d011SMarcel Moolenaar o fix for variable realpath() behavior. 37043955d011SMarcel Moolenaar we have to stat(2) the result to be sure. 37053955d011SMarcel Moolenaar o fix for .export (all) when nested vars use :sh 37063955d011SMarcel Moolenaar 37073955d011SMarcel Moolenaar2010-04-14 Simon J. Gerraty <sjg@bad.crufty.net> 37083955d011SMarcel Moolenaar 37093955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100414 37103955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37113955d011SMarcel Moolenaar o use realpath to resolve argv[0] (for .MAKE) if needed. 37123955d011SMarcel Moolenaar o add realpath from libc. 37133955d011SMarcel Moolenaar o add :tA to resolve variable via realpath(3) if possible. 37143955d011SMarcel Moolenaar 37153955d011SMarcel Moolenaar2010-04-08 Simon J. Gerraty <sjg@bad.crufty.net> 37163955d011SMarcel Moolenaar 37173955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100408 37183955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37193955d011SMarcel Moolenaar o unit tests for .ERROR, .error 37203955d011SMarcel Moolenaar o fix for .ERROR to ensure it cannot be default target. 37213955d011SMarcel Moolenaar 37223955d011SMarcel Moolenaar2010-04-06 Simon J. Gerraty <sjg@bad.crufty.net> 37233955d011SMarcel Moolenaar 37243955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100406 37253955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37263955d011SMarcel Moolenaar o fix for compat mode "Error code" going to debug_file. 37273955d011SMarcel Moolenaar o fix for .ALLSRC being populated twice. 37283955d011SMarcel Moolenaar o support for .info, .warning and .error directives 37293955d011SMarcel Moolenaar o .MAKE.MODE to control make's operational mode 37303955d011SMarcel Moolenaar o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile 37313955d011SMarcel Moolenaar name(s). 37323955d011SMarcel Moolenaar o .MAKE.DEPENDFILE to control the name of the depend file 37333955d011SMarcel Moolenaar o .ERROR target - run on failure. 37343955d011SMarcel Moolenaar 37353955d011SMarcel Moolenaar2010-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 37363955d011SMarcel Moolenaar 37373955d011SMarcel Moolenaar * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile 37383955d011SMarcel Moolenaar 37393955d011SMarcel Moolenaar * os.sh,arch.c: patch for Haiku from joerg at netbsd 37403955d011SMarcel Moolenaar 37413955d011SMarcel Moolenaar2010-03-17 Simon J. Gerraty <sjg@bad.crufty.net> 37423955d011SMarcel Moolenaar 37433955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100222 37443955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37453955d011SMarcel Moolenaar o better error msg for .for with mutiple inter vars 37463955d011SMarcel Moolenaar 37473955d011SMarcel Moolenaar * boot-strap: 37483955d011SMarcel Moolenaar o use make-bootstrap.sh from joerg at netbsd 37493955d011SMarcel Moolenaar to avoid the need for a native make when bootstrapping. 37503955d011SMarcel Moolenaar o add "" everywhere ;-) 37513955d011SMarcel Moolenaar o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1 37523955d011SMarcel Moolenaar otherwise the pre-formated version. 37533955d011SMarcel Moolenaar 37543955d011SMarcel Moolenaar2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net> 37553955d011SMarcel Moolenaar 37563955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100102 37573955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37583955d011SMarcel Moolenaar o fix for -m .../ 37593955d011SMarcel Moolenaar 37603955d011SMarcel Moolenaar2009-11-18 Simon J. Gerraty <sjg@void.crufty.net> 37613955d011SMarcel Moolenaar 37623955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20091118 37633955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37643955d011SMarcel Moolenaar o .unexport 37653955d011SMarcel Moolenaar o report lines that start with '.' and should have ':' 37663955d011SMarcel Moolenaar (catch typo's of .el*if). 37673955d011SMarcel Moolenaar 37683955d011SMarcel Moolenaar2009-10-30 Simon J. Gerraty <sjg@void.crufty.net> 37693955d011SMarcel Moolenaar 37703955d011SMarcel Moolenaar * configure.in: Ensure that srcdir and mksrc are absolute paths. 37713955d011SMarcel Moolenaar 37723955d011SMarcel Moolenaar2009-10-09 Simon J. Gerraty <sjg@void.crufty.net> 37733955d011SMarcel Moolenaar 37743955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): fix version to 20091007 37753955d011SMarcel Moolenaar 37763955d011SMarcel Moolenaar2009-10-07 Simon J. Gerraty <sjg@void.crufty.net> 37773955d011SMarcel Moolenaar 37783955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 200910007 37793955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37803955d011SMarcel Moolenaar o fix for parsing of :S;...;...; applied to .for loop iterator 37813955d011SMarcel Moolenaar appearing in a dependency line. 37823955d011SMarcel Moolenaar 37833955d011SMarcel Moolenaar2009-09-09 Simon J. Gerraty <sjg@void.crufty.net> 37843955d011SMarcel Moolenaar 37853955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090909 37863955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37873955d011SMarcel Moolenaar o fix for -C, .CURDIR and .OBJDIR 37883955d011SMarcel Moolenaar * boot-strap: 37893955d011SMarcel Moolenaar o allow share_dir to be set independent of prefix. 37903955d011SMarcel Moolenaar o select default share_dir better when prefix ends in $HOST_TARGET 37913955d011SMarcel Moolenaar o if FORCE_BSD_MK etc were set, include them in the suggested 37923955d011SMarcel Moolenaar install-mk command. 37933955d011SMarcel Moolenaar 37943955d011SMarcel Moolenaar2009-09-08 Simon J. Gerraty <sjg@void.crufty.net> 37953955d011SMarcel Moolenaar 37963955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090908 37973955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37983955d011SMarcel Moolenaar o .MAKE.LEVEL for recursion tracking 37993955d011SMarcel Moolenaar o fix for :M scanning \: 38003955d011SMarcel Moolenaar 38013955d011SMarcel Moolenaar2009-09-03 Simon J. Gerraty <sjg@void.crufty.net> 38023955d011SMarcel Moolenaar 38033955d011SMarcel Moolenaar * configure.in: Don't -D__EXTENSIONS__ if 38043955d011SMarcel Moolenaar AC_USE_SYSTEM_EXTENSIONS says "no". 38053955d011SMarcel Moolenaar 38063955d011SMarcel Moolenaar2009-08-26 Simon J. Gerraty <sjg@void.crufty.net> 38073955d011SMarcel Moolenaar 38083955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090826 38093955d011SMarcel Moolenaar Simplify MAKE_VERSION to just the bare date. 38103955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38113955d011SMarcel Moolenaar o -C directory support. 38123955d011SMarcel Moolenaar o support for SIGINFO 38133955d011SMarcel Moolenaar o use $TMPDIR for temp files. 38143955d011SMarcel Moolenaar o child of vfork should be careful about modifying parent's state. 38153955d011SMarcel Moolenaar 38163955d011SMarcel Moolenaar 38173955d011SMarcel Moolenaar2009-03-26 Simon J. Gerraty <sjg@void.crufty.net> 38183955d011SMarcel Moolenaar 38193955d011SMarcel Moolenaar * Appy some patches for MiNT from David Brownlee 38203955d011SMarcel Moolenaar 38213955d011SMarcel Moolenaar2009-02-26 Simon J. Gerraty <sjg@void.crufty.net> 38223955d011SMarcel Moolenaar 38233955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090222 38243955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38253955d011SMarcel Moolenaar o Possible null pointer de-ref in Var_Set. 38263955d011SMarcel Moolenaar 38273955d011SMarcel Moolenaar2009-02-08 Simon J. Gerraty <sjg@void.crufty.net> 38283955d011SMarcel Moolenaar 38293955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090204 38303955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38313955d011SMarcel Moolenaar o bmake_malloc et al moved to their own .c 38323955d011SMarcel Moolenaar o Count both () and {} when looking for the end of a :M pattern 38333955d011SMarcel Moolenaar o Change 'Buffer' so that it is the actual struct, not a pointer to it. 38343955d011SMarcel Moolenaar o strlist.c - functions for processing extendable arrays of pointers to strings. 38353955d011SMarcel Moolenaar o ClientData replaced with void *, so const void * can be used. 38363955d011SMarcel Moolenaar o New debug flag C for DEBUG_CWD 38373955d011SMarcel Moolenaar 38383955d011SMarcel Moolenaar2008-11-11 Simon J. Gerraty <sjg@void.crufty.net> 38393955d011SMarcel Moolenaar 38403955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081111 38413955d011SMarcel Moolenaar Apply patch from Joerg Sonnenberge to 38423955d011SMarcel Moolenaar configure.in: 38433955d011SMarcel Moolenaar o remove some redundant checks 38443955d011SMarcel Moolenaar o check for emlloc etc only in libutil and require the whole family. 38453955d011SMarcel Moolenaar util.c: 38463955d011SMarcel Moolenaar o remove [v]asprintf which is no longer used. 38473955d011SMarcel Moolenaar 38483955d011SMarcel Moolenaar2008-11-04 Simon J. Gerraty <sjg@void.crufty.net> 38493955d011SMarcel Moolenaar 38503955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081101 38513955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38523955d011SMarcel Moolenaar o util.c: avoid use of putenv() - christos 38533955d011SMarcel Moolenaar 38543955d011SMarcel Moolenaar2008-10-30 Simon J. Gerraty <sjg@void.crufty.net> 38553955d011SMarcel Moolenaar 38563955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081030 38573955d011SMarcel Moolenaar pick up man page tweaks. 38583955d011SMarcel Moolenaar 38593955d011SMarcel Moolenaar2008-10-29 Simon J. Gerraty <sjg@void.crufty.net> 38603955d011SMarcel Moolenaar 38613955d011SMarcel Moolenaar * Makefile.in: move processing of LIBOBJS to after is definition! 38623955d011SMarcel Moolenaar thus we'll have getenv.c in SRCS only if needed. 38633955d011SMarcel Moolenaar 38643955d011SMarcel Moolenaar * make.1: add examples of how to use :? 38653955d011SMarcel Moolenaar 38663955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081029 38673955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38683955d011SMarcel Moolenaar o fix for .END processing with -j 38693955d011SMarcel Moolenaar o segfault from Parse_Error when no makefile is open 38703955d011SMarcel Moolenaar o handle numeric expressions in any variable expansion 38713955d011SMarcel Moolenaar o debug output now defaults to stderr, -dF to change it - apb 38723955d011SMarcel Moolenaar o make now uses bmake_malloc etc so that it can build natively 38733955d011SMarcel Moolenaar on A/UX - wasn't an issue for bmake, but we want to keep in sync. 38743955d011SMarcel Moolenaar 38753955d011SMarcel Moolenaar2008-09-27 Simon J. Gerraty <sjg@void.crufty.net> 38763955d011SMarcel Moolenaar 38773955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080808 38783955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38793955d011SMarcel Moolenaar o fix for PR/38840: Pierre Pronchery: make crashes while parsing 38803955d011SMarcel Moolenaar long lines in Makefiles 38813955d011SMarcel Moolenaar o optimizations for VarQuote by joerg 38823955d011SMarcel Moolenaar o fix for PR/38756: dominik: make dumps core on invalid makefile 38833955d011SMarcel Moolenaar 38843955d011SMarcel Moolenaar2008-05-15 Simon J. Gerraty <sjg@void.crufty.net> 38853955d011SMarcel Moolenaar 38863955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080515 38873955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38883955d011SMarcel Moolenaar o fix skip setting vars in VAR_GLOBAL context, to handle 38893955d011SMarcel Moolenaar cases where VAR_CMD is used for other than command line vars. 38903955d011SMarcel Moolenaar 38913955d011SMarcel Moolenaar2008-05-14 Simon J. Gerraty <sjg@void.crufty.net> 38923955d011SMarcel Moolenaar 38933955d011SMarcel Moolenaar * boot-strap (make_version): we may need to look in 38943955d011SMarcel Moolenaar $prefix/share/mk for sys.mk 38953955d011SMarcel Moolenaar 38963955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080514 38973955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38983955d011SMarcel Moolenaar o skip setting vars in VAR_GLOBAL context, when already set in 38993955d011SMarcel Moolenaar VAR_CMD which takes precedence. 39003955d011SMarcel Moolenaar 39013955d011SMarcel Moolenaar2008-03-30 Simon J. Gerraty <sjg@void.crufty.net> 39023955d011SMarcel Moolenaar 39033955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080330 39043955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39053955d011SMarcel Moolenaar o fix for ?= when LHS contains variable reference. 39063955d011SMarcel Moolenaar 39073955d011SMarcel Moolenaar2008-02-15 Simon J. Gerraty <sjg@void.crufty.net> 39083955d011SMarcel Moolenaar 39093955d011SMarcel Moolenaar * merge some patches from NetBSD pkgsrc. 39103955d011SMarcel Moolenaar 39113955d011SMarcel Moolenaar * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of 39123955d011SMarcel Moolenaar the MAKSYSPATH used during bootstrap. 39133955d011SMarcel Moolenaar 39143955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080215 39153955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39163955d011SMarcel Moolenaar o warn if non-space chars follow 'empty' in a conditional. 39173955d011SMarcel Moolenaar 39183955d011SMarcel Moolenaar2008-01-18 Simon J. Gerraty <sjg@void.crufty.net> 39193955d011SMarcel Moolenaar 39203955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080118 39213955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39223955d011SMarcel Moolenaar o consider dependencies read from .depend as optional - dsl 39233955d011SMarcel Moolenaar o remember when buffer for reading makefile grows - dsl 39243955d011SMarcel Moolenaar o add -dl (aka LOUD) - David O'Brien 39253955d011SMarcel Moolenaar 39263955d011SMarcel Moolenaar2007-10-22 Simon J. Gerraty <sjg@void.crufty.net> 39273955d011SMarcel Moolenaar 39283955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071022 39293955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39303955d011SMarcel Moolenaar o Allow .PATH<suffix> to be used for .include "" 39313955d011SMarcel Moolenaar 39323955d011SMarcel Moolenaar * boot-strap: source default settings from .bmake-boot-strap.rc 39333955d011SMarcel Moolenaar 39343955d011SMarcel Moolenaar2007-10-16 Simon J. Gerraty <sjg@void.crufty.net> 39353955d011SMarcel Moolenaar 39363955d011SMarcel Moolenaar * Makefile.in: fix maninstall on various systems 39373955d011SMarcel Moolenaar provided that our man.mk is used. 39383955d011SMarcel Moolenaar For non-BSD systems we install the preformatted page 39393955d011SMarcel Moolenaar into $MANDIR/cat1 39403955d011SMarcel Moolenaar 39413955d011SMarcel Moolenaar2007-10-15 Simon J. Gerraty <sjg@void.crufty.net> 39423955d011SMarcel Moolenaar 39433955d011SMarcel Moolenaar * boot-strap: make bmake.1 too, so maninstall works. 39443955d011SMarcel Moolenaar 39453955d011SMarcel Moolenaar2007-10-14 Simon J. Gerraty <sjg@void.crufty.net> 39463955d011SMarcel Moolenaar 39473955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071014 39483955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39493955d011SMarcel Moolenaar o revamped handling of defshell - configure no longer needs to 39503955d011SMarcel Moolenaar know the content of the shells array - apb 39513955d011SMarcel Moolenaar o stop Var_Subst modifying its input - apb 39523955d011SMarcel Moolenaar o avoid calling ParseTrackInput too often - dsl 39533955d011SMarcel Moolenaar 39543955d011SMarcel Moolenaar2007-10-11 Simon J. Gerraty <sjg@void.crufty.net> 39553955d011SMarcel Moolenaar 39563955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071011 39573955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39583955d011SMarcel Moolenaar o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path. 39593955d011SMarcel Moolenaar 39603955d011SMarcel Moolenaar * sigcompat.c: some tweaks for HP-UX 11.x based on 39613955d011SMarcel Moolenaar patch from Tobias Nygren 39623955d011SMarcel Moolenaar 39633955d011SMarcel Moolenaar * configure.in: update handling of --with-defshell to match 39643955d011SMarcel Moolenaar new make behavior. --with-defshell=/usr/xpg4/bin/sh 39653955d011SMarcel Moolenaar will now do what one might hope - provided the chosen shell 39663955d011SMarcel Moolenaar behaves enough like sh. 39673955d011SMarcel Moolenaar 39683955d011SMarcel Moolenaar2007-10-08 Simon J. Gerraty <sjg@void.crufty.net> 39693955d011SMarcel Moolenaar 39703955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20071008 39713955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39723955d011SMarcel Moolenaar o .MAKE.JOB.PREFIX - control the token output before jobs - sjg 39733955d011SMarcel Moolenaar o .export/.MAKE.EXPORTED - export of variables - sjg 39743955d011SMarcel Moolenaar o .MAKE.MAKEFILES - track all makefiles read - sjg 39753955d011SMarcel Moolenaar o performance improvements - dsl 39763955d011SMarcel Moolenaar o revamp parallel job scheduling - dsl 39773955d011SMarcel Moolenaar 39783955d011SMarcel Moolenaar2006-07-28 Simon J. Gerraty <sjg@void.crufty.net> 39793955d011SMarcel Moolenaar 39803955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060728 39813955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39823955d011SMarcel Moolenaar o extra debug info during variable and cond processing - sjg 39833955d011SMarcel Moolenaar o shell definition now covers newline - rillig 39843955d011SMarcel Moolenaar o minor mem leak in PrintOnError - sjg 39853955d011SMarcel Moolenaar 39863955d011SMarcel Moolenaar2006-05-11 Simon J. Gerraty <sjg@void.crufty.net> 39873955d011SMarcel Moolenaar 39883955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060511 39893955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39903955d011SMarcel Moolenaar o more memory leaks - coverity 39913955d011SMarcel Moolenaar o possible overflow in ArchFindMember - coverity 39923955d011SMarcel Moolenaar o extract variable modifier code out of Var_Parse() 39933955d011SMarcel Moolenaar so it can be called recursively - sjg 39943955d011SMarcel Moolenaar o unit-tests/moderrs - sjg 39953955d011SMarcel Moolenaar 39963955d011SMarcel Moolenaar2006-04-12 Simon J. Gerraty <sjg@void.crufty.net> 39973955d011SMarcel Moolenaar 39983955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060412 39993955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40003955d011SMarcel Moolenaar o fixes for some memory leaks - coverity 40013955d011SMarcel Moolenaar o only read first sys.mk etc when searching sysIncPath - sjg 40023955d011SMarcel Moolenaar 40033955d011SMarcel Moolenaar * main.c (ReadMakefile): remove hack for __INTERIX that prevented 40043955d011SMarcel Moolenaar setting ${MAKEFILE} - OBATA Akio 40053955d011SMarcel Moolenaar 40063955d011SMarcel Moolenaar2006-03-18 Simon J. Gerraty <sjg@void.crufty.net> 40073955d011SMarcel Moolenaar 40083955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060318 40093955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40103955d011SMarcel Moolenaar o cleanup of job.c to remove remote handling, distcc is more 40113955d011SMarcel Moolenaar useful and this code was likely bit-rotting - dsl 40123955d011SMarcel Moolenaar o fix for :P modifier - sjg 40133955d011SMarcel Moolenaar * boot-strap: set default prefix to something reasonable 40143955d011SMarcel Moolenaar (for me anyway). 40153955d011SMarcel Moolenaar 40163955d011SMarcel Moolenaar2006-03-01 Simon J. Gerraty <sjg@void.crufty.net> 40173955d011SMarcel Moolenaar 40183955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060301 40193955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40203955d011SMarcel Moolenaar o make .WAIT apply recursively, document and test case - apb 40213955d011SMarcel Moolenaar o allow variable modifiers in a variable appear anywhere in 40223955d011SMarcel Moolenaar modifier list, document and test case - sjg 40233955d011SMarcel Moolenaar 40243955d011SMarcel Moolenaar2006-02-22 Simon J. Gerraty <sjg@void.crufty.net> 40253955d011SMarcel Moolenaar 40263955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060222 40273955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40283955d011SMarcel Moolenaar o improved job token handling - dsl 40293955d011SMarcel Moolenaar o SIG_DFL the correct signal before exec - dsl 40303955d011SMarcel Moolenaar o more debug info during parsing - dsl 40313955d011SMarcel Moolenaar o allow variable modifiers to be specified via variable - sjg 40323955d011SMarcel Moolenaar * boot-strap: explain why we died if no mksrc 40333955d011SMarcel Moolenaar 40343955d011SMarcel Moolenaar2005-11-05 Simon J. Gerraty <sjg@void.crufty.net> 40353955d011SMarcel Moolenaar 40363955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051105 40373955d011SMarcel Moolenaar * configure.in: always set default_sys_path 40383955d011SMarcel Moolenaar default is ${prefix}/share/mk 40393955d011SMarcel Moolenaar - remove prefix_sys_path, anyone wanting more than above 40403955d011SMarcel Moolenaar needs to set it manually. 40413955d011SMarcel Moolenaar 40423955d011SMarcel Moolenaar2005-11-04 Simon J. Gerraty <sjg@void.crufty.net> 40433955d011SMarcel Moolenaar 40443955d011SMarcel Moolenaar * boot-strap: make this a bit easier for pkgsrc folk. 40453955d011SMarcel Moolenaar bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to 40463955d011SMarcel Moolenaar 'mips' while pkgsrc wants 'mipseb' or 'mipsel' 40473955d011SMarcel Moolenaar 40483955d011SMarcel Moolenaar2005-11-02 Simon J. Gerraty <sjg@void.crufty.net> 40493955d011SMarcel Moolenaar 40503955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051102 40513955d011SMarcel Moolenaar * job.c (JobFinish): fix likely ancient merge lossage 40523955d011SMarcel Moolenaar fix from Todd Vierling. 40533955d011SMarcel Moolenaar * boot-strap (srcdir): allow setting mksrc=none 40543955d011SMarcel Moolenaar 40553955d011SMarcel Moolenaar2005-10-31 Simon J. Gerraty <sjg@void.crufty.net> 40563955d011SMarcel Moolenaar 40573955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051031 40583955d011SMarcel Moolenaar * ranlib.h: skip on OSF too. 40593955d011SMarcel Moolenaar (NetBSD PR 31864) 40603955d011SMarcel Moolenaar 40613955d011SMarcel Moolenaar2005-10-10 Simon J. Gerraty <sjg@void.crufty.net> 40623955d011SMarcel Moolenaar 40633955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051002 40643955d011SMarcel Moolenaar fix a silly typo 40653955d011SMarcel Moolenaar 40663955d011SMarcel Moolenaar2005-10-09 Simon J. Gerraty <sjg@void.crufty.net> 40673955d011SMarcel Moolenaar 40683955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051001 40693955d011SMarcel Moolenaar support for UnixWare and some other systems, 40703955d011SMarcel Moolenaar based on patches from pkgsrc/bootstrap 40713955d011SMarcel Moolenaar 40723955d011SMarcel Moolenaar2005-09-03 Simon J. Gerraty <sjg@void.crufty.net> 40733955d011SMarcel Moolenaar 40743955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050901 40753955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40763955d011SMarcel Moolenaar o possible parse error causing us to wander off. 40773955d011SMarcel Moolenaar 40783955d011SMarcel Moolenaar2005-06-06 Simon J. Gerraty <sjg@void.crufty.net> 40793955d011SMarcel Moolenaar 40803955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050606 40813955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40823955d011SMarcel Moolenaar o :0x modifier for randomizing a list 40833955d011SMarcel Moolenaar o fixes for a number of -Wuninitialized issues. 40843955d011SMarcel Moolenaar 40853955d011SMarcel Moolenaar2005-05-30 Simon J. Gerraty <sjg@void.crufty.net> 40863955d011SMarcel Moolenaar 40873955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050530 40883955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40893955d011SMarcel Moolenaar o Handle dependencies for .BEGIN, .END and .INTERRUPT 40903955d011SMarcel Moolenaar 40913955d011SMarcel Moolenaar * README: was seriously out of date. 40923955d011SMarcel Moolenaar 40933955d011SMarcel Moolenaar2005-03-22 Simon J. Gerraty <sjg@void.crufty.net> 40943955d011SMarcel Moolenaar 40953955d011SMarcel Moolenaar * Important to use .MAKE rather than MAKE. 40963955d011SMarcel Moolenaar 40973955d011SMarcel Moolenaar2005-03-15 Simon J. Gerraty <sjg@void.crufty.net> 40983955d011SMarcel Moolenaar 40993955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050315 41003955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41013955d011SMarcel Moolenaar o don't mistake .elsefoo for .else 41023955d011SMarcel Moolenaar o use suffix-specific search path correctly 41033955d011SMarcel Moolenaar o bunch of style nits 41043955d011SMarcel Moolenaar 41053955d011SMarcel Moolenaar2004-05-11 Simon J. Gerraty <sjg@void.crufty.net> 41063955d011SMarcel Moolenaar 41073955d011SMarcel Moolenaar * boot-strap: 41083955d011SMarcel Moolenaar o ensure that args to --src and --with-mksrc 41093955d011SMarcel Moolenaar are resolved before giving them to configure. 41103955d011SMarcel Moolenaar o add -o "objdir" so that builder can control it, 41113955d011SMarcel Moolenaar default is $OS as determined by os.sh 41123955d011SMarcel Moolenaar o add -q to suppress all the install instructions. 41133955d011SMarcel Moolenaar 41143955d011SMarcel Moolenaar2004-05-08 Simon J. Gerraty <sjg@void.crufty.net> 41153955d011SMarcel Moolenaar 41163955d011SMarcel Moolenaar * Remove __IDSTRING() 41173955d011SMarcel Moolenaar 41183955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040508 41193955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41203955d011SMarcel Moolenaar o posix fixes 41213955d011SMarcel Moolenaar - remove '-e' from compat mode 41223955d011SMarcel Moolenaar - add support for '+' command-line prefix. 41233955d011SMarcel Moolenaar o fix for handling '--' on command-line. 41243955d011SMarcel Moolenaar o fix include in lst.lib/lstInt.h to simplify '-I's 41253955d011SMarcel Moolenaar o we also picked up replacement of MAKE_BOOTSTRAP 41263955d011SMarcel Moolenaar with !MAKE_NATIVE which is a noop, but possibly confusing. 41273955d011SMarcel Moolenaar 41283955d011SMarcel Moolenaar2004-04-14 Simon J. Gerraty <sjg@void.crufty.net> 41293955d011SMarcel Moolenaar 41303955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040414 41313955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41323955d011SMarcel Moolenaar o allow quoted strings on lhs of conditionals 41333955d011SMarcel Moolenaar o issue warning when extra .else is seen 41343955d011SMarcel Moolenaar o print line numer when errors encountered during parsing from 41353955d011SMarcel Moolenaar string. 41363955d011SMarcel Moolenaar 41373955d011SMarcel Moolenaar2004-02-20 Simon J. Gerraty <sjg@void.crufty.net> 41383955d011SMarcel Moolenaar 41393955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040220 41403955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41413955d011SMarcel Moolenaar o fix for old :M parsing bug. 41423955d011SMarcel Moolenaar o re-jigged unit-tests 41433955d011SMarcel Moolenaar 41443955d011SMarcel Moolenaar2004-02-15 Simon J. Gerraty <sjg@void.crufty.net> 41453955d011SMarcel Moolenaar 41463955d011SMarcel Moolenaar * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,} 41473955d011SMarcel Moolenaar so that './bmake -f Makefile test' works. 41483955d011SMarcel Moolenaar 41493955d011SMarcel Moolenaar2004-02-14 Simon J. Gerraty <sjg@void.crufty.net> 41503955d011SMarcel Moolenaar 41513955d011SMarcel Moolenaar * Makefile.in: (BMAKE_VERSION): bump to 20040214 41523955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41533955d011SMarcel Moolenaar o search upwards for *.mk 41543955d011SMarcel Moolenaar o fix for double free of var substitution buffers 41553955d011SMarcel Moolenaar o use of getopt replaced with custom code, since the usage 41563955d011SMarcel Moolenaar (re-scanning) isn't posix compatible. 41573955d011SMarcel Moolenaar 41583955d011SMarcel Moolenaar2004-02-12 Simon J. Gerraty <sjg@void.crufty.net> 41593955d011SMarcel Moolenaar 41603955d011SMarcel Moolenaar * arch.c: don't include ranlib.h on ELF systems 41613955d011SMarcel Moolenaar (thanks to Chuck Cranor <chuck@ece.cmu.edu>). 41623955d011SMarcel Moolenaar 41633955d011SMarcel Moolenaar2004-01-18 Simon J. Gerraty <sjg@void.crufty.net> 41643955d011SMarcel Moolenaar 41653955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040118 41663955d011SMarcel Moolenaar 41673955d011SMarcel Moolenaar * boot-strap (while): export vars we assign to on cmdline 41683955d011SMarcel Moolenaar * unit-test/Makefile.in: ternary is .PHONY 41693955d011SMarcel Moolenaar 41703955d011SMarcel Moolenaar2004-01-08 Simon J. Gerraty <sjg@void.crufty.net> 41713955d011SMarcel Moolenaar 41723955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040108 41733955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41743955d011SMarcel Moolenaar o fix for ternary modifier 41753955d011SMarcel Moolenaar 41763955d011SMarcel Moolenaar2004-01-06 Simon J. Gerraty <sjg@void.crufty.net> 41773955d011SMarcel Moolenaar 41783955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040105 41793955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41803955d011SMarcel Moolenaar o fix for cond.c to handle compound expressions better 41813955d011SMarcel Moolenaar o variable expansion within sysV style replacements 41823955d011SMarcel Moolenaar 41833955d011SMarcel Moolenaar2003-12-22 Simon J. Gerraty <sjg@void.crufty.net> 41843955d011SMarcel Moolenaar 41853955d011SMarcel Moolenaar * Make portable snprintf safer - output to /dev/null first to 41863955d011SMarcel Moolenaar check space needed. 41873955d011SMarcel Moolenaar 41883955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20031222 41893955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41903955d011SMarcel Moolenaar o -dg3 to show input graph when things go wrong. 41913955d011SMarcel Moolenaar o explicitly look for makefiles in objdir if not found in curdir so 41923955d011SMarcel Moolenaar that errors in .depend etc will be reported accurarely. 41933955d011SMarcel Moolenaar o avoid use of -e in shell scripts in jobs mode, use '|| exit $?' 41943955d011SMarcel Moolenaar instead as it more accurately reflects the expected behavior and 41953955d011SMarcel Moolenaar is more consistently implemented. 41963955d011SMarcel Moolenaar o avoid use of asprintf. 41973955d011SMarcel Moolenaar 41983955d011SMarcel Moolenaar2003-09-28 Simon J. Gerraty <sjg@void.crufty.net> 41993955d011SMarcel Moolenaar 42003955d011SMarcel Moolenaar * util.c: Add asprintf and vasprintf. 42013955d011SMarcel Moolenaar 42023955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030928 42033955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42043955d011SMarcel Moolenaar :[] modifier - allows picking words from a variable. 42053955d011SMarcel Moolenaar :tW modifier - allows treating value as one big word. 42063955d011SMarcel Moolenaar W flag for :C and :S - allows treating value as one big word. 42073955d011SMarcel Moolenaar 42083955d011SMarcel Moolenaar2003-09-12 Simon J. Gerraty <sjg@void.crufty.net> 42093955d011SMarcel Moolenaar 42103955d011SMarcel Moolenaar * Merge with NetBSD make 42113955d011SMarcel Moolenaar pick up -de flag to enable printing failed command. 42123955d011SMarcel Moolenaar don't skip 1st two dir entries (normally . and ..) since 42133955d011SMarcel Moolenaar coda does not have them. 42143955d011SMarcel Moolenaar 42153955d011SMarcel Moolenaar2003-09-09 Simon J. Gerraty <sjg@void.crufty.net> 42163955d011SMarcel Moolenaar 42173955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030909 42183955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42193955d011SMarcel Moolenaar - changes for -V '${VAR}' to print fully expanded value 42203955d011SMarcel Moolenaar cf. -V VAR 42213955d011SMarcel Moolenaar - CompatRunCommand now prints the command that failed. 42223955d011SMarcel Moolenaar - several files got updated 3 clause Berkeley license. 42233955d011SMarcel Moolenaar 42243955d011SMarcel Moolenaar2003-08-02 Simon J. Gerraty <sjg@void.crufty.net> 42253955d011SMarcel Moolenaar 42263955d011SMarcel Moolenaar * boot-strap: Allow setting configure args on command line. 42273955d011SMarcel Moolenaar 42283955d011SMarcel Moolenaar2003-07-31 Simon J. Gerraty <sjg@void.crufty.net> 42293955d011SMarcel Moolenaar 42303955d011SMarcel Moolenaar * configure.in: add --with-defshell to allow sh or ksh 42313955d011SMarcel Moolenaar to be selected as default shell. 42323955d011SMarcel Moolenaar 42333955d011SMarcel Moolenaar * Makefile.in: bump version to 20030731 42343955d011SMarcel Moolenaar 42353955d011SMarcel Moolenaar * Merge with NetBSD make 42363955d011SMarcel Moolenaar Pick up .SHELL spec for ksh and associate man page changes. 42373955d011SMarcel Moolenaar Also compat mode now uses the same shell specs. 42383955d011SMarcel Moolenaar 42393955d011SMarcel Moolenaar2003-07-29 Simon J. Gerraty <sjg@void.crufty.net> 42403955d011SMarcel Moolenaar 42413955d011SMarcel Moolenaar * var.c (Var_Parse): ensure delim is initialized. 42423955d011SMarcel Moolenaar 42433955d011SMarcel Moolenaar * unit-tests/Makefile.in: use single quotes to avoid problems from 42443955d011SMarcel Moolenaar some shells. 42453955d011SMarcel Moolenaar 42463955d011SMarcel Moolenaar * makefile.boot.in: 42473955d011SMarcel Moolenaar Run the unit-tests as part of the bootstrap procedure. 42483955d011SMarcel Moolenaar 42493955d011SMarcel Moolenaar2003-07-28 Simon J. Gerraty <sjg@void.crufty.net> 42503955d011SMarcel Moolenaar 42513955d011SMarcel Moolenaar * unit-tests/Makefile.in: always force complaints from 42523955d011SMarcel Moolenaar ${TEST_MAKE} to be from 'make'. 42533955d011SMarcel Moolenaar 42543955d011SMarcel Moolenaar * configure.in: add check for 'diff -u' 42553955d011SMarcel Moolenaar also fix some old autoconf'isms 42563955d011SMarcel Moolenaar 42573955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030728. 42583955d011SMarcel Moolenaar if using GCC add -Wno-cast-qual to CFLAGS for var.o 42593955d011SMarcel Moolenaar 42603955d011SMarcel Moolenaar * Merge with NetBSD make 42613955d011SMarcel Moolenaar Pick up fix for :ts parsing error in some cases. 42623955d011SMarcel Moolenaar Pick unit-tests. 42633955d011SMarcel Moolenaar 42643955d011SMarcel Moolenaar2003-07-23 Simon J. Gerraty <sjg@void.crufty.net> 42653955d011SMarcel Moolenaar 42663955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030723. 42673955d011SMarcel Moolenaar 42683955d011SMarcel Moolenaar * var.c (Var_Parse): fix bug in :ts modifier, after const 42693955d011SMarcel Moolenaar correctness fixes, must pass nstr to VarModify. 42703955d011SMarcel Moolenaar 42713955d011SMarcel Moolenaar2003-07-14 Simon J. Gerraty <sjg@void.crufty.net> 42723955d011SMarcel Moolenaar 42733955d011SMarcel Moolenaar * Makefile.in: BMAKE_VERSION switch to a date based version. 42743955d011SMarcel Moolenaar We'll generally use the date of last import from NetBSD. 42753955d011SMarcel Moolenaar 42763955d011SMarcel Moolenaar * Merge with NetBSD make 42773955d011SMarcel Moolenaar Pick up fixes for const-correctness, now passes WARNS=3 on 42783955d011SMarcel Moolenaar NetBSD. 42793955d011SMarcel Moolenaar Pick up :ts modifier, allows controlling the separator used 42803955d011SMarcel Moolenaar between words in variable expansion. 42813955d011SMarcel Moolenaar 42823955d011SMarcel Moolenaar2003-07-11 Simon J. Gerraty <sjg@void.crufty.net> 42833955d011SMarcel Moolenaar 42843955d011SMarcel Moolenaar * FILES: include boot-strap and os.sh 42853955d011SMarcel Moolenaar 42863955d011SMarcel Moolenaar * Makefile.in: only set WARNS if we are NetBSD, the effect on 42873955d011SMarcel Moolenaar FreeBSD is known to be bad. 42883955d011SMarcel Moolenaar 42893955d011SMarcel Moolenaar * makefile.boot.in (bootstrap): make this the default target. 42903955d011SMarcel Moolenaar 42913955d011SMarcel Moolenaar * Makefile.in: bump version to 3.1.19 42923955d011SMarcel Moolenaar 42933955d011SMarcel Moolenaar * machine.sh: avoid A-Z with tr as it is bound to lose. 42943955d011SMarcel Moolenaar 42953955d011SMarcel Moolenaar2003-07-10 Simon J. Gerraty <sjg@void.crufty.net> 42963955d011SMarcel Moolenaar 42973955d011SMarcel Moolenaar * Merge with NetBSD make 42983955d011SMarcel Moolenaar Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo 42993955d011SMarcel Moolenaar Plus some doc fixes. 43003955d011SMarcel Moolenaar 43013955d011SMarcel Moolenaar2003-04-27 Simon J. Gerraty <sjg@void.crufty.net> 43023955d011SMarcel Moolenaar 43033955d011SMarcel Moolenaar * Merge with NetBSD make 43043955d011SMarcel Moolenaar Pick up fix for PR/1523 - don't count a library as built, if there 43053955d011SMarcel Moolenaar is no way to build it 43063955d011SMarcel Moolenaar 43073955d011SMarcel Moolenaar * Bump version to 3.1.18 43083955d011SMarcel Moolenaar 43093955d011SMarcel Moolenaar2003-03-23 Simon J. Gerraty <sjg@void.crufty.net> 43103955d011SMarcel Moolenaar 43113955d011SMarcel Moolenaar * Merge with NetBSD make 43123955d011SMarcel Moolenaar Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT 43133955d011SMarcel Moolenaar appears in src list. 43143955d011SMarcel Moolenaar 43153955d011SMarcel Moolenaar2003-03-21 Simon J. Gerraty <sjg@void.crufty.net> 43163955d011SMarcel Moolenaar 43173955d011SMarcel Moolenaar * Merge with NetBSD make (mmm 10th anniversary!) 43183955d011SMarcel Moolenaar pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828) 43193955d011SMarcel Moolenaar pick up -X which tells us to not export VAR=val via setenv if 43203955d011SMarcel Moolenaar we are already doing so via MAKEFLAGS. This saves valuable env 43213955d011SMarcel Moolenaar space on systems like Darwin. 43223955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.17 43233955d011SMarcel Moolenaar 43243955d011SMarcel Moolenaar * parse.c: pix up fix for suffix rules 43253955d011SMarcel Moolenaar 43263955d011SMarcel Moolenaar2003-03-06 Simon J. Gerraty <sjg@void.crufty.net> 43273955d011SMarcel Moolenaar 43283955d011SMarcel Moolenaar * Merge with NetBSD make. 43293955d011SMarcel Moolenaar pick up fix for propagating -B via MAKEFLAGS. 43303955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.16 43313955d011SMarcel Moolenaar 43323955d011SMarcel Moolenaar * Apply some patches from pkgsrc-bootstrap/bmake 43333955d011SMarcel Moolenaar Originally by Grant Beattie <grant@netbsd.org> 43343955d011SMarcel Moolenaar I may have missed some - since they are based on bmake-3.1.12 43353955d011SMarcel Moolenaar 43363955d011SMarcel Moolenaar2002-12-03 Simon J. Gerraty <sjg@void.crufty.net> 43373955d011SMarcel Moolenaar 43383955d011SMarcel Moolenaar * makefile.boot.in (bmake): update install targets for those that 43393955d011SMarcel Moolenaar use them, also clear MAKEFLAGS when invoking bmake.boot to avoid 43403955d011SMarcel Moolenaar havoc from gmake -w. Thanks to Harlan Stenn <hstenn@cisco.com>. 43413955d011SMarcel Moolenaar 43423955d011SMarcel Moolenaar * bmake.cat1: update the pre-formatted man page! 43433955d011SMarcel Moolenaar 43443955d011SMarcel Moolenaar2002-11-30 Simon J. Gerraty <sjg@void.crufty.net> 43453955d011SMarcel Moolenaar 43463955d011SMarcel Moolenaar * Merge with NetBSD make. 43473955d011SMarcel Moolenaar pick up fix for premature free of pointer used in call 43483955d011SMarcel Moolenaar to Dir_InitCur(). 43493955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.15 43503955d011SMarcel Moolenaar 43513955d011SMarcel Moolenaar2002-11-26 Simon J. Gerraty <sjg@void.crufty.net> 43523955d011SMarcel Moolenaar 43533955d011SMarcel Moolenaar * configure.in: determine suitable value for MKSRC. 43543955d011SMarcel Moolenaar override using --with-mksrc=PATH. 43553955d011SMarcel Moolenaar 43563955d011SMarcel Moolenaar * machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems. 43573955d011SMarcel Moolenaar configs(8) will use 'sun4' as an alias for 'sparc'. 43583955d011SMarcel Moolenaar 43593955d011SMarcel Moolenaar2002-11-25 Simon J. Gerraty <sjg@void.crufty.net> 43603955d011SMarcel Moolenaar 43613955d011SMarcel Moolenaar * Merge with NetBSD make. 43623955d011SMarcel Moolenaar pick up ${.PATH} 43633955d011SMarcel Moolenaar pick up fix for finding ../cat.c via .PATH when .CURDIR=.. 43643955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.14 43653955d011SMarcel Moolenaar add configure checks for killpg and sys/socket.h 43663955d011SMarcel Moolenaar 43673955d011SMarcel Moolenaar2002-09-16 Simon J. Gerraty <sjg@void.crufty.net> 43683955d011SMarcel Moolenaar 43693955d011SMarcel Moolenaar * tag bmake-3-1-13 43703955d011SMarcel Moolenaar 43713955d011SMarcel Moolenaar * makefile.boot.in (bmake): use install-mk 43723955d011SMarcel Moolenaar Also setup ./mk before trying to invoke bmake.boot incase we 43733955d011SMarcel Moolenaar needed install-mk to create a sys.mk for us. 43743955d011SMarcel Moolenaar 43753955d011SMarcel Moolenaar * configure.in: If we need to add -I${srcdir}/missing, make it an 43763955d011SMarcel Moolenaar absolute path so that it works for lst.lib too. 43773955d011SMarcel Moolenaar 43783955d011SMarcel Moolenaar * make.h: always include sys/cdefs.h since we provide one if the 43793955d011SMarcel Moolenaar host does not. 43803955d011SMarcel Moolenaar 43813955d011SMarcel Moolenaar * Makefile.in (install-mk): 43823955d011SMarcel Moolenaar use MKSRC/install-mk which will do the right thing. 43833955d011SMarcel Moolenaar use uname -p for ARCH if possible. 43843955d011SMarcel Moolenaar since install-mk will setup links bsd.prog.mk -> prog.mk if 43853955d011SMarcel Moolenaar needed, just .include bsd.prog.mk 43863955d011SMarcel Moolenaar 43873955d011SMarcel Moolenaar * Merge with NetBSD make (NetBSD-1.6) 43883955d011SMarcel Moolenaar Code is ansi-C only now. 43893955d011SMarcel Moolenaar Bug in handling of dotLast is fixed. 43903955d011SMarcel Moolenaar Can now assign .OBJDIR and make will reset its notions of life. 43913955d011SMarcel Moolenaar New modifiers :tu :tl for toUpper and toLower. 43923955d011SMarcel Moolenaar 43933955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001 Simon J. Gerraty <sjg@zen.crufty.net> 43943955d011SMarcel Moolenaar 43953955d011SMarcel Moolenaar * Merge with NetBSD make 43963955d011SMarcel Moolenaar pick up fix for .END failure in compat mode. 43973955d011SMarcel Moolenaar pick up fix for extra va_end() in ParseVErrorInternal. 43983955d011SMarcel Moolenaar 43993955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001 Simon J. Gerraty <sjg@zen.crufty.net> 44003955d011SMarcel Moolenaar 44013955d011SMarcel Moolenaar * configure.in: for systems that have sys/cdefs.h check if it is 44023955d011SMarcel Moolenaar compatible. If not, include the one under missing, but tell it to 44033955d011SMarcel Moolenaar include the native one too - necessary on Linux. 44043955d011SMarcel Moolenaar 44053955d011SMarcel Moolenaar * missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use 44063955d011SMarcel Moolenaar include_next (for gcc) to get the native sys/cdefs.h 44073955d011SMarcel Moolenaar 44083955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44093955d011SMarcel Moolenaar 44103955d011SMarcel Moolenaar * job.c (JobFinish): Fix an earlier merge bug that resulted in 44113955d011SMarcel Moolenaar leaking descriptors when using -jN. 44123955d011SMarcel Moolenaar 44133955d011SMarcel Moolenaar * job.c (JobPrintCommand): See if "curdir" exists before 44143955d011SMarcel Moolenaar attempting to chdir(). Doing the chdir directly in make (when in 44153955d011SMarcel Moolenaar compat mode) fails silently, so let the -jN version do the same. 44163955d011SMarcel Moolenaar This can happen when building kernels in an object tree and 44173955d011SMarcel Moolenaar playing clever games to reset .CURDIR. 44183955d011SMarcel Moolenaar 44193955d011SMarcel Moolenaar * Merged with NetBSD make 44203955d011SMarcel Moolenaar pick up .USEBEFORE 44213955d011SMarcel Moolenaar 44223955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44233955d011SMarcel Moolenaar 44243955d011SMarcel Moolenaar * makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work. 44253955d011SMarcel Moolenaar 44263955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44273955d011SMarcel Moolenaar 44283955d011SMarcel Moolenaar * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell 44293955d011SMarcel Moolenaar us not to export the iterator variable when using VAR_CMD context. 44303955d011SMarcel Moolenaar 44313955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44323955d011SMarcel Moolenaar 44333955d011SMarcel Moolenaar * job.c (Job_CatchChildren): don't call Job_CatchOutput() here, 44343955d011SMarcel Moolenaar its the wrong "fix". 44353955d011SMarcel Moolenaar 44363955d011SMarcel MoolenaarSat Jun 9 00:11:24 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44373955d011SMarcel Moolenaar 44383955d011SMarcel Moolenaar * Redesigned export of VAR_CMD's via MAKEFLAGS. 44393955d011SMarcel Moolenaar We now simply append the variable names to .MAKEOVERRIDES, and 44403955d011SMarcel Moolenaar handle duplicate suppression and quoting in ExportMAKEFLAGS using: 44413955d011SMarcel Moolenaar ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@} 44423955d011SMarcel Moolenaar Apart from fixing quoting bugs in previous version, this allows us 44433955d011SMarcel Moolenaar to export vars to the environment by simply doing: 44443955d011SMarcel Moolenaar .MAKEOVERRIDES+= PATH 44453955d011SMarcel Moolenaar Merged again with NetBSD make, but the above is the only change. 44463955d011SMarcel Moolenaar 44473955d011SMarcel Moolenaar * configure.in: added 44483955d011SMarcel Moolenaar --disable-pwd-override disable $PWD overriding getcwd() 44493955d011SMarcel Moolenaar --disable-check-make-chdir disable make trying to guess 44503955d011SMarcel Moolenaar when it should automatically cd ${.CURDIR} 44513955d011SMarcel Moolenaar 44523955d011SMarcel Moolenaar * Merge with NetBSD make, changes include: 44533955d011SMarcel Moolenaar parse.c (ParseDoDependency): Spot that the syntax error is 44543955d011SMarcel Moolenaar caused by an unresolved cvs/rcs conflict and say so. 44553955d011SMarcel Moolenaar var.c: most of Var* functions now take a ctxt as 1st arg. 44563955d011SMarcel Moolenaar now does variable substituion on rhs of sysv style modifiers. 44573955d011SMarcel Moolenaar 44583955d011SMarcel Moolenaar * var.c (Var_Set): exporting of command line variables (VAR_CMD) 44593955d011SMarcel Moolenaar is now done here. We append the name='value' to .MAKEOVERRIDES 44603955d011SMarcel Moolenaar rather than directly into MAKEFLAGS as this allows a Makefile to 44613955d011SMarcel Moolenaar use .MAKEOVERRIDES= to disable this behaviour. GNU make uses a 44623955d011SMarcel Moolenaar very similar mechanism. Note that in adding name='value' to 44633955d011SMarcel Moolenaar .MAKEOVERRIDES we do the moral equivalent of: 44643955d011SMarcel Moolenaar .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val' 44653955d011SMarcel Moolenaar 44663955d011SMarcel MoolenaarFri Jun 1 14:08:02 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44673955d011SMarcel Moolenaar 44683955d011SMarcel Moolenaar * make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H 44693955d011SMarcel Moolenaar 44703955d011SMarcel Moolenaar * Merged with NetBSD make 44713955d011SMarcel Moolenaar make -dx can now be used to run commands via sh -x 44723955d011SMarcel Moolenaar better error messages on exec failures. 44733955d011SMarcel Moolenaar 44743955d011SMarcel MoolenaarThu May 31 01:44:54 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44753955d011SMarcel Moolenaar 44763955d011SMarcel Moolenaar * Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that 44773955d011SMarcel Moolenaar MAKE_VERSION gets updated. Also don't use ?= for MAKE_VERSION, 44783955d011SMarcel Moolenaar MACHINE etc otherwise they propagate from the previous bmake. 44793955d011SMarcel Moolenaar 44803955d011SMarcel Moolenaar * configure.in (machine): allow --with-machine=generic to make 44813955d011SMarcel Moolenaar configure use machine.sh to set MACHINE. 44823955d011SMarcel Moolenaar 44833955d011SMarcel Moolenaar * job.c (JobInterrupt): convert to using WAIT_T and friends. 44843955d011SMarcel Moolenaar 44853955d011SMarcel Moolenaar * Makefile.in: mention in bmake.1 that we use autoconf. 44863955d011SMarcel Moolenaar 44873955d011SMarcel Moolenaar * make.1: mention MAKE_PRINT_VAR_ON_ERROR. 44883955d011SMarcel Moolenaar 44893955d011SMarcel MoolenaarWed May 30 23:17:18 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44903955d011SMarcel Moolenaar 44913955d011SMarcel Moolenaar * main.c (ReadMakefile): don't set MAKEFILE if reading ".depend" 44923955d011SMarcel Moolenaar as that rather defeats the usefulness of ${MAKEFILE}. 44933955d011SMarcel Moolenaar 44943955d011SMarcel Moolenaar * main.c (MainParseArgs): append command line variable assignments 44953955d011SMarcel Moolenaar to MAKEFLAGS so that they get propagated to child make's. 44963955d011SMarcel Moolenaar Apparently this is required POSIX behaviour? Its useful anyway. 44973955d011SMarcel Moolenaar 44983955d011SMarcel MoolenaarTue May 29 02:20:07 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44993955d011SMarcel Moolenaar 45003955d011SMarcel Moolenaar * compat.c (CompatRunCommand): don't use perror() since stdio may 45013955d011SMarcel Moolenaar cause problems in child of vfork(). 45023955d011SMarcel Moolenaar 45033955d011SMarcel Moolenaar * compat.c, main.c: Call PrintOnError() when we are going to bail. 45043955d011SMarcel Moolenaar This routine prints out the .curdir where we stopped and will also 45053955d011SMarcel Moolenaar display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}. 45063955d011SMarcel Moolenaar 45073955d011SMarcel Moolenaar * main.c: add ${.newline} to hold a "\n" - sometimes handy in 45083955d011SMarcel Moolenaar :@ expansion. 45093955d011SMarcel Moolenaar 45103955d011SMarcel Moolenaar * var.c: VarLoopExpand: ignore addSpace if a \n is present. 45113955d011SMarcel Moolenaar 45123955d011SMarcel Moolenaar * Added RCSid's for the files we've touched. 45133955d011SMarcel Moolenaar 45143955d011SMarcel MoolenaarThu May 24 15:41:37 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45153955d011SMarcel Moolenaar 45163955d011SMarcel Moolenaar * configure.in: Thanks to some clues from mdb@juniper.net, 45173955d011SMarcel Moolenaar added autoconf magic to control setting of MACHINE, MACHINE_ARCH 45183955d011SMarcel Moolenaar as well as what ends up in _PATH_DEFSYSPATH. We now have: 45193955d011SMarcel Moolenaar 45203955d011SMarcel Moolenaar --with-machine=MACHINE explicitly set MACHINE 45213955d011SMarcel Moolenaar --with-force-machine=MACHINE set FORCE_MACHINE 45223955d011SMarcel Moolenaar --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH 45233955d011SMarcel Moolenaar --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 45243955d011SMarcel Moolenaar --with-prefix-sys-path=PATH:DIR:LIST prefix _PATH_PREFIX_SYSPATH 45253955d011SMarcel Moolenaar --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX 45263955d011SMarcel Moolenaar 45273955d011SMarcel Moolenaar If _PATH_OBJDIRPREFIX is set to "no" we won't define it. 45283955d011SMarcel Moolenaar 45293955d011SMarcel Moolenaar * makefile: added a pathetically simple makefile to drive 45303955d011SMarcel Moolenaar bootstrapping. Running configure by hand is more useful. 45313955d011SMarcel Moolenaar 45323955d011SMarcel Moolenaar * Makefile.in: added MAKE_VERSION, and reworked things to be less 45333955d011SMarcel Moolenaar dependent on NetBSD bsd.*.mk 45343955d011SMarcel Moolenaar 45353955d011SMarcel Moolenaar * pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining 45363955d011SMarcel Moolenaar _PATH_OBJDIRPREFIX for those that don't want a default. 45373955d011SMarcel Moolenaar construct _PATH_DEFSYSPATH from the info we get from configure. 45383955d011SMarcel Moolenaar 45393955d011SMarcel Moolenaar * main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION} 45403955d011SMarcel Moolenaar if MAKE_VERSION is defined. 45413955d011SMarcel Moolenaar 45423955d011SMarcel Moolenaar * compat.c: when we bail, print out the .CURDIR we were in. 45433955d011SMarcel Moolenaar 45443955d011SMarcel MoolenaarSat May 12 00:34:12 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45453955d011SMarcel Moolenaar 45463955d011SMarcel Moolenaar * Merged with NetBSD make 45473955d011SMarcel Moolenaar 45483955d011SMarcel Moolenaar * var.c: fixed a bug in the handling of the modifier :P 45493955d011SMarcel Moolenaar if the node as found but the path was null, we segfault trying to 45503955d011SMarcel Moolenaar duplicate it. 45513955d011SMarcel Moolenaar 45523955d011SMarcel MoolenaarMon Mar 5 16:20:33 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45533955d011SMarcel Moolenaar 45543955d011SMarcel Moolenaar * Merged with NetBSD make 45553955d011SMarcel Moolenaar 45563955d011SMarcel Moolenaar * make.c: Make_OODate's test for a library out of date was using 45573955d011SMarcel Moolenaar cmtime where it should have used mtime (my bug). 45583955d011SMarcel Moolenaar 45593955d011SMarcel Moolenaar * compat.c: Use perror() to tell us what really went wrong when we 45603955d011SMarcel Moolenaar cannot exec a command. 45613955d011SMarcel Moolenaar 45623955d011SMarcel MoolenaarFri Dec 15 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 45633955d011SMarcel Moolenaar 45643955d011SMarcel Moolenaar * Merged with NetBSD make 45653955d011SMarcel Moolenaar 45663955d011SMarcel MoolenaarSat Jun 10 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 45673955d011SMarcel Moolenaar 45683955d011SMarcel Moolenaar * Merged with NetBSD make 45693955d011SMarcel Moolenaar 45703955d011SMarcel MoolenaarThu Jun 1 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 45713955d011SMarcel Moolenaar 45723955d011SMarcel Moolenaar * Merged with NetBSD make 45733955d011SMarcel Moolenaar 45743955d011SMarcel MoolenaarTue May 30 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 45753955d011SMarcel Moolenaar 45763955d011SMarcel Moolenaar * Merged with NetBSD make 45773955d011SMarcel Moolenaar 45783955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 45793955d011SMarcel Moolenaar 45803955d011SMarcel Moolenaar * util.c: don't provide signal() since we use sigcompat.c 45813955d011SMarcel Moolenaar 45823955d011SMarcel Moolenaar * Makefile.in: added a build target. 45833955d011SMarcel Moolenaar 45843955d011SMarcel Moolenaar * var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :! 45853955d011SMarcel Moolenaar These allow some quite clever magic. 45863955d011SMarcel Moolenaar 45873955d011SMarcel Moolenaar * main.c (main): added support for getenv(MAKESYSPATH). 45883955d011SMarcel Moolenaar 45893955d011SMarcel MoolenaarMon Apr 2 16:25:13 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 45903955d011SMarcel Moolenaar 45913955d011SMarcel Moolenaar * Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set. 45923955d011SMarcel Moolenaar This avoids objdir having a different value depending on how a 45933955d011SMarcel Moolenaar directory was reached (via command line, or subdir.mk). 45943955d011SMarcel Moolenaar 45953955d011SMarcel Moolenaar * If FORCE_MACHINE is defined, ignore getenv("MACHINE"). 45963955d011SMarcel Moolenaar 45973955d011SMarcel MoolenaarMon Apr 2 23:15:31 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 45983955d011SMarcel Moolenaar 45993955d011SMarcel Moolenaar * Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if 46003955d011SMarcel Moolenaar MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not. 46013955d011SMarcel Moolenaar I've been testing this in NetBSD's make for some weeks. 46023955d011SMarcel Moolenaar 46033955d011SMarcel Moolenaar * Turn Makefile into Makefile.in and make it useful. 46043955d011SMarcel Moolenaar 46053955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46063955d011SMarcel Moolenaar 46073955d011SMarcel Moolenaar * Imported NetBSD's -current make(1) and resolve conflicts. 46083955d011SMarcel Moolenaar 46093955d011SMarcel Moolenaar * Applied autoconf patches from bmake v2 46103955d011SMarcel Moolenaar 46113955d011SMarcel Moolenaar * Imported clean code base from NetBSD-1.0 4612