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