1*8d5c8e21SSimon J. Gerraty2024-06-25 Simon J Gerraty <sjg@beast.crufty.net> 2*8d5c8e21SSimon J. Gerraty 3*8d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240625 4*8d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 5*8d5c8e21SSimon J. Gerraty o job.c: ensure shellPath is always duped, avoid upsetting free() 6*8d5c8e21SSimon J. Gerraty 7*8d5c8e21SSimon J. Gerraty2024-06-16 Simon J Gerraty <sjg@beast.crufty.net> 8*8d5c8e21SSimon J. Gerraty 9*8d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240616 10*8d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 11*8d5c8e21SSimon J. Gerraty o clean up collection of context information for error messages 12*8d5c8e21SSimon J. Gerraty o in warnings, move the word "warning" to the front 13*8d5c8e21SSimon J. Gerraty o var.c: throw an error on attempt to override an internal 14*8d5c8e21SSimon J. Gerraty read-only variable 15*8d5c8e21SSimon J. Gerraty 16*8d5c8e21SSimon J. Gerraty2024-06-10 Simon J Gerraty <sjg@beast.crufty.net> 17*8d5c8e21SSimon J. Gerraty 18*8d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240610 19*8d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 20*8d5c8e21SSimon J. Gerraty o for.c: remove redundant shortcut for building the .for loop body 21*8d5c8e21SSimon J. Gerraty 22*8d5c8e21SSimon J. Gerraty2024-06-02 Simon J Gerraty <sjg@beast.crufty.net> 23*8d5c8e21SSimon J. Gerraty 24*8d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240602 25*8d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 26*8d5c8e21SSimon J. Gerraty o rename some VarEvalMode constants to better match debug names. 27*8d5c8e21SSimon J. Gerraty o var.c: avoid out-of-bounds read when parsing indirect modifiers. 28*8d5c8e21SSimon J. Gerraty 29*8d5c8e21SSimon J. Gerraty2024-06-01 Simon J Gerraty <sjg@beast.crufty.net> 30*8d5c8e21SSimon J. Gerraty 31*8d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240601 32*8d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 33*8d5c8e21SSimon J. Gerraty o add .export-all rather than allow .export with no argument 34*8d5c8e21SSimon J. Gerraty which can happen accidentally. 35*8d5c8e21SSimon J. Gerraty o if lua is available, run check-expect.lua after unit-tests 36*8d5c8e21SSimon J. Gerraty o main.c: use snprintf rather than strncpy 37*8d5c8e21SSimon J. Gerraty fix memory leak when purging realpath cache. 38*8d5c8e21SSimon J. Gerraty 39*8d5c8e21SSimon J. Gerraty2024-05-28 Simon J Gerraty <sjg@beast.crufty.net> 40*8d5c8e21SSimon J. Gerraty 41*8d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240528 42*8d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 43*8d5c8e21SSimon J. Gerraty o fix a number of memory leaks 44*8d5c8e21SSimon J. Gerraty o replace magic numbers with POSIX FILENO constants 45*8d5c8e21SSimon J. Gerraty o hash.c: remove dead code from HashTable_DeleteEntry 46*8d5c8e21SSimon J. Gerraty o main.c: when complaining about unusable .OBJDIR 47*8d5c8e21SSimon J. Gerraty call PrintOnError if MAKE_DEBUG_OBJDIR_CHECK_WRITABLE is true. 48*8d5c8e21SSimon J. Gerraty o parse.c: use fewer technical terms in debug message for dependency 49*8d5c8e21SSimon J. Gerraty 509d3df31eSSimon J. Gerraty2024-05-20 Simon J Gerraty <sjg@beast.crufty.net> 519d3df31eSSimon J. Gerraty 529d3df31eSSimon J. Gerraty * VERSION (_MAKE_VERSION): 539d3df31eSSimon J. Gerraty Merge with NetBSD make, pick up 549d3df31eSSimon J. Gerraty o dir.c: in FindFile restore last search of .CURDIR even for 559d3df31eSSimon J. Gerraty includes, as a number of existing makefiles are broken otherwise. 569d3df31eSSimon J. Gerraty 579d3df31eSSimon J. Gerraty2024-05-19 Simon J Gerraty <sjg@beast.crufty.net> 589d3df31eSSimon J. Gerraty 599d3df31eSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240519 609d3df31eSSimon J. Gerraty Merge with NetBSD make, pick up 619d3df31eSSimon J. Gerraty o dir.c: Add Dir_FindInclude, FindFile without looking in .CURDIR. 629d3df31eSSimon J. Gerraty Also fix Dir_SetSYSPATH to use defSysIncPath if sysIncPath is empty. 639d3df31eSSimon J. Gerraty o main.c: no need to set .DOTLAST in sysIncPath 649d3df31eSSimon J. Gerraty 65c9f4001fSSimon J. Gerraty2024-05-07 Simon J Gerraty <sjg@beast.crufty.net> 66c9f4001fSSimon J. Gerraty 67c9f4001fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240508 68c9f4001fSSimon J. Gerraty Merge with NetBSD make, pick up 69c9f4001fSSimon J. Gerraty o make: ensure variables set on command line get added to 70c9f4001fSSimon J. Gerraty .MAKEOVERRIDES (even if they start with '.') so they are passed to 71c9f4001fSSimon J. Gerraty sub-makes. 72c9f4001fSSimon J. Gerraty 73548bfc56SSimon J. Gerraty2024-04-30 Simon J Gerraty <sjg@beast.crufty.net> 74548bfc56SSimon J. Gerraty 75548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240430 76548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 77548bfc56SSimon J. Gerraty o main.c: ensure '.include <makefile>' respects MAKESYSPATH. 78548bfc56SSimon J. Gerraty Dir_FindFile will search .CURDIR first unless ".DOTLAST" is seen. 79548bfc56SSimon J. Gerraty 80548bfc56SSimon J. Gerraty2024-04-28 Simon J Gerraty <sjg@beast.crufty.net> 81548bfc56SSimon J. Gerraty 82548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240428 83548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 84548bfc56SSimon J. Gerraty o simplify freeing of lists 85548bfc56SSimon J. Gerraty o arch.c: trim pointless comments 86548bfc56SSimon J. Gerraty o var.c: delay variable assignments until actually needed 87548bfc56SSimon J. Gerraty don't reallocate memory after evaluating an expression, result is 88548bfc56SSimon J. Gerraty almost always short-lived. 89548bfc56SSimon J. Gerraty 90548bfc56SSimon J. Gerraty2024-04-26 Simon J Gerraty <sjg@beast.crufty.net> 91548bfc56SSimon J. Gerraty 92548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240426 93548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 94548bfc56SSimon J. Gerraty o job.c: in debug output, print the directory in which a job 95548bfc56SSimon J. Gerraty failed at same time as failed target so it is more easily found in 96548bfc56SSimon J. Gerraty build log. 97548bfc56SSimon J. Gerraty 98548bfc56SSimon J. Gerraty2024-04-24 Simon J Gerraty <sjg@beast.crufty.net> 99548bfc56SSimon J. Gerraty 100548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240424 101548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 102548bfc56SSimon J. Gerraty o clean up comments, code and tests 103548bfc56SSimon J. Gerraty 104548bfc56SSimon J. Gerraty2024-04-23 Simon J Gerraty <sjg@beast.crufty.net> 105548bfc56SSimon J. Gerraty 106548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240422 107548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 108548bfc56SSimon J. Gerraty o var.c: avoid LazyBuf for :*time modifiers. 109548bfc56SSimon J. Gerraty LazyBuf's are not nul terminated so not suitable for passing to 110548bfc56SSimon J. Gerraty functions that expect that. These modifiers are used sparingly so 111548bfc56SSimon J. Gerraty an extra allocation is not a problem. 112548bfc56SSimon J. Gerraty 113548bfc56SSimon J. Gerraty2024-04-20 Simon J Gerraty <sjg@beast.crufty.net> 114548bfc56SSimon J. Gerraty 115548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240420 116548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 117548bfc56SSimon J. Gerraty o provide more context information for parse/evaluate errors 118548bfc56SSimon J. Gerraty 119548bfc56SSimon J. Gerraty2024-04-14 Simon J Gerraty <sjg@beast.crufty.net> 120548bfc56SSimon J. Gerraty 121548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240414 122548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 123548bfc56SSimon J. Gerraty o parse.c: print -dp debug info earlier so we see which 124548bfc56SSimon J. Gerraty .if or .for line is being parsed. 125548bfc56SSimon J. Gerraty 126548bfc56SSimon J. Gerraty2024-04-04 Simon J Gerraty <sjg@beast.crufty.net> 127548bfc56SSimon J. Gerraty 128548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240404 129548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 130548bfc56SSimon J. Gerraty o fix some unit tests for Cygwin 131548bfc56SSimon J. Gerraty o parse.c: exit immediately after reading a null byte from a makefile 132548bfc56SSimon J. Gerraty 133548bfc56SSimon J. Gerraty * fix generation of bmake.cat1 134548bfc56SSimon J. Gerraty 135548bfc56SSimon J. Gerraty2024-03-19 Simon J Gerraty <sjg@beast.crufty.net> 136548bfc56SSimon J. Gerraty 137548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240314 138548bfc56SSimon J. Gerraty Add/Improve support for Cygwin 139548bfc56SSimon J. Gerraty o uname -s output isn't useful so allow configure to 140548bfc56SSimon J. Gerraty set FORCE_MAKE_OS - to force the value of .MAKE.OS 141548bfc56SSimon J. Gerraty and use Cygwin which matches uname -o 142548bfc56SSimon J. Gerraty o fix some unit-tests for Cygwin 143548bfc56SSimon J. Gerraty 144c59c3bf3SSimon J. Gerraty2024-03-10 Simon J Gerraty <sjg@beast.crufty.net> 145c59c3bf3SSimon J. Gerraty 146c59c3bf3SSimon J. Gerraty * boot-strap: tests can take a long time; use a cookie to 147c59c3bf3SSimon J. Gerraty skip them if bmake has not been updated since tests last 148c59c3bf3SSimon J. Gerraty ran successfully. 149c59c3bf3SSimon J. Gerraty 150c59c3bf3SSimon J. Gerraty * Makefile: Cygwin handles MANTARGET man 151c59c3bf3SSimon J. Gerraty 152c59c3bf3SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for Cygwin 153c59c3bf3SSimon J. Gerraty 154c59c3bf3SSimon J. Gerraty2024-03-09 Simon J Gerraty <sjg@beast.crufty.net> 155c59c3bf3SSimon J. Gerraty 156c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240309 157c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 158c59c3bf3SSimon J. Gerraty o set .ERROR_EXIT to the exit status of .ERROR_TARGET 159c59c3bf3SSimon J. Gerraty this allows a .ERROR target to ignore the case of 160c59c3bf3SSimon J. Gerraty .ERROR_EXIT==6 which just means that the build actually 161c59c3bf3SSimon J. Gerraty failed somewhere else. 162c59c3bf3SSimon J. Gerraty 163c59c3bf3SSimon J. Gerraty2024-03-04 Simon J Gerraty <sjg@beast.crufty.net> 164c59c3bf3SSimon J. Gerraty 165c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240303 166c59c3bf3SSimon J. Gerraty 167c59c3bf3SSimon J. Gerraty * var.c: on IRIX we need both inttypes.h and stdint.h 168c59c3bf3SSimon J. Gerraty 169c59c3bf3SSimon J. Gerraty2024-03-01 Simon J Gerraty <sjg@beast.crufty.net> 170c59c3bf3SSimon J. Gerraty 171c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240301 172c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 173c59c3bf3SSimon J. Gerraty o export variables with value from target scope 174c59c3bf3SSimon J. Gerraty when appropriate. 175c59c3bf3SSimon J. Gerraty 176c59c3bf3SSimon J. Gerraty2024-02-12 Simon J Gerraty <sjg@beast.crufty.net> 177c59c3bf3SSimon J. Gerraty 178c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240212 179c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 180c59c3bf3SSimon J. Gerraty o remove unneeded conditional-compilation toggles 181c59c3bf3SSimon J. Gerraty INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB, 182c59c3bf3SSimon J. Gerraty GMAKEEXPORT NO_REGEX and SUNSHCMD 183c59c3bf3SSimon J. Gerraty 184c59c3bf3SSimon J. Gerraty * configure.in: add check for regex.h 185c59c3bf3SSimon J. Gerraty 186c59c3bf3SSimon J. Gerraty * var.c: replace use of NO_REGEX with HAVE_REGEX_H 187c59c3bf3SSimon J. Gerraty 188c59c3bf3SSimon J. Gerraty2024-02-04 Simon J Gerraty <sjg@beast.crufty.net> 189c59c3bf3SSimon J. Gerraty 190c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240204 191c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 192c59c3bf3SSimon J. Gerraty o var.c: fix some lint (-dL) mode parsing issues 193c59c3bf3SSimon J. Gerraty 194c59c3bf3SSimon J. Gerraty2024-02-02 Simon J Gerraty <sjg@beast.crufty.net> 195c59c3bf3SSimon J. Gerraty 196c59c3bf3SSimon J. Gerraty * VERSION: (_MAKE_VERSION): 20240202 197c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 198c59c3bf3SSimon J. Gerraty o make.1: note that arg to :D and :U can be empty 199c59c3bf3SSimon J. Gerraty o var.c: $$ is not a parse error when .MAKE.SAVE_DOLLARS=no 200c59c3bf3SSimon J. Gerraty 201d5e0a182SSimon J. Gerraty2024-01-08 Simon J Gerraty <sjg@beast.crufty.net> 202d5e0a182SSimon J. Gerraty 203d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240108 204d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 205d5e0a182SSimon J. Gerraty o miscellaneous cleanups 206d5e0a182SSimon J. Gerraty 207d5e0a182SSimon J. Gerraty2024-01-06 Simon J Gerraty <sjg@beast.crufty.net> 208d5e0a182SSimon J. Gerraty 209d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240106 210d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 211d5e0a182SSimon J. Gerraty o fix duplicate progname when reporting an unknown target 212d5e0a182SSimon J. Gerraty o unit tests for Cmd_Exec using temp file 213d5e0a182SSimon J. Gerraty 214d5e0a182SSimon J. Gerraty2024-01-05 Simon J Gerraty <sjg@beast.crufty.net> 215d5e0a182SSimon J. Gerraty 216d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240105 217d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 218d5e0a182SSimon J. Gerraty o main.c: Cmd_Exec write cmd to a file if too big 219d5e0a182SSimon J. Gerraty avoid blowing commandline/env limits 220d5e0a182SSimon J. Gerraty 221d5e0a182SSimon J. Gerraty2024-01-02 Simon J Gerraty <sjg@beast.crufty.net> 222d5e0a182SSimon J. Gerraty 223d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240101 224d5e0a182SSimon J. Gerraty o util.c: flesh out more of strftime 225d5e0a182SSimon J. Gerraty * configure.in: add --with-bmake-strftime 226d5e0a182SSimon J. Gerraty it is not a full implementation but enough to pass all 227d5e0a182SSimon J. Gerraty the unit-tests. 228d5e0a182SSimon J. Gerraty * parse.c: LoadFile do not append \n to empty buffer. 229d5e0a182SSimon J. Gerraty 230d5e0a182SSimon J. Gerraty2023-12-30 Simon J Gerraty <sjg@beast.crufty.net> 231d5e0a182SSimon J. Gerraty 232d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231230 233d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 234d5e0a182SSimon J. Gerraty o simplify memory allocation for string buffers 235d5e0a182SSimon J. Gerraty o fix declared types of list nodes 236d5e0a182SSimon J. Gerraty o suff.c: clean up freeing of suffixes 237d5e0a182SSimon J. Gerraty o var.c: simplify debug message for the ':@var@...@' modifier 238d5e0a182SSimon J. Gerraty clean up variable handling 239d5e0a182SSimon J. Gerraty 240d5e0a182SSimon J. Gerraty2023-12-26 Simon J Gerraty <sjg@beast.crufty.net> 241d5e0a182SSimon J. Gerraty 242d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231226 243d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 244d5e0a182SSimon J. Gerraty o compat.c: ensure make's output is correctly ordered with that of 245d5e0a182SSimon J. Gerraty the target when not going to a tty 246d5e0a182SSimon J. Gerraty o main.c: check for shellPath whether to call Shell_Init() 247d5e0a182SSimon J. Gerraty 248d5e0a182SSimon J. Gerraty2023-12-24 Simon J Gerraty <sjg@beast.crufty.net> 249d5e0a182SSimon J. Gerraty 250d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231224 251d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 252d5e0a182SSimon J. Gerraty o compat.c: check for shellPath whether to call Shell_Init() 253d5e0a182SSimon J. Gerraty tweak the unit test to detect the bug thus fixed. 254d5e0a182SSimon J. Gerraty o make.1: do not claim .SHELL is only used by jobs mode. 255d5e0a182SSimon J. Gerraty 256d5e0a182SSimon J. Gerraty2023-12-22 Simon J Gerraty <sjg@beast.crufty.net> 257d5e0a182SSimon J. Gerraty 258d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231220 259d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 260d5e0a182SSimon J. Gerraty o str.c: speed up pattern matching in the ':M' modifier 261d5e0a182SSimon J. Gerraty o var.c: fix confusing debug logging when deleting a variable 262d5e0a182SSimon J. Gerraty use consistent debug messages style when ignoring variables 263d5e0a182SSimon J. Gerraty 264d5e0a182SSimon J. Gerraty2023-12-10 Simon J Gerraty <sjg@beast.crufty.net> 265d5e0a182SSimon J. Gerraty 266d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231210 267d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 268d5e0a182SSimon J. Gerraty o var.c: avoid segfault on empty :C match expression 269d5e0a182SSimon J. Gerraty explain in debug log why variable assignment is ignored. 270d5e0a182SSimon J. Gerraty 271d5e0a182SSimon J. Gerraty2023-12-08 Simon J Gerraty <sjg@beast.crufty.net> 272d5e0a182SSimon J. Gerraty 273d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231208 274d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 275d5e0a182SSimon J. Gerraty o var.c: ensure fromCmd is set correctly for variables set on 276d5e0a182SSimon J. Gerraty command line. 277d5e0a182SSimon J. Gerraty 278d5e0a182SSimon J. Gerraty2023-11-26 Simon J Gerraty <sjg@beast.crufty.net> 279d5e0a182SSimon J. Gerraty 280d5e0a182SSimon J. Gerraty * configure.in: disable generation of 'makefile' for 281d5e0a182SSimon J. Gerraty Darwin by default. 282d5e0a182SSimon J. Gerraty 283d5e0a182SSimon J. Gerraty * boot-strap: docuement --without-makefile 284d5e0a182SSimon J. Gerraty 285d5e0a182SSimon J. Gerraty2023-11-24 Simon J Gerraty <sjg@beast.crufty.net> 286d5e0a182SSimon J. Gerraty 287d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231124 288d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 289d5e0a182SSimon J. Gerraty o main.c: cleanup processing of -j 290d5e0a182SSimon J. Gerraty fix lint warning about strchr 291d5e0a182SSimon J. Gerraty o var.c: more accurate error message for invalid ':mtime' argument 292d5e0a182SSimon J. Gerraty cleanup :[...] modifier 293d5e0a182SSimon J. Gerraty avoid reading beyond substring when comparing 294d5e0a182SSimon J. Gerraty o unit-tests cover all cases of :mtime, test and explain exporting 295d5e0a182SSimon J. Gerraty of variables 296d5e0a182SSimon J. Gerraty o cleanup comments 297d5e0a182SSimon J. Gerraty 298d5e0a182SSimon J. Gerraty2023-09-17 Simon J Gerraty <sjg@beast.crufty.net> 299d5e0a182SSimon J. Gerraty 300d5e0a182SSimon J. Gerraty * bsd.after-import.mk (ECHO_TAG): FreeBSD no longer uses 301d5e0a182SSimon J. Gerraty $FreeBSD$ tag, so avoid adding it. 302d5e0a182SSimon J. Gerraty 30398875883SSimon J. Gerraty2023-09-09 Simon J Gerraty <sjg@beast.crufty.net> 30498875883SSimon J. Gerraty 30598875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230909 30698875883SSimon J. Gerraty Merge with NetBSD make, pick up 30798875883SSimon J. Gerraty o main.c: allow -j to compute a multiple of ncpu 30898875883SSimon J. Gerraty If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating 30998875883SSimon J. Gerraty point number or ends in 'C' compute .MAKE.JOBS as a multiple of 31098875883SSimon J. Gerraty _SC_NPROCESSORS_ONLN 31198875883SSimon J. Gerraty .MAKE.JOBS.C will be "yes" if -jC is supported 31298875883SSimon J. Gerraty 31398875883SSimon J. Gerraty2023-08-20 Simon J Gerraty <sjg@beast.crufty.net> 31498875883SSimon J. Gerraty 31598875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230820 31698875883SSimon J. Gerraty Merge with NetBSD make, pick up 31798875883SSimon J. Gerraty o make.1: note that :localtime is better for %s 31898875883SSimon J. Gerraty o parse.c: improve error messages for invalid input. 31998875883SSimon J. Gerraty o var.c: fix for %s:L:gmtime - set TZ=UTC and use localtime to get 32098875883SSimon J. Gerraty correct result, it is still better to use %s:L:localtime. 32198875883SSimon J. Gerraty 32298875883SSimon J. Gerraty2023-08-18 Simon J Gerraty <sjg@beast.crufty.net> 32398875883SSimon J. Gerraty 32498875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230818 32598875883SSimon J. Gerraty Merge with NetBSD make, pick up 32698875883SSimon J. Gerraty o meta.c: meta_ignore - check raw path against metaIgnorePaths 32798875883SSimon J. Gerraty to potentially skip call to realpath. 32898875883SSimon J. Gerraty o var.c: be strict when parsing the argument of the ':mtime' modifier 32998875883SSimon J. Gerraty o unit-tests/varmod-mtime.mk: document why '${%s:L:localtime}' 33098875883SSimon J. Gerraty should be used to get an equivalent value to time(3). 33198875883SSimon J. Gerraty 33298875883SSimon J. Gerraty2023-08-16 Simon J Gerraty <sjg@beast.crufty.net> 33398875883SSimon J. Gerraty 33498875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230816 33598875883SSimon J. Gerraty Merge with NetBSD make, pick up 33698875883SSimon J. Gerraty o cond.c: clean up multiple-inclusion guards 33798875883SSimon J. Gerraty 33898875883SSimon J. Gerraty2023-07-25 Simon J Gerraty <sjg@beast.crufty.net> 33998875883SSimon J. Gerraty 34098875883SSimon J. Gerraty * unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS 34198875883SSimon J. Gerraty if configure cannot work out how to control TZ. 34298875883SSimon J. Gerraty Remove varmod-localtime from BROKEN_TESTS for IRIX* 34398875883SSimon J. Gerraty 34498875883SSimon J. Gerraty2023-07-24 Simon J Gerraty <sjg@beast.crufty.net> 34598875883SSimon J. Gerraty 34698875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230723 34798875883SSimon J. Gerraty 34898875883SSimon J. Gerraty * configure.in: fix the test for wether TZ=Europe/Berlin works. 34998875883SSimon J. Gerraty Depending on the time of year, if run between 22:00 and 00:00 UTC 35098875883SSimon J. Gerraty the check in configure would fail incorrectly. 35198875883SSimon J. Gerraty Take the day into account as well. 35298875883SSimon J. Gerraty 35398875883SSimon J. Gerraty2023-07-18 Simon J Gerraty <sjg@beast.crufty.net> 35498875883SSimon J. Gerraty 35598875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 35698875883SSimon J. Gerraty Merge with NetBSD make, pick up 35798875883SSimon J. Gerraty o make.1: clean up wording, clarify scope of '!' in conditions 35898875883SSimon J. Gerraty 35998875883SSimon J. Gerraty2023-07-15 Simon J Gerraty <sjg@beast.crufty.net> 36098875883SSimon J. Gerraty 36198875883SSimon J. Gerraty * make-bootstrap.sh.in: set prefix 36298875883SSimon J. Gerraty If configure is run using ksh we get unexpanded ${prefix} in 36398875883SSimon J. Gerraty DEFAULT_SYS_PATH, by ensuring prefix is set we should still get 36498875883SSimon J. Gerraty correct result. 36598875883SSimon J. Gerraty 36698875883SSimon J. Gerraty2023-07-13 Simon J Gerraty <sjg@beast.crufty.net> 36798875883SSimon J. Gerraty 36898875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 36998875883SSimon J. Gerraty bump version for IRIX tweaks 37098875883SSimon J. Gerraty 37198875883SSimon J. Gerraty * make.h: undef OP_NONE if defined 37298875883SSimon J. Gerraty 37398875883SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for IRIX 37498875883SSimon J. Gerraty 37598875883SSimon J. Gerraty * configure.in: override INSTALL on IRIX 37698875883SSimon J. Gerraty 37798875883SSimon J. Gerraty2023-06-27 Simon J Gerraty <sjg@beast.crufty.net> 37898875883SSimon J. Gerraty 37998875883SSimon J. Gerraty * boot-strap op_test: ensure we set TEST_MAKE as we want it. 38098875883SSimon J. Gerraty 381148ee845SSimon J. Gerraty2023-06-22 Simon J Gerraty <sjg@beast.crufty.net> 382148ee845SSimon J. Gerraty 383148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230622 384148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 385148ee845SSimon J. Gerraty o optimize string matching for ':M' and ':N' 386148ee845SSimon J. Gerraty o warn about malformed patterns in ':M', ':N' and '.if make(...)' 387148ee845SSimon J. Gerraty 388148ee845SSimon J. Gerraty2023-06-21 Simon J Gerraty <sjg@beast.crufty.net> 389148ee845SSimon J. Gerraty 390148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230621 391148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 392148ee845SSimon J. Gerraty o more extensive tests for include guards 393148ee845SSimon J. Gerraty o parse.c: if a guard is already defined a file that uses the same 394148ee845SSimon J. Gerraty guard is still guarded by it. 395148ee845SSimon J. Gerraty 396148ee845SSimon J. Gerraty2023-06-20 Simon J Gerraty <sjg@beast.crufty.net> 397148ee845SSimon J. Gerraty 398148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230620 399148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 400148ee845SSimon J. Gerraty o allow guards to be targets as well as variables 401148ee845SSimon J. Gerraty The guard targets may include variable references like 402148ee845SSimon J. Gerraty __${.PARSEDIR:tA}/${.PARSEFILE}__ 403148ee845SSimon J. Gerraty 404148ee845SSimon J. Gerraty2023-06-19 Simon J Gerraty <sjg@beast.crufty.net> 405148ee845SSimon J. Gerraty 406148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230619 407148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 408148ee845SSimon J. Gerraty o unit test for .undef of readOnly vars 409148ee845SSimon J. Gerraty o optimization for makefiles protected from multiple-inclusion 410148ee845SSimon J. Gerraty skip even opening the file after first include. 411148ee845SSimon J. Gerraty Initially this only handles makefiles guarded by a variable 412148ee845SSimon J. Gerraty target guards are next. 413148ee845SSimon J. Gerraty 414148ee845SSimon J. Gerraty2023-06-16 Simon J Gerraty <sjg@beast.crufty.net> 415148ee845SSimon J. Gerraty 416148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230616 417148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 418148ee845SSimon J. Gerraty o var.c: do not allow delete of readOnly variable 419148ee845SSimon J. Gerraty 420148ee845SSimon J. Gerraty2023-06-03 Simon J Gerraty <sjg@beast.crufty.net> 421148ee845SSimon J. Gerraty 422148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230601 423148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 424148ee845SSimon J. Gerraty o parse.c: .break takes no args 425148ee845SSimon J. Gerraty o lots of unit test updates 426148ee845SSimon J. Gerraty 427148ee845SSimon J. Gerraty2023-05-29 Simon J Gerraty <sjg@beast.crufty.net> 428148ee845SSimon J. Gerraty 429148ee845SSimon J. Gerraty * unit-tests/Makefile: skip tests that require /dev/filemon 430148ee845SSimon J. Gerraty if it does not exists - issue a warning. 431148ee845SSimon J. Gerraty 432148ee845SSimon J. Gerraty2023-05-22 Simon J Gerraty <sjg@beast.crufty.net> 433148ee845SSimon J. Gerraty 434148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230522 435148ee845SSimon J. Gerraty Fix building on darwin ppc 436148ee845SSimon J. Gerraty 437148ee845SSimon J. Gerraty * os.sh (MACHINE): Darwin powerpc cannot use `uname -m` 438148ee845SSimon J. Gerraty also recent NetBSD uses x86_64 for MACHINE_ARCH so conform. 439148ee845SSimon J. Gerraty 440148ee845SSimon J. Gerraty2023-05-15 Simon J Gerraty <sjg@beast.crufty.net> 441148ee845SSimon J. Gerraty 442148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230515 443148ee845SSimon J. Gerraty 444148ee845SSimon J. Gerraty * Makefile (COPTS.filemon_ktrace.c): NetBSD 7 needs help to 445148ee845SSimon J. Gerraty compile filemon_ktrace.c 446148ee845SSimon J. Gerraty 447148ee845SSimon J. Gerraty2023-05-13 Simon J Gerraty <sjg@beast.crufty.net> 448148ee845SSimon J. Gerraty 449148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230512 450148ee845SSimon J. Gerraty o sys.dirdeps.mk - broke after-import target 451148ee845SSimon J. Gerraty 452c1d01b5fSSimon J. Gerraty2023-05-10 Simon J Gerraty <sjg@beast.crufty.net> 453c1d01b5fSSimon J. Gerraty 454c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230510 455c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 456c1d01b5fSSimon J. Gerraty o parse.c: don't print null filename in stack traces 457c1d01b5fSSimon J. Gerraty o var.c: :mtime operate on each word in variable value 458c1d01b5fSSimon J. Gerraty 459c1d01b5fSSimon J. Gerraty2023-05-09 Simon J Gerraty <sjg@beast.crufty.net> 460c1d01b5fSSimon J. Gerraty 461c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230509 462c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 463c1d01b5fSSimon J. Gerraty o for.c: skip syntactically wrong .for loops 464c1d01b5fSSimon J. Gerraty o var.c: allow for :gmtime=${mtime} 465c1d01b5fSSimon J. Gerraty add :mtime[=timestamp] where timestamp is used if stat(2) 466c1d01b5fSSimon J. Gerraty fails, if :mtime=error stat(2) failure causes error. 467c1d01b5fSSimon J. Gerraty 468c1d01b5fSSimon J. Gerraty2023-05-05 Simon J Gerraty <sjg@beast.crufty.net> 469c1d01b5fSSimon J. Gerraty 470c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230504 471c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 472c1d01b5fSSimon J. Gerraty o compat.c: fix compile on NetBSD 7.2 473c1d01b5fSSimon J. Gerraty o make.1: fix documentation of .PREFIX to match reality and POSIX 474c1d01b5fSSimon J. Gerraty o unit-tests: improved var-scope-local 475c1d01b5fSSimon J. Gerraty 4768c973ee2SSimon J. Gerraty2023-04-14 Simon J Gerraty <sjg@beast.crufty.net> 4778c973ee2SSimon J. Gerraty 4788c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230414 4798c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4808c973ee2SSimon J. Gerraty o minor cleanup 4818c973ee2SSimon J. Gerraty 4828c973ee2SSimon J. Gerraty2023-03-25 Simon J Gerraty <sjg@beast.crufty.net> 4838c973ee2SSimon J. Gerraty 4848c973ee2SSimon J. Gerraty * main.c: on some systems (eg OS/X) setting RLIMIT_NOFILE to 4858c973ee2SSimon J. Gerraty unlimited results in an insane number (0x7fffffffffffffff). 4868c973ee2SSimon J. Gerraty If BMAKE_NOFILE_MAX is defined, use that instead. 4878c973ee2SSimon J. Gerraty 4888c973ee2SSimon J. Gerraty2023-03-22 Simon J Gerraty <sjg@beast.crufty.net> 4898c973ee2SSimon J. Gerraty 4908c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230321 4918c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4928c973ee2SSimon J. Gerraty * make.1: document seemingly unexplained Error code 6. 4938c973ee2SSimon J. Gerraty 4948c973ee2SSimon J. Gerraty2023-03-18 Simon J Gerraty <sjg@beast.crufty.net> 4958c973ee2SSimon J. Gerraty 4968c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230317 4978c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 4988c973ee2SSimon J. Gerraty o compat.c: CompatDeleteTarget skip .PHONY targets to be 4998c973ee2SSimon J. Gerraty consistent with JobDeleteTarget. 5008c973ee2SSimon J. Gerraty o job.c: fix memory leak in handling sysv :from=to modifiers 5018c973ee2SSimon J. Gerraty 5028c973ee2SSimon J. Gerraty2023-03-04 Simon J Gerraty <sjg@beast.crufty.net> 5038c973ee2SSimon J. Gerraty 5048c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230303 5058c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5068c973ee2SSimon J. Gerraty o several updated unit-tests 5078c973ee2SSimon J. Gerraty 5088c973ee2SSimon J. Gerraty2023-02-22 Simon J Gerraty <sjg@beast.crufty.net> 5098c973ee2SSimon J. Gerraty 5108c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230222 5118c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5128c973ee2SSimon J. Gerraty o unit tests for .MAKE.META.IGNORE_{FILTER,PATHS,PATTERNS} 5138c973ee2SSimon J. Gerraty 5148c973ee2SSimon J. Gerraty2023-02-20 Simon J Gerraty <sjg@beast.crufty.net> 5158c973ee2SSimon J. Gerraty 5168c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230218 5178c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5188c973ee2SSimon J. Gerraty o var.c: fix parsing of unevaluated subexpressions with 5198c973ee2SSimon J. Gerraty unbalanced '{}' 5208c973ee2SSimon J. Gerraty 5218c973ee2SSimon J. Gerraty2023-02-17 Simon J Gerraty <sjg@beast.crufty.net> 5228c973ee2SSimon J. Gerraty 5238c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230215 5248c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5258c973ee2SSimon J. Gerraty o inline macros for some variable names 5268c973ee2SSimon J. Gerraty o cond.c: reduce complexity of evaluating expressions 5278c973ee2SSimon J. Gerraty 528dc1b8c9aSSimon J. Gerraty2023-02-08 Simon J Gerraty <sjg@beast.crufty.net> 529dc1b8c9aSSimon J. Gerraty 530dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230208 531dc1b8c9aSSimon J. Gerraty Merge with NetBSD make, pick up 532dc1b8c9aSSimon J. Gerraty o var.c: always use SCOPE_GLOBAL for :_ to avoid problems 533dc1b8c9aSSimon J. Gerraty when it has been used within conditional expressions 534dc1b8c9aSSimon J. Gerraty 535dc1b8c9aSSimon J. Gerraty2023-01-27 Simon J Gerraty <sjg@beast.crufty.net> 536dc1b8c9aSSimon J. Gerraty 537dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230127 538dc1b8c9aSSimon J. Gerraty 539dc1b8c9aSSimon J. Gerraty * install-sh: if making directories ensure umask is set 540dc1b8c9aSSimon J. Gerraty to match mode. 541dc1b8c9aSSimon J. Gerraty 542dc1b8c9aSSimon J. Gerraty * Makefile: use DIRMODE for directories and 543dc1b8c9aSSimon J. Gerraty NONBINMODE for man pages and mk files 544dc1b8c9aSSimon J. Gerraty 5454fde40d9SSimon J. Gerraty2023-01-26 Simon J Gerraty <sjg@beast.crufty.net> 5464fde40d9SSimon J. Gerraty 5474fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230126 5484fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5494fde40d9SSimon J. Gerraty o variables like .newline and .MAKE.{GID,PID,PPID,UID} 5504fde40d9SSimon J. Gerraty should be read-only. 5514fde40d9SSimon J. Gerraty 5524fde40d9SSimon J. Gerraty2023-01-23 Simon J Gerraty <sjg@beast.crufty.net> 5534fde40d9SSimon J. Gerraty 5544fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230123 5554fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5564fde40d9SSimon J. Gerraty o .[NO]READONLY: for control of read-only variables 5574fde40d9SSimon J. Gerraty o .SYSPATH: for controlling the path searched for makefiles 5584fde40d9SSimon J. Gerraty 5594fde40d9SSimon J. Gerraty2023-01-20 Simon J Gerraty <sjg@beast.crufty.net> 5604fde40d9SSimon J. Gerraty 5614fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230120 5624fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5634fde40d9SSimon J. Gerraty o allow for white-space between command specifiers @+- 5644fde40d9SSimon J. Gerraty o add more details to warning 'Extra targets ignored' 5654fde40d9SSimon J. Gerraty 5664fde40d9SSimon J. Gerraty2023-01-12 Simon J Gerraty <sjg@beast.crufty.net> 5674fde40d9SSimon J. Gerraty 5684fde40d9SSimon J. Gerraty * machine.sh: leverage os.sh rather than duplicate 5694fde40d9SSimon J. Gerraty also dispence with the $OS.$MACHINE values - we have $HOST_TARGET 5704fde40d9SSimon J. Gerraty for that purpose for the past decade or so. 5714fde40d9SSimon J. Gerraty We invariably get MACHINE and MACHINE_ARCH at runtime anyway. 5724fde40d9SSimon J. Gerraty 5734fde40d9SSimon J. Gerraty2023-01-02 Simon J Gerraty <sjg@beast.crufty.net> 5744fde40d9SSimon J. Gerraty 5754fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230101 5764fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5774fde40d9SSimon J. Gerraty o cleanup comments, inline some LazyBuf_ methods 5784fde40d9SSimon J. Gerraty o unit-tests/ add/improve comments in tests 5794fde40d9SSimon J. Gerraty o make.1: sync list of built-in variables with reality 5804fde40d9SSimon J. Gerraty sort list of built-in variables 5814fde40d9SSimon J. Gerraty reduce indentation of the long list of variable names 5824fde40d9SSimon J. Gerraty use consistent markup for boolean flags 5834fde40d9SSimon J. Gerraty move description of .MAKE.MODE below the .MAKE.META block 5844fde40d9SSimon J. Gerraty clarify in which case an expression may omit braces 5854fde40d9SSimon J. Gerraty 5864fde40d9SSimon J. Gerraty2022-11-08 Simon J Gerraty <sjg@beast.crufty.net> 5874fde40d9SSimon J. Gerraty 5884fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20221024 5894fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5904fde40d9SSimon J. Gerraty o change return type of unlink_file back to int 5914fde40d9SSimon J. Gerraty 5924fde40d9SSimon J. Gerraty2022-10-07 Simon J Gerraty <sjg@beast.crufty.net> 5934fde40d9SSimon J. Gerraty 5944fde40d9SSimon J. Gerraty * Makefile: Darwin and Linux can handle MANTARGET=man 5954fde40d9SSimon J. Gerraty 5964fde40d9SSimon J. Gerraty2022-09-28 Simon J Gerraty <sjg@beast.crufty.net> 5974fde40d9SSimon J. Gerraty 5984fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220928 5994fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6004fde40d9SSimon J. Gerraty o fix more ignored returns from snprintf 6014fde40d9SSimon J. Gerraty o compile with higher warnings 6024fde40d9SSimon J. Gerraty 6034fde40d9SSimon J. Gerraty2022-09-26 Simon J Gerraty <sjg@beast.crufty.net> 6044fde40d9SSimon J. Gerraty 6054fde40d9SSimon J. Gerraty * main.c meta.c: do not ignore return from snprintf 6064fde40d9SSimon J. Gerraty 6074fde40d9SSimon J. Gerraty * meta.c strlcpy.c: we need prototype for strlcpy 6084fde40d9SSimon J. Gerraty 6094fde40d9SSimon J. Gerraty * sigcompat.c: fix unused function warnings 6104fde40d9SSimon J. Gerraty 6114fde40d9SSimon J. Gerraty2022-09-24 Simon J Gerraty <sjg@beast.crufty.net> 6124fde40d9SSimon J. Gerraty 6134fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220924 6144fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6154fde40d9SSimon J. Gerraty o fix bug in .break reset of conditional depth 6164fde40d9SSimon J. Gerraty o overhaul and simplify tracking of conditional depth 6174fde40d9SSimon J. Gerraty 6184fde40d9SSimon J. Gerraty2022-09-17 Simon J Gerraty <sjg@beast.crufty.net> 6194fde40d9SSimon J. Gerraty 6204fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220912 6214fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6224fde40d9SSimon J. Gerraty o man page updates 6234fde40d9SSimon J. Gerraty 6244fde40d9SSimon J. Gerraty2022-09-09 Simon J Gerraty <sjg@beast.crufty.net> 6254fde40d9SSimon J. Gerraty 6264fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220909 6274fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6284fde40d9SSimon J. Gerraty o update unit-tests to handle deprecation of egrep 6294fde40d9SSimon J. Gerraty o cond.c: add more details to error message for numeric comparison 6304fde40d9SSimon J. Gerraty 6314fde40d9SSimon J. Gerraty * configure.in: allow for deprecation of egrep 6324fde40d9SSimon J. Gerraty 6334fde40d9SSimon J. Gerraty * Makefile: Linux can handle MANTARGET=man 6344fde40d9SSimon J. Gerraty 6354fde40d9SSimon J. Gerraty2022-09-03 Simon J Gerraty <sjg@beast.crufty.net> 6364fde40d9SSimon J. Gerraty 6374fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220903 6384fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6394fde40d9SSimon J. Gerraty o job.c: fix handling of null bytes in output 6404fde40d9SSimon J. Gerraty 6414fde40d9SSimon J. Gerraty2022-09-02 Simon J Gerraty <sjg@beast.crufty.net> 6424fde40d9SSimon J. Gerraty 6434fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220902 6444fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6454fde40d9SSimon J. Gerraty o Allow .break to terminate a .for loop early 6464fde40d9SSimon J. Gerraty 6474fde40d9SSimon J. Gerraty2022-09-01 Simon J Gerraty <sjg@beast.crufty.net> 6484fde40d9SSimon J. Gerraty 6494fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220901 6504fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6514fde40d9SSimon J. Gerraty o var.c: fix out-of-bounds errors when parsing 6524fde40d9SSimon J. Gerraty 6534fde40d9SSimon J. Gerraty2022-08-24 Simon J Gerraty <sjg@beast.crufty.net> 6544fde40d9SSimon J. Gerraty 6554fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220824 6564fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6574fde40d9SSimon J. Gerraty o var.c: revert change to modifier parsing that breaks 6584fde40d9SSimon J. Gerraty shell variable references within ':@var@body@' 6594fde40d9SSimon J. Gerraty o adjust unit-tests 6604fde40d9SSimon J. Gerraty 6614fde40d9SSimon J. Gerraty2022-08-18 Simon J Gerraty <sjg@beast.crufty.net> 6624fde40d9SSimon J. Gerraty 6634fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220818 6644fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6654fde40d9SSimon J. Gerraty o fix exit status for '-q' (since 1994) 6664fde40d9SSimon J. Gerraty 6674fde40d9SSimon J. Gerraty2022-08-08 Simon J Gerraty <sjg@beast.crufty.net> 6684fde40d9SSimon J. Gerraty 6694fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220808 6704fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6714fde40d9SSimon J. Gerraty o var.c: fix parsing of modifiers containing unbalanced subexpressions 6724fde40d9SSimon J. Gerraty extract parsing of ':D' and ':U' modifiers into separate function 6734fde40d9SSimon J. Gerraty 674532d4fbfSSimon J. Gerraty2022-07-26 Simon J Gerraty <sjg@beast.crufty.net> 675532d4fbfSSimon J. Gerraty 676532d4fbfSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220726 677532d4fbfSSimon J. Gerraty 678532d4fbfSSimon J. Gerraty * Auto-create objdir for bmake/unit-tests if appropriate 679532d4fbfSSimon J. Gerraty 680954401e6SSimon J. Gerraty2022-07-24 Simon J Gerraty <sjg@beast.crufty.net> 681954401e6SSimon J. Gerraty 682954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220724 683954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 684954401e6SSimon J. Gerraty o make.1: describe variable assignment and evaluation more precisely 685954401e6SSimon J. Gerraty o parse.c: fix out-of-bounds read when parsing an invalid line 686954401e6SSimon J. Gerraty o var.c: simplify return type of IsShortVarnameValid 687954401e6SSimon J. Gerraty 688954401e6SSimon J. Gerraty2022-06-12 Simon J Gerraty <sjg@beast.crufty.net> 689954401e6SSimon J. Gerraty 690954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220612 691954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 692954401e6SSimon J. Gerraty o allow to randomize build order of targets 693954401e6SSimon J. Gerraty .MAKE.MODE += randomize-targets can help uncover dependency bugs 694954401e6SSimon J. Gerraty within a makefile. 695954401e6SSimon J. Gerraty o compat.c: rename Compat_Run to Compat_MakeAll 696954401e6SSimon J. Gerraty o make.c: inline MakeBuildParent 697954401e6SSimon J. Gerraty inline make_abort, improve error details 698954401e6SSimon J. Gerraty o parse.c: reorganize Parse_Error 699954401e6SSimon J. Gerraty fix memory leak in wildcard targets and sources 700954401e6SSimon J. Gerraty separate cases in HandleDependencyTargetMundane 701954401e6SSimon J. Gerraty extract HandleSingleDependencyTargetMundane 702954401e6SSimon J. Gerraty rename loadfile to LoadFile 703954401e6SSimon J. Gerraty split IncludeFile into separate functions 704954401e6SSimon J. Gerraty condense code for searching a file in the paths 705954401e6SSimon J. Gerraty fix off-by-one error in buffer for .WAIT nodes 706954401e6SSimon J. Gerraty o str.c: condense Str_Match 707954401e6SSimon J. Gerraty make code for string matching syntactically more consistent 708954401e6SSimon J. Gerraty 7092f2a5ecdSSimon J. Gerraty2022-04-18 Simon J Gerraty <sjg@beast.crufty.net> 7102f2a5ecdSSimon J. Gerraty 7112f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220418 7122f2a5ecdSSimon J. Gerraty Merge with NetBSD make, pick up 7132f2a5ecdSSimon J. Gerraty o ignore '.POSIX:' if not in first non-comment line 7142f2a5ecdSSimon J. Gerraty of Makefile as specified by POSIX. 7152f2a5ecdSSimon J. Gerraty add unit-tests for above. 7162f2a5ecdSSimon J. Gerraty o meta.c: make it easier to find usage of identifiers 7172f2a5ecdSSimon J. Gerraty o targ.c: add .USEBEFORE to Targ_PrintType 7182f2a5ecdSSimon J. Gerraty 7192f2a5ecdSSimon J. Gerraty2022-04-14 Simon J Gerraty <sjg@beast.crufty.net> 7202f2a5ecdSSimon J. Gerraty 7212f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220414 7222f2a5ecdSSimon J. Gerraty 7232f2a5ecdSSimon J. Gerraty * unit-tests/Makefile: simplify checks for shells with 7242f2a5ecdSSimon J. Gerraty BROKEN_TESTS, this helps with other Linux distros that 7252f2a5ecdSSimon J. Gerraty use dash. 7262f2a5ecdSSimon J. Gerraty 7271d3f2ddcSSimon J. Gerraty2022-03-30 Simon J Gerraty <sjg@beast.crufty.net> 7281d3f2ddcSSimon J. Gerraty 7291d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220330 7301d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 7311d3f2ddcSSimon J. Gerraty o var.c: fix spacing, and a typo in a test 7321d3f2ddcSSimon J. Gerraty 7331d3f2ddcSSimon J. Gerraty2022-03-26 Simon J Gerraty <sjg@beast.crufty.net> 7341d3f2ddcSSimon J. Gerraty 7351d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220326 7361d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 7371d3f2ddcSSimon J. Gerraty o parse.c: try to include 'posix.mk' the first time 7381d3f2ddcSSimon J. Gerraty .POSIX: is encountered, to allow for beter POSIX compliance. 7391d3f2ddcSSimon J. Gerraty o var.c: make debug logs more readable 7401d3f2ddcSSimon J. Gerraty prefer 'long long' over 'long' on 32-bit C99 platforms 7411d3f2ddcSSimon J. Gerraty fix crash on .undef of an environment variable 7421d3f2ddcSSimon J. Gerraty 7431d3f2ddcSSimon J. Gerraty2022-03-03 Simon J Gerraty <sjg@beast.crufty.net> 7441d3f2ddcSSimon J. Gerraty 7451d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220303 7461d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 7471d3f2ddcSSimon J. Gerraty o tell meta mode unit tests not to expect filemon 7481d3f2ddcSSimon J. Gerraty o cond.c: make debug logging for comparisons less technical 7491d3f2ddcSSimon J. Gerraty o lst.c: fix mem leak in Lst_Remove 7501d3f2ddcSSimon J. Gerraty o str.c: make code for string matching syntactically more consistent 7511d3f2ddcSSimon J. Gerraty o var.c: simplify ParseModifier_Match 7521d3f2ddcSSimon J. Gerraty 7531d3f2ddcSSimon J. Gerraty2022-02-14 Simon J Gerraty <sjg@beast.crufty.net> 7541d3f2ddcSSimon J. Gerraty 7551d3f2ddcSSimon J. Gerraty * unit-tests/Makefile: control MAKESYSPATH for deptgt-phony 7561d3f2ddcSSimon J. Gerraty 7571d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220214 7581d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 7591d3f2ddcSSimon J. Gerraty o cond.c: simplify control flow in CondParser_Comparison 7601d3f2ddcSSimon J. Gerraty o job.c: fix echoing of command with '-' in silent target in jobs mode 7611d3f2ddcSSimon J. Gerraty o main.c: prefix the warning about read-only .OBJDIR with a colon 7621d3f2ddcSSimon J. Gerraty o parse.c: remove redundant conditions 7631d3f2ddcSSimon J. Gerraty o var.c: simplify control flow in ModifyWord_SysVSubst 7641d3f2ddcSSimon J. Gerraty 765a6f0e10bSSimon J. Gerraty2022-02-08 Simon J Gerraty <sjg@beast.crufty.net> 766a6f0e10bSSimon J. Gerraty 767a6f0e10bSSimon J. Gerraty * unit-tests/Makefile: disable opt-debug-x-trace on Linux if there 768a6f0e10bSSimon J. Gerraty is any chance we have dash as .SHELL 769a6f0e10bSSimon J. Gerraty 770a6f0e10bSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220208 771a6f0e10bSSimon J. Gerraty Merge with NetBSD make, pick up 772a6f0e10bSSimon J. Gerraty o more unit tests 773a6f0e10bSSimon J. Gerraty o meta.c: use a variable to hold command line to be filtered 774a6f0e10bSSimon J. Gerraty to avoid any side effects from content of command line. 775a6f0e10bSSimon J. Gerraty 7769f45a3c8SSimon J. Gerraty2022-02-04 Simon J Gerraty <sjg@beast.crufty.net> 7779f45a3c8SSimon J. Gerraty 7789f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220204 7799f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7809f45a3c8SSimon J. Gerraty o use unsigned consistently for line numbers, avoid the need for %z 7819f45a3c8SSimon J. Gerraty o parse.c: do not step off end of input in Parse_IsVar 7829f45a3c8SSimon J. Gerraty when checking for target local variable assignments 7839f45a3c8SSimon J. Gerraty 7849f45a3c8SSimon J. Gerraty2022-02-02 Simon J Gerraty <sjg@beast.crufty.net> 7859f45a3c8SSimon J. Gerraty 7869f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220202 7879f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7889f45a3c8SSimon J. Gerraty o remove redundant declaration of HashIter_Init 7899f45a3c8SSimon J. Gerraty o make DEBUG0 simpler 7909f45a3c8SSimon J. Gerraty 7919f45a3c8SSimon J. Gerraty2022-01-30 Simon J Gerraty <sjg@beast.crufty.net> 7929f45a3c8SSimon J. Gerraty 7939f45a3c8SSimon J. Gerraty * cast gn->lineno to avoid %z 7949f45a3c8SSimon J. Gerraty 7959f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220130 7969f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 7979f45a3c8SSimon J. Gerraty o more unit tests 7989f45a3c8SSimon J. Gerraty o make GNode lineno unsigned to please lint 7999f45a3c8SSimon J. Gerraty o print location of recursive variable references in commands 8009f45a3c8SSimon J. Gerraty o print "stack trace" (makefile includes) on fatal errors 8019f45a3c8SSimon J. Gerraty o make.1: refine documentation for target local assignments 8029f45a3c8SSimon J. Gerraty 8039f45a3c8SSimon J. Gerraty2022-01-28 Simon J Gerraty <sjg@beast.crufty.net> 8049f45a3c8SSimon J. Gerraty 8059f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220128 8069f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8079f45a3c8SSimon J. Gerraty o inline functions called only once 8089f45a3c8SSimon J. Gerraty o for.c: clean up AddEscape for building the body of a .for loop 8099f45a3c8SSimon J. Gerraty o hash.c: merge duplicate code for finding an entry in a hash table 8109f45a3c8SSimon J. Gerraty replace HashEntry_KeyEquals with strncmp 8119f45a3c8SSimon J. Gerraty o make.1: document quirks of target local variable assignments. 8129f45a3c8SSimon J. Gerraty o parse.c: cleanup white-space 8139f45a3c8SSimon J. Gerraty 8149f45a3c8SSimon J. Gerraty2022-01-26 Simon J Gerraty <sjg@beast.crufty.net> 8159f45a3c8SSimon J. Gerraty 8169f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220126 8179f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8189f45a3c8SSimon J. Gerraty o allow setting target local variables 8199f45a3c8SSimon J. Gerraty o more unit tests 8209f45a3c8SSimon J. Gerraty o add missing newline after "cannot continue" message 8219f45a3c8SSimon J. Gerraty o meta.c: clean up eat_dots 8229f45a3c8SSimon J. Gerraty o parse.c: fix filename in warning about duplicate script 8239f45a3c8SSimon J. Gerraty o var.c: when expanding nested variables, check simple things first 8249f45a3c8SSimon J. Gerraty 8259f45a3c8SSimon J. Gerraty2022-01-16 Simon J Gerraty <sjg@beast.crufty.net> 8269f45a3c8SSimon J. Gerraty 8279f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220116 8289f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8299f45a3c8SSimon J. Gerraty o fix for unit-tests/varname-makeflags on non-BSD systems 8309f45a3c8SSimon J. Gerraty o use Var_Exists rather than Var_Value where appropriate 8319f45a3c8SSimon J. Gerraty o remove unnecessary functions for expanding variable names 8329f45a3c8SSimon J. Gerraty o cond.c: inline EvalBare 8339f45a3c8SSimon J. Gerraty o main.c: lint cleanup 8349f45a3c8SSimon J. Gerraty o parse.c: condense code in Parse_IsVar 8359f45a3c8SSimon J. Gerraty use islower for parsing directives (none have upper case) 8369f45a3c8SSimon J. Gerraty 8379f45a3c8SSimon J. Gerraty2022-01-12 Simon J Gerraty <sjg@beast.crufty.net> 8389f45a3c8SSimon J. Gerraty 8399f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220112 8409f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8419f45a3c8SSimon J. Gerraty o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before 8429f45a3c8SSimon J. Gerraty comparion, rarely needed but useful when it is. 8439f45a3c8SSimon J. Gerraty 8449f45a3c8SSimon J. Gerraty2022-01-10 Simon J Gerraty <sjg@beast.crufty.net> 8459f45a3c8SSimon J. Gerraty 8469f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220110 8479f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8489f45a3c8SSimon J. Gerraty o inline Buf_Clear 8499f45a3c8SSimon J. Gerraty o remove redundant braces 8509f45a3c8SSimon J. Gerraty o rename and inline Targ_Precious 8519f45a3c8SSimon J. Gerraty o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf 8529f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops 8539f45a3c8SSimon J. Gerraty fix reported line numbers of continuation lines 8549f45a3c8SSimon J. Gerraty add details about .for loop variables to stack traces 8559f45a3c8SSimon J. Gerraty o job.c: reduce code for initializing error handling in shell 8569f45a3c8SSimon J. Gerraty o main.c: in Cmd_Exec, return error message instead of format string 8579f45a3c8SSimon J. Gerraty have as few statements as possible between va_start and va_end 8589f45a3c8SSimon J. Gerraty add debug logging for capturing the output of external commands 8599f45a3c8SSimon J. Gerraty o make.c: use consistent variable names for varargs 8609f45a3c8SSimon J. Gerraty o make_malloc.c: remove duplicate code from bmake_strdup 8619f45a3c8SSimon J. Gerraty o parse.c: add missing printflike annotations 8629f45a3c8SSimon J. Gerraty remove redundant lines from stack traces 8639f45a3c8SSimon J. Gerraty fix stack traces in -dp mode 8649f45a3c8SSimon J. Gerraty reduce confusing code in ParseForLoop 8659f45a3c8SSimon J. Gerraty fix line number in debug log after returning from a file 8669f45a3c8SSimon J. Gerraty rename IFile and its fields to match their actual content 8679f45a3c8SSimon J. Gerraty clean up ParseDependencySources 8689f45a3c8SSimon J. Gerraty o var.c: shorten ApplyModifier_Assign 8699f45a3c8SSimon J. Gerraty rename is_shell_metachar, fix character conversion warning 8709f45a3c8SSimon J. Gerraty merge calls to ApplyModifier_Time 8719f45a3c8SSimon J. Gerraty merge duplicate code for modifiers 'gmtime' and 'localtime' 8729f45a3c8SSimon J. Gerraty 8739f45a3c8SSimon J. Gerraty2022-01-04 Simon J Gerraty <sjg@beast.crufty.net> 8749f45a3c8SSimon J. Gerraty 8759f45a3c8SSimon J. Gerraty * parse.c: loadfile restore extra byte in buffer. 8769f45a3c8SSimon J. Gerraty 8779f45a3c8SSimon J. Gerraty2022-01-01 Simon J Gerraty <sjg@beast.crufty.net> 8789f45a3c8SSimon J. Gerraty 8799f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220101 8809f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8819f45a3c8SSimon J. Gerraty o more unit-tests 8829f45a3c8SSimon J. Gerraty o remove unnecessary words from command line options in CmdOpts 8839f45a3c8SSimon J. Gerraty o rename eunlink to unlink_file 8849f45a3c8SSimon J. Gerraty o cond.c: make ParseWord in condition parser simpler 8859f45a3c8SSimon J. Gerraty internally return false for irrelevant leaves in conditions 8869f45a3c8SSimon J. Gerraty replace table for function lookup in conditions with simple code 8879f45a3c8SSimon J. Gerraty merge duplicate types CondEvalResult and CondResult 8889f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops and .include directives 8899f45a3c8SSimon J. Gerraty o main.c: constify cached_realpath 8909f45a3c8SSimon J. Gerraty clean up Cmd_Exec 8919f45a3c8SSimon J. Gerraty o parse.c: sync API documentation 8929f45a3c8SSimon J. Gerraty fix error message when reading more than 1 GB from stdin 8939f45a3c8SSimon J. Gerraty clean up parsing of makefiles 8949f45a3c8SSimon J. Gerraty fix line number in error message about open conditionals 8959f45a3c8SSimon J. Gerraty unexport types VarAssignOp and VarAssign 8969f45a3c8SSimon J. Gerraty clean up function names 8979f45a3c8SSimon J. Gerraty remove redundant parameters in dependency parsing functions 8989f45a3c8SSimon J. Gerraty reduce scope of the list of wildcard target names 8999f45a3c8SSimon J. Gerraty extract OP_NOTARGET into separate function 9009f45a3c8SSimon J. Gerraty clean up variable names for parsing dependency lines 9019f45a3c8SSimon J. Gerraty make debug logging a bit more human-friendly 9029f45a3c8SSimon J. Gerraty o var.c: condense code in ApplyModifier_Assign 9039f45a3c8SSimon J. Gerraty 9049f45a3c8SSimon J. Gerraty2021-12-21 Simon J Gerraty <sjg@beast.crufty.net> 9059f45a3c8SSimon J. Gerraty 9069f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211221 9079f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 9089f45a3c8SSimon J. Gerraty o more unit-tests 9099f45a3c8SSimon J. Gerraty o style cleanup 9109f45a3c8SSimon J. Gerraty o in CLEANUP mode, free interned strings at the very end 9119f45a3c8SSimon J. Gerraty o fix memory leak for filenames in .for loops 9129f45a3c8SSimon J. Gerraty o buf.c: avoid memory leak 9139f45a3c8SSimon J. Gerraty o cond.c: condense CondParser_ComparisonOp 9149f45a3c8SSimon J. Gerraty o hash.c: change return type of HashTable_Set to void 9159f45a3c8SSimon J. Gerraty o job.c: change return type of Compat_RunCommand from int to bool 9169f45a3c8SSimon J. Gerraty o main.c: remove bmake_free 9179f45a3c8SSimon J. Gerraty o parse.c: condense repetetive code in ParseDirective 9189f45a3c8SSimon J. Gerraty remove dead code for handling traditional include directives 9199f45a3c8SSimon J. Gerraty clean up parsing of variable assignments 9209f45a3c8SSimon J. Gerraty remove unreachable code for parsing the dependency operator 9219f45a3c8SSimon J. Gerraty clean up loading of files 9229f45a3c8SSimon J. Gerraty fix memory leak in IncludeFile 9239f45a3c8SSimon J. Gerraty o var.c: fix memory leak when parsing a variable name 9249f45a3c8SSimon J. Gerraty fix memory leak from ${.SUFFIXES} 9259f45a3c8SSimon J. Gerraty reduce memory allocation in modifier ':?' and ':C' 9269f45a3c8SSimon J. Gerraty condense RegexReplace for the modifier ':C' and avoid strlen 9279f45a3c8SSimon J. Gerraty merge duplicate code for memory handling in Var_Parse 9289f45a3c8SSimon J. Gerraty distinguish between short-lived and environment variables 9299f45a3c8SSimon J. Gerraty rename VarFreeEnv to VarFreeShortLived 9309f45a3c8SSimon J. Gerraty 93112904384SSimon J. Gerraty2021-12-15 Simon J Gerraty <sjg@beast.crufty.net> 93212904384SSimon J. Gerraty 93312904384SSimon J. Gerraty * cond.c: fix mem leak in CondParser_Leaf 93412904384SSimon J. Gerraty 93512904384SSimon J. Gerraty2021-12-12 Simon J Gerraty <sjg@beast.crufty.net> 93612904384SSimon J. Gerraty 93712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211212 93812904384SSimon J. Gerraty Merge with NetBSD make, pick up 93912904384SSimon J. Gerraty o rename Parse_SetInput to Parse_PushInput 94012904384SSimon J. Gerraty o remove remove period from end of error messages and warnings 94112904384SSimon J. Gerraty to be more consistent 94212904384SSimon J. Gerraty o arch.c: use simpler memory management for parsing archive members 94312904384SSimon J. Gerraty o cond.c: rework and reduce recursion 94412904384SSimon J. Gerraty o for.c: rename some functions to better reflect purpose 94512904384SSimon J. Gerraty o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string. 94612904384SSimon J. Gerraty o var.c: in parse errors, mark whitespace more clearly 94712904384SSimon J. Gerraty inline ParseEmptyArg into CondParser_FuncCallEmpty 94812904384SSimon J. Gerraty minimize calls to LazyBuf_Get in ParseVarnameLong 94912904384SSimon J. Gerraty treat .SUFFIXES as a read-only variable 95012904384SSimon J. Gerraty 95112904384SSimon J. Gerraty2021-12-07 Simon J Gerraty <sjg@beast.crufty.net> 95212904384SSimon J. Gerraty 95312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211207 95412904384SSimon J. Gerraty Merge with NetBSD make, pick up 95512904384SSimon J. Gerraty o inline HashIter_Init 95612904384SSimon J. Gerraty o parse.c: inline common subexpression in ParseRawLine 95712904384SSimon J. Gerraty o var.c: merge branches for modifiers ':D' and ':U' 95812904384SSimon J. Gerraty extract common code into Expr_Words 95912904384SSimon J. Gerraty extract common code into Expr_Str 96012904384SSimon J. Gerraty move low-level implementation details out of Var_Parse 96112904384SSimon J. Gerraty 96212904384SSimon J. Gerraty2021-12-06 Simon J Gerraty <sjg@beast.crufty.net> 96312904384SSimon J. Gerraty 96412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211206 96512904384SSimon J. Gerraty Merge with NetBSD make, pick up 96612904384SSimon J. Gerraty o add unit-tests/varmod-loop-delete 96712904384SSimon J. Gerraty o for.c: inline Str_Words - reduce memory allocation 96812904384SSimon J. Gerraty o parse.c: do not try to expand fixed variable names 96912904384SSimon J. Gerraty only allocate the name of an included file if necessary 97012904384SSimon J. Gerraty clean up ParseInclude 97112904384SSimon J. Gerraty o var.c: fix use-after-free in modifier ':@' 97212904384SSimon J. Gerraty save a memory allocation in each modifier ':O' and ':u' 97312904384SSimon J. Gerraty save a memory allocation in the modifier ':[...]' 97412904384SSimon J. Gerraty in UnexportVars, replace Str_Words with Substring_Words to 97512904384SSimon J. Gerraty reduce allocations and copying. 97612904384SSimon J. Gerraty 97712904384SSimon J. Gerraty2021-12-04 Simon J Gerraty <sjg@beast.crufty.net> 97812904384SSimon J. Gerraty 97912904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211204 98012904384SSimon J. Gerraty Merge with NetBSD make, pick up 98112904384SSimon J. Gerraty o flesh out a number of tests 98212904384SSimon J. Gerraty o replace enums with bitfields, this simplifies a lot of code. 98312904384SSimon J. Gerraty o var.c: refactor ParseModifierPartSubst 98412904384SSimon J. Gerraty 98512904384SSimon J. Gerraty2021-10-24 Simon J Gerraty <sjg@beast.crufty.net> 98612904384SSimon J. Gerraty 98712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211024 98812904384SSimon J. Gerraty Merge with NetBSD make, pick up 98912904384SSimon J. Gerraty o Punt on write errors - ENOSPC etc. 99012904384SSimon J. Gerraty 99112904384SSimon J. Gerraty2021-10-22 Simon J Gerraty <sjg@beast.crufty.net> 99212904384SSimon J. Gerraty 99312904384SSimon J. Gerraty * configure.in: use_defshell, set both DEFSHELL_INDEX 99412904384SSimon J. Gerraty and defshell_path if appropriate. 99512904384SSimon J. Gerraty This makes it easier to use say the KSH specification with 99612904384SSimon J. Gerraty and alternate path for the shell. 99712904384SSimon J. Gerraty 99812904384SSimon J. Gerraty * configure.in compat.c: for SCO we need to force UseShell 99912904384SSimon J. Gerraty 100012904384SSimon J. Gerraty * configure.in: SCO /bin/sh is not usable, provide a list of 100112904384SSimon J. Gerraty alternatives for use as .SHELL. 100212904384SSimon J. Gerraty We still have to mark some tests as broken, plus more if we end up 100312904384SSimon J. Gerraty with ksh as .SHELL. 100412904384SSimon J. Gerraty Issue a warning about skipped tests. 100512904384SSimon J. Gerraty 100612904384SSimon J. Gerraty * boot-strap: leave TOOL_DIFF to configure 100712904384SSimon J. Gerraty 100812904384SSimon J. Gerraty * configure.in: on SCO native cc is not usable, 100912904384SSimon J. Gerraty gcc is to be found in /usr/gnu/bin 101012904384SSimon J. Gerraty and while ancient is at least able to compile bmake. 101112904384SSimon J. Gerraty Thus we add /usr/gnu/bin to PATH if it exists, and later 101212904384SSimon J. Gerraty check if $CC would have been found via $PATH. 101312904384SSimon J. Gerraty If not we set CC to the full path of $CC. 101412904384SSimon J. Gerraty Also gnu diff is known to support -u, so if it exists use it. 101512904384SSimon J. Gerraty 101612904384SSimon J. Gerraty * configure.in: move getopt to AC_REPLACE_FUNCS 101712904384SSimon J. Gerraty also add AC_C_INLINE - in an attempt to compile using 101812904384SSimon J. Gerraty native cc on SCO. 101912904384SSimon J. Gerraty 102012904384SSimon J. Gerraty * configure.in: check for stresep as well as strsep, since we 102112904384SSimon J. Gerraty define the later to the former if necessary, and if we have to 102212904384SSimon J. Gerraty provide stresep we also need to provide a prototype. 102312904384SSimon J. Gerraty 102412904384SSimon J. Gerraty * configure.in: we no longer need to worry about 102512904384SSimon J. Gerraty sys/cdefs.h providing __RCSID which simplifies things quite a bit. 102612904384SSimon J. Gerraty 102712904384SSimon J. Gerraty * make.h: make sure we have __RCSID 102812904384SSimon J. Gerraty 102912904384SSimon J. Gerraty * unit-tests/Makefile.config.in: add TOOL_DIFF so configure 103012904384SSimon J. Gerraty can control it. 103112904384SSimon J. Gerraty 103212904384SSimon J. Gerraty2021-10-20 Simon J Gerraty <sjg@beast.crufty.net> 103312904384SSimon J. Gerraty 103412904384SSimon J. Gerraty * VERSION: 20211020 103512904384SSimon J. Gerraty Merge with NetBSD make, pick up 103612904384SSimon J. Gerraty o confirm sync of unit-tests 103712904384SSimon J. Gerraty 103812904384SSimon J. Gerraty2021-10-18 Simon J Gerraty <sjg@beast.crufty.net> 103912904384SSimon J. Gerraty 104012904384SSimon J. Gerraty * configure.in: check if timezone Europe/Berlin is supported 104112904384SSimon J. Gerraty if not try UTC-1 104212904384SSimon J. Gerraty * configure.in: if .OBJDIR is $srcdir/obj we need to create a 104312904384SSimon J. Gerraty symlink unit-tests -> ../unit-tests/obj so that 104412904384SSimon J. Gerraty unit-tests/Makefile.config is put in the right place. 104512904384SSimon J. Gerraty * refine filtering of .OBJDIR in unit-tests 104612904384SSimon J. Gerraty 104712904384SSimon J. Gerraty2021-10-16 Simon J Gerraty <sjg@beast.crufty.net> 104812904384SSimon J. Gerraty 104912904384SSimon J. Gerraty * Fix unit-tests on Minix 3.2.0 105012904384SSimon J. Gerraty o job.c: do not punt if read of token pipe fails for EAGAIN. 105112904384SSimon J. Gerraty On Minix at least, we are not ready to read the childExitJob pipe 105212904384SSimon J. Gerraty when poll says we are. 105312904384SSimon J. Gerraty There should actually be no reason for this pipe to be 105412904384SSimon J. Gerraty non-blocking, but while that works fine on {Net,Free}BSD it 105512904384SSimon J. Gerraty breaks another test case on Minix. 105612904384SSimon J. Gerraty o unit-tests/Makefile: deal with variants of error messages 105712904384SSimon J. Gerraty and use of obj as .OBJDIR 105812904384SSimon J. Gerraty 105912904384SSimon J. Gerraty2021-10-14 Simon J Gerraty <sjg@beast.crufty.net> 106012904384SSimon J. Gerraty 106112904384SSimon J. Gerraty * configure.in: add sigaction to AC_REPLACE_FUNCS 106212904384SSimon J. Gerraty we also need to check for sigaddset etc just for the benefit of 106312904384SSimon J. Gerraty sigact.c 106412904384SSimon J. Gerraty 106512904384SSimon J. Gerraty * Add sigact.c as sigaction.c so this "just works". 106612904384SSimon J. Gerraty This should have been done back when bmake_signal started using 106712904384SSimon J. Gerraty sigaction (I only just noticed that sigact.c wasn't here ;-) 106812904384SSimon J. Gerraty Note: I no longer have access to any system where this would matter. 106912904384SSimon J. Gerraty 107012904384SSimon J. Gerraty2021-10-13 Simon J Gerraty <sjg@beast.crufty.net> 107112904384SSimon J. Gerraty 107212904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211011 107312904384SSimon J. Gerraty 107412904384SSimon J. Gerraty * Makefile: cleanup a little 107512904384SSimon J. Gerraty 107612904384SSimon J. Gerraty * configure.in: check for sigsetmask 107712904384SSimon J. Gerraty 107812904384SSimon J. Gerraty2021-10-01 Simon J Gerraty <sjg@beast.crufty.net> 107912904384SSimon J. Gerraty 108012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211001 108112904384SSimon J. Gerraty Merge with NetBSD make, pick up 108212904384SSimon J. Gerraty o reduce locations reducing text size 108312904384SSimon J. Gerraty o remove unnecessary const 108412904384SSimon J. Gerraty o cond.c: fix lint warning on i386 108512904384SSimon J. Gerraty do not allow unquoted 'left == right' after modifier ':?' 108612904384SSimon J. Gerraty o hash.c: fix build for DEBUG_HASH_LOOKUP 108712904384SSimon J. Gerraty o var.c: fix memory leak in error case of the ':?' modifier 108812904384SSimon J. Gerraty 108912904384SSimon J. Gerraty2021-09-11 Simon J Gerraty <sjg@beast.crufty.net> 109012904384SSimon J. Gerraty 109112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210911 109212904384SSimon J. Gerraty Merge with NetBSD make, pick up 109312904384SSimon J. Gerraty o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval 109412904384SSimon J. Gerraty 109512904384SSimon J. Gerraty2021-09-08 Simon J Gerraty <sjg@beast.crufty.net> 109612904384SSimon J. Gerraty 109712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210906 109812904384SSimon J. Gerraty Merge with NetBSD make, pick up 109912904384SSimon J. Gerraty o more unit tests 110012904384SSimon J. Gerraty o lint cleanup 110112904384SSimon J. Gerraty o rename some functions to better fit purpose 110212904384SSimon J. Gerraty o for.c: cleanup - remove unnecessary optimization 110312904384SSimon J. Gerraty fix embedded newlines 110412904384SSimon J. Gerraty o parse.c: correct case for CVS/RCS 110512904384SSimon J. Gerraty 110612904384SSimon J. Gerraty2021-08-11 Simon J Gerraty <sjg@beast.crufty.net> 110712904384SSimon J. Gerraty 110812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210808 110912904384SSimon J. Gerraty Merge with NetBSD make, pick up 111012904384SSimon J. Gerraty o var.c: remove redundant initialization in ApplyModifier_Order 111112904384SSimon J. Gerraty 111212904384SSimon J. Gerraty * mk/options.mk: issue warning for incorrect usage 111312904384SSimon J. Gerraty 111412904384SSimon J. Gerraty2021-08-03 Simon J Gerraty <sjg@beast.crufty.net> 111512904384SSimon J. Gerraty 111612904384SSimon J. Gerraty * var.c: use long for :On if we don't have a 64bit int type 111712904384SSimon J. Gerraty 111812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210803 111912904384SSimon J. Gerraty Merge with NetBSD make, pick up 112012904384SSimon J. Gerraty o rework varmod-order tests to avoid qsort instability 112112904384SSimon J. Gerraty o make.1: clarify :On entry 112212904384SSimon J. Gerraty 112312904384SSimon J. Gerraty2021-07-31 Simon J Gerraty <sjg@beast.crufty.net> 112412904384SSimon J. Gerraty 112512904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210731 112612904384SSimon J. Gerraty Merge with NetBSD make, pick up 112712904384SSimon J. Gerraty o fix some lint issues 112812904384SSimon J. Gerraty o more unit tests 112912904384SSimon J. Gerraty o var.c: rework of ApplyModifier_Order 113012904384SSimon J. Gerraty 113112904384SSimon J. Gerraty2021-07-30 Simon J Gerraty <sjg@beast.crufty.net> 113212904384SSimon J. Gerraty 113312904384SSimon J. Gerraty * util.c: add strto*l if HAVE_STRTO*L not defined 113412904384SSimon J. Gerraty 113512904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210730 113612904384SSimon J. Gerraty Merge with NetBSD make, pick up 113712904384SSimon J. Gerraty o var.c: add :On and :Orn for numeric sort 113812904384SSimon J. Gerraty disabled if no 64bit type available. 113912904384SSimon J. Gerraty o _strtol.h: to implement strto*l functions 114012904384SSimon J. Gerraty 114112904384SSimon J. Gerraty2021-07-04 Simon J Gerraty <sjg@beast.crufty.net> 114212904384SSimon J. Gerraty 114312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210704 114412904384SSimon J. Gerraty Merge with NetBSD make, pick up 114512904384SSimon J. Gerraty o unit-tests: fix some tests to be more portable 114612904384SSimon J. Gerraty - job-output-null not all shells do the same number of write calls 114712904384SSimon J. Gerraty - objdir-writable if TMPDIR is set; /tmp may not be usable 114812904384SSimon J. Gerraty 114912904384SSimon J. Gerraty2021-07-01 Simon J Gerraty <sjg@beast.crufty.net> 115012904384SSimon J. Gerraty 115112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210701 115212904384SSimon J. Gerraty Merge with NetBSD make, pick up 115312904384SSimon J. Gerraty o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped; 115412904384SSimon J. Gerraty some tests just cannot work in some environments. 115512904384SSimon J. Gerraty o buf.c: simpler upper bound for length in Buf_AddInt 115612904384SSimon J. Gerraty o cond.c: fix grammar in error message for malformed conditional 115712904384SSimon J. Gerraty o for.c: prevent newline injection (from ${.newline}) in .for loops 115812904384SSimon J. Gerraty o var.c: use more practical data type in RegexReplace 115912904384SSimon J. Gerraty (avoid need for %zu) 116012904384SSimon J. Gerraty extract RegexReplace from ModifyWord_SubstRegex 116112904384SSimon J. Gerraty 1162b0c40a00SSimon J. Gerraty2021-06-21 Simon J Gerraty <sjg@beast.crufty.net> 1163b0c40a00SSimon J. Gerraty 1164b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210621 1165b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1166b0c40a00SSimon J. Gerraty o var.c: only report error for unmatched regex subexpression 1167b0c40a00SSimon J. Gerraty when linting (-dL) since we cannot tell when an unmatched 1168b0c40a00SSimon J. Gerraty subexpression is an expected result. 1169b0c40a00SSimon J. Gerraty o move unmatched regex subexpression tests to 1170b0c40a00SSimon J. Gerraty varmod-subst-regex.mk and enable strict (lint) mode 1171b0c40a00SSimon J. Gerraty 1172b0c40a00SSimon J. Gerraty2021-06-16 Simon J Gerraty <sjg@beast.crufty.net> 1173b0c40a00SSimon J. Gerraty 1174b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210616 1175b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1176b0c40a00SSimon J. Gerraty o more unit tests 1177b0c40a00SSimon J. Gerraty o cond.c: rename If_Eval to EvalBare 1178b0c40a00SSimon J. Gerraty improve function names for parsing conditions 1179b0c40a00SSimon J. Gerraty o job.c: fix error handling of targets that cannot be made 1180b0c40a00SSimon J. Gerraty o var.c: uncompress code in ApplyModifier_Unique 1181b0c40a00SSimon J. Gerraty 1182b0c40a00SSimon J. Gerraty2021-05-18 Simon J Gerraty <sjg@beast.crufty.net> 1183b0c40a00SSimon J. Gerraty 1184b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210518 1185b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1186b0c40a00SSimon J. Gerraty o fix unit-tests/opt-chdir to cope with /nonexistent existing. 1187b0c40a00SSimon J. Gerraty o job.c: Print -de error information when running multiple jobs 1188b0c40a00SSimon J. Gerraty 1189b0c40a00SSimon J. Gerraty2021-04-20 Simon J Gerraty <sjg@beast.crufty.net> 1190b0c40a00SSimon J. Gerraty 1191b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210420 1192b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1193b0c40a00SSimon J. Gerraty o use C99 bool type 1194b0c40a00SSimon J. Gerraty o convert VarEvalFlags back into an enum 1195b0c40a00SSimon J. Gerraty o cond.c: do not complain when skipping the condition 'no >= 10' 1196b0c40a00SSimon J. Gerraty o hash.c: avoid allocating memory for simple variable names 1197b0c40a00SSimon J. Gerraty o job.c: use distinct wording for writing to the shell commands file 1198b0c40a00SSimon J. Gerraty remove type name for the abort status in job handling 1199b0c40a00SSimon J. Gerraty rename PrintOutput to PrintFilteredOutput to avoid confusion 1200b0c40a00SSimon J. Gerraty o main.c: avoid double slash in name of temporary directory 1201b0c40a00SSimon J. Gerraty o var.c: use straight quotes for error 'Bad conditional expression' 1202b0c40a00SSimon J. Gerraty reduce memory allocations in the modifiers ':D' and ':U' 1203b0c40a00SSimon J. Gerraty rename members of ModifyWord_LoopArgs 1204b0c40a00SSimon J. Gerraty clean up pattern flags for the modifiers ':S' and ':C' 1205b0c40a00SSimon J. Gerraty reduce memory allocation and strlen calls in modifier ':from=to' 1206b0c40a00SSimon J. Gerraty in the ':Q' modifier, only allocate memory if necessary 1207b0c40a00SSimon J. Gerraty improve performance for LazyBuf 1208b0c40a00SSimon J. Gerraty remove redundant parameter from ParseVarnameLong 1209b0c40a00SSimon J. Gerraty migrate ParseModifierPart to use Substring 1210b0c40a00SSimon J. Gerraty avoid unnecessary calls to strlen when evaluating modifiers 1211b0c40a00SSimon J. Gerraty migrate ModifyWord functions to use Substring 1212b0c40a00SSimon J. Gerraty migrate handling of the modifier ':S,from,to,' to Substring 1213b0c40a00SSimon J. Gerraty reduce debug logging and memory allocation for ${:U...} 1214b0c40a00SSimon J. Gerraty reduce verbosity of the -dv debug logging for standard cases 1215b0c40a00SSimon J. Gerraty clean up debug logging for ':M' and ':N' 1216b0c40a00SSimon J. Gerraty disallow '$' in the variable name of the modifier ':@' 1217b0c40a00SSimon J. Gerraty simplify access to the name of an expression during evaluation 1218b0c40a00SSimon J. Gerraty 1219b0c40a00SSimon J. Gerraty2021-03-30 Simon J Gerraty <sjg@beast.crufty.net> 1220b0c40a00SSimon J. Gerraty 1221b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210330 1222b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1223b0c40a00SSimon J. Gerraty o replace enum bit-field with struct bit-field for VarEvalFlags 1224b0c40a00SSimon J. Gerraty o rename VARE_NONE to VARE_PARSE_ONLY 1225b0c40a00SSimon J. Gerraty o var.c: rename ApplyModifiersState to ModChain 1226b0c40a00SSimon J. Gerraty fix double varname expansion in the variable modifier '::=' 1227b0c40a00SSimon J. Gerraty change debug log for variable evaluation flags to lowercase 1228b0c40a00SSimon J. Gerraty 1229b0c40a00SSimon J. Gerraty2021-03-14 Simon J Gerraty <sjg@beast.crufty.net> 1230b0c40a00SSimon J. Gerraty 1231b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210314 1232b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1233b0c40a00SSimon J. Gerraty o var.c: avoid evaluating many modifiers in parse only mode 1234b0c40a00SSimon J. Gerraty in strict mode (-dL) many variable references are parsed twice, 1235b0c40a00SSimon J. Gerraty the first time just to report parse errors early, so we want to 1236b0c40a00SSimon J. Gerraty avoid side effects and wasted effort to the extent possible. 1237b0c40a00SSimon J. Gerraty 1238b0c40a00SSimon J. Gerraty2021-02-26 Simon J Gerraty <sjg@beast.crufty.net> 1239b0c40a00SSimon J. Gerraty 1240b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210226 1241b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1242b0c40a00SSimon J. Gerraty o remove freestanding freeIt variables 1243b0c40a00SSimon J. Gerraty link via FStr 1244b0c40a00SSimon J. Gerraty o var.c: restructure code in ParseVarname to target human readers 1245b0c40a00SSimon J. Gerraty improve error message for; 1246b0c40a00SSimon J. Gerraty bad modifier in variable expression 1247b0c40a00SSimon J. Gerraty unclosed modifier 1248b0c40a00SSimon J. Gerraty unknown modifier 1249b0c40a00SSimon J. Gerraty remove redundant parameter of ApplySingleModifier 1250b0c40a00SSimon J. Gerraty explain non-obvious code around indirect variable modifiers 1251b0c40a00SSimon J. Gerraty quote ':S' in error message about missing delimiter 1252b0c40a00SSimon J. Gerraty extract ParseModifier_Match into separate function 1253b0c40a00SSimon J. Gerraty add context information to error message about ':range' modifier 1254b0c40a00SSimon J. Gerraty add quotes around variable name in an error message 1255b0c40a00SSimon J. Gerraty reorder code in ModifyWords 1256b0c40a00SSimon J. Gerraty use more common parameter order for VarSelectWords 1257b0c40a00SSimon J. Gerraty make ModifyWord_Subst a little easier to understand 1258b0c40a00SSimon J. Gerraty do not expand variable name from the command line twice 1259b0c40a00SSimon J. Gerraty extract ExistsInCmdline from Var_SetWithFlags 1260b0c40a00SSimon J. Gerraty save a hash map lookup when defining a cmdline variable 1261b0c40a00SSimon J. Gerraty clean up VarAdd, Var_Delete, Var_ReexportVars 1262b0c40a00SSimon J. Gerraty use bit-shift expressions for VarFlags constants 1263b0c40a00SSimon J. Gerraty rename constants for VarFlags 1264b0c40a00SSimon J. Gerraty rename ExprDefined constants for debug logging 1265b0c40a00SSimon J. Gerraty rename ExprStatus to ExprDefined 1266b0c40a00SSimon J. Gerraty split parameters for evaluating variable expressions 1267b0c40a00SSimon J. Gerraty reduce redundant code around ModifyWords 1268b0c40a00SSimon J. Gerraty print error about failed shell command before overwriting variable 1269b0c40a00SSimon J. Gerraty clean up ValidShortVarname, ParseVarnameShort 1270b0c40a00SSimon J. Gerraty rename VarExprStatus to ExprStatus 1271b0c40a00SSimon J. Gerraty add functions for assigning the value of an expression 1272b0c40a00SSimon J. Gerraty rename ApplyModifiersState_Define to Expr_Define 1273b0c40a00SSimon J. Gerraty condense the code for parsing :S and :C modifiers 1274b0c40a00SSimon J. Gerraty 1275dba7b0efSSimon J. Gerraty2021-02-06 Simon J Gerraty <sjg@beast.crufty.net> 1276dba7b0efSSimon J. Gerraty 1277dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210206 1278dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1279dba7b0efSSimon J. Gerraty o unit-tests: use private TMPDIR to avoid errors from other users 1280dba7b0efSSimon J. Gerraty 1281dba7b0efSSimon J. Gerraty2021-02-05 Simon J Gerraty <sjg@beast.crufty.net> 1282dba7b0efSSimon J. Gerraty 1283dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210205 1284dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1285dba7b0efSSimon J. Gerraty o avoid strdup in mkTempFile 1286dba7b0efSSimon J. Gerraty o always use vfork 1287dba7b0efSSimon J. Gerraty o rename context and ctxt to scope 1288dba7b0efSSimon J. Gerraty o rename some VAR constants to SCOPE 1289dba7b0efSSimon J. Gerraty o Var_ functions, move the scope to the front 1290dba7b0efSSimon J. Gerraty o use shortcut functions Global_Set and Global_Append 1291dba7b0efSSimon J. Gerraty o add shortcut Global_Delete for deleting a global variable 1292dba7b0efSSimon J. Gerraty o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete 1293dba7b0efSSimon J. Gerraty o compat.c: when exiting due to an error, print graph information 1294dba7b0efSSimon J. Gerraty o enum.c: remove overengineered Enum_ValueToString 1295dba7b0efSSimon J. Gerraty o make.c: remove unused INTERNAL flag 1296dba7b0efSSimon J. Gerraty remove unused return type of MakeBuildParent 1297dba7b0efSSimon J. Gerraty o parse.c: replace parse error "Need an operator" with better message 1298dba7b0efSSimon J. Gerraty o var.c: improve documentation about variable scopes 1299dba7b0efSSimon J. Gerraty rename Var_ValueDirect to GNode_ValueDirect 1300dba7b0efSSimon J. Gerraty rename old Var_SetWithFlags to Var_SetExpandWithFlags 1301dba7b0efSSimon J. Gerraty merge SetVar into Var_SetWithFlags 1302dba7b0efSSimon J. Gerraty split Var_Exists into plain Var_Exists and Var_ExistsExpand 1303dba7b0efSSimon J. Gerraty split Var_Append into Var_Append and Var_AppendExpand 1304dba7b0efSSimon J. Gerraty replace enum bit-set with bit-field 1305dba7b0efSSimon J. Gerraty o unit-tests/var-op-shell: use kill rather than kill -14 1306dba7b0efSSimon J. Gerraty which broke on darwin with recent update. 1307dba7b0efSSimon J. Gerraty 1308dba7b0efSSimon J. Gerraty2021-02-01 Simon J Gerraty <sjg@beast.crufty.net> 1309dba7b0efSSimon J. Gerraty 1310dba7b0efSSimon J. Gerraty * configure.in: check for sig_atomic_t and define it as 'int' 1311dba7b0efSSimon J. Gerraty if missing. 1312dba7b0efSSimon J. Gerraty 1313dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210201 1314dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1315dba7b0efSSimon J. Gerraty o use sig_atomic_t for caught_sigchld 1316dba7b0efSSimon J. Gerraty 1317dba7b0efSSimon J. Gerraty2021-01-30 Simon J Gerraty <sjg@beast.crufty.net> 1318dba7b0efSSimon J. Gerraty 1319dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210130 1320dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1321dba7b0efSSimon J. Gerraty o more unit tests 1322dba7b0efSSimon J. Gerraty o convert SearchPath to struct 1323dba7b0efSSimon J. Gerraty o split Buf_Destroy into Buf_Done and Buf_DoneData 1324dba7b0efSSimon J. Gerraty o for.c: split For_Eval into separate functions 1325dba7b0efSSimon J. Gerraty rename struct For to struct ForLoop 1326dba7b0efSSimon J. Gerraty o job.c: do not create empty shell files in jobs mode 1327dba7b0efSSimon J. Gerraty rename JobOpenTmpFile to JobWriteShellCommands 1328dba7b0efSSimon J. Gerraty reduce unnecessary calls to waitpid 1329dba7b0efSSimon J. Gerraty o parse.c: in -dp mode, print stack trace with each diagnostic 1330dba7b0efSSimon J. Gerraty 1331dba7b0efSSimon J. Gerraty2021-01-23 Simon J Gerraty <sjg@beast.crufty.net> 1332dba7b0efSSimon J. Gerraty 1333dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210123 1334dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1335dba7b0efSSimon J. Gerraty o rename Dir_Expand to SearchPath_Expand 1336dba7b0efSSimon J. Gerraty o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags 1337dba7b0efSSimon J. Gerraty o cond.c: fix debug output for comparison operators in conditionals 1338dba7b0efSSimon J. Gerraty o dir.c: split Dir_FindFile into separate functions 1339dba7b0efSSimon J. Gerraty 1340dba7b0efSSimon J. Gerraty2021-01-20 Simon J Gerraty <sjg@beast.crufty.net> 1341dba7b0efSSimon J. Gerraty 1342dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210120 1343dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1344dba7b0efSSimon J. Gerraty o fix some more lint nits 1345dba7b0efSSimon J. Gerraty o refine some unit tests for portability 1346dba7b0efSSimon J. Gerraty o cond.c: rework parsing 1347dba7b0efSSimon J. Gerraty 134806b9b3e0SSimon J. Gerraty2021-01-10 Simon J Gerraty <sjg@beast.crufty.net> 134906b9b3e0SSimon J. Gerraty 135006b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210110 135106b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 135206b9b3e0SSimon J. Gerraty o fix lint warnings 135306b9b3e0SSimon J. Gerraty o consistently use boolean expressions in conditions 135406b9b3e0SSimon J. Gerraty 135506b9b3e0SSimon J. Gerraty2021-01-08 Simon J Gerraty <sjg@beast.crufty.net> 135606b9b3e0SSimon J. Gerraty 135706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210108 135806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 135906b9b3e0SSimon J. Gerraty o job.c: back to polling token pipe if we want a token 136006b9b3e0SSimon J. Gerraty o main.c: always print 'stopped in' on first call 136106b9b3e0SSimon J. Gerraty The execption is if we bail because of an abort token 136206b9b3e0SSimon J. Gerraty in which case just exit 6. 136306b9b3e0SSimon J. Gerraty 136406b9b3e0SSimon J. Gerraty2021-01-01 Simon J Gerraty <sjg@beast.crufty.net> 136506b9b3e0SSimon J. Gerraty 136606b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210101 136706b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 136806b9b3e0SSimon J. Gerraty o Happy New Year! 136906b9b3e0SSimon J. Gerraty o rename CmdOpts.lint to strict 137006b9b3e0SSimon J. Gerraty o exit 2 on technical errors 137106b9b3e0SSimon J. Gerraty o replace pointers in controlling conditions with booleans 137206b9b3e0SSimon J. Gerraty o replace global preserveUndefined with VARE_KEEP_UNDEF 137306b9b3e0SSimon J. Gerraty o compat.c: re-export variables from the actual make process 137406b9b3e0SSimon J. Gerraty if using vfork this is the effect anyway 137506b9b3e0SSimon J. Gerraty o cond.c: clean up VarParseResult constants 137606b9b3e0SSimon J. Gerraty o for.c: fix undefined behavior in SubstVarLong 137706b9b3e0SSimon J. Gerraty make control flow in SubstVarLong of .for loops more obvious 137806b9b3e0SSimon J. Gerraty clean up SubstVarShort in .for loops 137906b9b3e0SSimon J. Gerraty extract ForSubstBody from ForReadMore 138006b9b3e0SSimon J. Gerraty clean up ForReadMore 138106b9b3e0SSimon J. Gerraty simplify termination condition for .for loop 138206b9b3e0SSimon J. Gerraty add error handling for .for loop items 138306b9b3e0SSimon J. Gerraty job.c: re-export variables from the actual make process 138406b9b3e0SSimon J. Gerraty parse.c: remove mmap for loading files, only allow files < 1 GiB 138506b9b3e0SSimon J. Gerraty fix edge case in := with undefined in variable name 138606b9b3e0SSimon J. Gerraty skip variable expansion in ParseDependencyTargetWord 138706b9b3e0SSimon J. Gerraty var.c: split ExportVar into separate functions 138806b9b3e0SSimon J. Gerraty clean up code in extracted ExportVar functions 138906b9b3e0SSimon J. Gerraty remove dead code from ApplyModifiersIndirect 139006b9b3e0SSimon J. Gerraty split Var_Subst into easily understandable functions 139106b9b3e0SSimon J. Gerraty clean up VarParseResult constants 139206b9b3e0SSimon J. Gerraty 139306b9b3e0SSimon J. Gerraty2020-12-25 Simon J Gerraty <sjg@beast.crufty.net> 139406b9b3e0SSimon J. Gerraty 139506b9b3e0SSimon J. Gerraty * main.c: use .MAKE.DEPENDFILE as set by makefiles 139606b9b3e0SSimon J. Gerraty 139706b9b3e0SSimon J. Gerraty2020-12-22 Simon J Gerraty <sjg@beast.crufty.net> 139806b9b3e0SSimon J. Gerraty 139906b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201222 140006b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 140106b9b3e0SSimon J. Gerraty o make DEBUG macro return boolean 140206b9b3e0SSimon J. Gerraty o parse.c: fix assertion failure for files without trailing newline 140306b9b3e0SSimon J. Gerraty o var.c: allow .undef to undefine multiple variables at once 140406b9b3e0SSimon J. Gerraty remove excess newline from parse errors 140506b9b3e0SSimon J. Gerraty 140606b9b3e0SSimon J. Gerraty2020-12-21 Simon J Gerraty <sjg@beast.crufty.net> 140706b9b3e0SSimon J. Gerraty 140806b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201221 140906b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 141006b9b3e0SSimon J. Gerraty o some unit-test updates 141106b9b3e0SSimon J. Gerraty 141206b9b3e0SSimon J. Gerraty2020-12-20 Simon J Gerraty <sjg@beast.crufty.net> 141306b9b3e0SSimon J. Gerraty 141406b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201220 141506b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 141606b9b3e0SSimon J. Gerraty o more unit tests 141706b9b3e0SSimon J. Gerraty o return FStr from Var_Parse and Var_Value 141806b9b3e0SSimon J. Gerraty o spell nonexistent consistently 141906b9b3e0SSimon J. Gerraty o add str_basename to reduce duplicate code 142006b9b3e0SSimon J. Gerraty o compat.c: fix .ERROR_TARGET in compat -k mode 142106b9b3e0SSimon J. Gerraty extract InitSignals from Compat_Run 142206b9b3e0SSimon J. Gerraty extract UseShell from Compat_RunCommand 142306b9b3e0SSimon J. Gerraty o cond.c: error out if an '.endif' or '.else' contain extraneous text 142406b9b3e0SSimon J. Gerraty o for.c: rename ForIterate to ForReadMore 142506b9b3e0SSimon J. Gerraty o hash.c: clean up hash function for HashTable 142606b9b3e0SSimon J. Gerraty o lst.c: rename Vector.priv_cap to cap 142706b9b3e0SSimon J. Gerraty o main.c: remove constant parameter from MakeMode 142806b9b3e0SSimon J. Gerraty o make.c: use symbolic time for 0 in Make_Recheck 142906b9b3e0SSimon J. Gerraty extract MakeChildren from MakeStartJobs 143006b9b3e0SSimon J. Gerraty o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar 143106b9b3e0SSimon J. Gerraty fix error message for .info/.warning/.error without argument 143206b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 143306b9b3e0SSimon J. Gerraty extract ParseSkippedBranches, ParseForLoop from ParseReadLine 143406b9b3e0SSimon J. Gerraty rename mode constants for ParseGetLine to be more expressive 143506b9b3e0SSimon J. Gerraty reduce debugging details in Parse_SetInput 143606b9b3e0SSimon J. Gerraty fix line numbers in .for loops 143706b9b3e0SSimon J. Gerraty split ParseGetLine into separate functions 143806b9b3e0SSimon J. Gerraty fix garbled output for failed shell command 143906b9b3e0SSimon J. Gerraty var.c: remove redundant assignment in ApplyModifier_SysV 144006b9b3e0SSimon J. Gerraty error out on unknown variable modifiers at parse time 144106b9b3e0SSimon J. Gerraty remove wrong error message for indirect modifier in lint mode 144206b9b3e0SSimon J. Gerraty extract ApplySingleModifier from ApplyModifiers 144306b9b3e0SSimon J. Gerraty use FStr for memory management in Var_SetWithFlags 144406b9b3e0SSimon J. Gerraty extract SetVar from Var_SetWithFlags 144506b9b3e0SSimon J. Gerraty use FStr in VarNew 144606b9b3e0SSimon J. Gerraty extract string functions from ApplyModifier_To 144706b9b3e0SSimon J. Gerraty error out if .undef has not exactly 1 argument 144806b9b3e0SSimon J. Gerraty extract Var_DeleteVar from Var_Delete 144906b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 145006b9b3e0SSimon J. Gerraty clean up memory management for expanding variable expressions 145106b9b3e0SSimon J. Gerraty 145206b9b3e0SSimon J. Gerraty2020-12-12 Simon J Gerraty <sjg@beast.crufty.net> 145306b9b3e0SSimon J. Gerraty 145406b9b3e0SSimon J. Gerraty * avoid %zu 145506b9b3e0SSimon J. Gerraty 145606b9b3e0SSimon J. Gerraty * lst.c: avoid anonymous union 145706b9b3e0SSimon J. Gerraty 145806b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201212 145906b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 146006b9b3e0SSimon J. Gerraty o more unit tests 146106b9b3e0SSimon J. Gerraty o inline Targ_Ignore and Targ_Silent 146206b9b3e0SSimon J. Gerraty o split JobFlags into separate fields 146306b9b3e0SSimon J. Gerraty o remove const from function parameters (left overs from refactoring) 146406b9b3e0SSimon J. Gerraty o eliminate boolean argument of Var_Export 146506b9b3e0SSimon J. Gerraty o make API of Buf_Init simpler 146606b9b3e0SSimon J. Gerraty o rename ParseRunOptions to ParseCommandFlags 146706b9b3e0SSimon J. Gerraty o replace *line with line[0] 146806b9b3e0SSimon J. Gerraty o compat.c: fix wrong exit status for multiple failed main targets 146906b9b3e0SSimon J. Gerraty refactor Compat_Run to show the error condition more clearly 147006b9b3e0SSimon J. Gerraty don't make .END if the main targets already failed (-k mode) 147106b9b3e0SSimon J. Gerraty fix exit status in -k mode if a dependency fails 147206b9b3e0SSimon J. Gerraty o for.c: clean up Buf_AddEscaped in .for loops 147306b9b3e0SSimon J. Gerraty o job.c: extract ShellWriter_ErrOn from JobPrintCommand 147406b9b3e0SSimon J. Gerraty make Job_Touch simpler 147506b9b3e0SSimon J. Gerraty refactor JobFinish 147606b9b3e0SSimon J. Gerraty rename Shell.exitFlag to errFlag 147706b9b3e0SSimon J. Gerraty move Job.xtraced to ShellWriter 147806b9b3e0SSimon J. Gerraty make printing of shell commands independent from the job 147906b9b3e0SSimon J. Gerraty rename shell flags in struct Shell 148006b9b3e0SSimon J. Gerraty extract JobOpenTmpFile from JobStart 148106b9b3e0SSimon J. Gerraty rename RunFlags to CommandFlags 148206b9b3e0SSimon J. Gerraty split various Job.* into separate fields 148306b9b3e0SSimon J. Gerraty rename commandShell to shell 148406b9b3e0SSimon J. Gerraty extract InitShellNameAndPath from Shell_Init 148506b9b3e0SSimon J. Gerraty replace signal handling macros with local functions 148606b9b3e0SSimon J. Gerraty replace macro MESSAGE with local function 148706b9b3e0SSimon J. Gerraty parse.c: error out on null bytes in makefiles 148806b9b3e0SSimon J. Gerraty error out on misspelled directives 148906b9b3e0SSimon J. Gerraty rename IFile.nextbuf to readMore 149006b9b3e0SSimon J. Gerraty fix undefined behavior in ParseEOF 149106b9b3e0SSimon J. Gerraty str.c: remove redundant call to strlen in Str_Words 149206b9b3e0SSimon J. Gerraty var.c: error out on misspelled .unexport-env 149306b9b3e0SSimon J. Gerraty error out on misspelled .export directives 149406b9b3e0SSimon J. Gerraty extract ExportVars from Var_Export 149506b9b3e0SSimon J. Gerraty extract ExportVarsExpand from Var_Export 149606b9b3e0SSimon J. Gerraty eliminate boolean argument of Var_Export 149706b9b3e0SSimon J. Gerraty fix undefined behavior when exporting ${:U } 149806b9b3e0SSimon J. Gerraty rename Var_ExportVars to Var_ReexportVars 149906b9b3e0SSimon J. Gerraty rename Var_Export1 to ExportVar 150006b9b3e0SSimon J. Gerraty 150106b9b3e0SSimon J. Gerraty2020-12-06 Simon J Gerraty <sjg@beast.crufty.net> 150206b9b3e0SSimon J. Gerraty 150306b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201206 150406b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 150506b9b3e0SSimon J. Gerraty o more unit tests 150606b9b3e0SSimon J. Gerraty o inline macros for debug logging 150706b9b3e0SSimon J. Gerraty o use consistent variable names for list nodes 150806b9b3e0SSimon J. Gerraty o define constants for enum zero-values 150906b9b3e0SSimon J. Gerraty o dir.c: use fixed format for debug output of the directory cache 151006b9b3e0SSimon J. Gerraty remove Dir_InitDir 151106b9b3e0SSimon J. Gerraty o lst.c: inline Lst_Enqueue, Vector_Done 151206b9b3e0SSimon J. Gerraty o meta.c: remove unused parameter from meta_needed 151306b9b3e0SSimon J. Gerraty o parse.c: rename parse functions 151406b9b3e0SSimon J. Gerraty o suff.c: extract ExpandChildrenRegular from ExpandChildren 151506b9b3e0SSimon J. Gerraty o targ.c: don't concatenate identifiers in Targ_PrintType 151606b9b3e0SSimon J. Gerraty o var.c: remove comment decoration 151706b9b3e0SSimon J. Gerraty extract UnexportVars from Var_UnExport 151806b9b3e0SSimon J. Gerraty extract GetVarnamesToUnexport from Var_UnExport 151906b9b3e0SSimon J. Gerraty extract UnexportEnv from Var_UnExport 152006b9b3e0SSimon J. Gerraty extract UnexportVar from Var_UnExport 152106b9b3e0SSimon J. Gerraty move CleanEnv to UnexportVars 152206b9b3e0SSimon J. Gerraty replace pointer comparisons with enum 152306b9b3e0SSimon J. Gerraty add FStr to var.c to make memory handling simpler 152406b9b3e0SSimon J. Gerraty use FStr in Var_UnExport 152506b9b3e0SSimon J. Gerraty move type definitions in var.c to the top 152606b9b3e0SSimon J. Gerraty extract FreeEnvVar from Var_Parse 152706b9b3e0SSimon J. Gerraty extract ShuffleStrings from ApplyModifier_Order 152806b9b3e0SSimon J. Gerraty 152906b9b3e0SSimon J. Gerraty2020-11-30 Simon J Gerraty <sjg@beast.crufty.net> 153006b9b3e0SSimon J. Gerraty 153106b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201130 153206b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 153306b9b3e0SSimon J. Gerraty o add unit tests for META MODE 153406b9b3e0SSimon J. Gerraty o reduce memory allocation for dirSearchPath, GNode.parents, 153506b9b3e0SSimon J. Gerraty GNode.children, OpenDirs 153606b9b3e0SSimon J. Gerraty o reduce pointer indirection for GNode.cohorts and 153706b9b3e0SSimon J. Gerraty GNode.implicitParents 153806b9b3e0SSimon J. Gerraty o remove pointer indirection from GNode.commands 153906b9b3e0SSimon J. Gerraty o inline Lst_ForEachUntil in meta mode 154006b9b3e0SSimon J. Gerraty o dir.c: fix memory leak for lstat cache in -DCLEANUP mode 154106b9b3e0SSimon J. Gerraty clean up memory management for CachedDirs 154206b9b3e0SSimon J. Gerraty fix the reference count of dotLast going negative 154306b9b3e0SSimon J. Gerraty add debug logging for OpenDirs_Done 154406b9b3e0SSimon J. Gerraty extract CacheNewDir from Dir_AddDir 154506b9b3e0SSimon J. Gerraty add debug logging for reference counting of CachedDir 154606b9b3e0SSimon J. Gerraty rename some Dir functions to SearchPath 154706b9b3e0SSimon J. Gerraty o job.c: rename some global variables 154806b9b3e0SSimon J. Gerraty o main.c: reduce memory allocation in ReadBuiltinRules 154906b9b3e0SSimon J. Gerraty reduce memory allocation in CmdOpts.create, CmdOpts.variables, 155006b9b3e0SSimon J. Gerraty CmdOpts.makefiles 155106b9b3e0SSimon J. Gerraty Add .MAKE.UID and .MAKE.GID 155206b9b3e0SSimon J. Gerraty o make.c: reduce memory allocation for/in toBeMade, 155306b9b3e0SSimon J. Gerraty Make_ProcessWait, Make_ExpandUse 155406b9b3e0SSimon J. Gerraty o meta.c: reduce memory allocation in meta_oodate 155506b9b3e0SSimon J. Gerraty o parse.c: reduce memory allocations for parsing dependencies and 155606b9b3e0SSimon J. Gerraty targets 155706b9b3e0SSimon J. Gerraty o suff.c: reduce memory allocation in suffix handling 155806b9b3e0SSimon J. Gerraty 155906b9b3e0SSimon J. Gerraty2020-11-24 Simon J Gerraty <sjg@beast.crufty.net> 156006b9b3e0SSimon J. Gerraty 156106b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201124 156206b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 156306b9b3e0SSimon J. Gerraty o .MAKE.{UID,GID} represent uid and gid running make. 156406b9b3e0SSimon J. Gerraty o fix error handling for .BEGIN and .END dependency in -k mode 156506b9b3e0SSimon J. Gerraty o fix missing "Stop." after failed .END node in -k mode 156606b9b3e0SSimon J. Gerraty o use properly typed comparisons in boolean contexts 156706b9b3e0SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 156806b9b3e0SSimon J. Gerraty o add HashSet type 156906b9b3e0SSimon J. Gerraty o compat.c: split Compat_Make into smaller functions 157006b9b3e0SSimon J. Gerraty extract DebugFailedTarget from Compat_RunCommand 157106b9b3e0SSimon J. Gerraty o dir.c: refactor Dir_UpdateMTime 157206b9b3e0SSimon J. Gerraty migrate CachedDir.files from HashTable to HashSet 157306b9b3e0SSimon J. Gerraty o make.c: add high-level API for GNode.made 157406b9b3e0SSimon J. Gerraty 157506b9b3e0SSimon J. Gerraty2020-11-22 Simon J Gerraty <sjg@beast.crufty.net> 157606b9b3e0SSimon J. Gerraty 157706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201122 157806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 157906b9b3e0SSimon J. Gerraty o rename GNode.context to vars 158006b9b3e0SSimon J. Gerraty o suff.c: cleanup and refactor 158106b9b3e0SSimon J. Gerraty rename some functions and vars to better reflect usage 158206b9b3e0SSimon J. Gerraty add high-level API for CandidateSearcher 158306b9b3e0SSimon J. Gerraty o targ.c: add more debug logging for suffix handling 158406b9b3e0SSimon J. Gerraty o more unit tests 158506b9b3e0SSimon J. Gerraty o add debug logging for setting and resetting the main target 158606b9b3e0SSimon J. Gerraty 1587e2eeea75SSimon J. Gerraty2020-11-17 Simon J Gerraty <sjg@beast.crufty.net> 1588e2eeea75SSimon J. Gerraty 1589e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201117 1590e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 159106b9b3e0SSimon J. Gerraty o fix some unit-tests when .SHELL is dash 1592e2eeea75SSimon J. Gerraty o rename Targ_NewGN to GNode_New 1593e2eeea75SSimon J. Gerraty o make some GNode functions const 1594e2eeea75SSimon J. Gerraty o main.c: call Targ_Init before Var_Init 1595e2eeea75SSimon J. Gerraty cleanup PrintOnError, getTmpdir and ParseBoolean 1596e2eeea75SSimon J. Gerraty o var.c: fix error message of failed :!cmd! modifier 1597e2eeea75SSimon J. Gerraty 1598e2eeea75SSimon J. Gerraty2020-11-14 Simon J Gerraty <sjg@beast.crufty.net> 1599e2eeea75SSimon J. Gerraty 1600e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201114 1601e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1602e2eeea75SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 1603e2eeea75SSimon J. Gerraty o clean up cached_stats 1604e2eeea75SSimon J. Gerraty o rename DEFAULT to defaultNode 1605e2eeea75SSimon J. Gerraty o remove redundant struct make_stat 1606e2eeea75SSimon J. Gerraty o cond.c: in lint mode, check for ".else <cond>" 1607e2eeea75SSimon J. Gerraty use bitset for IfState 1608e2eeea75SSimon J. Gerraty replace large switch with if-else in Cond_EvalLine 1609e2eeea75SSimon J. Gerraty o job.c: clean up JobExec, JobStart, JobDoOutput 1610e2eeea75SSimon J. Gerraty use stderr for error message about failed touch 1611e2eeea75SSimon J. Gerraty clean up Job_Touch 1612e2eeea75SSimon J. Gerraty replace macro DBPRINTF with JobPrintln 1613e2eeea75SSimon J. Gerraty rename JobState to JobStatus 1614e2eeea75SSimon J. Gerraty main.c: switch cache for realpath from GNode to HashTable 1615e2eeea75SSimon J. Gerraty clean up Fatal 1616e2eeea75SSimon J. Gerraty clean up InitDefSysIncPath 1617e2eeea75SSimon J. Gerraty use progname instead of hard-coded 'make' in warning 1618e2eeea75SSimon J. Gerraty rename Main_SetVarObjdir to SetVarObjdir 1619e2eeea75SSimon J. Gerraty make.1: document the -S option 1620e2eeea75SSimon J. Gerraty make.c: fix debug output for GNode details 1621e2eeea75SSimon J. Gerraty use symbolic names in debug output of GNodes 1622e2eeea75SSimon J. Gerraty 1623e2eeea75SSimon J. Gerraty2020-11-12 Simon J Gerraty <sjg@beast.crufty.net> 1624e2eeea75SSimon J. Gerraty 1625e2eeea75SSimon J. Gerraty * configure.in: fix --with-force-machine-arch 1626e2eeea75SSimon J. Gerraty 1627e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201112 1628e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1629e2eeea75SSimon J. Gerraty o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable 1630e2eeea75SSimon J. Gerraty checks in InitObjdir. Explicit .OBJDIR target always allows 1631e2eeea75SSimon J. Gerraty read-only directory. 1632e2eeea75SSimon J. Gerraty o cond.c: clean up Cond_EvalLine 1633e2eeea75SSimon J. Gerraty 1634e2eeea75SSimon J. Gerraty2020-11-11 Simon J Gerraty <sjg@beast.crufty.net> 1635e2eeea75SSimon J. Gerraty 1636e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201111 1637e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1638e2eeea75SSimon J. Gerraty o more unit-tests 1639e2eeea75SSimon J. Gerraty o style cleanup 1640e2eeea75SSimon J. Gerraty remove redundant parentheses from sizeof operator 1641e2eeea75SSimon J. Gerraty replace character literal 0 with '\0'. 1642e2eeea75SSimon J. Gerraty replace pointer literal 0 with NULL. 1643e2eeea75SSimon J. Gerraty remove redundant parentheses. 1644e2eeea75SSimon J. Gerraty replace (expr & mask) == 0 with !(expr & mask). 1645e2eeea75SSimon J. Gerraty use strict typing in conditions of the form !var 1646e2eeea75SSimon J. Gerraty o rename Make_OODate to GNode_IsOODate 1647e2eeea75SSimon J. Gerraty o rename Make_TimeStamp to GNode_UpdateYoungestChild 1648e2eeea75SSimon J. Gerraty o rename Var_Set_with_flags to Var_SetWithFlags 1649e2eeea75SSimon J. Gerraty o rename dieQuietly to shouldDieQuietly 1650e2eeea75SSimon J. Gerraty o buf.c: make API of Buf_Init simpler 1651e2eeea75SSimon J. Gerraty o compat.c: clean up Compat_Make, Compat_RunCommand, 1652e2eeea75SSimon J. Gerraty CompatDeleteTarget and CompatInterrupt 1653e2eeea75SSimon J. Gerraty o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|' 1654e2eeea75SSimon J. Gerraty clean up CondParser_Comparison 1655e2eeea75SSimon J. Gerraty o main.c: rename getBoolean and s2Boolean 1656e2eeea75SSimon J. Gerraty rename MAKEFILE_PREFERENCE for consistency 1657e2eeea75SSimon J. Gerraty o parse.c: replace strstr in ParseMaybeSubMake with optimized code 1658e2eeea75SSimon J. Gerraty o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR 1659e2eeea75SSimon J. Gerraty replace emptyString with allocated empty string 1660e2eeea75SSimon J. Gerraty error out on unclosed expressions after the colon 1661e2eeea75SSimon J. Gerraty 1662956e45f6SSimon J. Gerraty2020-11-01 Simon J Gerraty <sjg@beast.crufty.net> 1663956e45f6SSimon J. Gerraty 1664956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201101 1665956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1666956e45f6SSimon J. Gerraty o negate NoExecute to GNode_ShouldExecute 1667956e45f6SSimon J. Gerraty o job.c: rename JobMatchShell to FindShellByName 1668956e45f6SSimon J. Gerraty extract EscapeShellDblQuot from JobPrintCommand 1669956e45f6SSimon J. Gerraty extract ParseRunOptions from JobPrintCommand 1670956e45f6SSimon J. Gerraty o var.c: extract ApplyModifiersIndirect from ApplyModifiers 1671956e45f6SSimon J. Gerraty treat malformed :range, :ts and :[...] as errors 1672956e45f6SSimon J. Gerraty add tests for the variable modifiers :[words] and :range 1673956e45f6SSimon J. Gerraty 1674956e45f6SSimon J. Gerraty2020-10-31 Simon J Gerraty <sjg@beast.crufty.net> 1675956e45f6SSimon J. Gerraty 1676956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201031 1677956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1678956e45f6SSimon J. Gerraty o format #include directives consistently 1679956e45f6SSimon J. Gerraty o do not look up local variables like .TARGET anywhere else 1680956e45f6SSimon J. Gerraty o main.c: Main_SetObjdir is first called for curdir which may be 1681956e45f6SSimon J. Gerraty readonly 1682956e45f6SSimon J. Gerraty reduce the scope where recursive expressions are detected 1683956e45f6SSimon J. Gerraty remove redundant :tl from getBoolean 1684956e45f6SSimon J. Gerraty clean up mkTempFile 1685956e45f6SSimon J. Gerraty o meta.c: simplify memory allocation in meta_create and meta_oodate 1686956e45f6SSimon J. Gerraty o parse.c: extract loadedfile_mmap from loadfile 1687956e45f6SSimon J. Gerraty o trace.c: document possible undefined behavior with .CURDIR 1688956e45f6SSimon J. Gerraty o var.c: make parsing of the :gmtime and :localtime modifiers stricter 1689956e45f6SSimon J. Gerraty rename ismeta to is_shell_metachar 1690956e45f6SSimon J. Gerraty remove debug logging for the :Q variable modifier 1691956e45f6SSimon J. Gerraty rename VarIsDynamic to VarnameIsDynamic 1692956e45f6SSimon J. Gerraty use consistent parameter order in varname parsing functions 1693956e45f6SSimon J. Gerraty extract ParseVarnameLong from Var_Parse 1694956e45f6SSimon J. Gerraty extract ParseVarnameShort from Var_Parse 1695956e45f6SSimon J. Gerraty fix type of ParseModifierPart parameter delim 1696956e45f6SSimon J. Gerraty extract IsEscapedModifierPart from ParseModifierPart 1697956e45f6SSimon J. Gerraty clean up ModifyWords 1698956e45f6SSimon J. Gerraty add test for combining the :@ and :? variable modifiers 1699956e45f6SSimon J. Gerraty 1700956e45f6SSimon J. Gerraty2020-10-30 Simon J Gerraty <sjg@beast.crufty.net> 1701956e45f6SSimon J. Gerraty 1702956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201030 1703956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1704956e45f6SSimon J. Gerraty o change char * to void * in Var_Value 1705956e45f6SSimon J. Gerraty o make iterating over HashTable simpler 1706956e45f6SSimon J. Gerraty o rename VAR_CMD to VAR_CMDLINE 1707956e45f6SSimon J. Gerraty o cond.c: clean up is_separator 1708956e45f6SSimon J. Gerraty fix parse error in string literal in conditional 1709956e45f6SSimon J. Gerraty o main.c: do not use objdir that is not writable 1710956e45f6SSimon J. Gerraty in lint mode, exit with error status on errors 1711956e45f6SSimon J. Gerraty o parse.c: clean up StrContainsWord 1712956e45f6SSimon J. Gerraty fix out-of-bounds pointer in ParseTrackInput 1713956e45f6SSimon J. Gerraty o var.c: rename Str_SYSVMatch and its parameters 1714956e45f6SSimon J. Gerraty remove unsatisfiable conditions in Var_Set_with_flags 1715956e45f6SSimon J. Gerraty document where the variable name is expanded 1716956e45f6SSimon J. Gerraty fix documentation for VARP_SUB_ONE 1717956e45f6SSimon J. Gerraty rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME 1718956e45f6SSimon J. Gerraty document VAR_READONLY 1719956e45f6SSimon J. Gerraty prevent appending to read-only variables 1720956e45f6SSimon J. Gerraty extract MayExport from Var_Export1 1721956e45f6SSimon J. Gerraty remove redundant evaluations in VarFind 1722956e45f6SSimon J. Gerraty replace VarFindFlags with a simple Boolean 1723956e45f6SSimon J. Gerraty rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE 1724956e45f6SSimon J. Gerraty 1725956e45f6SSimon J. Gerraty2020-10-28 Simon J Gerraty <sjg@beast.crufty.net> 1726956e45f6SSimon J. Gerraty 1727956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201028 1728956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1729956e45f6SSimon J. Gerraty o rename defIncPath to defSysIncPath 1730956e45f6SSimon J. Gerraty o initialize all CmdOpts fields 1731956e45f6SSimon J. Gerraty o lst.c: inline Vector_Get 1732956e45f6SSimon J. Gerraty o main.c: refactor main extract 1733956e45f6SSimon J. Gerraty InitMaxJobs,InitObjdir,InitVarMake,InitRandom, 1734956e45f6SSimon J. Gerraty ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules, 1735956e45f6SSimon J. Gerraty InitDefIncPath,CmdOpts_Init,UnlimitFiles 1736956e45f6SSimon J. Gerraty o parse.c: merge curFile into includes 1737956e45f6SSimon J. Gerraty rename predecessor to order_pred 1738956e45f6SSimon J. Gerraty sort ParseSpecial alphabetically 1739956e45f6SSimon J. Gerraty remove unused, undocumented .NOEXPORT 1740956e45f6SSimon J. Gerraty rename ParseSpecial enum values consistently 1741956e45f6SSimon J. Gerraty rename some fields of struct IFile 1742956e45f6SSimon J. Gerraty 1743956e45f6SSimon J. Gerraty2020-10-26 Simon J Gerraty <sjg@beast.crufty.net> 1744956e45f6SSimon J. Gerraty 1745956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201026 1746956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1747956e45f6SSimon J. Gerraty o group the command line options and arguments into a struct 1748956e45f6SSimon J. Gerraty o rename GNode.cmgn to youngestChild 1749956e45f6SSimon J. Gerraty o rename hash functions to identify the type name 1750956e45f6SSimon J. Gerraty o negate OP_NOP and rename it to GNode_IsTarget 1751956e45f6SSimon J. Gerraty o add GNode_Path to access the path of a GNode 1752956e45f6SSimon J. Gerraty o remove macros MIN and MAX 1753956e45f6SSimon J. Gerraty o remove unused Lst_Find and Lst_FindFrom 1754956e45f6SSimon J. Gerraty o arch.c: and make Arch_FindLib simpler 1755956e45f6SSimon J. Gerraty clean up code layout 1756956e45f6SSimon J. Gerraty make Arch_ParseArchive simpler 1757956e45f6SSimon J. Gerraty o cond.c: inline CondFindStrMatch into FuncMake 1758956e45f6SSimon J. Gerraty o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath 1759956e45f6SSimon J. Gerraty omit trailing space in debug output for expanding file patterns 1760956e45f6SSimon J. Gerraty refactor DirMatchFiles 1761956e45f6SSimon J. Gerraty document that the SearchPath of Dir_FindFile may be NULL 1762956e45f6SSimon J. Gerraty remove UNCONST from Dir_Expand 1763956e45f6SSimon J. Gerraty inline DirFindName 1764956e45f6SSimon J. Gerraty o for.c: clean up code for handling .for loops 1765956e45f6SSimon J. Gerraty o hash.c: print hash in debug log with fixed width 1766956e45f6SSimon J. Gerraty clean up hash table functions 1767956e45f6SSimon J. Gerraty reduce amount of string hashing 1768956e45f6SSimon J. Gerraty o job.c: refactor JobDeleteTarget 1769956e45f6SSimon J. Gerraty use proper enum constants for aborting 1770956e45f6SSimon J. Gerraty convert result of JobStart from macros to enum 1771956e45f6SSimon J. Gerraty convert abort reason macros to enum 1772956e45f6SSimon J. Gerraty rework Job_CheckCommands to reduce indentation 1773956e45f6SSimon J. Gerraty rename Shell fields 1774956e45f6SSimon J. Gerraty add field names in declaration of DEFSHELL_CUSTOM 1775956e45f6SSimon J. Gerraty convert JobState and JobFlags to enum types 1776956e45f6SSimon J. Gerraty move handling of the "..." command to JobPrintCommands 1777956e45f6SSimon J. Gerraty o lst.c: clean up 1778956e45f6SSimon J. Gerraty refactor LstNodeNew 1779956e45f6SSimon J. Gerraty remove Lst_Open, Lst_Next, Lst_Close 1780956e45f6SSimon J. Gerraty remove code for circular lists from Lst_Next 1781956e45f6SSimon J. Gerraty o main.c: do not attempt to read .MAKE.DEPENFILE if set to 1782956e45f6SSimon J. Gerraty /dev/null or anything starting with "no" 1783956e45f6SSimon J. Gerraty convert macros for debug flags into enum 1784956e45f6SSimon J. Gerraty o make.c: inline Lst_Copy in Make_ExpandUse 1785956e45f6SSimon J. Gerraty o meta.c: inline Lst_Find in meta_oodate 1786956e45f6SSimon J. Gerraty make Lst_RemoveIf simpler in meta_oodate 1787956e45f6SSimon J. Gerraty o parse.c: convert error level for Parse_Error to an enum 1788956e45f6SSimon J. Gerraty o suff.c: properly terminate debug output with newline 1789956e45f6SSimon J. Gerraty add more details to DEBUG_SRC log 1790956e45f6SSimon J. Gerraty replace Dir_CopyDir with Dir_CopyDirSearchPath 1791956e45f6SSimon J. Gerraty don't modify GNode name while rebuilding the suffix graph 1792956e45f6SSimon J. Gerraty o var.c: reduce duplicate code in VarFind 1793956e45f6SSimon J. Gerraty 1794956e45f6SSimon J. Gerraty2020-10-22 Simon J Gerraty <sjg@beast.crufty.net> 1795956e45f6SSimon J. Gerraty 1796956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201022 1797956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1798956e45f6SSimon J. Gerraty o more refactoring and simplification to reduce code size 1799956e45f6SSimon J. Gerraty o var.c: extract CanonicalVarname from VarFind 1800956e45f6SSimon J. Gerraty o make.c: extract UpdateImplicitParentsVars from Make_Update 1801956e45f6SSimon J. Gerraty o main.c: extract PrintVar from doPrintVars 1802956e45f6SSimon J. Gerraty extract HandlePWD from main 1803956e45f6SSimon J. Gerraty o lst.c: inline simple Lst getters 1804956e45f6SSimon J. Gerraty remove unused Lst_ForEach 1805956e45f6SSimon J. Gerraty o job.c: move struct Shell from job.h to job.c 1806956e45f6SSimon J. Gerraty o more unit tests 1807956e45f6SSimon J. Gerraty 1808956e45f6SSimon J. Gerraty2020-10-19 Simon J Gerraty <sjg@beast.crufty.net> 1809956e45f6SSimon J. Gerraty 1810956e45f6SSimon J. Gerraty * configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT 1811956e45f6SSimon J. Gerraty 1812956e45f6SSimon J. Gerraty2020-10-18 Simon J Gerraty <sjg@beast.crufty.net> 1813956e45f6SSimon J. Gerraty 1814956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201018 1815956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1816956e45f6SSimon J. Gerraty o remove USE_IOVEC 1817956e45f6SSimon J. Gerraty o rename some Hash_* apis to Hash* 1818956e45f6SSimon J. Gerraty o replace execError with execDie 1819956e45f6SSimon J. Gerraty o rename Lst_Init to Lst_New 1820956e45f6SSimon J. Gerraty o add tags to enum types 1821956e45f6SSimon J. Gerraty o rename Stack to Vector 1822956e45f6SSimon J. Gerraty o parse.c: more refactoring 1823956e45f6SSimon J. Gerraty o unit-tests: make some tests use line buffered stdout 1824956e45f6SSimon J. Gerraty o unit-tests/Makefile: in meta mode do not make all tests depend on 1825956e45f6SSimon J. Gerraty Makefile, it isn't necessary. 1826956e45f6SSimon J. Gerraty 1827956e45f6SSimon J. Gerraty2020-10-10 Simon J Gerraty <sjg@beast.crufty.net> 1828956e45f6SSimon J. Gerraty 1829956e45f6SSimon J. Gerraty * main.c: check for CTL_HW being defined. 1830956e45f6SSimon J. Gerraty * unit-tests/Makefile: ensure export tests output are POSIX compliant 1831956e45f6SSimon J. Gerraty disable opt-debug-jobs test until it works on ubuntu 1832956e45f6SSimon J. Gerraty 1833956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201010 1834956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1835956e45f6SSimon J. Gerraty o dir.c: remove pathname limit for Dir_FindHereOrAbove 1836956e45f6SSimon J. Gerraty o hash.c: replace strcpy with memcpy in Hash_CreateEntry 1837956e45f6SSimon J. Gerraty o main.c: extract init_machine and init_machine_arch from main 1838956e45f6SSimon J. Gerraty allow to disable debug logging options 1839956e45f6SSimon J. Gerraty o parse.c: enable format string truncation warnings 1840956e45f6SSimon J. Gerraty extract parsing of sources from ParseDoDependency 1841956e45f6SSimon J. Gerraty split ParseDoSrc into smaller functions 1842956e45f6SSimon J. Gerraty hide implementation details from Parse_DoVar 1843956e45f6SSimon J. Gerraty clean up parsing of variable assignments 1844956e45f6SSimon J. Gerraty split Parse_DoVar into manageable pieces 1845956e45f6SSimon J. Gerraty don't modify the given line during Parse_DoVar 1846956e45f6SSimon J. Gerraty fix out-of-bounds memory access in Parse_DoVar 1847956e45f6SSimon J. Gerraty fix parsing of the :sh assignment modifier 1848956e45f6SSimon J. Gerraty o var.c: rework memory allocation for the name of variables 1849956e45f6SSimon J. Gerraty extract ApplyModifier_Literal into separate function 1850956e45f6SSimon J. Gerraty in lint mode, reject modifiers without delimiter 1851956e45f6SSimon J. Gerraty do not export variable names starting with '-' 1852956e45f6SSimon J. Gerraty o fix double-free bug in -DCLEANUP mode 1853956e45f6SSimon J. Gerraty o more cleanup to enable higher warnings level 1854956e45f6SSimon J. Gerraty o more unit tests 1855956e45f6SSimon J. Gerraty 1856956e45f6SSimon J. Gerraty2020-10-02 Simon J Gerraty <sjg@beast.crufty.net> 1857956e45f6SSimon J. Gerraty 1858956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201002 1859956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1860956e45f6SSimon J. Gerraty o dir.c: use hash table for looking up open directories by name 1861956e45f6SSimon J. Gerraty o main.c: clean up option handling 1862956e45f6SSimon J. Gerraty o parse.c: add missing const for Parse_AddIncludeDir 1863956e45f6SSimon J. Gerraty o var.c: ApplyModifier_To, update pp in each branch 1864956e45f6SSimon J. Gerraty o remove redundant function prototypes 1865956e45f6SSimon J. Gerraty o more unit tests 1866956e45f6SSimon J. Gerraty 1867956e45f6SSimon J. Gerraty2020-10-01 Simon J Gerraty <sjg@beast.crufty.net> 1868956e45f6SSimon J. Gerraty 1869956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201001 1870956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1871956e45f6SSimon J. Gerraty o compat.c: comment about "..." 1872956e45f6SSimon J. Gerraty 1873956e45f6SSimon J. Gerraty2020-09-30 Simon J Gerraty <sjg@beast.crufty.net> 1874956e45f6SSimon J. Gerraty 1875956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200930 1876956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1877956e45f6SSimon J. Gerraty o job.c: split Job.jobPipe into 2 separate fields 1878956e45f6SSimon J. Gerraty replace Lst_Open with direct iteration 1879956e45f6SSimon J. Gerraty o lst.c: remove redundant assertions 1880956e45f6SSimon J. Gerraty o targ.c: replace Lst_Open with direct iteration 1881956e45f6SSimon J. Gerraty o var.c: fix bug in evaluation of indirect variable modifiers 1882956e45f6SSimon J. Gerraty extract ApplyModifier_Quote into separate function 1883956e45f6SSimon J. Gerraty o make debug logging simpler 1884956e45f6SSimon J. Gerraty 1885956e45f6SSimon J. Gerraty2020-09-27 Simon J Gerraty <sjg@beast.crufty.net> 1886956e45f6SSimon J. Gerraty 1887956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200927 1888956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1889956e45f6SSimon J. Gerraty o parse.c: ensure parse errors result in 'stopped in' message. 1890956e45f6SSimon J. Gerraty o compat.c: make parameter of Compat_RunCommand const 1891956e45f6SSimon J. Gerraty o main.c: extract InitVarTarget from main 1892956e45f6SSimon J. Gerraty o parse.c: rename ParseFinishLine to FinishDependencyGroup 1893956e45f6SSimon J. Gerraty refactor ParseDoDependency 1894956e45f6SSimon J. Gerraty o var.c: Var_Subst no longer returns string result 1895956e45f6SSimon J. Gerraty rename Var_ParsePP back to Var_Parse 1896956e45f6SSimon J. Gerraty in lint mode, improve error handling for undefined variables 1897956e45f6SSimon J. Gerraty extract ParseVarname from Var_Parse 1898956e45f6SSimon J. Gerraty o rename Lst_ForEach to Lst_ForEachUntil 1899956e45f6SSimon J. Gerraty o inline Lst_ForEachUntil in several cases 1900956e45f6SSimon J. Gerraty o clean up API for finding and creating GNodes 1901956e45f6SSimon J. Gerraty o fix assertion failure in -j mode with .END node 1902956e45f6SSimon J. Gerraty o inline and remove LstNode_Prev and LstNode_Next 1903956e45f6SSimon J. Gerraty o use fine-grained type names for lists and their nodes 1904956e45f6SSimon J. Gerraty o more unit tests 1905956e45f6SSimon J. Gerraty 1906956e45f6SSimon J. Gerraty2020-09-11 Simon J Gerraty <sjg@beast.crufty.net> 1907956e45f6SSimon J. Gerraty 1908956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200911 1909956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1910956e45f6SSimon J. Gerraty o cond.c: split EvalComparison into smaller functions 1911956e45f6SSimon J. Gerraty reorder parameters of condition parsing functions 1912956e45f6SSimon J. Gerraty reduce code size in CondParser_Eval 1913956e45f6SSimon J. Gerraty rename CondGetString to CondParser_String 1914956e45f6SSimon J. Gerraty add CondLexer_SkipWhitespace 1915956e45f6SSimon J. Gerraty group the condition parsing state into a struct 1916956e45f6SSimon J. Gerraty in CondGetString, replace repeated Buf_Add with Buf_AddStr 1917956e45f6SSimon J. Gerraty o migrate Var_Parse to Var_ParsePP 1918956e45f6SSimon J. Gerraty o add wrappers around ctype.h functions 1919956e45f6SSimon J. Gerraty o lst.c: use a stack instead of a list for the nested include path 1920956e45f6SSimon J. Gerraty o more unit tests 1921956e45f6SSimon J. Gerraty 1922956e45f6SSimon J. Gerraty2020-09-04 Simon J Gerraty <sjg@beast.crufty.net> 1923956e45f6SSimon J. Gerraty 1924956e45f6SSimon J. Gerraty * make-bootstrap.sh.in: adjust object list 1925956e45f6SSimon J. Gerraty 19262c3632d1SSimon J. Gerraty2020-09-02 Simon J Gerraty <sjg@beast.crufty.net> 19272c3632d1SSimon J. Gerraty 19282c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200902 19292c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19302c3632d1SSimon J. Gerraty o use make_stat to ensure no confusion over valid fields 19312c3632d1SSimon J. Gerraty returned by cached_stat 19322c3632d1SSimon J. Gerraty o var.c: make VarQuote const-correct 19332c3632d1SSimon J. Gerraty o add unit tests for .for 19342c3632d1SSimon J. Gerraty 19352c3632d1SSimon J. Gerraty2020-09-01 Simon J Gerraty <sjg@beast.crufty.net> 19362c3632d1SSimon J. Gerraty 19372c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200901 19382c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19392c3632d1SSimon J. Gerraty o rename Hash_Table fields 19402c3632d1SSimon J. Gerraty o make data types in Dir_HasWildcards more precise 19412c3632d1SSimon J. Gerraty 19422c3632d1SSimon J. Gerraty2020-08-31 Simon J Gerraty <sjg@beast.crufty.net> 19432c3632d1SSimon J. Gerraty 19442c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200831 19452c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19462c3632d1SSimon J. Gerraty o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds 19472c3632d1SSimon J. Gerraty o lst.c: Lst_Open renable assert that list isn't open 19482c3632d1SSimon J. Gerraty o unit test for .TARGET dependent flags 19492c3632d1SSimon J. Gerraty o var.c: fix aliasing bug in VarUniq 19502c3632d1SSimon J. Gerraty o more unit tests for :u 19512c3632d1SSimon J. Gerraty 19522c3632d1SSimon J. Gerraty2020-08-30 Simon J Gerraty <sjg@beast.crufty.net> 19532c3632d1SSimon J. Gerraty 19542c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200830 19552c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19562c3632d1SSimon J. Gerraty o allow for strict type checking for Boolean 19572c3632d1SSimon J. Gerraty o Var_Parse never returns NULL 19582c3632d1SSimon J. Gerraty o Var_Subst never returns NULL 19592c3632d1SSimon J. Gerraty o Lst_Find now takes boolean match function 19602c3632d1SSimon J. Gerraty o rename Lst_Memeber to Lst_FindDatum 19612c3632d1SSimon J. Gerraty o rename LstNode functions to match their type 19622c3632d1SSimon J. Gerraty o rename GNode.iParents to implicitParents 19632c3632d1SSimon J. Gerraty o fix assertion failure for .SUFFIXES in archives 19642c3632d1SSimon J. Gerraty o compat.c: clean up documentation for CompatInterrupt and Compat_Run 19652c3632d1SSimon J. Gerraty remove unreachable code from CompatRunCommand 19662c3632d1SSimon J. Gerraty o main.c: simplify getBoolean 19672c3632d1SSimon J. Gerraty o stc.c: replace brk_string with simpler Str_Words 19682c3632d1SSimon J. Gerraty o suff.c: add debug macros 19692c3632d1SSimon J. Gerraty 19702c3632d1SSimon J. Gerraty2020-08-28 Simon J Gerraty <sjg@beast.crufty.net> 19712c3632d1SSimon J. Gerraty 19722c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200828 19732c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19742c3632d1SSimon J. Gerraty o lst.c: inline LstIsValid and LstNodeIsValid 19752c3632d1SSimon J. Gerraty o remove trailing S from Lst function names after migration complete 19762c3632d1SSimon J. Gerraty o more comment cleanup/clarification 19772c3632d1SSimon J. Gerraty o suff.c: clean up suffix handling 19782c3632d1SSimon J. Gerraty o more unit tests 19792c3632d1SSimon J. Gerraty 19802c3632d1SSimon J. Gerraty2020-08-26 Simon J Gerraty <sjg@beast.crufty.net> 19812c3632d1SSimon J. Gerraty 19822c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200826 19832c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19842c3632d1SSimon J. Gerraty o enum.c: distinguish between bitsets containing flags and 19852c3632d1SSimon J. Gerraty ordinary enums 19862c3632d1SSimon J. Gerraty o var.c: fix error message for ::!= modifier with shell error 19872c3632d1SSimon J. Gerraty o fix bugs in -DCLEANUP mode 19882c3632d1SSimon J. Gerraty 19892c3632d1SSimon J. Gerraty2020-08-24 Simon J Gerraty <sjg@beast.crufty.net> 19902c3632d1SSimon J. Gerraty 19912c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200824 19922c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19932c3632d1SSimon J. Gerraty o in debug mode, print GNode details in symbols 19942c3632d1SSimon J. Gerraty 19952c3632d1SSimon J. Gerraty2020-08-23 Simon J Gerraty <sjg@beast.crufty.net> 19962c3632d1SSimon J. Gerraty 19972c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200823 19982c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 19992c3632d1SSimon J. Gerraty o lst.c: more asserts, 20002c3632d1SSimon J. Gerraty make args to Lst_Find match others. 20012c3632d1SSimon J. Gerraty o var.c: pass flags to VarAdd 20022c3632d1SSimon J. Gerraty o arch.c: use Buffer 20032c3632d1SSimon J. Gerraty o str.c: brk_string return size_t for nwords 20042c3632d1SSimon J. Gerraty o more unit tests 20052c3632d1SSimon J. Gerraty 20062c3632d1SSimon J. Gerraty2020-08-22 Simon J Gerraty <sjg@beast.crufty.net> 20072c3632d1SSimon J. Gerraty 20082c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20092c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20102c3632d1SSimon J. Gerraty o var.c: support for read-only variables eg .SHELL 20112c3632d1SSimon J. Gerraty being the shell used to run scripts. 20122c3632d1SSimon J. Gerraty o lst.c: more simplification 20132c3632d1SSimon J. Gerraty o more documentation and style cleanup 20142c3632d1SSimon J. Gerraty o more unit tests 20152c3632d1SSimon J. Gerraty o ensure unit-test/Makefile is run by TEST_MAKE 20162c3632d1SSimon J. Gerraty o reduce duplication of header inclusion 20172c3632d1SSimon J. Gerraty 20182c3632d1SSimon J. Gerraty2020-08-21 Simon J Gerraty <sjg@beast.crufty.net> 20192c3632d1SSimon J. Gerraty 20202c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200821 20212c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20222c3632d1SSimon J. Gerraty o lst.c: revert invalid assertion - but document it 20232c3632d1SSimon J. Gerraty o dir.c: split Dir_Init into two functions 20242c3632d1SSimon J. Gerraty 20252c3632d1SSimon J. Gerraty2020-08-20 Simon J Gerraty <sjg@beast.crufty.net> 20262c3632d1SSimon J. Gerraty 20272c3632d1SSimon J. Gerraty * lst.c: needs inttypes.h on Linux 20282c3632d1SSimon J. Gerraty 20292c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200820 20302c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20312c3632d1SSimon J. Gerraty o make.1: clarify some passages 20322c3632d1SSimon J. Gerraty o var.c: more cleanup, clarify comments 20332c3632d1SSimon J. Gerraty o make_malloc.c: remove unreachable code 20342c3632d1SSimon J. Gerraty o cond.c: make CondGetString easier to debug 20352c3632d1SSimon J. Gerraty o simplify list usage 20362c3632d1SSimon J. Gerraty o unit-tests: more 20372c3632d1SSimon J. Gerraty 20382c3632d1SSimon J. Gerraty2020-08-16 Simon J Gerraty <sjg@beast.crufty.net> 20392c3632d1SSimon J. Gerraty 20402c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200816 20412c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20422c3632d1SSimon J. Gerraty o refactor unit-tests to be more fine grained 20432c3632d1SSimon J. Gerraty not all tests moved yet 20442c3632d1SSimon J. Gerraty 20452c3632d1SSimon J. Gerraty2020-08-14 Simon J Gerraty <sjg@beast.crufty.net> 20462c3632d1SSimon J. Gerraty 20472c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200814 20482c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20492c3632d1SSimon J. Gerraty o more str_concat variants 20502c3632d1SSimon J. Gerraty o more enums for flags 20512c3632d1SSimon J. Gerraty o var.c: cleanup for higher warnings level 20522c3632d1SSimon J. Gerraty 20532c3632d1SSimon J. Gerraty2020-08-10 Simon J Gerraty <sjg@beast.crufty.net> 20542c3632d1SSimon J. Gerraty 20552c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200810 20562c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20572c3632d1SSimon J. Gerraty o more unit tests 20582c3632d1SSimon J. Gerraty o general comment and style cleanup 20592c3632d1SSimon J. Gerraty 20602c3632d1SSimon J. Gerraty2020-08-08 Simon J Gerraty <sjg@beast.crufty.net> 20612c3632d1SSimon J. Gerraty 20622c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200808 20632c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20642c3632d1SSimon J. Gerraty o enum.[ch]: streamline, enums for use in flags and debug output 20652c3632d1SSimon J. Gerraty o cond.c: cleanup 20662c3632d1SSimon J. Gerraty o var.c: reduce duplicate code for modifiers 20672c3632d1SSimon J. Gerraty debug logging for Var_Parse 20682c3632d1SSimon J. Gerraty more detailed debug output 20692c3632d1SSimon J. Gerraty o more unit tests 20702c3632d1SSimon J. Gerraty 20712c3632d1SSimon J. Gerraty2020-08-06 Simon J Gerraty <sjg@beast.crufty.net> 20722c3632d1SSimon J. Gerraty 20732c3632d1SSimon J. Gerraty * unit-tests/Makefile: -r for recursive and include Makefile.inc 20742c3632d1SSimon J. Gerraty so I can run tests in meta mode 20752c3632d1SSimon J. Gerraty supress extra noise if in meta mode 20762c3632d1SSimon J. Gerraty 20772c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200806 20782c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20792c3632d1SSimon J. Gerraty o parse.c: remove VARE_WANTRES for LINT 20802c3632d1SSimon J. Gerraty we just want to check parsing (for now). 20812c3632d1SSimon J. Gerraty 20822c3632d1SSimon J. Gerraty2020-08-05 Simon J Gerraty <sjg@beast.crufty.net> 20832c3632d1SSimon J. Gerraty 20842c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200805 20852c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20862c3632d1SSimon J. Gerraty o make.1: Rework the description of dependence operators 20872c3632d1SSimon J. Gerraty 20882c3632d1SSimon J. Gerraty2020-08-03 Simon J Gerraty <sjg@beast.crufty.net> 20892c3632d1SSimon J. Gerraty 20902c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200803 20912c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20922c3632d1SSimon J. Gerraty o revert some C99 usage, for max portability 20932c3632d1SSimon J. Gerraty o unit-tests/lint 20942c3632d1SSimon J. Gerraty 20952c3632d1SSimon J. Gerraty2020-08-02 Simon J Gerraty <sjg@beast.crufty.net> 20962c3632d1SSimon J. Gerraty 20972c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200802 20982c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20992c3632d1SSimon J. Gerraty o more unit tests 21002c3632d1SSimon J. Gerraty 21012c3632d1SSimon J. Gerraty2020-08-01 Simon J Gerraty <sjg@beast.crufty.net> 21022c3632d1SSimon J. Gerraty 21032c3632d1SSimon J. Gerraty * Remove NetBSD specific plumbing from unit-tests/Makefile 21042c3632d1SSimon J. Gerraty 21052c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200801 21062c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21072c3632d1SSimon J. Gerraty o make Var_Value return const 21082c3632d1SSimon J. Gerraty o size_t for buf sizes 21092c3632d1SSimon J. Gerraty o optimize some buffer operations - avoid strlen 21102c3632d1SSimon J. Gerraty 21112c3632d1SSimon J. Gerraty2020-07-31 Simon J Gerraty <sjg@beast.crufty.net> 21122c3632d1SSimon J. Gerraty 21132c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200731 21142c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21152c3632d1SSimon J. Gerraty o var.c: fix undefinded behavior for incomplete :t modifier 21162c3632d1SSimon J. Gerraty fixes unit-test/moderrs on Ubuntu 21172c3632d1SSimon J. Gerraty o parse.c: When parsing variable assignments other than := 21182c3632d1SSimon J. Gerraty if DEBUG(LINT) test substition of value, so we get a file and 21192c3632d1SSimon J. Gerraty line number in the resulting error. 21202c3632d1SSimon J. Gerraty o dir.c: fix parsing of nested braces in dependency lines 21212c3632d1SSimon J. Gerraty add unit-tests 21222c3632d1SSimon J. Gerraty 21232c3632d1SSimon J. Gerraty2020-07-30 Simon J Gerraty <sjg@beast.crufty.net> 21242c3632d1SSimon J. Gerraty 21252c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200730 21262c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21272c3632d1SSimon J. Gerraty o var.c: minor cleanup 21282c3632d1SSimon J. Gerraty o unit-tests: more tests to improve code coverage 21292c3632d1SSimon J. Gerraty 21302c3632d1SSimon J. Gerraty2020-07-28 Simon J Gerraty <sjg@beast.crufty.net> 21312c3632d1SSimon J. Gerraty 21322c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200728 21332c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21342c3632d1SSimon J. Gerraty o var.c: more optimizations 21352c3632d1SSimon J. Gerraty 21362c3632d1SSimon J. Gerraty2020-07-26 Simon J Gerraty <sjg@beast.crufty.net> 21372c3632d1SSimon J. Gerraty 21382c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200726 21392c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21402c3632d1SSimon J. Gerraty o collapse lsd.lib into lst.c - reduce code size and allow inlining 21412c3632d1SSimon J. Gerraty o lots of function comment updates 21422c3632d1SSimon J. Gerraty o var.c: more optimizations 21432c3632d1SSimon J. Gerraty o make return of Var_Parse const 21442c3632d1SSimon J. Gerraty 21452c3632d1SSimon J. Gerraty2020-07-20 Simon J Gerraty <sjg@beast.crufty.net> 21462c3632d1SSimon J. Gerraty 21472c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200720 21482c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21492c3632d1SSimon J. Gerraty o DEBUG_HASH report stats at end and tone down the noise 21502c3632d1SSimon J. Gerraty o var.c: each flag type gets its own prefix. 21512c3632d1SSimon J. Gerraty move SysV string matching to var.c 21522c3632d1SSimon J. Gerraty make ampersand in ${VAR:from=to&} an ordinary character 21532c3632d1SSimon J. Gerraty cleanup and simplify implementation of modifiers 21542c3632d1SSimon J. Gerraty o make.1: move documentation for assignment modifiers 21552c3632d1SSimon J. Gerraty 21562c3632d1SSimon J. Gerraty2020-07-18 Simon J Gerraty <sjg@beast.crufty.net> 21572c3632d1SSimon J. Gerraty 21582c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200718 21592c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21602c3632d1SSimon J. Gerraty o DEBUG_HASH to see how well the hash tables are working 21612c3632d1SSimon J. Gerraty 21622c3632d1SSimon J. Gerraty2020-07-11 Simon J Gerraty <sjg@beast.crufty.net> 21632c3632d1SSimon J. Gerraty 21642c3632d1SSimon J. Gerraty * bsd.after-import.mk: make sure we update unit-tests/Makefile 21652c3632d1SSimon J. Gerraty 21663841c287SSimon J. Gerraty2020-07-10 Simon J Gerraty <sjg@beast.crufty.net> 21673841c287SSimon J. Gerraty 21683841c287SSimon J. Gerraty * configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC 21693841c287SSimon J. Gerraty 21703841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200710 21713841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21723841c287SSimon J. Gerraty o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall 21733841c287SSimon J. Gerraty o meta.c: target flagged .META is out-of-date if meta file missing 21743841c287SSimon J. Gerraty 21753841c287SSimon J. Gerraty2020-07-09 Simon J Gerraty <sjg@beast.crufty.net> 21763841c287SSimon J. Gerraty 21773841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200709 21783841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21793841c287SSimon J. Gerraty o cond.c: fix for compare_expression when doEval=0 21803841c287SSimon J. Gerraty o unit-tests/Makefile: rework 21813841c287SSimon J. Gerraty o filemon/filemon_dev.c: ensure filemon fd is closed on exec. 21823841c287SSimon J. Gerraty 21833841c287SSimon J. Gerraty2020-07-04 Simon J Gerraty <sjg@beast.crufty.net> 21843841c287SSimon J. Gerraty 21853841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200704 21863841c287SSimon J. Gerraty Merge with NetBSD make, pick up 21873841c287SSimon J. Gerraty (most of this by rillig@) 21883841c287SSimon J. Gerraty o lots of style and white-space cleanup 21893841c287SSimon J. Gerraty o lots more unit tests for variable modifiers 21903841c287SSimon J. Gerraty o simplified description of some functions 21913841c287SSimon J. Gerraty o str.c: refactor Str_Match 21923841c287SSimon J. Gerraty o var.c: debugging output for :@ 21933841c287SSimon J. Gerraty constify VarModify parameter 21943841c287SSimon J. Gerraty fix :hash modifier on 16-bit platforms 21953841c287SSimon J. Gerraty remove unnecessary forward declarations 21963841c287SSimon J. Gerraty refactor ApplyModifier_SysV to have less indentation 21973841c287SSimon J. Gerraty simplify code for :E and :R 21983841c287SSimon J. Gerraty clean up code for :H and :T 21993841c287SSimon J. Gerraty refactor ApplyModifiers 22003841c287SSimon J. Gerraty 22013841c287SSimon J. Gerraty * var.c: we need stdint.h on some platforms to get uint32_t 22023841c287SSimon J. Gerraty * unit-test/Makefile: we need to supress the specific error 22033841c287SSimon J. Gerraty for RE substitution error in modmisc, since it varies accross 22043841c287SSimon J. Gerraty different OS. 22053841c287SSimon J. Gerraty 22063841c287SSimon J. Gerraty2020-07-02 Simon J Gerraty <sjg@beast.crufty.net> 22073841c287SSimon J. Gerraty 22083841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200702 22093841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22103841c287SSimon J. Gerraty o var.c: more improvements to avoiding unnecessary evaluation 22113841c287SSimon J. Gerraty use enums for flags 22123841c287SSimon J. Gerraty o remove flags arg to Var_Set which outside of var.c is always 0 22133841c287SSimon J. Gerraty 22143841c287SSimon J. Gerraty2020-07-01 Simon J Gerraty <sjg@beast.crufty.net> 22153841c287SSimon J. Gerraty 22163841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200701 22173841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22183841c287SSimon J. Gerraty o var.c: with change to cond.c; ensure that nested variables 22193841c287SSimon J. Gerraty within a variable name are expanded. 22203841c287SSimon J. Gerraty o unit-tests/varmisc.mk: test for nested varname 22213841c287SSimon J. Gerraty 22223841c287SSimon J. Gerraty2020-06-29 Simon J Gerraty <sjg@beast.crufty.net> 22233841c287SSimon J. Gerraty 22243841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200629 22253841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22263841c287SSimon J. Gerraty o cond.c: do not eval unnecessary terms of conditionals. 22273841c287SSimon J. Gerraty 22283841c287SSimon J. Gerraty2020-06-25 Simon J Gerraty <sjg@beast.crufty.net> 22293841c287SSimon J. Gerraty 22303841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200625 22313841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22323841c287SSimon J. Gerraty o meta.c: report error if lseek in filemon_read fails 22333841c287SSimon J. Gerraty 22343841c287SSimon J. Gerraty2020-06-22 Simon J Gerraty <sjg@beast.crufty.net> 22353841c287SSimon J. Gerraty 22363841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200622 22373841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22383841c287SSimon J. Gerraty o dieQuietly: ignore OP_SUBMAKE as too aggressive 22393841c287SSimon J. Gerraty 22403841c287SSimon J. Gerraty2020-06-19 Simon J Gerraty <sjg@beast.crufty.net> 22413841c287SSimon J. Gerraty 22423841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200619 22433841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22443841c287SSimon J. Gerraty o str.c: performance improvement for Str_Match for multiple '*' 22453841c287SSimon J. Gerraty o dieQuietly: supress the failure output from make 22463841c287SSimon J. Gerraty when failing node is a sub-make or a sibling failed. 22473841c287SSimon J. Gerraty This cuts down greatly on unhelpful noise at the end of 22483841c287SSimon J. Gerraty build log. Disabled by -dj or .MAKE.DIE_QUIETLY=no 22493841c287SSimon J. Gerraty 22503841c287SSimon J. Gerraty2020-06-10 Simon J Gerraty <sjg@beast.crufty.net> 22513841c287SSimon J. Gerraty 22523841c287SSimon J. Gerraty * FILES: add LICENSE to appease some packagers. 22533841c287SSimon J. Gerraty This is an attempt to fairly represent the license on almost 22543841c287SSimon J. Gerraty 200 files, which are almost all BSD-3-Clause 22553841c287SSimon J. Gerraty The few exceptions being more liberal. 22563841c287SSimon J. Gerraty 22573841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200610 22583841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22593841c287SSimon J. Gerraty o unit test for :Or 22603841c287SSimon J. Gerraty 2261ef0b2538SSimon J. Gerraty2020-06-06 Simon J Gerraty <sjg@beast.crufty.net> 2262ef0b2538SSimon J. Gerraty 2263ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200606 2264ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 2265ef0b2538SSimon J. Gerraty o make.1: cleanup 2266ef0b2538SSimon J. Gerraty 2267ef0b2538SSimon J. Gerraty * Makefile: fix depends for main.o which broke MAKE_VERSION 2268ef0b2538SSimon J. Gerraty 2269ef0b2538SSimon J. Gerraty2020-06-05 Simon J Gerraty <sjg@beast.crufty.net> 2270ef0b2538SSimon J. Gerraty 2271ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200605 2272ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 2273ef0b2538SSimon J. Gerraty o dir.c: cached_stats - don't confuse stat and lstat results. 2274ef0b2538SSimon J. Gerraty o var.c: add :Or for reverse sort. 2275ef0b2538SSimon J. Gerraty 2276ef0b2538SSimon J. Gerraty2020-05-24 Simon J Gerraty <sjg@beast.crufty.net> 2277ef0b2538SSimon J. Gerraty 2278ef0b2538SSimon J. Gerraty * configure.in: add AC_PROG_CC_C99 for mipspro compiler 2279ef0b2538SSimon J. Gerraty also if --with-filemon= specifies path to filemon.h 2280ef0b2538SSimon J. Gerraty set use_filemon=dev 2281ef0b2538SSimon J. Gerraty * dirname.c: remove include of namespace.h 2282ef0b2538SSimon J. Gerraty 228349caa483SSimon J. Gerraty2020-05-17 Simon J Gerraty <sjg@beast.crufty.net> 228449caa483SSimon J. Gerraty 228549caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200517 228649caa483SSimon J. Gerraty Merge with NetBSD make, pick up 228749caa483SSimon J. Gerraty o modified dollar tests to avoid shell dependencies 228849caa483SSimon J. Gerraty o new tests for .INCLUDEFROM 228949caa483SSimon J. Gerraty 229049caa483SSimon J. Gerraty2020-05-16 Simon J Gerraty <sjg@beast.crufty.net> 229149caa483SSimon J. Gerraty 229249caa483SSimon J. Gerraty * unit-tests/dollar.mk: tweak '1 dollar literal' test 229349caa483SSimon J. Gerraty to not depend so much on shell behavior 229449caa483SSimon J. Gerraty 229549caa483SSimon J. Gerraty2020-05-10 Simon J Gerraty <sjg@beast.crufty.net> 229649caa483SSimon J. Gerraty 229749caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200510 229849caa483SSimon J. Gerraty Merge with NetBSD make, pick up 229949caa483SSimon J. Gerraty o unit test for dollar handling 230049caa483SSimon J. Gerraty 230149caa483SSimon J. Gerraty2020-05-06 Simon J Gerraty <sjg@beast.crufty.net> 230249caa483SSimon J. Gerraty 230349caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200506 230449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 230549caa483SSimon J. Gerraty o str.c: empty string does not match % pattern 230649caa483SSimon J. Gerraty plus unit-test changes 230749caa483SSimon J. Gerraty 230849caa483SSimon J. Gerraty2020-05-04 Simon J Gerraty <sjg@beast.crufty.net> 230949caa483SSimon J. Gerraty 231049caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200504 231149caa483SSimon J. Gerraty May the 4th be with you 231249caa483SSimon J. Gerraty Merge with NetBSD make, pick up 231349caa483SSimon J. Gerraty o var.c: import handling of old sysV style modifier using '%' 231449caa483SSimon J. Gerraty o str.c: refactor brk_string 231549caa483SSimon J. Gerraty o unit-tests: add test case for lazy conditions 231649caa483SSimon J. Gerraty 231749caa483SSimon J. Gerraty2020-04-18 Simon J Gerraty <sjg@beast.crufty.net> 231849caa483SSimon J. Gerraty 231949caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200418 232049caa483SSimon J. Gerraty 2321548bfc56SSimon J. Gerraty * configure.in: use_makefile=no for Cygwin et al. 232249caa483SSimon J. Gerraty case insensitive filesystems just don't work if both 232349caa483SSimon J. Gerraty makefile and Makefile exist. 2324548bfc56SSimon J. Gerraty NOTE: bmake does not support Cygwin and likely never will, 232549caa483SSimon J. Gerraty but if brave souls want to try it - help them out. 232649caa483SSimon J. Gerraty 232749caa483SSimon J. Gerraty2020-04-02 Simon J Gerraty <sjg@beast.crufty.net> 232849caa483SSimon J. Gerraty 232949caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200402 233049caa483SSimon J. Gerraty Merge with NetBSD make, pick up 233149caa483SSimon J. Gerraty o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD 233249caa483SSimon J. Gerraty a blank command is perfectly valid. 233349caa483SSimon J. Gerraty 233449caa483SSimon J. Gerraty2020-03-30 Simon J Gerraty <sjg@beast.crufty.net> 233549caa483SSimon J. Gerraty 233649caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200330 233749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 233849caa483SSimon J. Gerraty o make.h: extern debug_file 233949caa483SSimon J. Gerraty 234049caa483SSimon J. Gerraty2020-03-18 Simon J Gerraty <sjg@beast.crufty.net> 234149caa483SSimon J. Gerraty 234249caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200318 234349caa483SSimon J. Gerraty Merge with NetBSD make, pick up 234449caa483SSimon J. Gerraty o meta.c: meta_oodate, check for corrupted meta file 234549caa483SSimon J. Gerraty earlier and more often. 234649caa483SSimon J. Gerraty 234749caa483SSimon J. Gerraty2020-02-20 Simon J Gerraty <sjg@beast.crufty.net> 234849caa483SSimon J. Gerraty 234949caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200220 235049caa483SSimon J. Gerraty 235149caa483SSimon J. Gerraty2020-02-19 Simon J Gerraty <sjg@beast.crufty.net> 235249caa483SSimon J. Gerraty 235349caa483SSimon J. Gerraty * boot-strap: unset MAKEFLAGS 235449caa483SSimon J. Gerraty 235549caa483SSimon J. Gerraty2020-02-12 Simon J Gerraty <sjg@beast.crufty.net> 235649caa483SSimon J. Gerraty 235749caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200212 235849caa483SSimon J. Gerraty * meta.c: meta_compat_parent check for USE_FILEMON 235949caa483SSimon J. Gerraty patch from Soeren Tempel 236049caa483SSimon J. Gerraty 236149caa483SSimon J. Gerraty2020-02-05 Simon J Gerraty <sjg@beast.crufty.net> 236249caa483SSimon J. Gerraty 236349caa483SSimon J. Gerraty * VERSION: 20200205 236449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 236549caa483SSimon J. Gerraty o meta.c: fix compat mode, need to call meta_job_output() 236649caa483SSimon J. Gerraty o job.c: extra fds for meta mode not needed if using filemon_dev 236749caa483SSimon J. Gerraty 236849caa483SSimon J. Gerraty2020-01-22 Simon J Gerraty <sjg@beast.crufty.net> 236949caa483SSimon J. Gerraty 237049caa483SSimon J. Gerraty * VERSION: 20200122 237149caa483SSimon J. Gerraty Merge with NetBSD make, pick up 237249caa483SSimon J. Gerraty o meta.c: avoid passing NULL to filemon_*() when meta_needed() 237349caa483SSimon J. Gerraty returns FALSE. 237449caa483SSimon J. Gerraty 237549caa483SSimon J. Gerraty2020-01-21 Simon J Gerraty <sjg@beast.crufty.net> 237649caa483SSimon J. Gerraty 237749caa483SSimon J. Gerraty * VERSION: 20200121 237849caa483SSimon J. Gerraty Merge with NetBSD make, pick up 237949caa483SSimon J. Gerraty o filemon/filemon_{dev,ktrace}.c: allow selection of 238049caa483SSimon J. Gerraty filemon implementation. filemon_dev.c uses the kernel module 238149caa483SSimon J. Gerraty while filemon_ktrace.c leverages the fktrace api available in 238249caa483SSimon J. Gerraty NetBSD. filemon_ktrace.c can hopefully form the basis for 238349caa483SSimon J. Gerraty adding support for other tracing mechanisms such as strace on 238449caa483SSimon J. Gerraty Linux. 238549caa483SSimon J. Gerraty o meta.c: when target is out-of-date per normal make rules 238649caa483SSimon J. Gerraty record value of .OODATE in meta file. 238749caa483SSimon J. Gerraty 238849caa483SSimon J. Gerraty2019-09-26 Simon J Gerraty <sjg@beast.crufty.net> 238949caa483SSimon J. Gerraty 239049caa483SSimon J. Gerraty * VERSION: 20190926 239149caa483SSimon J. Gerraty Merge with NetBSD make, pick up 239249caa483SSimon J. Gerraty o parse.c: don't pass NULL to realpath(3) 239349caa483SSimon J. Gerraty some versions cannot handle it. 239449caa483SSimon J. Gerraty 239549caa483SSimon J. Gerraty2019-04-09 Simon J Gerraty <sjg@beast.crufty.net> 239649caa483SSimon J. Gerraty 239749caa483SSimon J. Gerraty * VERSION: 20190409 239849caa483SSimon J. Gerraty Merge with NetBSD make, pick up 239949caa483SSimon J. Gerraty o parse.c: ParseDoDependency: free paths rather than assert 240049caa483SSimon J. Gerraty 240149caa483SSimon J. Gerraty2018-12-22 Simon J Gerraty <sjg@beast.crufty.net> 240249caa483SSimon J. Gerraty 240349caa483SSimon J. Gerraty * VERSION: 20181222 240449caa483SSimon J. Gerraty 240549caa483SSimon J. Gerraty * configure.in: add --without-makefile to avoid generating 240649caa483SSimon J. Gerraty makefile and make-bootstrap.sh 240749caa483SSimon J. Gerraty 240849caa483SSimon J. Gerraty * include Makefile.inc if it exists 240949caa483SSimon J. Gerraty 241049caa483SSimon J. Gerraty * Use Makefile and Makefile.config.in in unit-tests 241149caa483SSimon J. Gerraty so we can use just: make obj && make && make test 241249caa483SSimon J. Gerraty when bmake is already available. 241349caa483SSimon J. Gerraty We add --without-makefile to CONFIGURE_ARGS in this case. 241449caa483SSimon J. Gerraty 241549caa483SSimon J. Gerraty * tweak bsd.after-import.mk (captures Makefile.config etc 241649caa483SSimon J. Gerraty after import to FreeBSD for example) to cope with all the above. 241749caa483SSimon J. Gerraty 2418dfd669abSSimon J. Gerraty2018-12-21 Simon J Gerraty <sjg@beast.crufty.net> 2419dfd669abSSimon J. Gerraty 2420dfd669abSSimon J. Gerraty * VERSION: 20181221 2421dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2422dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .PARSEDIR 2423dfd669abSSimon J. Gerraty and apply if relative, and then use .PARSEFILE 2424dfd669abSSimon J. Gerraty for consistent result. 2425dfd669abSSimon J. Gerraty 2426dfd669abSSimon J. Gerraty2018-12-20 Simon J Gerraty <sjg@beast.crufty.net> 2427dfd669abSSimon J. Gerraty 2428dfd669abSSimon J. Gerraty * VERSION: 20181220 2429dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2430dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR 2431dfd669abSSimon J. Gerraty is relative 2432dfd669abSSimon J. Gerraty o var.c: avoid SEGFAULT in .unexport-env 2433dfd669abSSimon J. Gerraty when MAKELEVEL is not set 2434dfd669abSSimon J. Gerraty 2435dfd669abSSimon J. Gerraty2018-12-16 Simon J Gerraty <sjg@beast.crufty.net> 2436dfd669abSSimon J. Gerraty 2437dfd669abSSimon J. Gerraty * VERSION: 20181216 2438dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2439dfd669abSSimon J. Gerraty o fix for unit-tests/varquote.mk on Debian 2440dfd669abSSimon J. Gerraty 24412eae894cSSimon J. Gerraty2018-09-21 Simon J. Gerraty <sjg@bad.crufty.net> 24422eae894cSSimon J. Gerraty 24432eae894cSSimon J. Gerraty * VERSION: 20180919 24442eae894cSSimon J. Gerraty Merge with NetBSD make, pick up 24452eae894cSSimon J. Gerraty o var.c: add :q 24462eae894cSSimon J. Gerraty o dir.c: cleanup caching of stats 24472eae894cSSimon J. Gerraty 24482eae894cSSimon J. Gerraty2018-09-21 Simon J Gerraty <sjg@beast.crufty.net> 24492eae894cSSimon J. Gerraty 24502eae894cSSimon J. Gerraty * Makefile.config.in: use += where it makes sense. 24512eae894cSSimon J. Gerraty 2452494f7191SSimon J. Gerraty2018-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2453494f7191SSimon J. Gerraty 2454494f7191SSimon J. Gerraty * VERSION: 20180512 2455494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2456494f7191SSimon J. Gerraty o job.c: skip polling job token pipe 2457494f7191SSimon J. Gerraty 2458494f7191SSimon J. Gerraty2018-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 2459494f7191SSimon J. Gerraty 2460494f7191SSimon J. Gerraty * VERSION: 20180405 2461494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2462494f7191SSimon J. Gerraty o parse.c: be more cautious about detecting depenency line 2463494f7191SSimon J. Gerraty rather than sysV style include. 2464494f7191SSimon J. Gerraty 246550d2e745SSimon J. Gerraty2018-02-22 Simon J. Gerraty <sjg@bad.crufty.net> 246650d2e745SSimon J. Gerraty 246750d2e745SSimon J. Gerraty * VERSION: 20180222 246850d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 246950d2e745SSimon J. Gerraty o parse.c: avoid calling sysconf for every call to loadfile 247050d2e745SSimon J. Gerraty 247150d2e745SSimon J. Gerraty2018-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 247250d2e745SSimon J. Gerraty 247350d2e745SSimon J. Gerraty * VERSION: 20180218 247450d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 247550d2e745SSimon J. Gerraty o var.c: Var_Set handle NULL value anytime. 247650d2e745SSimon J. Gerraty 247750d2e745SSimon J. Gerraty2018-02-12 Simon J. Gerraty <sjg@bad.crufty.net> 247850d2e745SSimon J. Gerraty 247950d2e745SSimon J. Gerraty * VERSION: 20180212 248050d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 248150d2e745SSimon J. Gerraty o parse.c: do not treat .info as warning with -W 248250d2e745SSimon J. Gerraty 248350d2e745SSimon J. Gerraty2017-12-07 Simon J. Gerraty <sjg@bad.crufty.net> 248450d2e745SSimon J. Gerraty 248550d2e745SSimon J. Gerraty * VERSION: 20171207 248650d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 248750d2e745SSimon J. Gerraty o var.c: Var_Append use Var_Set if var not previously set 248850d2e745SSimon J. Gerraty so that VAR_CMD is handled correctly. 248950d2e745SSimon J. Gerraty Add a suitable unit-test. 249050d2e745SSimon J. Gerraty 249150d2e745SSimon J. Gerraty2017-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 249250d2e745SSimon J. Gerraty 249350d2e745SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20171126 249450d2e745SSimon J. Gerraty 249550d2e745SSimon J. Gerraty * aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__ 249650d2e745SSimon J. Gerraty since AC_TRY_COMPILE puts input inside main() 249750d2e745SSimon J. Gerraty which upsets modern compilers. 249850d2e745SSimon J. Gerraty 249950d2e745SSimon J. Gerraty2017-11-18 Simon J. Gerraty <sjg@bad.crufty.net> 250050d2e745SSimon J. Gerraty 250150d2e745SSimon J. Gerraty * VERSION: 20171118 250250d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 250350d2e745SSimon J. Gerraty o var.c: do not append to variable set on command line 250450d2e745SSimon J. Gerraty add unit-test to catch this. 250550d2e745SSimon J. Gerraty 2506e22fef7dSSimon J. Gerraty2017-10-28 Simon J. Gerraty <sjg@bad.crufty.net> 2507e22fef7dSSimon J. Gerraty 2508e22fef7dSSimon J. Gerraty * VERSION: 20171028 2509e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2510e22fef7dSSimon J. Gerraty o main.c: ignore empty MAKEOBJDIR 2511e22fef7dSSimon J. Gerraty 2512e22fef7dSSimon J. Gerraty * Makefile.config.in: 2513e22fef7dSSimon J. Gerraty make @prefix@ @machine*@ and @default_sys_path@ defaults. 2514e22fef7dSSimon J. Gerraty 2515e22fef7dSSimon J. Gerraty2017-10-05 Simon J. Gerraty <sjg@bad.crufty.net> 2516e22fef7dSSimon J. Gerraty 2517e22fef7dSSimon J. Gerraty * VERSION: 20171005 2518e22fef7dSSimon J. Gerraty 2519e22fef7dSSimon J. Gerraty * unit-tests/dotwait.mk: redirect stderr through pipe for more 2520e22fef7dSSimon J. Gerraty consistent result on some platforms. 2521e22fef7dSSimon J. Gerraty 2522e22fef7dSSimon J. Gerraty2017-08-13 Simon J. Gerraty <sjg@bad.crufty.net> 2523e22fef7dSSimon J. Gerraty 2524e22fef7dSSimon J. Gerraty * machine.sh: entry for AIX 2525e22fef7dSSimon J. Gerraty 2526e22fef7dSSimon J. Gerraty2017-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 2527e22fef7dSSimon J. Gerraty 2528e22fef7dSSimon J. Gerraty * VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION 2529e22fef7dSSimon J. Gerraty to a file that can be included by configure as well as make. 2530e22fef7dSSimon J. Gerraty This allows configure to set set _MAKE_VERSION in make-bootstrap.sh 2531e22fef7dSSimon J. Gerraty 2532e22fef7dSSimon J. Gerraty2017-08-10 Simon J. Gerraty <sjg@bad.crufty.net> 2533e22fef7dSSimon J. Gerraty 2534e22fef7dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170810 2535e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2536e22fef7dSSimon J. Gerraty o meta.c: if target is in subdir we only need subdir name in 2537e22fef7dSSimon J. Gerraty meta_name. 2538e22fef7dSSimon J. Gerraty 2539c7019bf7SSimon J. Gerraty2017-07-20 Simon J. Gerraty <sjg@bad.crufty.net> 2540c7019bf7SSimon J. Gerraty 2541c7019bf7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170720 2542c7019bf7SSimon J. Gerraty Merge with NetBSD make, pick up 2543c7019bf7SSimon J. Gerraty o compat.c: pass SIGINT etc onto child and wait for it to exit 2544c7019bf7SSimon J. Gerraty before we self-terminate. 2545c7019bf7SSimon J. Gerraty 25468695518cSSimon J. Gerraty2017-07-11 Simon J. Gerraty <sjg@bad.crufty.net> 25478695518cSSimon J. Gerraty 25488695518cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170711 25498695518cSSimon J. Gerraty forgot to update after merge on 20170708 ;-) 25508695518cSSimon J. Gerraty o main.c: refactor to reduce size of main function. 25518695518cSSimon J. Gerraty add -v option to always fully expand values. 25528695518cSSimon J. Gerraty o meta.c: ensure command output in meta file has ending newline 25538695518cSSimon J. Gerraty even when filemon not being used. 25548695518cSSimon J. Gerraty When matching ${.MAKE.META.IGNORE_PATTERNS} do not use 25558695518cSSimon J. Gerraty pathname via ':L' since any ':' in pathname breaks that. 25568695518cSSimon J. Gerraty Instead set a '${.p.}' to pathname in the target context and 25578695518cSSimon J. Gerraty use that. 25588695518cSSimon J. Gerraty 2559cac6fd11SSimon J. Gerraty2017-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 2560cac6fd11SSimon J. Gerraty 2561cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170510 2562cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2563cac6fd11SSimon J. Gerraty o main.c: Main_SetObjdir: ensure buf2 is in scope 2564cac6fd11SSimon J. Gerraty 2565cac6fd11SSimon J. Gerraty2017-05-08 Simon J. Gerraty <sjg@bad.crufty.net> 2566cac6fd11SSimon J. Gerraty 2567cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170505 2568cac6fd11SSimon J. Gerraty see mk/ChangeLog 2569cac6fd11SSimon J. Gerraty 2570cac6fd11SSimon J. Gerraty2017-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 2571cac6fd11SSimon J. Gerraty 2572cac6fd11SSimon J. Gerraty * parse.c: not everyone has stdint.h 2573cac6fd11SSimon J. Gerraty 2574cac6fd11SSimon J. Gerraty2017-05-01 Simon J. Gerraty <sjg@bad.crufty.net> 2575cac6fd11SSimon J. Gerraty 2576cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170501 2577cac6fd11SSimon J. Gerraty see mk/ChangeLog 2578cac6fd11SSimon J. Gerraty 2579cac6fd11SSimon J. Gerraty2017-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 2580cac6fd11SSimon J. Gerraty 2581cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170421 2582cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2583cac6fd11SSimon J. Gerraty o str.c: Str_Match: fix closure tests for [^] and add unit-test. 2584cac6fd11SSimon J. Gerraty 2585e1cee40dSSimon J. Gerraty2017-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 2586e1cee40dSSimon J. Gerraty 2587e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170420 2588e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2589e1cee40dSSimon J. Gerraty o main.c: only use -C arg "as is" if it contains no 2590e1cee40dSSimon J. Gerraty relative component. 2591e1cee40dSSimon J. Gerraty 2592e1cee40dSSimon J. Gerraty2017-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2593e1cee40dSSimon J. Gerraty 2594e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170418 2595e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2596e1cee40dSSimon J. Gerraty o main.c: fix Main_SetObjdir() for relative paths (eg obj). 2597e1cee40dSSimon J. Gerraty 2598e1cee40dSSimon J. Gerraty2017-04-17 Simon J. Gerraty <sjg@bad.crufty.net> 2599e1cee40dSSimon J. Gerraty 2600e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170417 2601e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2602e1cee40dSSimon J. Gerraty o fixes a number of coverity complaints 2603e1cee40dSSimon J. Gerraty - check return value of fseek, fcntl 2604e1cee40dSSimon J. Gerraty - plug memory leak in Dir_FindFile, Var_LoopExpand, 2605e1cee40dSSimon J. Gerraty JobPrintCommand, ParseTraditionalInclude 2606e1cee40dSSimon J. Gerraty - use bmake_malloc() where NULL is not tollerated 2607e1cee40dSSimon J. Gerraty - use MAKE_ATTR_UNUSED rather that kludges like 2608e1cee40dSSimon J. Gerraty return(unused ? 0 : 0) 2609e1cee40dSSimon J. Gerraty - use purge_cached_realpaths() rather than abuse cached_realpath() 2610e1cee40dSSimon J. Gerraty 2611b46b9039SSimon J. Gerraty2017-04-13 Simon J. Gerraty <sjg@bad.crufty.net> 2612b46b9039SSimon J. Gerraty 2613b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170413 2614b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2615b46b9039SSimon J. Gerraty o main.c: when setting .OBJDIR ignore '$' in paths. 2616b46b9039SSimon J. Gerraty 2617b46b9039SSimon J. Gerraty * job.c: use MALLOC_OPTIONS to set malloc_options. 2618b46b9039SSimon J. Gerraty 2619b46b9039SSimon J. Gerraty2017-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2620b46b9039SSimon J. Gerraty 2621b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170411 2622b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2623b46b9039SSimon J. Gerraty o str.c: Str_Match: allow [^a-z] to behave as expected. 2624b46b9039SSimon J. Gerraty 2625b46b9039SSimon J. Gerraty2017-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2626b46b9039SSimon J. Gerraty 2627b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170326 2628b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2629b46b9039SSimon J. Gerraty o main.c: purge relative paths from realpath cache when .OBJDIR 2630b46b9039SSimon J. Gerraty is changed. 2631b46b9039SSimon J. Gerraty 2632b46b9039SSimon J. Gerraty2017-03-11 Simon J. Gerraty <sjg@bad.crufty.net> 2633b46b9039SSimon J. Gerraty 2634b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170311 2635b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2636b46b9039SSimon J. Gerraty o main.c: only use -C arg "as is" if it starts with '/'. 2637b46b9039SSimon J. Gerraty 26381ce939a7SSimon J. Gerraty2017-03-01 Simon J. Gerraty <sjg@bad.crufty.net> 26391ce939a7SSimon J. Gerraty 26401ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170301 26411ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 2642b46b9039SSimon J. Gerraty o main.c: use -C arg "as is" rather than getcwd() 26431ce939a7SSimon J. Gerraty if they identify the same directory. 26441ce939a7SSimon J. Gerraty o parse.c: ensure loadfile buffer is \n terminated in non-mmap case 26451ce939a7SSimon J. Gerraty 26461ce939a7SSimon J. Gerraty2017-02-01 Simon J. Gerraty <sjg@bad.crufty.net> 26471ce939a7SSimon J. Gerraty 26481ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170201 26491ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 26501ce939a7SSimon J. Gerraty o var.c: allow :_=var and avoid use of special context. 26511ce939a7SSimon J. Gerraty 26521ce939a7SSimon J. Gerraty2017-01-30 Simon J. Gerraty <sjg@bad.crufty.net> 26531ce939a7SSimon J. Gerraty 26541ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170130 26551ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 26561ce939a7SSimon J. Gerraty o var.c: add :range and :_ 26571ce939a7SSimon J. Gerraty o main.c: partially initialize Dir_* before MainParseArgs() 26581ce939a7SSimon J. Gerraty can be called. 26591ce939a7SSimon J. Gerraty If -V, skip Main_ExportMAKEFLAGS() 26601ce939a7SSimon J. Gerraty 26611ce939a7SSimon J. Gerraty2017-01-14 Simon J. Gerraty <sjg@bad.crufty.net> 26621ce939a7SSimon J. Gerraty 26631ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170114 26641ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 26651ce939a7SSimon J. Gerraty o var.c: allow specifying the utc value used by :{gm,local}time 26661ce939a7SSimon J. Gerraty 266745447996SSimon J. Gerraty2016-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 266845447996SSimon J. Gerraty 266945447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161212 267045447996SSimon J. Gerraty Merge with NetBSD make, pick up 267145447996SSimon J. Gerraty o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too. 267245447996SSimon J. Gerraty 267345447996SSimon J. Gerraty2016-12-09 Simon J. Gerraty <sjg@bad.crufty.net> 267445447996SSimon J. Gerraty 267545447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161209 267645447996SSimon J. Gerraty Merge with NetBSD make, pick up 267745447996SSimon J. Gerraty o main.c: cleanup setting of .OBJDIR 267845447996SSimon J. Gerraty o parse.c: avoid coredump from (var)=val 267945447996SSimon J. Gerraty 268045447996SSimon J. Gerraty2016-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 268145447996SSimon J. Gerraty 268245447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161126 268345447996SSimon J. Gerraty Merge with NetBSD make, pick up 268445447996SSimon J. Gerraty o make.c: Make_OODate: report src node name if path not set 268545447996SSimon J. Gerraty 268645447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 268745447996SSimon J. Gerraty 268845447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160926 268945447996SSimon J. Gerraty Merge with NetBSD make, pick up 269045447996SSimon J. Gerraty o support for .DELETE_ON_ERROR: (remove targets that fail) 269145447996SSimon J. Gerraty 269245447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 269345447996SSimon J. Gerraty 269445447996SSimon J. Gerraty * Makefile MAN: tweak .Dt to match ${PROG} 269545447996SSimon J. Gerraty 269695e3ed2cSSimon J. Gerraty2016-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 269795e3ed2cSSimon J. Gerraty 269895e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160818 269995e3ed2cSSimon J. Gerraty its a neater number; pick up whitespace fixes to man page. 270095e3ed2cSSimon J. Gerraty 270195e3ed2cSSimon J. Gerraty2016-08-17 Simon J. Gerraty <sjg@bad.crufty.net> 270295e3ed2cSSimon J. Gerraty 270395e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160817 270495e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 270595e3ed2cSSimon J. Gerraty o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore() 270695e3ed2cSSimon J. Gerraty so we can call it before adding entries to missingFiles. 270795e3ed2cSSimon J. Gerraty Thus we do not track files we have been told to ignore. 270895e3ed2cSSimon J. Gerraty 270995e3ed2cSSimon J. Gerraty2016-08-15 Simon J. Gerraty <sjg@bad.crufty.net> 271095e3ed2cSSimon J. Gerraty 271195e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160815 271295e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 271395e3ed2cSSimon J. Gerraty o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to 271495e3ed2cSSimon J. Gerraty pathnames, and skip if the expansion is empty. 271595e3ed2cSSimon J. Gerraty Useful for dirdeps.mk when checking DIRDEPS_CACHE. 271695e3ed2cSSimon J. Gerraty 271795e3ed2cSSimon J. Gerraty2016-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 271895e3ed2cSSimon J. Gerraty 271995e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160812 272095e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 272195e3ed2cSSimon J. Gerraty o meta.c: remove all missingFiles entries that match a deleted 272295e3ed2cSSimon J. Gerraty dir. 272395e3ed2cSSimon J. Gerraty o main.c: set .ERROR_CMD if possible. 272495e3ed2cSSimon J. Gerraty 272539ac7ef4SSimon J. Gerraty2016-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 272639ac7ef4SSimon J. Gerraty 272739ac7ef4SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160606 272839ac7ef4SSimon J. Gerraty Merge with NetBSD make, pick up 272939ac7ef4SSimon J. Gerraty o dir.c: extend mtimes cache to others via cached_stat() 273039ac7ef4SSimon J. Gerraty 2731b778b302SSimon J. Gerraty2016-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 2732b778b302SSimon J. Gerraty 2733b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160604 2734b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2735b778b302SSimon J. Gerraty o meta.c: missing filemon data is only relevant if we read a 2736b778b302SSimon J. Gerraty meta file. 2737b778b302SSimon J. Gerraty Also do not return oodate for a missing metafile if gn->path 2738b778b302SSimon J. Gerraty points to .CURDIR 2739b778b302SSimon J. Gerraty 2740b778b302SSimon J. Gerraty2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 2741b778b302SSimon J. Gerraty 2742b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160602 2743b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2744b778b302SSimon J. Gerraty o cached_realpath(): avoid hitting filesystem more than necessary. 2745b778b302SSimon J. Gerraty o meta.c: refactor need_meta decision, add knobs for 2746b778b302SSimon J. Gerraty missing meta file and filemon data wrt out-of-datedness. 2747b778b302SSimon J. Gerraty 2748b778b302SSimon J. Gerraty2016-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 2749b778b302SSimon J. Gerraty 2750b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160528 2751b778b302SSimon J. Gerraty 2752b778b302SSimon J. Gerraty * boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION 2753b778b302SSimon J. Gerraty 2754e48f47ddSSimon J. Gerraty2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2755e48f47ddSSimon J. Gerraty 2756e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160512 2757e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2758e48f47ddSSimon J. Gerraty o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS 2759e48f47ddSSimon J. Gerraty this is useful for gcov builds. 2760e48f47ddSSimon J. Gerraty o propagate errors from filemon(4). 2761e48f47ddSSimon J. Gerraty 2762e48f47ddSSimon J. Gerraty2016-05-09 Simon J. Gerraty <sjg@bad.crufty.net> 2763e48f47ddSSimon J. Gerraty 2764e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160509 2765e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2766e48f47ddSSimon J. Gerraty o remove use of non-standard types u_int etc. 2767e48f47ddSSimon J. Gerraty o meta.c: apply realpath() before matching against metaIgnorePaths 2768e48f47ddSSimon J. Gerraty 2769e48f47ddSSimon J. Gerraty2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net> 2770e48f47ddSSimon J. Gerraty 2771e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160404 2772e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2773e48f47ddSSimon J. Gerraty o allow makefile to set .MAKE.JOBS 2774e48f47ddSSimon J. Gerraty 2775e48f47ddSSimon J. Gerraty * Makefile (PROG_NAME): use ${_MAKE_VERSION} 2776e48f47ddSSimon J. Gerraty 27773bebe729SSimon J. Gerraty2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net> 27783bebe729SSimon J. Gerraty 27793bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160315 27803bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 27813bebe729SSimon J. Gerraty o fix handling of archive members 27823bebe729SSimon J. Gerraty 27833bebe729SSimon J. Gerraty2016-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 27843bebe729SSimon J. Gerraty 27853bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): rename variable to avoid interference 27863bebe729SSimon J. Gerraty with checks for ${MAKE_VERSION} 27873bebe729SSimon J. Gerraty 27883bebe729SSimon J. Gerraty2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net> 27893bebe729SSimon J. Gerraty 27903bebe729SSimon J. Gerraty * Makefile (MAKE_VERSION): 20160310 27913bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 27923bebe729SSimon J. Gerraty o meta.c: treat missing Read file same as Write, incase we Delete it. 27933bebe729SSimon J. Gerraty 2794be19d90bSSimon J. Gerraty2016-03-07 Simon J. Gerraty <sjg@bad.crufty.net> 2795be19d90bSSimon J. Gerraty 2796be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160307 2797be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2798be19d90bSSimon J. Gerraty o var.c: fix :ts\nnn to be octal by default. 2799be19d90bSSimon J. Gerraty o meta.c: meta_finish() to cleanup memory. 2800be19d90bSSimon J. Gerraty 2801be19d90bSSimon J. Gerraty2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 2802be19d90bSSimon J. Gerraty 2803be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160226 2804be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2805be19d90bSSimon J. Gerraty o meta.c: allow meta file for makeDepend if makefiles want it. 2806be19d90bSSimon J. Gerraty 2807be19d90bSSimon J. Gerraty2016-02-19 Simon J. Gerraty <sjg@bad.crufty.net> 2808be19d90bSSimon J. Gerraty 2809be19d90bSSimon J. Gerraty * var.c: default .MAKE.SAVE_DOLLARS to FALSE 2810be19d90bSSimon J. Gerraty for backwards compatability. 2811be19d90bSSimon J. Gerraty 2812be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160220 2813be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2814be19d90bSSimon J. Gerraty o var.c: add knob to control handling of '$$' in := 2815be19d90bSSimon J. Gerraty 2816be19d90bSSimon J. Gerraty2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 2817be19d90bSSimon J. Gerraty 2818be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160218 2819be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2820be19d90bSSimon J. Gerraty o var.c: add .export-literal allows us to fix sys.clean-env.mk 2821be19d90bSSimon J. Gerraty post the changes to Var_Subst. 2822be19d90bSSimon J. Gerraty Var_Subst now takes flags, and does not consume '$$' in := 2823be19d90bSSimon J. Gerraty 2824be19d90bSSimon J. Gerraty2016-02-17 Simon J. Gerraty <sjg@bad.crufty.net> 2825be19d90bSSimon J. Gerraty 2826be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160217 2827be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2828be19d90bSSimon J. Gerraty o var.c: preserve '$$' in := 2829be19d90bSSimon J. Gerraty o parse.c: add .dinclude for handling included 2830be19d90bSSimon J. Gerraty makefile like .depend 2831be19d90bSSimon J. Gerraty 28326e050540SSimon J. Gerraty2015-12-20 Simon J. Gerraty <sjg@bad.crufty.net> 28336e050540SSimon J. Gerraty 28346e050540SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151220 28356e050540SSimon J. Gerraty Merge with NetBSD make, pick up 28366e050540SSimon J. Gerraty o suff.c: re-initialize suffNull when clearing suffixes. 28376e050540SSimon J. Gerraty 2838ac3446e9SSimon J. Gerraty2015-12-01 Simon J. Gerraty <sjg@bad.crufty.net> 2839ac3446e9SSimon J. Gerraty 2840ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151201 2841ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2842ac3446e9SSimon J. Gerraty o cond.c: CondCvtArg: avoid access beyond end of empty buffer. 2843ac3446e9SSimon J. Gerraty o meta.c: meta_oodate: use lstat(2) for checking link target 2844ac3446e9SSimon J. Gerraty in case it is a symlink. 2845ac3446e9SSimon J. Gerraty o var.c: avoid calling brk_string and Var_Export1 with empty 2846ac3446e9SSimon J. Gerraty strings. 2847ac3446e9SSimon J. Gerraty 2848ac3446e9SSimon J. Gerraty2015-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 2849ac3446e9SSimon J. Gerraty 2850ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151126 2851ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2852ac3446e9SSimon J. Gerraty o parse.c: ParseTrackInput don't access beyond 2853ac3446e9SSimon J. Gerraty end of old value. 2854ac3446e9SSimon J. Gerraty 2855ac3446e9SSimon J. Gerraty2015-10-22 Simon J. Gerraty <sjg@bad.crufty.net> 2856ac3446e9SSimon J. Gerraty 2857ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151022 2858ac3446e9SSimon J. Gerraty 2859ac3446e9SSimon J. Gerraty * Add support for BSD/OS which lacks inttypes.h 2860ac3446e9SSimon J. Gerraty and really needs sys/param.h for sys/sysctl.h 2861ac3446e9SSimon J. Gerraty also 'type' is not a shell builtin. 2862ac3446e9SSimon J. Gerraty 2863ac3446e9SSimon J. Gerraty * var.c: eliminate uint32_t and need for inttypes.h 2864ac3446e9SSimon J. Gerraty 2865ac3446e9SSimon J. Gerraty * main.c: PrintOnError flush stdout before run .ERROR 2866ac3446e9SSimon J. Gerraty 2867ac3446e9SSimon J. Gerraty * parse.c: cope with _SC_PAGESIZE not being defined. 2868ac3446e9SSimon J. Gerraty 2869ac3446e9SSimon J. Gerraty 28704c620fe5SSimon J. Gerraty2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net> 28714c620fe5SSimon J. Gerraty 28724c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151020 28734c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 28744c620fe5SSimon J. Gerraty o var.c: fix uninitialized var 28754c620fe5SSimon J. Gerraty 28764c620fe5SSimon J. Gerraty2015-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 28774c620fe5SSimon J. Gerraty 28784c620fe5SSimon J. Gerraty * var.c: the conditional expressions used with ':?' can be 28794c620fe5SSimon J. Gerraty expensive, if already discarding do not evaluate or expand 28804c620fe5SSimon J. Gerraty anything. 28814c620fe5SSimon J. Gerraty 28824c620fe5SSimon J. Gerraty2015-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 28834c620fe5SSimon J. Gerraty 28844c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151010 28854c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 28864c620fe5SSimon J. Gerraty o Add Boolean wantit flag to Var_Subst and Var_Parse 28874c620fe5SSimon J. Gerraty when FALSE we know we are discarding the result and can 28884c620fe5SSimon J. Gerraty skip operations like Cmd_Exec. 28894c620fe5SSimon J. Gerraty 28904c620fe5SSimon J. Gerraty2015-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 28914c620fe5SSimon J. Gerraty 28924c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151009 28934c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 28944c620fe5SSimon J. Gerraty o var.c: don't check for NULL before free() 28954c620fe5SSimon J. Gerraty o meta.c: meta_oodate, do not hard code ignore of makeDependfile 28964c620fe5SSimon J. Gerraty 28974c620fe5SSimon J. Gerraty2015-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 28984c620fe5SSimon J. Gerraty 28994c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150910 29004c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 29014c620fe5SSimon J. Gerraty o main.c: with -w print Enter/Leaving messages for objdir too 29024c620fe5SSimon J. Gerraty if necessary. 29034c620fe5SSimon J. Gerraty o centralize shell metachar handling 29044c620fe5SSimon J. Gerraty 29054c620fe5SSimon J. Gerraty * FILES: add metachar.[ch] 29064c620fe5SSimon J. Gerraty 2907128a4105SSimon J. Gerraty2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 2908128a4105SSimon J. Gerraty 2909128a4105SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150606 2910128a4105SSimon J. Gerraty Merge with NetBSD make, pick up 2911128a4105SSimon J. Gerraty o make.1: document .OBJDIR target 2912128a4105SSimon J. Gerraty 291328a6bc81SSimon J. Gerraty2015-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 291428a6bc81SSimon J. Gerraty 291528a6bc81SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150505 291628a6bc81SSimon J. Gerraty Merge with NetBSD make, pick up 291728a6bc81SSimon J. Gerraty o cond.c: be strict about lhs of comparison when evaluating .if 291828a6bc81SSimon J. Gerraty but less so when called from variable expansion. 291928a6bc81SSimon J. Gerraty o unit-tests/cond2.mk: test various error conditions 292028a6bc81SSimon J. Gerraty 292128a6bc81SSimon J. Gerraty2015-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 292228a6bc81SSimon J. Gerraty 292328a6bc81SSimon J. Gerraty * machine.sh (MACHINE): Add Bitrig 292428a6bc81SSimon J. Gerraty patch from joerg@netbsd.org 292528a6bc81SSimon J. Gerraty 2926db29cad8SSimon J. Gerraty2015-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2927db29cad8SSimon J. Gerraty 2928db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150418 2929db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2930db29cad8SSimon J. Gerraty o job.c: use memmove() rather than memcpy() 2931db29cad8SSimon J. Gerraty 2932db29cad8SSimon J. Gerraty * unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL 2933db29cad8SSimon J. Gerraty case, so skip it. 2934db29cad8SSimon J. Gerraty 2935db29cad8SSimon J. Gerraty2015-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2936db29cad8SSimon J. Gerraty 2937db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150411 2938db29cad8SSimon J. Gerraty bump version - only mk/ changes. 2939db29cad8SSimon J. Gerraty 2940db29cad8SSimon J. Gerraty2015-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 2941db29cad8SSimon J. Gerraty 2942db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150410 2943db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2944db29cad8SSimon J. Gerraty o document different handling of '-' in jobs mode vs compat 2945db29cad8SSimon J. Gerraty o fix jobs mode so that '-' only applies to whole job 2946db29cad8SSimon J. Gerraty when shell lacks hasErrCtl 2947db29cad8SSimon J. Gerraty o meta.c: use separate vars to track lcwd and latestdir (read) 2948db29cad8SSimon J. Gerraty per process 2949db29cad8SSimon J. Gerraty 2950db29cad8SSimon J. Gerraty2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 2951db29cad8SSimon J. Gerraty 2952db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150401 2953db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2954db29cad8SSimon J. Gerraty o meta.c: close meta file in child 2955db29cad8SSimon J. Gerraty 2956db29cad8SSimon J. Gerraty * Makefile: use BINDIR.bmake if set. 2957db29cad8SSimon J. Gerraty Same for MANDIR and SHAREDIR 2958db29cad8SSimon J. Gerraty Handy for testing release candidates 2959db29cad8SSimon J. Gerraty in various environments. 2960db29cad8SSimon J. Gerraty 2961db29cad8SSimon J. Gerraty2015-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2962db29cad8SSimon J. Gerraty 2963db29cad8SSimon J. Gerraty * move initialization of savederr to block where it is used 2964db29cad8SSimon J. Gerraty to avoid spurious warning from gcc5 2965db29cad8SSimon J. Gerraty 2966db29cad8SSimon J. Gerraty2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 2967db29cad8SSimon J. Gerraty 2968db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141111 2969db29cad8SSimon J. Gerraty just a cooler number 2970db29cad8SSimon J. Gerraty 2971db29cad8SSimon J. Gerraty2014-11-05 Simon J. Gerraty <sjg@bad.crufty.net> 2972db29cad8SSimon J. Gerraty 2973db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141105 2974db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2975db29cad8SSimon J. Gerraty o revert major overhaul of suffix handling 2976db29cad8SSimon J. Gerraty and POSIX compliance - too much breakage 2977db29cad8SSimon J. Gerraty and impossible to make backwards compatible. 2978db29cad8SSimon J. Gerraty o we still have the new unit test structure which is ok. 2979db29cad8SSimon J. Gerraty o meta.c ensure "-- filemon" is at start of line. 2980db29cad8SSimon J. Gerraty 2981db29cad8SSimon J. Gerraty2014-09-17 Simon J. Gerraty <sjg@bad.crufty.net> 2982db29cad8SSimon J. Gerraty 2983db29cad8SSimon J. Gerraty * configure.in: test that result of getconf PATH_MAX is numeric 2984db29cad8SSimon J. Gerraty and discard if not. Apparently needed for Hurd. 2985db29cad8SSimon J. Gerraty 2986db29cad8SSimon J. Gerraty2014-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 2987db29cad8SSimon J. Gerraty 2988db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140830 2989db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2990db29cad8SSimon J. Gerraty o major overhaul of suffix handling 2991db29cad8SSimon J. Gerraty o improved POSIX compliance 2992db29cad8SSimon J. Gerraty o overhauled unit-tests 2993db29cad8SSimon J. Gerraty 29945bcb7424SSimon J. Gerraty2014-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 29955bcb7424SSimon J. Gerraty 29965bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140620 29975bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 2998db29cad8SSimon J. Gerraty o var.c return varNoError rather than var_Error for ::= modifiers. 29995bcb7424SSimon J. Gerraty 30005bcb7424SSimon J. Gerraty2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net> 30015bcb7424SSimon J. Gerraty 30025bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140522 30035bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 30045bcb7424SSimon J. Gerraty o var.c detect some parse errors. 30055bcb7424SSimon J. Gerraty 30065bcb7424SSimon J. Gerraty2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 30075bcb7424SSimon J. Gerraty 30085bcb7424SSimon J. Gerraty * Fix spelling errors - patch from Pedro Giffuni 30095bcb7424SSimon J. Gerraty 30105bcb7424SSimon J. Gerraty2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 30115bcb7424SSimon J. Gerraty 30125bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140214 30135bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 30145bcb7424SSimon J. Gerraty o .INCLUDEFROM* 30155bcb7424SSimon J. Gerraty o use Var_Value to get MAKEOBJDIR[PREFIX] 30165bcb7424SSimon J. Gerraty o reduced realloc'ign in brk_string. 30175bcb7424SSimon J. Gerraty * configure.in: add a check for compiler supporting __func__ 30185bcb7424SSimon J. Gerraty 30190dede8b0SSimon J. Gerraty2014-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 30200dede8b0SSimon J. Gerraty 30210dede8b0SSimon J. Gerraty * boot-strap: ignore mksrc=none 30220dede8b0SSimon J. Gerraty 30230dede8b0SSimon J. Gerraty2014-01-02 Simon J. Gerraty <sjg@bad.crufty.net> 30240dede8b0SSimon J. Gerraty 30250dede8b0SSimon J. Gerraty * Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk 30260dede8b0SSimon J. Gerraty 30270dede8b0SSimon J. Gerraty2014-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 30280dede8b0SSimon J. Gerraty 30290dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140101 30300dede8b0SSimon J. Gerraty * configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024) 30310dede8b0SSimon J. Gerraty * Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max 30320dede8b0SSimon J. Gerraty * make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for 30330dede8b0SSimon J. Gerraty Hurd) 30340dede8b0SSimon J. Gerraty * configure.in: Add AC_PREREQ and check for 30350dede8b0SSimon J. Gerraty sysctl; patch from Andrew Shadura andrewsh at debian.org 30360dede8b0SSimon J. Gerraty 30370dede8b0SSimon J. Gerraty2013-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 30380dede8b0SSimon J. Gerraty 30390dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131010 30400dede8b0SSimon J. Gerraty * lose the const from arg to systcl to avoid problems on older BSDs. 30410dede8b0SSimon J. Gerraty 30420dede8b0SSimon J. Gerraty2013-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 30430dede8b0SSimon J. Gerraty 30440dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131001 30450dede8b0SSimon J. Gerraty Merge with NetBSD make, pick up 30460dede8b0SSimon J. Gerraty o main.c: for NATIVE build sysctl to get MACHINE_ARCH from 30470dede8b0SSimon J. Gerraty hw.machine_arch if necessary. 30480dede8b0SSimon J. Gerraty o meta.c: meta_oodate - need to look at src of Link and target 30490dede8b0SSimon J. Gerraty of Move as well. 30500dede8b0SSimon J. Gerraty * main.c: check that CTL_HW and HW_MACHINE_ARCH exist. 30510dede8b0SSimon J. Gerraty provide __arraycount() if needed. 30520dede8b0SSimon J. Gerraty 30531bbe5942SSimon J. Gerraty2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net> 30541bbe5942SSimon J. Gerraty 30551bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130904 30561bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 30571bbe5942SSimon J. Gerraty o Add VAR_INTERNAL context, so that internal setting of 30581bbe5942SSimon J. Gerraty MAKEFILE does not override value set by makefiles. 30591bbe5942SSimon J. Gerraty 30601bbe5942SSimon J. Gerraty2013-09-02 Simon J. Gerraty <sjg@bad.crufty.net> 30611bbe5942SSimon J. Gerraty 30621bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130902 30631bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 30641bbe5942SSimon J. Gerraty o CompatRunCommand: only apply shellErrFlag when errCheck is true 30651bbe5942SSimon J. Gerraty 30661bbe5942SSimon J. Gerraty2013-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 30671bbe5942SSimon J. Gerraty 30681bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130828 30691bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 30701bbe5942SSimon J. Gerraty o Fix VAR :sh = syntax from Will Andrews at freebsd.org 30711bbe5942SSimon J. Gerraty o Call Job_SetPrefix() from Job_Init() so makefiles have 30721bbe5942SSimon J. Gerraty opportunity to set .MAKE.JOB.PREFIX 30731bbe5942SSimon J. Gerraty 307451ee2c1cSSimon J. Gerraty2013-07-30 Simon J. Gerraty <sjg@bad.crufty.net> 307551ee2c1cSSimon J. Gerraty 307651ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130730 307751ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 307851ee2c1cSSimon J. Gerraty o Allow suppression of --- job -- tokens by setting 307951ee2c1cSSimon J. Gerraty .MAKE.JOB.PREFIX empty. 308051ee2c1cSSimon J. Gerraty 308151ee2c1cSSimon J. Gerraty2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net> 308251ee2c1cSSimon J. Gerraty 308351ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130716 308451ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 30855bcb7424SSimon J. Gerraty o number of gmake compatibility tweaks 308651ee2c1cSSimon J. Gerraty -w for gmake style entering/leaving messages 308751ee2c1cSSimon J. Gerraty if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc. 308851ee2c1cSSimon J. Gerraty handle MAKEFLAGS containing only letters. 308951ee2c1cSSimon J. Gerraty o when overriding a GLOBAL variable on the command line, 309051ee2c1cSSimon J. Gerraty delete it from GLOBAL context so -V doesn't show the wrong 309151ee2c1cSSimon J. Gerraty value. 309251ee2c1cSSimon J. Gerraty 309351ee2c1cSSimon J. Gerraty2013-07-06 Simon J. Gerraty <sjg@bad.crufty.net> 309451ee2c1cSSimon J. Gerraty 309551ee2c1cSSimon J. Gerraty * configure.in: We don't need MAKE_LEVEL_SAFE anymore. 309651ee2c1cSSimon J. Gerraty 309751ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130706 309851ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 309951ee2c1cSSimon J. Gerraty o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is 310051ee2c1cSSimon J. Gerraty true so that CompatRunCommand() can use it, to ensure 310151ee2c1cSSimon J. Gerraty consistent behavior with jobs mode. 310251ee2c1cSSimon J. Gerraty o use MAKE_LEVEL_ENV to define the variable to propagate 310351ee2c1cSSimon J. Gerraty .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake). 310451ee2c1cSSimon J. Gerraty o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of 310551ee2c1cSSimon J. Gerraty paths to ignore. 310651ee2c1cSSimon J. Gerraty 310774d2e02bSSimon J. Gerraty2013-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 310874d2e02bSSimon J. Gerraty 310974d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130604 311074d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 311174d2e02bSSimon J. Gerraty o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's 311274d2e02bSSimon J. Gerraty to avoid leaking descriptors. 311374d2e02bSSimon J. Gerraty 311474d2e02bSSimon J. Gerraty2013-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 311574d2e02bSSimon J. Gerraty 311674d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130528 311774d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 311874d2e02bSSimon J. Gerraty o var.c: cleanup some left-overs in VarHash() 311974d2e02bSSimon J. Gerraty 312052d86256SSimon J. Gerraty2013-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 312152d86256SSimon J. Gerraty 312252d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130520 312352d86256SSimon J. Gerraty generate manifest from component FILES rather than have to 312452d86256SSimon J. Gerraty update FILES when mk/FILES changes. 312552d86256SSimon J. Gerraty 312652d86256SSimon J. Gerraty2013-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 312752d86256SSimon J. Gerraty 312852d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130518 312952d86256SSimon J. Gerraty Merge with NetBSD make, pick up 313052d86256SSimon J. Gerraty o suff.c: don't skip all processsing for .PHONY targets 313152d86256SSimon J. Gerraty else wildcard srcs do not get expanded. 313252d86256SSimon J. Gerraty o var.c: expand name of variable to delete if necessary. 313352d86256SSimon J. Gerraty 31341748de26SSimon J. Gerraty2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 31351748de26SSimon J. Gerraty 31361748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130330 31371748de26SSimon J. Gerraty Merge with NetBSD make, pick up 31381748de26SSimon J. Gerraty o meta.c: refine the handling of .OODATE in commands. 31391748de26SSimon J. Gerraty Rather than suppress command comparison for the entire script 31401748de26SSimon J. Gerraty as though .NOMETA_CMP had been used, only suppress it for the 31411748de26SSimon J. Gerraty one command line. 31421748de26SSimon J. Gerraty This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 31431748de26SSimon J. Gerraty suppress comparison of a command without otherwise affecting it. 31441748de26SSimon J. Gerraty o make.1: document that 31451748de26SSimon J. Gerraty 31461748de26SSimon J. Gerraty2013-03-22 Simon J. Gerraty <sjg@bad.crufty.net> 31471748de26SSimon J. Gerraty 31481748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130321 31491748de26SSimon J. Gerraty yes, not quite right but its a cooler number. 31501748de26SSimon J. Gerraty Merge with NetBSD make, pick up 31511748de26SSimon J. Gerraty o parse.c: fix ParseGmakeExport to be portable 31521748de26SSimon J. Gerraty and add a unit-test. 31531748de26SSimon J. Gerraty * meta.c: call meta_init() before makefiles are read and if built 31541748de26SSimon J. Gerraty with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON 31551748de26SSimon J. Gerraty this let's makefiles test for support. 31561748de26SSimon J. Gerraty Call meta_mode_init() to process .MAKE.MODE. 31571748de26SSimon J. Gerraty 31581748de26SSimon J. Gerraty2013-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 31591748de26SSimon J. Gerraty 31601748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130305 31611748de26SSimon J. Gerraty Merge with NetBSD make, pick up 31621748de26SSimon J. Gerraty o run .STALE: target when a dependency from .depend is missing. 31631748de26SSimon J. Gerraty o job.c: add Job_RunTarget() for the above and .BEGIN 31641748de26SSimon J. Gerraty 31651748de26SSimon J. Gerraty2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 31661748de26SSimon J. Gerraty 31671748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130303 31681748de26SSimon J. Gerraty Merge with NetBSD make, pick up 31691748de26SSimon J. Gerraty o main.c: set .MAKE.OS to utsname.sysname 31701748de26SSimon J. Gerraty o job.c: more checks for read and poll errors 31711748de26SSimon J. Gerraty o var.c: lose VarChangeCase() saves 4% time 31721748de26SSimon J. Gerraty 31731748de26SSimon J. Gerraty2013-03-02 Simon J. Gerraty <sjg@bad.crufty.net> 31741748de26SSimon J. Gerraty 31751748de26SSimon J. Gerraty * boot-strap: remove MAKEOBJDIRPREFIX from environment since we 31761748de26SSimon J. Gerraty want to use MAKEOBJDIR 31771748de26SSimon J. Gerraty 31783cbdda60SSimon J. Gerraty2013-01-27 Simon J. Gerraty <sjg@bad.crufty.net> 31793cbdda60SSimon J. Gerraty 31803cbdda60SSimon J. Gerraty * Merge with NetBSD make, pick up 31813cbdda60SSimon J. Gerraty o make.1: more info on how shell commands are handled. 31823cbdda60SSimon J. Gerraty o job.c,main.c: detect write errors to job pipes. 31833cbdda60SSimon J. Gerraty 31843cbdda60SSimon J. Gerraty2013-01-25 Simon J. Gerraty <sjg@bad.crufty.net> 31853cbdda60SSimon J. Gerraty 31863cbdda60SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130123 31873cbdda60SSimon J. Gerraty Merge with NetBSD make, pick up 31883cbdda60SSimon J. Gerraty o meta.c: if script uses .OODATE and meta_oodate() decides 31893cbdda60SSimon J. Gerraty rebuild is needed, .OODATE will be empty - set it to .ALLSRC. 31903cbdda60SSimon J. Gerraty o var.c: in debug output indicate which variabale modifiers 31913cbdda60SSimon J. Gerraty apply to. 31923cbdda60SSimon J. Gerraty o remove Check_Cwd logic the makefiles have been fixed. 31933cbdda60SSimon J. Gerraty 31943cbdda60SSimon J. Gerraty2012-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 31953cbdda60SSimon J. Gerraty 31963cbdda60SSimon J. Gerraty * makefile.in: add a simple makefile for folk who insist on 31973cbdda60SSimon J. Gerraty ./configure; make; make install 31983cbdda60SSimon J. Gerraty it just runs boot-strap 31993cbdda60SSimon J. Gerraty * include mk/* to accommodate the above 32003cbdda60SSimon J. Gerraty * boot-strap: re-work to accommodate the above 32013cbdda60SSimon J. Gerraty mksrc defaults to $Mydir/mk 32023cbdda60SSimon J. Gerraty allow op={configure,build,install,clean,all} 32033cbdda60SSimon J. Gerraty add options to facilitate install 32043cbdda60SSimon J. Gerraty * Makefile.config.in: just the bits set by configure 32053cbdda60SSimon J. Gerraty * Makefile: bump version to 20121212 32063cbdda60SSimon J. Gerraty abandon Makefile.in (NetBSD Makefile) 32073cbdda60SSimon J. Gerraty leverage mk/* instead 32083cbdda60SSimon J. Gerraty * configure.in: ensure srcdir is absolute 32093cbdda60SSimon J. Gerraty 321059a02420SSimon J. Gerraty2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 321159a02420SSimon J. Gerraty 321259a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121111 321359a02420SSimon J. Gerraty fix generation of bmake.cat1 321459a02420SSimon J. Gerraty 321559a02420SSimon J. Gerraty2012-11-09 Simon J. Gerraty <sjg@bad.crufty.net> 321659a02420SSimon J. Gerraty 321759a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121109 321859a02420SSimon J. Gerraty Merge with NetBSD make, pick up 321959a02420SSimon J. Gerraty o make.c: MakeBuildChild: return 0 so search continues if a 322059a02420SSimon J. Gerraty .ORDER dependency is detected. 322159a02420SSimon J. Gerraty o unit-tests/order: test the above 322259a02420SSimon J. Gerraty 322359a02420SSimon J. Gerraty2012-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 322459a02420SSimon J. Gerraty 322559a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121102 322659a02420SSimon J. Gerraty Merge with NetBSD make, pick up 322759a02420SSimon J. Gerraty o cond.c: allow cond_state[] to grow. 322859a02420SSimon J. Gerraty In meta mode with a very large tree, we can hit the limit 322959a02420SSimon J. Gerraty while processing dirdeps. 323059a02420SSimon J. Gerraty 323159a02420SSimon J. Gerraty2012-10-25 Simon J. Gerraty <sjg@bad.crufty.net> 323259a02420SSimon J. Gerraty 323359a02420SSimon J. Gerraty * Makefile.in: we need to use ${srcdir} not ${.CURDIR} 323459a02420SSimon J. Gerraty 323593036677SSimon J. Gerraty2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 323693036677SSimon J. Gerraty 323793036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121010 323893036677SSimon J. Gerraty o protect syntax that only bmake parses correctly. 323993036677SSimon J. Gerraty o remove auto setting of FORCE_MACHINE, use configure's 324093036677SSimon J. Gerraty --with-force-machine=whatever if that is desired. 324193036677SSimon J. Gerraty 324293036677SSimon J. Gerraty2012-10-08 Simon J. Gerraty <sjg@bad.crufty.net> 324393036677SSimon J. Gerraty 324493036677SSimon J. Gerraty * Makefile.in: do not lose history from make.1 when generating bmake.1 324593036677SSimon J. Gerraty 324693036677SSimon J. Gerraty2012-10-07 Simon J. Gerraty <sjg@bad.crufty.net> 324793036677SSimon J. Gerraty 324893036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121007 324993036677SSimon J. Gerraty Merge with NetBSD make, pick up 325093036677SSimon J. Gerraty o compat.c: ignore empty commands - same as jobs mode. 325193036677SSimon J. Gerraty o make.1: document meta chars that cause use of shell 325293036677SSimon J. Gerraty 325393036677SSimon J. Gerraty2012-09-11 Simon J. Gerraty <sjg@bad.crufty.net> 325493036677SSimon J. Gerraty 325593036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): bump version to 20120911 325693036677SSimon J. Gerraty * bsd.after-import.mk: include Makefile.inc early and allow it to 325793036677SSimon J. Gerraty override PROG 325893036677SSimon J. Gerraty 32593955d011SMarcel Moolenaar2012-08-31 Simon J. Gerraty <sjg@bad.crufty.net> 32603955d011SMarcel Moolenaar 32613955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120831 32623955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32633955d011SMarcel Moolenaar o cast sizeof() to int for comparison 32643955d011SMarcel Moolenaar o minor make.1 tweak 32653955d011SMarcel Moolenaar 32663955d011SMarcel Moolenaar2012-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 32673955d011SMarcel Moolenaar 32683955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120830 32693955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32703955d011SMarcel Moolenaar o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V 32713955d011SMarcel Moolenaar o debug flag -dV causes -V to show raw value regardless. 32723955d011SMarcel Moolenaar 32733955d011SMarcel Moolenaar2012-07-05 Simon J. Gerraty <sjg@bad.crufty.net> 32743955d011SMarcel Moolenaar 32753955d011SMarcel Moolenaar * bsd.after-import.mk (after-import): ensure unit-tests/Makefile 32763955d011SMarcel Moolenaar gets SRCTOP set. 32773955d011SMarcel Moolenaar 32783955d011SMarcel Moolenaar2012-07-04 Simon J. Gerraty <sjg@bad.crufty.net> 32793955d011SMarcel Moolenaar 32803955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120704 32813955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32823955d011SMarcel Moolenaar o Job_ParseShell should call Shell_Init if it has been 32833955d011SMarcel Moolenaar previously called. 32843955d011SMarcel Moolenaar * Makefile.in: set USE_META based on configure result. 32853955d011SMarcel Moolenaar also .PARSEDIR is safer indicator of bmake. 32863955d011SMarcel Moolenaar 32873955d011SMarcel Moolenaar2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net> 32883955d011SMarcel Moolenaar 32893955d011SMarcel Moolenaar * Makefile.in: bump version to 20120626 32903955d011SMarcel Moolenaar ensure CPPFLAGS is in CFLAGS 32913955d011SMarcel Moolenaar * meta.c: avoid nested externs 32923955d011SMarcel Moolenaar * bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target 32933955d011SMarcel Moolenaar 32943955d011SMarcel Moolenaar2012-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 32953955d011SMarcel Moolenaar 32963955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120620 32973955d011SMarcel Moolenaar Merge with NetBSD make, pick up 32983955d011SMarcel Moolenaar o make_malloc.c: avoid including make_malloc.h again 32993955d011SMarcel Moolenaar 33003955d011SMarcel Moolenaar * Makefile.in: avoid bmake only syntax or protect with 33013955d011SMarcel Moolenaar .if defined(.MAKE.LEVEL) 33023955d011SMarcel Moolenaar * bsd.after-import.mk: replace .-include with .sinclude 33033955d011SMarcel Moolenaar ensure? SRCTOP gets a value 33043955d011SMarcel Moolenaar * configure.in: look for filemon.h in /usr/include/dev/filemon first. 33053955d011SMarcel Moolenaar 33063955d011SMarcel Moolenaar2012-06-19 Simon J. Gerraty <sjg@bad.crufty.net> 33073955d011SMarcel Moolenaar 33083955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120612 33093955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33103955d011SMarcel Moolenaar o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler 33113955d011SMarcel Moolenaar for greater portability. 33123955d011SMarcel Moolenaar o unit-tests/forloop: check that .for works as expected wrt 33133955d011SMarcel Moolenaar number of times and with "quoted strings". 33143955d011SMarcel Moolenaar 33153955d011SMarcel Moolenaar2012-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 33163955d011SMarcel Moolenaar 33173955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120606 33183955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33193955d011SMarcel Moolenaar o compat.c: use kill(2) rather than raise(3). 33203955d011SMarcel Moolenaar * configure.in: look for sys/dev/filemon 33213955d011SMarcel Moolenaar * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile 33223955d011SMarcel Moolenaar and pass BOOTSTRAP_XTRAS to boot-strap. 33233955d011SMarcel Moolenaar 33243955d011SMarcel Moolenaar2012-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 33253955d011SMarcel Moolenaar 33263955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120604 33273955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33283955d011SMarcel Moolenaar o util.c and var.c share same var for tracking if environ 33293955d011SMarcel Moolenaar has been reallocated. 33303955d011SMarcel Moolenaar o util.c provide getenv with setenv. 33313955d011SMarcel Moolenaar * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL 33323955d011SMarcel Moolenaar when the shell actively strips .MAKE.* from the environment. 33333955d011SMarcel Moolenaar We still refer to the variable always as .MAKE.LEVEL 33343955d011SMarcel Moolenaar * util.c fix bug in findenv() was finding prefix of name. 33353955d011SMarcel Moolenaar * compat.c: re-raising SIGINT etc after running .INTERRUPT 33363955d011SMarcel Moolenaar results in more reliable termination of all activity on many 33373955d011SMarcel Moolenaar platforms. 33383955d011SMarcel Moolenaar 33393955d011SMarcel Moolenaar2012-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 33403955d011SMarcel Moolenaar 33413955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120602 33423955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33433955d011SMarcel Moolenaar o for.c: handle quoted items in .for list 33443955d011SMarcel Moolenaar 33453955d011SMarcel Moolenaar2012-05-30 Simon J. Gerraty <sjg@bad.crufty.net> 33463955d011SMarcel Moolenaar 33473955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120530 33483955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33493955d011SMarcel Moolenaar o compat.c: ignore empty command. 33503955d011SMarcel Moolenaar 33513955d011SMarcel Moolenaar2012-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 33523955d011SMarcel Moolenaar 33533955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120524 33543955d011SMarcel Moolenaar * FILES: add bsd.after-import.mk: 33553955d011SMarcel Moolenaar A simple means of integrating bmake into a BSD build system. 33563955d011SMarcel Moolenaar 33573955d011SMarcel Moolenaar2012-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 33583955d011SMarcel Moolenaar 33593955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120520 33603955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33613955d011SMarcel Moolenaar o increased limit for nested conditionals. 33623955d011SMarcel Moolenaar 33633955d011SMarcel Moolenaar2012-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 33643955d011SMarcel Moolenaar 33653955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120518 33663955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33673955d011SMarcel Moolenaar o use _exit(2) in signal hanlder 33683955d011SMarcel Moolenaar o Don't use the [dir] cache when building nodes that might have 33693955d011SMarcel Moolenaar changed since the last exec. 33703955d011SMarcel Moolenaar o Avoid nested extern declaration warnings. 33713955d011SMarcel Moolenaar 33723955d011SMarcel Moolenaar2012-04-27 Simon J. Gerraty <sjg@bad.crufty.net> 33733955d011SMarcel Moolenaar 33743955d011SMarcel Moolenaar * meta.c (fgetLine): avoid %z - not portable. 33753955d011SMarcel Moolenaar * parse.c: Since we moved include of sys/mman.h 33763955d011SMarcel Moolenaar and def's of MAP_COPY etc. we got dups from a merge. 33773955d011SMarcel Moolenaar 33783955d011SMarcel Moolenaar2012-04-24 Simon J. Gerraty <sjg@bad.crufty.net> 33793955d011SMarcel Moolenaar 33803955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 33813955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33823955d011SMarcel Moolenaar o restore duplicate supression in .MAKE.MAKEFILES 33833955d011SMarcel Moolenaar runtime saving can be significant. 33843955d011SMarcel Moolenaar o Var_Subst() uses Buf_DestroyCompact() to reduce memory 33853955d011SMarcel Moolenaar consumption up to 20%. 33863955d011SMarcel Moolenaar 33873955d011SMarcel Moolenaar2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 33883955d011SMarcel Moolenaar 33893955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 33903955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33913955d011SMarcel Moolenaar o remove duplicate supression in .MAKE.MAKEFILES 33923955d011SMarcel Moolenaar o improved dir cache behavior 33933955d011SMarcel Moolenaar o gmake'ish export command 33943955d011SMarcel Moolenaar 33953955d011SMarcel Moolenaar2012-03-25 Simon J. Gerraty <sjg@bad.crufty.net> 33963955d011SMarcel Moolenaar 33973955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120325 33983955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33993955d011SMarcel Moolenaar o fix parsing of :[#] in conditionals. 34003955d011SMarcel Moolenaar 34013955d011SMarcel Moolenaar2012-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 34023955d011SMarcel Moolenaar 34033955d011SMarcel Moolenaar * Makefile.in: replace use of .Nx in bmake.1 with NetBSD 34043955d011SMarcel Moolenaar since some systems cannot cope with .Nx <version> 34053955d011SMarcel Moolenaar 34063955d011SMarcel Moolenaar2011-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 34073955d011SMarcel Moolenaar 34083955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111111 34093955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34103955d011SMarcel Moolenaar o debug output for .PARSEDIR and .PARSEFILE 34113955d011SMarcel Moolenaar 34123955d011SMarcel Moolenaar2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 34133955d011SMarcel Moolenaar 34143955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111010 34153955d011SMarcel Moolenaar 34163955d011SMarcel Moolenaar2011-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 34173955d011SMarcel Moolenaar 34183955d011SMarcel Moolenaar * boot-strap: check for an expected file in the dirs we look for. 34193955d011SMarcel Moolenaar * make-bootstrap.sh: pass on LDSTATIC 34203955d011SMarcel Moolenaar 34213955d011SMarcel Moolenaar2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 34223955d011SMarcel Moolenaar 34233955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111001 34243955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34253955d011SMarcel Moolenaar o ensure .PREFIX is set for .PHONY 34263955d011SMarcel Moolenaar and .TARGET set for .PHONY run via .END 34273955d011SMarcel Moolenaar o __dead used consistently 34283955d011SMarcel Moolenaar 34293955d011SMarcel Moolenaar2011-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 34303955d011SMarcel Moolenaar 34313955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-) 34323955d011SMarcel Moolenaar 34333955d011SMarcel Moolenaar2011-09-05 Simon J. Gerraty <sjg@bad.crufty.net> 34343955d011SMarcel Moolenaar 34353955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110905 34363955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34373955d011SMarcel Moolenaar o meta_oodate: ignore makeDependfile 34383955d011SMarcel Moolenaar 34393955d011SMarcel Moolenaar2011-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 34403955d011SMarcel Moolenaar 34413955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110828 34423955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34433955d011SMarcel Moolenaar o silent=yes in .MAKE.MODE causes meta mode to mark targets 34443955d011SMarcel Moolenaar as SILENT if a .meta file is created 34453955d011SMarcel Moolenaar 34463955d011SMarcel Moolenaar2011-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 34473955d011SMarcel Moolenaar 34483955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110818 34493955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34503955d011SMarcel Moolenaar o in meta mode, if target flagged .META a missing .meta file 34513955d011SMarcel Moolenaar means target is out-of-date 34523955d011SMarcel Moolenaar o fixes for gcc 4.5 warnings 34533955d011SMarcel Moolenaar o simplify job printing code 34543955d011SMarcel Moolenaar 34553955d011SMarcel Moolenaar2011-08-09 Simon J. Gerraty <sjg@bad.crufty.net> 34563955d011SMarcel Moolenaar 34573955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110808 34583955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34593955d011SMarcel Moolenaar o do not touch OP_SPECIAL targets when doing make -t 34603955d011SMarcel Moolenaar 34613955d011SMarcel Moolenaar2011-06-22 Simon J. Gerraty <sjg@bad.crufty.net> 34623955d011SMarcel Moolenaar 34633955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110622 34643955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34653955d011SMarcel Moolenaar o meta_oodate detect corrupted .meta file and declare oodate. 34663955d011SMarcel Moolenaar * configure.in: add check for setsid 34673955d011SMarcel Moolenaar 34683955d011SMarcel Moolenaar2011-06-07 Simon J. Gerraty <sjg@bad.crufty.net> 34693955d011SMarcel Moolenaar 34703955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 34713955d011SMarcel Moolenaar o unit-tests/modts now works on MirBSD 34723955d011SMarcel Moolenaar 34733955d011SMarcel Moolenaar2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 34743955d011SMarcel Moolenaar 34753955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110606 34763955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34773955d011SMarcel Moolenaar o ApplyModifiers: when we parse a variable which is not 34783955d011SMarcel Moolenaar the entire modifier string, or not followed by ':', do not 34793955d011SMarcel Moolenaar consider it as containing modifiers. 34803955d011SMarcel Moolenaar o loadfile: ensure newline at end of mapped file. 34813955d011SMarcel Moolenaar 34823955d011SMarcel Moolenaar2011-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 34833955d011SMarcel Moolenaar 34843955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110505 34853955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34863955d011SMarcel Moolenaar o .MAKE.META.BAILIWICK - list of prefixes which define the scope 34873955d011SMarcel Moolenaar of make's control. In meta mode, any generated file within 34883955d011SMarcel Moolenaar said bailiwick, which is found to be missing, causes current 34893955d011SMarcel Moolenaar target to be out-of-date. 34903955d011SMarcel Moolenaar 34913955d011SMarcel Moolenaar2011-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 34923955d011SMarcel Moolenaar 34933955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110411 34943955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34953955d011SMarcel Moolenaar o when long modifiers fail to match, check sysV style. 34963955d011SMarcel Moolenaar - add a test case 34973955d011SMarcel Moolenaar 34983955d011SMarcel Moolenaar2011-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 34993955d011SMarcel Moolenaar 35003955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110410 35013955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35023955d011SMarcel Moolenaar o :hash - cheap 32bit hash of value 35033955d011SMarcel Moolenaar o :localtime, :gmtime - use value as format string for strftime. 35043955d011SMarcel Moolenaar 35053955d011SMarcel Moolenaar2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 35063955d011SMarcel Moolenaar 35073955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110330 35083955d011SMarcel Moolenaar mostly because its a cooler version. 35093955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35103955d011SMarcel Moolenaar o NetBSD tags for meta.[ch] 35113955d011SMarcel Moolenaar o job.c call meta_job_finish() after meta_job_error(). 35123955d011SMarcel Moolenaar o meta_job_error() should call meta_job_finish() to ensure 35133955d011SMarcel Moolenaar .meta file is closed, and safe to copy - if .ERROR target wants. 35143955d011SMarcel Moolenaar meta_job_finish() is safe to call repeatedly. 35153955d011SMarcel Moolenaar 35163955d011SMarcel Moolenaar2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net> 35173955d011SMarcel Moolenaar 35183955d011SMarcel Moolenaar * unit-tests/modts: use printf if it is a builtin, 35193955d011SMarcel Moolenaar to save us from MirBSD 35203955d011SMarcel Moolenaar 35213955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110329 35223955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35233955d011SMarcel Moolenaar o fix for use after free() in CondDoExists(). 35243955d011SMarcel Moolenaar o meta_oodate() report extra commands and return earlier. 35253955d011SMarcel Moolenaar 35263955d011SMarcel Moolenaar2011-03-27 Simon J. Gerraty <sjg@bad.crufty.net> 35273955d011SMarcel Moolenaar 35283955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110327 35293955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35303955d011SMarcel Moolenaar o meta.c, if .MAKE.MODE contains curdirOk=yes 35313955d011SMarcel Moolenaar allow creating .meta files in .CURDIR 35323955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): aparently at least on linux distro 35333955d011SMarcel Moolenaar formats the output of 'type' differently - so eat any "()" 35343955d011SMarcel Moolenaar 35353955d011SMarcel Moolenaar2011-03-06 Simon J. Gerraty <sjg@bad.crufty.net> 35363955d011SMarcel Moolenaar 35373955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110306 35383955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35393955d011SMarcel Moolenaar o meta.c, only do getcwd() once 35403955d011SMarcel Moolenaar 35413955d011SMarcel Moolenaar2011-03-05 Simon J. Gerraty <sjg@bad.crufty.net> 35423955d011SMarcel Moolenaar 35433955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110305 35443955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35453955d011SMarcel Moolenaar o correct sysV substitution handling of empty lhs and variable 35463955d011SMarcel Moolenaar o correct exists() check for dir with trailing / 35473955d011SMarcel Moolenaar o correct handling of modifiers for non-existant variables 35483955d011SMarcel Moolenaar during evaluation of conditionals. 35493955d011SMarcel Moolenaar o ensure MAP_FILE is defined. 35503955d011SMarcel Moolenaar o meta.c use curdir[] now exported by main.c 35513955d011SMarcel Moolenaar 35523955d011SMarcel Moolenaar2011-02-25 Simon J. Gerraty <sjg@bad.crufty.net> 35533955d011SMarcel Moolenaar 35543955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110225 35553955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35563955d011SMarcel Moolenaar o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after 35573955d011SMarcel Moolenaar makefiles have been read. 35583955d011SMarcel Moolenaar o fix example of :? modifier in man page. 35593955d011SMarcel Moolenaar 35603955d011SMarcel Moolenaar2011-02-13 Simon J. Gerraty <sjg@bad.crufty.net> 35613955d011SMarcel Moolenaar 35623955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110214 35633955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35643955d011SMarcel Moolenaar o meta.c handle realpath() failing when generating meta file 35653955d011SMarcel Moolenaar name. 35663955d011SMarcel Moolenaar 35673955d011SMarcel Moolenaar * sigcompat.c: convert to ansi so we can use higher warning levels. 35683955d011SMarcel Moolenaar 35693955d011SMarcel Moolenaar 35703955d011SMarcel Moolenaar2011-02-07 Simon J. Gerraty <sjg@bad.crufty.net> 35713955d011SMarcel Moolenaar 35723955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110207 35733955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35743955d011SMarcel Moolenaar o fix for bug in meta mode. 35753955d011SMarcel Moolenaar 35763955d011SMarcel Moolenaar2011-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 35773955d011SMarcel Moolenaar 35783955d011SMarcel Moolenaar * parse.c: SunOS 5.8 at least does not have MAP_FILE 35793955d011SMarcel Moolenaar 35803955d011SMarcel Moolenaar2011-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 35813955d011SMarcel Moolenaar 35823955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110101 35833955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35843955d011SMarcel Moolenaar o use mmap(2) if available, for reading makefiles 35853955d011SMarcel Moolenaar 35863955d011SMarcel Moolenaar2010-12-15 Simon J. Gerraty <sjg@bad.crufty.net> 35873955d011SMarcel Moolenaar 35883955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101215 35893955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35903955d011SMarcel Moolenaar o ensure meta_job_error() does not report a previous .meta file 35913955d011SMarcel Moolenaar as being culprit. 35923955d011SMarcel Moolenaar 35933955d011SMarcel Moolenaar2010-12-10 Simon J. Gerraty <sjg@bad.crufty.net> 35943955d011SMarcel Moolenaar 35953955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101210 35963955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35973955d011SMarcel Moolenaar o meta_oodate: track cwd per process, and only consider target 35983955d011SMarcel Moolenaar out-of-date if missing file is outside make's CWD. 35993955d011SMarcel Moolenaar Ignore files in /tmp/ etc. 36003955d011SMarcel Moolenaar o to ensure unit-tests results match, need to control LC_ALL 36013955d011SMarcel Moolenaar as well as LANG. 36023955d011SMarcel Moolenaar o fix for parsing bug in var.c 36033955d011SMarcel Moolenaar 36043955d011SMarcel Moolenaar2010-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 36053955d011SMarcel Moolenaar 36063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101126 36073955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36083955d011SMarcel Moolenaar o if stale dependency is an IMPSRC, search via .PATH 36093955d011SMarcel Moolenaar o meta_oodate: if a referenced file is missing, target is 36103955d011SMarcel Moolenaar out-of-date. 36113955d011SMarcel Moolenaar o meta_oodate: if a target uses .OODATE in its commands, 36123955d011SMarcel Moolenaar it (.OODATE) needs to be recomputed. 36133955d011SMarcel Moolenaar o keep a pointer to youngest child node, rather than just its 36143955d011SMarcel Moolenaar mtime. 36153955d011SMarcel Moolenaar 36163955d011SMarcel Moolenaar2010-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 36173955d011SMarcel Moolenaar 36183955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101101 36193955d011SMarcel Moolenaar 36203955d011SMarcel Moolenaar2010-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 36213955d011SMarcel Moolenaar 36223955d011SMarcel Moolenaar * machine.sh: like os.sh, 36233955d011SMarcel Moolenaar allow for uname -p producing useless drivel 36243955d011SMarcel Moolenaar 36253955d011SMarcel Moolenaar2010-09-13 Simon J. Gerraty <sjg@bad.crufty.net> 36263955d011SMarcel Moolenaar 36273955d011SMarcel Moolenaar * boot-strap: document configure knobs for meta and filemon. 36283955d011SMarcel Moolenaar 36293955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100911 36303955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36313955d011SMarcel Moolenaar o meta.c - meta mode 36323955d011SMarcel Moolenaar 36333955d011SMarcel Moolenaar * make-bootstrap.sh.in: handle meta.c 36343955d011SMarcel Moolenaar * configure.in: add knobs for use_meta and filemon_h 36353955d011SMarcel Moolenaar also, look for dirname, str[e]sep and strlcpy 36363955d011SMarcel Moolenaar * util.c: add simple err[x] and warn[x] 36373955d011SMarcel Moolenaar 36383955d011SMarcel Moolenaar2010-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 36393955d011SMarcel Moolenaar 36403955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): set this to ensure tests use 36413955d011SMarcel Moolenaar the same version of diff that configure tested 36423955d011SMarcel Moolenaar 36433955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100808 36443955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36453955d011SMarcel Moolenaar o in jobs mode, when we discover we cannot make something, 36463955d011SMarcel Moolenaar call PrintOnError before exit. 36473955d011SMarcel Moolenaar 36483955d011SMarcel Moolenaar2010-08-06 Simon J. Gerraty <sjg@bad.crufty.net> 36493955d011SMarcel Moolenaar 36503955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100806 36513955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36523955d011SMarcel Moolenaar o formatting fixes for ignored errors 36533955d011SMarcel Moolenaar o ensure jobs are cleaned up regardless of where wait() was called. 36543955d011SMarcel Moolenaar 36553955d011SMarcel Moolenaar2010-06-28 Simon J. Gerraty <sjg@bad.crufty.net> 36563955d011SMarcel Moolenaar 36573955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100618 36583955d011SMarcel Moolenaar * os.sh (MACHINE_ARCH): watch out for drivel from uname -p 36593955d011SMarcel Moolenaar 36603955d011SMarcel Moolenaar2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net> 36613955d011SMarcel Moolenaar 36623955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100616 36633955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36643955d011SMarcel Moolenaar o man page update 36653955d011SMarcel Moolenaar o call PrintOnError from JobFinish when we detect an error we 36663955d011SMarcel Moolenaar are not ignoring. 36673955d011SMarcel Moolenaar 36683955d011SMarcel Moolenaar2010-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 36693955d011SMarcel Moolenaar 36703955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100606 36713955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36723955d011SMarcel Moolenaar o man page update 36733955d011SMarcel Moolenaar 36743955d011SMarcel Moolenaar2010-06-05 Simon J. Gerraty <sjg@bad.crufty.net> 36753955d011SMarcel Moolenaar 36763955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100605 36773955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36783955d011SMarcel Moolenaar o use bmake_signal() which is a wrapper around sigaction() 36793955d011SMarcel Moolenaar in place of signal() 36803955d011SMarcel Moolenaar o add .export-env to allow exporting variables to environment 36813955d011SMarcel Moolenaar without tracking (so no re-export when the internal value is 36823955d011SMarcel Moolenaar changed). 36833955d011SMarcel Moolenaar 36843955d011SMarcel Moolenaar2010-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 36853955d011SMarcel Moolenaar 36863955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100524 36873955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36883955d011SMarcel Moolenaar o fix for .info et al being greedy. 36893955d011SMarcel Moolenaar 36903955d011SMarcel Moolenaar2010-05-23 Simon J. Gerraty <sjg@bad.crufty.net> 36913955d011SMarcel Moolenaar 36923955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100520 36933955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36943955d011SMarcel Moolenaar o back to using realpath on argv[0] 36953955d011SMarcel Moolenaar but only if contains '/' and does not start with '/'. 36963955d011SMarcel Moolenaar 36973955d011SMarcel Moolenaar2010-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 36983955d011SMarcel Moolenaar 36993955d011SMarcel Moolenaar * boot-strap: use absolute path for bmake when running tests. 37003955d011SMarcel Moolenaar 37013955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100510 37023955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37033955d011SMarcel Moolenaar o revert use of realpath on argv[0] 37043955d011SMarcel Moolenaar too many corner cases. 37053955d011SMarcel Moolenaar o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target. 37063955d011SMarcel Moolenaar 37073955d011SMarcel Moolenaar2010-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 37083955d011SMarcel Moolenaar 37093955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100505 37103955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37113955d011SMarcel Moolenaar o fix for missed SIGCHLD when compiled with SunPRO 37123955d011SMarcel Moolenaar actually for bmake, defining FORCE_POSIX_SIGNALS would have 37133955d011SMarcel Moolenaar done the job. 37143955d011SMarcel Moolenaar 37153955d011SMarcel Moolenaar2010-04-30 Simon J. Gerraty <sjg@bad.crufty.net> 37163955d011SMarcel Moolenaar 37173955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100430 37183955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37193955d011SMarcel Moolenaar o fflush stdout before writing to stdout 37203955d011SMarcel Moolenaar 37213955d011SMarcel Moolenaar2010-04-23 Simon J. Gerraty <sjg@bad.crufty.net> 37223955d011SMarcel Moolenaar 37233955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100423 37243955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37253955d011SMarcel Moolenaar o updated unit tests for Haiku (this time for sure). 37263955d011SMarcel Moolenaar * boot-strap: based on patch from joerg 37273955d011SMarcel Moolenaar honor --with-default-sys-path better. 37283955d011SMarcel Moolenaar * boot-strap: remove mention of --with-prefix-sys-path 37293955d011SMarcel Moolenaar 37303955d011SMarcel Moolenaar2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net> 37313955d011SMarcel Moolenaar 37323955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100422 37333955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37343955d011SMarcel Moolenaar o fix for vfork() on Darwin. 37353955d011SMarcel Moolenaar o fix for bogus $TMPDIR. 37363955d011SMarcel Moolenaar o set .MAKE.MODE=compat for -B 37373955d011SMarcel Moolenaar o set .MAKE.JOBS=max_jobs for -j max_jobs 37383955d011SMarcel Moolenaar o allow unit-tests to run without any *.mk 37393955d011SMarcel Moolenaar o unit-tests/modmisc be more conservative in dirs presumed to exist. 37403955d011SMarcel Moolenaar * boot-strap: ignore /usr/share/mk except on NetBSD. 37413955d011SMarcel Moolenaar * unit-tests/Makefile.in: set LANG=C when running unit-tests to 37423955d011SMarcel Moolenaar ensure sort(1) behaves as expected. 37433955d011SMarcel Moolenaar 37443955d011SMarcel Moolenaar2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 37453955d011SMarcel Moolenaar 37463955d011SMarcel Moolenaar * boot-strap: add FindHereOrAbove so we can use -m .../mk 37473955d011SMarcel Moolenaar 37483955d011SMarcel Moolenaar2010-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 37493955d011SMarcel Moolenaar 37503955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100420 37513955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37523955d011SMarcel Moolenaar o fix for variable realpath() behavior. 37533955d011SMarcel Moolenaar we have to stat(2) the result to be sure. 37543955d011SMarcel Moolenaar o fix for .export (all) when nested vars use :sh 37553955d011SMarcel Moolenaar 37563955d011SMarcel Moolenaar2010-04-14 Simon J. Gerraty <sjg@bad.crufty.net> 37573955d011SMarcel Moolenaar 37583955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100414 37593955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37603955d011SMarcel Moolenaar o use realpath to resolve argv[0] (for .MAKE) if needed. 37613955d011SMarcel Moolenaar o add realpath from libc. 37623955d011SMarcel Moolenaar o add :tA to resolve variable via realpath(3) if possible. 37633955d011SMarcel Moolenaar 37643955d011SMarcel Moolenaar2010-04-08 Simon J. Gerraty <sjg@bad.crufty.net> 37653955d011SMarcel Moolenaar 37663955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100408 37673955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37683955d011SMarcel Moolenaar o unit tests for .ERROR, .error 37693955d011SMarcel Moolenaar o fix for .ERROR to ensure it cannot be default target. 37703955d011SMarcel Moolenaar 37713955d011SMarcel Moolenaar2010-04-06 Simon J. Gerraty <sjg@bad.crufty.net> 37723955d011SMarcel Moolenaar 37733955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100406 37743955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37753955d011SMarcel Moolenaar o fix for compat mode "Error code" going to debug_file. 37763955d011SMarcel Moolenaar o fix for .ALLSRC being populated twice. 37773955d011SMarcel Moolenaar o support for .info, .warning and .error directives 37783955d011SMarcel Moolenaar o .MAKE.MODE to control make's operational mode 37793955d011SMarcel Moolenaar o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile 37803955d011SMarcel Moolenaar name(s). 37813955d011SMarcel Moolenaar o .MAKE.DEPENDFILE to control the name of the depend file 37823955d011SMarcel Moolenaar o .ERROR target - run on failure. 37833955d011SMarcel Moolenaar 37843955d011SMarcel Moolenaar2010-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 37853955d011SMarcel Moolenaar 37863955d011SMarcel Moolenaar * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile 37873955d011SMarcel Moolenaar 37883955d011SMarcel Moolenaar * os.sh,arch.c: patch for Haiku from joerg at netbsd 37893955d011SMarcel Moolenaar 37903955d011SMarcel Moolenaar2010-03-17 Simon J. Gerraty <sjg@bad.crufty.net> 37913955d011SMarcel Moolenaar 37923955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100222 37933955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 37943955d011SMarcel Moolenaar o better error msg for .for with mutiple inter vars 37953955d011SMarcel Moolenaar 37963955d011SMarcel Moolenaar * boot-strap: 37973955d011SMarcel Moolenaar o use make-bootstrap.sh from joerg at netbsd 37983955d011SMarcel Moolenaar to avoid the need for a native make when bootstrapping. 37993955d011SMarcel Moolenaar o add "" everywhere ;-) 38003955d011SMarcel Moolenaar o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1 38013955d011SMarcel Moolenaar otherwise the pre-formated version. 38023955d011SMarcel Moolenaar 38033955d011SMarcel Moolenaar2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net> 38043955d011SMarcel Moolenaar 38053955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100102 38063955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38073955d011SMarcel Moolenaar o fix for -m .../ 38083955d011SMarcel Moolenaar 38093955d011SMarcel Moolenaar2009-11-18 Simon J. Gerraty <sjg@void.crufty.net> 38103955d011SMarcel Moolenaar 38113955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20091118 38123955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38133955d011SMarcel Moolenaar o .unexport 38143955d011SMarcel Moolenaar o report lines that start with '.' and should have ':' 38153955d011SMarcel Moolenaar (catch typo's of .el*if). 38163955d011SMarcel Moolenaar 38173955d011SMarcel Moolenaar2009-10-30 Simon J. Gerraty <sjg@void.crufty.net> 38183955d011SMarcel Moolenaar 38193955d011SMarcel Moolenaar * configure.in: Ensure that srcdir and mksrc are absolute paths. 38203955d011SMarcel Moolenaar 38213955d011SMarcel Moolenaar2009-10-09 Simon J. Gerraty <sjg@void.crufty.net> 38223955d011SMarcel Moolenaar 38233955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): fix version to 20091007 38243955d011SMarcel Moolenaar 38253955d011SMarcel Moolenaar2009-10-07 Simon J. Gerraty <sjg@void.crufty.net> 38263955d011SMarcel Moolenaar 38273955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 200910007 38283955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38293955d011SMarcel Moolenaar o fix for parsing of :S;...;...; applied to .for loop iterator 38303955d011SMarcel Moolenaar appearing in a dependency line. 38313955d011SMarcel Moolenaar 38323955d011SMarcel Moolenaar2009-09-09 Simon J. Gerraty <sjg@void.crufty.net> 38333955d011SMarcel Moolenaar 38343955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090909 38353955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38363955d011SMarcel Moolenaar o fix for -C, .CURDIR and .OBJDIR 38373955d011SMarcel Moolenaar * boot-strap: 38383955d011SMarcel Moolenaar o allow share_dir to be set independent of prefix. 38393955d011SMarcel Moolenaar o select default share_dir better when prefix ends in $HOST_TARGET 38403955d011SMarcel Moolenaar o if FORCE_BSD_MK etc were set, include them in the suggested 38413955d011SMarcel Moolenaar install-mk command. 38423955d011SMarcel Moolenaar 38433955d011SMarcel Moolenaar2009-09-08 Simon J. Gerraty <sjg@void.crufty.net> 38443955d011SMarcel Moolenaar 38453955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090908 38463955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38473955d011SMarcel Moolenaar o .MAKE.LEVEL for recursion tracking 38483955d011SMarcel Moolenaar o fix for :M scanning \: 38493955d011SMarcel Moolenaar 38503955d011SMarcel Moolenaar2009-09-03 Simon J. Gerraty <sjg@void.crufty.net> 38513955d011SMarcel Moolenaar 38523955d011SMarcel Moolenaar * configure.in: Don't -D__EXTENSIONS__ if 38533955d011SMarcel Moolenaar AC_USE_SYSTEM_EXTENSIONS says "no". 38543955d011SMarcel Moolenaar 38553955d011SMarcel Moolenaar2009-08-26 Simon J. Gerraty <sjg@void.crufty.net> 38563955d011SMarcel Moolenaar 38573955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090826 38583955d011SMarcel Moolenaar Simplify MAKE_VERSION to just the bare date. 38593955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38603955d011SMarcel Moolenaar o -C directory support. 38613955d011SMarcel Moolenaar o support for SIGINFO 38623955d011SMarcel Moolenaar o use $TMPDIR for temp files. 38633955d011SMarcel Moolenaar o child of vfork should be careful about modifying parent's state. 38643955d011SMarcel Moolenaar 38653955d011SMarcel Moolenaar 38663955d011SMarcel Moolenaar2009-03-26 Simon J. Gerraty <sjg@void.crufty.net> 38673955d011SMarcel Moolenaar 38683955d011SMarcel Moolenaar * Appy some patches for MiNT from David Brownlee 38693955d011SMarcel Moolenaar 38703955d011SMarcel Moolenaar2009-02-26 Simon J. Gerraty <sjg@void.crufty.net> 38713955d011SMarcel Moolenaar 38723955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090222 38733955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38743955d011SMarcel Moolenaar o Possible null pointer de-ref in Var_Set. 38753955d011SMarcel Moolenaar 38763955d011SMarcel Moolenaar2009-02-08 Simon J. Gerraty <sjg@void.crufty.net> 38773955d011SMarcel Moolenaar 38783955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090204 38793955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38803955d011SMarcel Moolenaar o bmake_malloc et al moved to their own .c 38813955d011SMarcel Moolenaar o Count both () and {} when looking for the end of a :M pattern 38823955d011SMarcel Moolenaar o Change 'Buffer' so that it is the actual struct, not a pointer to it. 38833955d011SMarcel Moolenaar o strlist.c - functions for processing extendable arrays of pointers to strings. 38843955d011SMarcel Moolenaar o ClientData replaced with void *, so const void * can be used. 38853955d011SMarcel Moolenaar o New debug flag C for DEBUG_CWD 38863955d011SMarcel Moolenaar 38873955d011SMarcel Moolenaar2008-11-11 Simon J. Gerraty <sjg@void.crufty.net> 38883955d011SMarcel Moolenaar 38893955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081111 38903955d011SMarcel Moolenaar Apply patch from Joerg Sonnenberge to 38913955d011SMarcel Moolenaar configure.in: 38923955d011SMarcel Moolenaar o remove some redundant checks 38933955d011SMarcel Moolenaar o check for emlloc etc only in libutil and require the whole family. 38943955d011SMarcel Moolenaar util.c: 38953955d011SMarcel Moolenaar o remove [v]asprintf which is no longer used. 38963955d011SMarcel Moolenaar 38973955d011SMarcel Moolenaar2008-11-04 Simon J. Gerraty <sjg@void.crufty.net> 38983955d011SMarcel Moolenaar 38993955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081101 39003955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39013955d011SMarcel Moolenaar o util.c: avoid use of putenv() - christos 39023955d011SMarcel Moolenaar 39033955d011SMarcel Moolenaar2008-10-30 Simon J. Gerraty <sjg@void.crufty.net> 39043955d011SMarcel Moolenaar 39053955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081030 39063955d011SMarcel Moolenaar pick up man page tweaks. 39073955d011SMarcel Moolenaar 39083955d011SMarcel Moolenaar2008-10-29 Simon J. Gerraty <sjg@void.crufty.net> 39093955d011SMarcel Moolenaar 39103955d011SMarcel Moolenaar * Makefile.in: move processing of LIBOBJS to after is definition! 39113955d011SMarcel Moolenaar thus we'll have getenv.c in SRCS only if needed. 39123955d011SMarcel Moolenaar 39133955d011SMarcel Moolenaar * make.1: add examples of how to use :? 39143955d011SMarcel Moolenaar 39153955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081029 39163955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39173955d011SMarcel Moolenaar o fix for .END processing with -j 39183955d011SMarcel Moolenaar o segfault from Parse_Error when no makefile is open 39193955d011SMarcel Moolenaar o handle numeric expressions in any variable expansion 39203955d011SMarcel Moolenaar o debug output now defaults to stderr, -dF to change it - apb 39213955d011SMarcel Moolenaar o make now uses bmake_malloc etc so that it can build natively 39223955d011SMarcel Moolenaar on A/UX - wasn't an issue for bmake, but we want to keep in sync. 39233955d011SMarcel Moolenaar 39243955d011SMarcel Moolenaar2008-09-27 Simon J. Gerraty <sjg@void.crufty.net> 39253955d011SMarcel Moolenaar 39263955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080808 39273955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39283955d011SMarcel Moolenaar o fix for PR/38840: Pierre Pronchery: make crashes while parsing 39293955d011SMarcel Moolenaar long lines in Makefiles 39303955d011SMarcel Moolenaar o optimizations for VarQuote by joerg 39313955d011SMarcel Moolenaar o fix for PR/38756: dominik: make dumps core on invalid makefile 39323955d011SMarcel Moolenaar 39333955d011SMarcel Moolenaar2008-05-15 Simon J. Gerraty <sjg@void.crufty.net> 39343955d011SMarcel Moolenaar 39353955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080515 39363955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39373955d011SMarcel Moolenaar o fix skip setting vars in VAR_GLOBAL context, to handle 39383955d011SMarcel Moolenaar cases where VAR_CMD is used for other than command line vars. 39393955d011SMarcel Moolenaar 39403955d011SMarcel Moolenaar2008-05-14 Simon J. Gerraty <sjg@void.crufty.net> 39413955d011SMarcel Moolenaar 39423955d011SMarcel Moolenaar * boot-strap (make_version): we may need to look in 39433955d011SMarcel Moolenaar $prefix/share/mk for sys.mk 39443955d011SMarcel Moolenaar 39453955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080514 39463955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39473955d011SMarcel Moolenaar o skip setting vars in VAR_GLOBAL context, when already set in 39483955d011SMarcel Moolenaar VAR_CMD which takes precedence. 39493955d011SMarcel Moolenaar 39503955d011SMarcel Moolenaar2008-03-30 Simon J. Gerraty <sjg@void.crufty.net> 39513955d011SMarcel Moolenaar 39523955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080330 39533955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39543955d011SMarcel Moolenaar o fix for ?= when LHS contains variable reference. 39553955d011SMarcel Moolenaar 39563955d011SMarcel Moolenaar2008-02-15 Simon J. Gerraty <sjg@void.crufty.net> 39573955d011SMarcel Moolenaar 39583955d011SMarcel Moolenaar * merge some patches from NetBSD pkgsrc. 39593955d011SMarcel Moolenaar 39603955d011SMarcel Moolenaar * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of 39613955d011SMarcel Moolenaar the MAKSYSPATH used during bootstrap. 39623955d011SMarcel Moolenaar 39633955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080215 39643955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39653955d011SMarcel Moolenaar o warn if non-space chars follow 'empty' in a conditional. 39663955d011SMarcel Moolenaar 39673955d011SMarcel Moolenaar2008-01-18 Simon J. Gerraty <sjg@void.crufty.net> 39683955d011SMarcel Moolenaar 39693955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080118 39703955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39713955d011SMarcel Moolenaar o consider dependencies read from .depend as optional - dsl 39723955d011SMarcel Moolenaar o remember when buffer for reading makefile grows - dsl 39733955d011SMarcel Moolenaar o add -dl (aka LOUD) - David O'Brien 39743955d011SMarcel Moolenaar 39753955d011SMarcel Moolenaar2007-10-22 Simon J. Gerraty <sjg@void.crufty.net> 39763955d011SMarcel Moolenaar 39773955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071022 39783955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39793955d011SMarcel Moolenaar o Allow .PATH<suffix> to be used for .include "" 39803955d011SMarcel Moolenaar 39813955d011SMarcel Moolenaar * boot-strap: source default settings from .bmake-boot-strap.rc 39823955d011SMarcel Moolenaar 39833955d011SMarcel Moolenaar2007-10-16 Simon J. Gerraty <sjg@void.crufty.net> 39843955d011SMarcel Moolenaar 39853955d011SMarcel Moolenaar * Makefile.in: fix maninstall on various systems 39863955d011SMarcel Moolenaar provided that our man.mk is used. 39873955d011SMarcel Moolenaar For non-BSD systems we install the preformatted page 39883955d011SMarcel Moolenaar into $MANDIR/cat1 39893955d011SMarcel Moolenaar 39903955d011SMarcel Moolenaar2007-10-15 Simon J. Gerraty <sjg@void.crufty.net> 39913955d011SMarcel Moolenaar 39923955d011SMarcel Moolenaar * boot-strap: make bmake.1 too, so maninstall works. 39933955d011SMarcel Moolenaar 39943955d011SMarcel Moolenaar2007-10-14 Simon J. Gerraty <sjg@void.crufty.net> 39953955d011SMarcel Moolenaar 39963955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071014 39973955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39983955d011SMarcel Moolenaar o revamped handling of defshell - configure no longer needs to 39993955d011SMarcel Moolenaar know the content of the shells array - apb 40003955d011SMarcel Moolenaar o stop Var_Subst modifying its input - apb 40013955d011SMarcel Moolenaar o avoid calling ParseTrackInput too often - dsl 40023955d011SMarcel Moolenaar 40033955d011SMarcel Moolenaar2007-10-11 Simon J. Gerraty <sjg@void.crufty.net> 40043955d011SMarcel Moolenaar 40053955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071011 40063955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40073955d011SMarcel Moolenaar o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path. 40083955d011SMarcel Moolenaar 40093955d011SMarcel Moolenaar * sigcompat.c: some tweaks for HP-UX 11.x based on 40103955d011SMarcel Moolenaar patch from Tobias Nygren 40113955d011SMarcel Moolenaar 40123955d011SMarcel Moolenaar * configure.in: update handling of --with-defshell to match 40133955d011SMarcel Moolenaar new make behavior. --with-defshell=/usr/xpg4/bin/sh 40143955d011SMarcel Moolenaar will now do what one might hope - provided the chosen shell 40153955d011SMarcel Moolenaar behaves enough like sh. 40163955d011SMarcel Moolenaar 40173955d011SMarcel Moolenaar2007-10-08 Simon J. Gerraty <sjg@void.crufty.net> 40183955d011SMarcel Moolenaar 40193955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20071008 40203955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40213955d011SMarcel Moolenaar o .MAKE.JOB.PREFIX - control the token output before jobs - sjg 40223955d011SMarcel Moolenaar o .export/.MAKE.EXPORTED - export of variables - sjg 40233955d011SMarcel Moolenaar o .MAKE.MAKEFILES - track all makefiles read - sjg 40243955d011SMarcel Moolenaar o performance improvements - dsl 40253955d011SMarcel Moolenaar o revamp parallel job scheduling - dsl 40263955d011SMarcel Moolenaar 40273955d011SMarcel Moolenaar2006-07-28 Simon J. Gerraty <sjg@void.crufty.net> 40283955d011SMarcel Moolenaar 40293955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060728 40303955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40313955d011SMarcel Moolenaar o extra debug info during variable and cond processing - sjg 40323955d011SMarcel Moolenaar o shell definition now covers newline - rillig 40333955d011SMarcel Moolenaar o minor mem leak in PrintOnError - sjg 40343955d011SMarcel Moolenaar 40353955d011SMarcel Moolenaar2006-05-11 Simon J. Gerraty <sjg@void.crufty.net> 40363955d011SMarcel Moolenaar 40373955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060511 40383955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40393955d011SMarcel Moolenaar o more memory leaks - coverity 40403955d011SMarcel Moolenaar o possible overflow in ArchFindMember - coverity 40413955d011SMarcel Moolenaar o extract variable modifier code out of Var_Parse() 40423955d011SMarcel Moolenaar so it can be called recursively - sjg 40433955d011SMarcel Moolenaar o unit-tests/moderrs - sjg 40443955d011SMarcel Moolenaar 40453955d011SMarcel Moolenaar2006-04-12 Simon J. Gerraty <sjg@void.crufty.net> 40463955d011SMarcel Moolenaar 40473955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060412 40483955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40493955d011SMarcel Moolenaar o fixes for some memory leaks - coverity 40503955d011SMarcel Moolenaar o only read first sys.mk etc when searching sysIncPath - sjg 40513955d011SMarcel Moolenaar 40523955d011SMarcel Moolenaar * main.c (ReadMakefile): remove hack for __INTERIX that prevented 40533955d011SMarcel Moolenaar setting ${MAKEFILE} - OBATA Akio 40543955d011SMarcel Moolenaar 40553955d011SMarcel Moolenaar2006-03-18 Simon J. Gerraty <sjg@void.crufty.net> 40563955d011SMarcel Moolenaar 40573955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060318 40583955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40593955d011SMarcel Moolenaar o cleanup of job.c to remove remote handling, distcc is more 40603955d011SMarcel Moolenaar useful and this code was likely bit-rotting - dsl 40613955d011SMarcel Moolenaar o fix for :P modifier - sjg 40623955d011SMarcel Moolenaar * boot-strap: set default prefix to something reasonable 40633955d011SMarcel Moolenaar (for me anyway). 40643955d011SMarcel Moolenaar 40653955d011SMarcel Moolenaar2006-03-01 Simon J. Gerraty <sjg@void.crufty.net> 40663955d011SMarcel Moolenaar 40673955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060301 40683955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40693955d011SMarcel Moolenaar o make .WAIT apply recursively, document and test case - apb 40703955d011SMarcel Moolenaar o allow variable modifiers in a variable appear anywhere in 40713955d011SMarcel Moolenaar modifier list, document and test case - sjg 40723955d011SMarcel Moolenaar 40733955d011SMarcel Moolenaar2006-02-22 Simon J. Gerraty <sjg@void.crufty.net> 40743955d011SMarcel Moolenaar 40753955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060222 40763955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40773955d011SMarcel Moolenaar o improved job token handling - dsl 40783955d011SMarcel Moolenaar o SIG_DFL the correct signal before exec - dsl 40793955d011SMarcel Moolenaar o more debug info during parsing - dsl 40803955d011SMarcel Moolenaar o allow variable modifiers to be specified via variable - sjg 40813955d011SMarcel Moolenaar * boot-strap: explain why we died if no mksrc 40823955d011SMarcel Moolenaar 40833955d011SMarcel Moolenaar2005-11-05 Simon J. Gerraty <sjg@void.crufty.net> 40843955d011SMarcel Moolenaar 40853955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051105 40863955d011SMarcel Moolenaar * configure.in: always set default_sys_path 40873955d011SMarcel Moolenaar default is ${prefix}/share/mk 40883955d011SMarcel Moolenaar - remove prefix_sys_path, anyone wanting more than above 40893955d011SMarcel Moolenaar needs to set it manually. 40903955d011SMarcel Moolenaar 40913955d011SMarcel Moolenaar2005-11-04 Simon J. Gerraty <sjg@void.crufty.net> 40923955d011SMarcel Moolenaar 40933955d011SMarcel Moolenaar * boot-strap: make this a bit easier for pkgsrc folk. 40943955d011SMarcel Moolenaar bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to 40953955d011SMarcel Moolenaar 'mips' while pkgsrc wants 'mipseb' or 'mipsel' 40963955d011SMarcel Moolenaar 40973955d011SMarcel Moolenaar2005-11-02 Simon J. Gerraty <sjg@void.crufty.net> 40983955d011SMarcel Moolenaar 40993955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051102 41003955d011SMarcel Moolenaar * job.c (JobFinish): fix likely ancient merge lossage 41013955d011SMarcel Moolenaar fix from Todd Vierling. 41023955d011SMarcel Moolenaar * boot-strap (srcdir): allow setting mksrc=none 41033955d011SMarcel Moolenaar 41043955d011SMarcel Moolenaar2005-10-31 Simon J. Gerraty <sjg@void.crufty.net> 41053955d011SMarcel Moolenaar 41063955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051031 41073955d011SMarcel Moolenaar * ranlib.h: skip on OSF too. 41083955d011SMarcel Moolenaar (NetBSD PR 31864) 41093955d011SMarcel Moolenaar 41103955d011SMarcel Moolenaar2005-10-10 Simon J. Gerraty <sjg@void.crufty.net> 41113955d011SMarcel Moolenaar 41123955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051002 41133955d011SMarcel Moolenaar fix a silly typo 41143955d011SMarcel Moolenaar 41153955d011SMarcel Moolenaar2005-10-09 Simon J. Gerraty <sjg@void.crufty.net> 41163955d011SMarcel Moolenaar 41173955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051001 41183955d011SMarcel Moolenaar support for UnixWare and some other systems, 41193955d011SMarcel Moolenaar based on patches from pkgsrc/bootstrap 41203955d011SMarcel Moolenaar 41213955d011SMarcel Moolenaar2005-09-03 Simon J. Gerraty <sjg@void.crufty.net> 41223955d011SMarcel Moolenaar 41233955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050901 41243955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41253955d011SMarcel Moolenaar o possible parse error causing us to wander off. 41263955d011SMarcel Moolenaar 41273955d011SMarcel Moolenaar2005-06-06 Simon J. Gerraty <sjg@void.crufty.net> 41283955d011SMarcel Moolenaar 41293955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050606 41303955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41313955d011SMarcel Moolenaar o :0x modifier for randomizing a list 41323955d011SMarcel Moolenaar o fixes for a number of -Wuninitialized issues. 41333955d011SMarcel Moolenaar 41343955d011SMarcel Moolenaar2005-05-30 Simon J. Gerraty <sjg@void.crufty.net> 41353955d011SMarcel Moolenaar 41363955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050530 41373955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41383955d011SMarcel Moolenaar o Handle dependencies for .BEGIN, .END and .INTERRUPT 41393955d011SMarcel Moolenaar 41403955d011SMarcel Moolenaar * README: was seriously out of date. 41413955d011SMarcel Moolenaar 41423955d011SMarcel Moolenaar2005-03-22 Simon J. Gerraty <sjg@void.crufty.net> 41433955d011SMarcel Moolenaar 41443955d011SMarcel Moolenaar * Important to use .MAKE rather than MAKE. 41453955d011SMarcel Moolenaar 41463955d011SMarcel Moolenaar2005-03-15 Simon J. Gerraty <sjg@void.crufty.net> 41473955d011SMarcel Moolenaar 41483955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050315 41493955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41503955d011SMarcel Moolenaar o don't mistake .elsefoo for .else 41513955d011SMarcel Moolenaar o use suffix-specific search path correctly 41523955d011SMarcel Moolenaar o bunch of style nits 41533955d011SMarcel Moolenaar 41543955d011SMarcel Moolenaar2004-05-11 Simon J. Gerraty <sjg@void.crufty.net> 41553955d011SMarcel Moolenaar 41563955d011SMarcel Moolenaar * boot-strap: 41573955d011SMarcel Moolenaar o ensure that args to --src and --with-mksrc 41583955d011SMarcel Moolenaar are resolved before giving them to configure. 41593955d011SMarcel Moolenaar o add -o "objdir" so that builder can control it, 41603955d011SMarcel Moolenaar default is $OS as determined by os.sh 41613955d011SMarcel Moolenaar o add -q to suppress all the install instructions. 41623955d011SMarcel Moolenaar 41633955d011SMarcel Moolenaar2004-05-08 Simon J. Gerraty <sjg@void.crufty.net> 41643955d011SMarcel Moolenaar 41653955d011SMarcel Moolenaar * Remove __IDSTRING() 41663955d011SMarcel Moolenaar 41673955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040508 41683955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41693955d011SMarcel Moolenaar o posix fixes 41703955d011SMarcel Moolenaar - remove '-e' from compat mode 41713955d011SMarcel Moolenaar - add support for '+' command-line prefix. 41723955d011SMarcel Moolenaar o fix for handling '--' on command-line. 41733955d011SMarcel Moolenaar o fix include in lst.lib/lstInt.h to simplify '-I's 41743955d011SMarcel Moolenaar o we also picked up replacement of MAKE_BOOTSTRAP 41753955d011SMarcel Moolenaar with !MAKE_NATIVE which is a noop, but possibly confusing. 41763955d011SMarcel Moolenaar 41773955d011SMarcel Moolenaar2004-04-14 Simon J. Gerraty <sjg@void.crufty.net> 41783955d011SMarcel Moolenaar 41793955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040414 41803955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41813955d011SMarcel Moolenaar o allow quoted strings on lhs of conditionals 41823955d011SMarcel Moolenaar o issue warning when extra .else is seen 41833955d011SMarcel Moolenaar o print line numer when errors encountered during parsing from 41843955d011SMarcel Moolenaar string. 41853955d011SMarcel Moolenaar 41863955d011SMarcel Moolenaar2004-02-20 Simon J. Gerraty <sjg@void.crufty.net> 41873955d011SMarcel Moolenaar 41883955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040220 41893955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41903955d011SMarcel Moolenaar o fix for old :M parsing bug. 41913955d011SMarcel Moolenaar o re-jigged unit-tests 41923955d011SMarcel Moolenaar 41933955d011SMarcel Moolenaar2004-02-15 Simon J. Gerraty <sjg@void.crufty.net> 41943955d011SMarcel Moolenaar 41953955d011SMarcel Moolenaar * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,} 41963955d011SMarcel Moolenaar so that './bmake -f Makefile test' works. 41973955d011SMarcel Moolenaar 41983955d011SMarcel Moolenaar2004-02-14 Simon J. Gerraty <sjg@void.crufty.net> 41993955d011SMarcel Moolenaar 42003955d011SMarcel Moolenaar * Makefile.in: (BMAKE_VERSION): bump to 20040214 42013955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42023955d011SMarcel Moolenaar o search upwards for *.mk 42033955d011SMarcel Moolenaar o fix for double free of var substitution buffers 42043955d011SMarcel Moolenaar o use of getopt replaced with custom code, since the usage 42053955d011SMarcel Moolenaar (re-scanning) isn't posix compatible. 42063955d011SMarcel Moolenaar 42073955d011SMarcel Moolenaar2004-02-12 Simon J. Gerraty <sjg@void.crufty.net> 42083955d011SMarcel Moolenaar 42093955d011SMarcel Moolenaar * arch.c: don't include ranlib.h on ELF systems 42103955d011SMarcel Moolenaar (thanks to Chuck Cranor <chuck@ece.cmu.edu>). 42113955d011SMarcel Moolenaar 42123955d011SMarcel Moolenaar2004-01-18 Simon J. Gerraty <sjg@void.crufty.net> 42133955d011SMarcel Moolenaar 42143955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040118 42153955d011SMarcel Moolenaar 42163955d011SMarcel Moolenaar * boot-strap (while): export vars we assign to on cmdline 42173955d011SMarcel Moolenaar * unit-test/Makefile.in: ternary is .PHONY 42183955d011SMarcel Moolenaar 42193955d011SMarcel Moolenaar2004-01-08 Simon J. Gerraty <sjg@void.crufty.net> 42203955d011SMarcel Moolenaar 42213955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040108 42223955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42233955d011SMarcel Moolenaar o fix for ternary modifier 42243955d011SMarcel Moolenaar 42253955d011SMarcel Moolenaar2004-01-06 Simon J. Gerraty <sjg@void.crufty.net> 42263955d011SMarcel Moolenaar 42273955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040105 42283955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42293955d011SMarcel Moolenaar o fix for cond.c to handle compound expressions better 42303955d011SMarcel Moolenaar o variable expansion within sysV style replacements 42313955d011SMarcel Moolenaar 42323955d011SMarcel Moolenaar2003-12-22 Simon J. Gerraty <sjg@void.crufty.net> 42333955d011SMarcel Moolenaar 42343955d011SMarcel Moolenaar * Make portable snprintf safer - output to /dev/null first to 42353955d011SMarcel Moolenaar check space needed. 42363955d011SMarcel Moolenaar 42373955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20031222 42383955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42393955d011SMarcel Moolenaar o -dg3 to show input graph when things go wrong. 42403955d011SMarcel Moolenaar o explicitly look for makefiles in objdir if not found in curdir so 42413955d011SMarcel Moolenaar that errors in .depend etc will be reported accurarely. 42423955d011SMarcel Moolenaar o avoid use of -e in shell scripts in jobs mode, use '|| exit $?' 42433955d011SMarcel Moolenaar instead as it more accurately reflects the expected behavior and 42443955d011SMarcel Moolenaar is more consistently implemented. 42453955d011SMarcel Moolenaar o avoid use of asprintf. 42463955d011SMarcel Moolenaar 42473955d011SMarcel Moolenaar2003-09-28 Simon J. Gerraty <sjg@void.crufty.net> 42483955d011SMarcel Moolenaar 42493955d011SMarcel Moolenaar * util.c: Add asprintf and vasprintf. 42503955d011SMarcel Moolenaar 42513955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030928 42523955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42533955d011SMarcel Moolenaar :[] modifier - allows picking words from a variable. 42543955d011SMarcel Moolenaar :tW modifier - allows treating value as one big word. 42553955d011SMarcel Moolenaar W flag for :C and :S - allows treating value as one big word. 42563955d011SMarcel Moolenaar 42573955d011SMarcel Moolenaar2003-09-12 Simon J. Gerraty <sjg@void.crufty.net> 42583955d011SMarcel Moolenaar 42593955d011SMarcel Moolenaar * Merge with NetBSD make 42603955d011SMarcel Moolenaar pick up -de flag to enable printing failed command. 42613955d011SMarcel Moolenaar don't skip 1st two dir entries (normally . and ..) since 42623955d011SMarcel Moolenaar coda does not have them. 42633955d011SMarcel Moolenaar 42643955d011SMarcel Moolenaar2003-09-09 Simon J. Gerraty <sjg@void.crufty.net> 42653955d011SMarcel Moolenaar 42663955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030909 42673955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42683955d011SMarcel Moolenaar - changes for -V '${VAR}' to print fully expanded value 42693955d011SMarcel Moolenaar cf. -V VAR 42703955d011SMarcel Moolenaar - CompatRunCommand now prints the command that failed. 42713955d011SMarcel Moolenaar - several files got updated 3 clause Berkeley license. 42723955d011SMarcel Moolenaar 42733955d011SMarcel Moolenaar2003-08-02 Simon J. Gerraty <sjg@void.crufty.net> 42743955d011SMarcel Moolenaar 42753955d011SMarcel Moolenaar * boot-strap: Allow setting configure args on command line. 42763955d011SMarcel Moolenaar 42773955d011SMarcel Moolenaar2003-07-31 Simon J. Gerraty <sjg@void.crufty.net> 42783955d011SMarcel Moolenaar 42793955d011SMarcel Moolenaar * configure.in: add --with-defshell to allow sh or ksh 42803955d011SMarcel Moolenaar to be selected as default shell. 42813955d011SMarcel Moolenaar 42823955d011SMarcel Moolenaar * Makefile.in: bump version to 20030731 42833955d011SMarcel Moolenaar 42843955d011SMarcel Moolenaar * Merge with NetBSD make 42853955d011SMarcel Moolenaar Pick up .SHELL spec for ksh and associate man page changes. 42863955d011SMarcel Moolenaar Also compat mode now uses the same shell specs. 42873955d011SMarcel Moolenaar 42883955d011SMarcel Moolenaar2003-07-29 Simon J. Gerraty <sjg@void.crufty.net> 42893955d011SMarcel Moolenaar 42903955d011SMarcel Moolenaar * var.c (Var_Parse): ensure delim is initialized. 42913955d011SMarcel Moolenaar 42923955d011SMarcel Moolenaar * unit-tests/Makefile.in: use single quotes to avoid problems from 42933955d011SMarcel Moolenaar some shells. 42943955d011SMarcel Moolenaar 42953955d011SMarcel Moolenaar * makefile.boot.in: 42963955d011SMarcel Moolenaar Run the unit-tests as part of the bootstrap procedure. 42973955d011SMarcel Moolenaar 42983955d011SMarcel Moolenaar2003-07-28 Simon J. Gerraty <sjg@void.crufty.net> 42993955d011SMarcel Moolenaar 43003955d011SMarcel Moolenaar * unit-tests/Makefile.in: always force complaints from 43013955d011SMarcel Moolenaar ${TEST_MAKE} to be from 'make'. 43023955d011SMarcel Moolenaar 43033955d011SMarcel Moolenaar * configure.in: add check for 'diff -u' 43043955d011SMarcel Moolenaar also fix some old autoconf'isms 43053955d011SMarcel Moolenaar 43063955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030728. 43073955d011SMarcel Moolenaar if using GCC add -Wno-cast-qual to CFLAGS for var.o 43083955d011SMarcel Moolenaar 43093955d011SMarcel Moolenaar * Merge with NetBSD make 43103955d011SMarcel Moolenaar Pick up fix for :ts parsing error in some cases. 43113955d011SMarcel Moolenaar Pick unit-tests. 43123955d011SMarcel Moolenaar 43133955d011SMarcel Moolenaar2003-07-23 Simon J. Gerraty <sjg@void.crufty.net> 43143955d011SMarcel Moolenaar 43153955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030723. 43163955d011SMarcel Moolenaar 43173955d011SMarcel Moolenaar * var.c (Var_Parse): fix bug in :ts modifier, after const 43183955d011SMarcel Moolenaar correctness fixes, must pass nstr to VarModify. 43193955d011SMarcel Moolenaar 43203955d011SMarcel Moolenaar2003-07-14 Simon J. Gerraty <sjg@void.crufty.net> 43213955d011SMarcel Moolenaar 43223955d011SMarcel Moolenaar * Makefile.in: BMAKE_VERSION switch to a date based version. 43233955d011SMarcel Moolenaar We'll generally use the date of last import from NetBSD. 43243955d011SMarcel Moolenaar 43253955d011SMarcel Moolenaar * Merge with NetBSD make 43263955d011SMarcel Moolenaar Pick up fixes for const-correctness, now passes WARNS=3 on 43273955d011SMarcel Moolenaar NetBSD. 43283955d011SMarcel Moolenaar Pick up :ts modifier, allows controlling the separator used 43293955d011SMarcel Moolenaar between words in variable expansion. 43303955d011SMarcel Moolenaar 43313955d011SMarcel Moolenaar2003-07-11 Simon J. Gerraty <sjg@void.crufty.net> 43323955d011SMarcel Moolenaar 43333955d011SMarcel Moolenaar * FILES: include boot-strap and os.sh 43343955d011SMarcel Moolenaar 43353955d011SMarcel Moolenaar * Makefile.in: only set WARNS if we are NetBSD, the effect on 43363955d011SMarcel Moolenaar FreeBSD is known to be bad. 43373955d011SMarcel Moolenaar 43383955d011SMarcel Moolenaar * makefile.boot.in (bootstrap): make this the default target. 43393955d011SMarcel Moolenaar 43403955d011SMarcel Moolenaar * Makefile.in: bump version to 3.1.19 43413955d011SMarcel Moolenaar 43423955d011SMarcel Moolenaar * machine.sh: avoid A-Z with tr as it is bound to lose. 43433955d011SMarcel Moolenaar 43443955d011SMarcel Moolenaar2003-07-10 Simon J. Gerraty <sjg@void.crufty.net> 43453955d011SMarcel Moolenaar 43463955d011SMarcel Moolenaar * Merge with NetBSD make 43473955d011SMarcel Moolenaar Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo 43483955d011SMarcel Moolenaar Plus some doc fixes. 43493955d011SMarcel Moolenaar 43503955d011SMarcel Moolenaar2003-04-27 Simon J. Gerraty <sjg@void.crufty.net> 43513955d011SMarcel Moolenaar 43523955d011SMarcel Moolenaar * Merge with NetBSD make 43533955d011SMarcel Moolenaar Pick up fix for PR/1523 - don't count a library as built, if there 43543955d011SMarcel Moolenaar is no way to build it 43553955d011SMarcel Moolenaar 43563955d011SMarcel Moolenaar * Bump version to 3.1.18 43573955d011SMarcel Moolenaar 43583955d011SMarcel Moolenaar2003-03-23 Simon J. Gerraty <sjg@void.crufty.net> 43593955d011SMarcel Moolenaar 43603955d011SMarcel Moolenaar * Merge with NetBSD make 43613955d011SMarcel Moolenaar Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT 43623955d011SMarcel Moolenaar appears in src list. 43633955d011SMarcel Moolenaar 43643955d011SMarcel Moolenaar2003-03-21 Simon J. Gerraty <sjg@void.crufty.net> 43653955d011SMarcel Moolenaar 43663955d011SMarcel Moolenaar * Merge with NetBSD make (mmm 10th anniversary!) 43673955d011SMarcel Moolenaar pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828) 43683955d011SMarcel Moolenaar pick up -X which tells us to not export VAR=val via setenv if 43693955d011SMarcel Moolenaar we are already doing so via MAKEFLAGS. This saves valuable env 43703955d011SMarcel Moolenaar space on systems like Darwin. 43713955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.17 43723955d011SMarcel Moolenaar 43733955d011SMarcel Moolenaar * parse.c: pix up fix for suffix rules 43743955d011SMarcel Moolenaar 43753955d011SMarcel Moolenaar2003-03-06 Simon J. Gerraty <sjg@void.crufty.net> 43763955d011SMarcel Moolenaar 43773955d011SMarcel Moolenaar * Merge with NetBSD make. 43783955d011SMarcel Moolenaar pick up fix for propagating -B via MAKEFLAGS. 43793955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.16 43803955d011SMarcel Moolenaar 43813955d011SMarcel Moolenaar * Apply some patches from pkgsrc-bootstrap/bmake 43823955d011SMarcel Moolenaar Originally by Grant Beattie <grant@netbsd.org> 43833955d011SMarcel Moolenaar I may have missed some - since they are based on bmake-3.1.12 43843955d011SMarcel Moolenaar 43853955d011SMarcel Moolenaar2002-12-03 Simon J. Gerraty <sjg@void.crufty.net> 43863955d011SMarcel Moolenaar 43873955d011SMarcel Moolenaar * makefile.boot.in (bmake): update install targets for those that 43883955d011SMarcel Moolenaar use them, also clear MAKEFLAGS when invoking bmake.boot to avoid 43893955d011SMarcel Moolenaar havoc from gmake -w. Thanks to Harlan Stenn <hstenn@cisco.com>. 43903955d011SMarcel Moolenaar 43913955d011SMarcel Moolenaar * bmake.cat1: update the pre-formatted man page! 43923955d011SMarcel Moolenaar 43933955d011SMarcel Moolenaar2002-11-30 Simon J. Gerraty <sjg@void.crufty.net> 43943955d011SMarcel Moolenaar 43953955d011SMarcel Moolenaar * Merge with NetBSD make. 43963955d011SMarcel Moolenaar pick up fix for premature free of pointer used in call 43973955d011SMarcel Moolenaar to Dir_InitCur(). 43983955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.15 43993955d011SMarcel Moolenaar 44003955d011SMarcel Moolenaar2002-11-26 Simon J. Gerraty <sjg@void.crufty.net> 44013955d011SMarcel Moolenaar 44023955d011SMarcel Moolenaar * configure.in: determine suitable value for MKSRC. 44033955d011SMarcel Moolenaar override using --with-mksrc=PATH. 44043955d011SMarcel Moolenaar 44053955d011SMarcel Moolenaar * machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems. 44063955d011SMarcel Moolenaar configs(8) will use 'sun4' as an alias for 'sparc'. 44073955d011SMarcel Moolenaar 44083955d011SMarcel Moolenaar2002-11-25 Simon J. Gerraty <sjg@void.crufty.net> 44093955d011SMarcel Moolenaar 44103955d011SMarcel Moolenaar * Merge with NetBSD make. 44113955d011SMarcel Moolenaar pick up ${.PATH} 44123955d011SMarcel Moolenaar pick up fix for finding ../cat.c via .PATH when .CURDIR=.. 44133955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.14 44143955d011SMarcel Moolenaar add configure checks for killpg and sys/socket.h 44153955d011SMarcel Moolenaar 44163955d011SMarcel Moolenaar2002-09-16 Simon J. Gerraty <sjg@void.crufty.net> 44173955d011SMarcel Moolenaar 44183955d011SMarcel Moolenaar * tag bmake-3-1-13 44193955d011SMarcel Moolenaar 44203955d011SMarcel Moolenaar * makefile.boot.in (bmake): use install-mk 44213955d011SMarcel Moolenaar Also setup ./mk before trying to invoke bmake.boot incase we 44223955d011SMarcel Moolenaar needed install-mk to create a sys.mk for us. 44233955d011SMarcel Moolenaar 44243955d011SMarcel Moolenaar * configure.in: If we need to add -I${srcdir}/missing, make it an 44253955d011SMarcel Moolenaar absolute path so that it works for lst.lib too. 44263955d011SMarcel Moolenaar 44273955d011SMarcel Moolenaar * make.h: always include sys/cdefs.h since we provide one if the 44283955d011SMarcel Moolenaar host does not. 44293955d011SMarcel Moolenaar 44303955d011SMarcel Moolenaar * Makefile.in (install-mk): 44313955d011SMarcel Moolenaar use MKSRC/install-mk which will do the right thing. 44323955d011SMarcel Moolenaar use uname -p for ARCH if possible. 44333955d011SMarcel Moolenaar since install-mk will setup links bsd.prog.mk -> prog.mk if 44343955d011SMarcel Moolenaar needed, just .include bsd.prog.mk 44353955d011SMarcel Moolenaar 44363955d011SMarcel Moolenaar * Merge with NetBSD make (NetBSD-1.6) 44373955d011SMarcel Moolenaar Code is ansi-C only now. 44383955d011SMarcel Moolenaar Bug in handling of dotLast is fixed. 44393955d011SMarcel Moolenaar Can now assign .OBJDIR and make will reset its notions of life. 44403955d011SMarcel Moolenaar New modifiers :tu :tl for toUpper and toLower. 44413955d011SMarcel Moolenaar 44423955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001 Simon J. Gerraty <sjg@zen.crufty.net> 44433955d011SMarcel Moolenaar 44443955d011SMarcel Moolenaar * Merge with NetBSD make 44453955d011SMarcel Moolenaar pick up fix for .END failure in compat mode. 44463955d011SMarcel Moolenaar pick up fix for extra va_end() in ParseVErrorInternal. 44473955d011SMarcel Moolenaar 44483955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001 Simon J. Gerraty <sjg@zen.crufty.net> 44493955d011SMarcel Moolenaar 44503955d011SMarcel Moolenaar * configure.in: for systems that have sys/cdefs.h check if it is 44513955d011SMarcel Moolenaar compatible. If not, include the one under missing, but tell it to 44523955d011SMarcel Moolenaar include the native one too - necessary on Linux. 44533955d011SMarcel Moolenaar 44543955d011SMarcel Moolenaar * missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use 44553955d011SMarcel Moolenaar include_next (for gcc) to get the native sys/cdefs.h 44563955d011SMarcel Moolenaar 44573955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44583955d011SMarcel Moolenaar 44593955d011SMarcel Moolenaar * job.c (JobFinish): Fix an earlier merge bug that resulted in 44603955d011SMarcel Moolenaar leaking descriptors when using -jN. 44613955d011SMarcel Moolenaar 44623955d011SMarcel Moolenaar * job.c (JobPrintCommand): See if "curdir" exists before 44633955d011SMarcel Moolenaar attempting to chdir(). Doing the chdir directly in make (when in 44643955d011SMarcel Moolenaar compat mode) fails silently, so let the -jN version do the same. 44653955d011SMarcel Moolenaar This can happen when building kernels in an object tree and 44663955d011SMarcel Moolenaar playing clever games to reset .CURDIR. 44673955d011SMarcel Moolenaar 44683955d011SMarcel Moolenaar * Merged with NetBSD make 44693955d011SMarcel Moolenaar pick up .USEBEFORE 44703955d011SMarcel Moolenaar 44713955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44723955d011SMarcel Moolenaar 44733955d011SMarcel Moolenaar * makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work. 44743955d011SMarcel Moolenaar 44753955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44763955d011SMarcel Moolenaar 44773955d011SMarcel Moolenaar * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell 44783955d011SMarcel Moolenaar us not to export the iterator variable when using VAR_CMD context. 44793955d011SMarcel Moolenaar 44803955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44813955d011SMarcel Moolenaar 44823955d011SMarcel Moolenaar * job.c (Job_CatchChildren): don't call Job_CatchOutput() here, 44833955d011SMarcel Moolenaar its the wrong "fix". 44843955d011SMarcel Moolenaar 44853955d011SMarcel MoolenaarSat Jun 9 00:11:24 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 44863955d011SMarcel Moolenaar 44873955d011SMarcel Moolenaar * Redesigned export of VAR_CMD's via MAKEFLAGS. 44883955d011SMarcel Moolenaar We now simply append the variable names to .MAKEOVERRIDES, and 44893955d011SMarcel Moolenaar handle duplicate suppression and quoting in ExportMAKEFLAGS using: 44903955d011SMarcel Moolenaar ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@} 44913955d011SMarcel Moolenaar Apart from fixing quoting bugs in previous version, this allows us 44923955d011SMarcel Moolenaar to export vars to the environment by simply doing: 44933955d011SMarcel Moolenaar .MAKEOVERRIDES+= PATH 44943955d011SMarcel Moolenaar Merged again with NetBSD make, but the above is the only change. 44953955d011SMarcel Moolenaar 44963955d011SMarcel Moolenaar * configure.in: added 44973955d011SMarcel Moolenaar --disable-pwd-override disable $PWD overriding getcwd() 44983955d011SMarcel Moolenaar --disable-check-make-chdir disable make trying to guess 44993955d011SMarcel Moolenaar when it should automatically cd ${.CURDIR} 45003955d011SMarcel Moolenaar 45013955d011SMarcel Moolenaar * Merge with NetBSD make, changes include: 45023955d011SMarcel Moolenaar parse.c (ParseDoDependency): Spot that the syntax error is 45033955d011SMarcel Moolenaar caused by an unresolved cvs/rcs conflict and say so. 45043955d011SMarcel Moolenaar var.c: most of Var* functions now take a ctxt as 1st arg. 45053955d011SMarcel Moolenaar now does variable substituion on rhs of sysv style modifiers. 45063955d011SMarcel Moolenaar 45073955d011SMarcel Moolenaar * var.c (Var_Set): exporting of command line variables (VAR_CMD) 45083955d011SMarcel Moolenaar is now done here. We append the name='value' to .MAKEOVERRIDES 45093955d011SMarcel Moolenaar rather than directly into MAKEFLAGS as this allows a Makefile to 45103955d011SMarcel Moolenaar use .MAKEOVERRIDES= to disable this behaviour. GNU make uses a 45113955d011SMarcel Moolenaar very similar mechanism. Note that in adding name='value' to 45123955d011SMarcel Moolenaar .MAKEOVERRIDES we do the moral equivalent of: 45133955d011SMarcel Moolenaar .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val' 45143955d011SMarcel Moolenaar 45153955d011SMarcel MoolenaarFri Jun 1 14:08:02 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45163955d011SMarcel Moolenaar 45173955d011SMarcel Moolenaar * make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H 45183955d011SMarcel Moolenaar 45193955d011SMarcel Moolenaar * Merged with NetBSD make 45203955d011SMarcel Moolenaar make -dx can now be used to run commands via sh -x 45213955d011SMarcel Moolenaar better error messages on exec failures. 45223955d011SMarcel Moolenaar 45233955d011SMarcel MoolenaarThu May 31 01:44:54 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45243955d011SMarcel Moolenaar 45253955d011SMarcel Moolenaar * Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that 45263955d011SMarcel Moolenaar MAKE_VERSION gets updated. Also don't use ?= for MAKE_VERSION, 45273955d011SMarcel Moolenaar MACHINE etc otherwise they propagate from the previous bmake. 45283955d011SMarcel Moolenaar 45293955d011SMarcel Moolenaar * configure.in (machine): allow --with-machine=generic to make 45303955d011SMarcel Moolenaar configure use machine.sh to set MACHINE. 45313955d011SMarcel Moolenaar 45323955d011SMarcel Moolenaar * job.c (JobInterrupt): convert to using WAIT_T and friends. 45333955d011SMarcel Moolenaar 45343955d011SMarcel Moolenaar * Makefile.in: mention in bmake.1 that we use autoconf. 45353955d011SMarcel Moolenaar 45363955d011SMarcel Moolenaar * make.1: mention MAKE_PRINT_VAR_ON_ERROR. 45373955d011SMarcel Moolenaar 45383955d011SMarcel MoolenaarWed May 30 23:17:18 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45393955d011SMarcel Moolenaar 45403955d011SMarcel Moolenaar * main.c (ReadMakefile): don't set MAKEFILE if reading ".depend" 45413955d011SMarcel Moolenaar as that rather defeats the usefulness of ${MAKEFILE}. 45423955d011SMarcel Moolenaar 45433955d011SMarcel Moolenaar * main.c (MainParseArgs): append command line variable assignments 45443955d011SMarcel Moolenaar to MAKEFLAGS so that they get propagated to child make's. 45453955d011SMarcel Moolenaar Apparently this is required POSIX behaviour? Its useful anyway. 45463955d011SMarcel Moolenaar 45473955d011SMarcel MoolenaarTue May 29 02:20:07 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45483955d011SMarcel Moolenaar 45493955d011SMarcel Moolenaar * compat.c (CompatRunCommand): don't use perror() since stdio may 45503955d011SMarcel Moolenaar cause problems in child of vfork(). 45513955d011SMarcel Moolenaar 45523955d011SMarcel Moolenaar * compat.c, main.c: Call PrintOnError() when we are going to bail. 45533955d011SMarcel Moolenaar This routine prints out the .curdir where we stopped and will also 45543955d011SMarcel Moolenaar display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}. 45553955d011SMarcel Moolenaar 45563955d011SMarcel Moolenaar * main.c: add ${.newline} to hold a "\n" - sometimes handy in 45573955d011SMarcel Moolenaar :@ expansion. 45583955d011SMarcel Moolenaar 45593955d011SMarcel Moolenaar * var.c: VarLoopExpand: ignore addSpace if a \n is present. 45603955d011SMarcel Moolenaar 45613955d011SMarcel Moolenaar * Added RCSid's for the files we've touched. 45623955d011SMarcel Moolenaar 45633955d011SMarcel MoolenaarThu May 24 15:41:37 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45643955d011SMarcel Moolenaar 45653955d011SMarcel Moolenaar * configure.in: Thanks to some clues from mdb@juniper.net, 45663955d011SMarcel Moolenaar added autoconf magic to control setting of MACHINE, MACHINE_ARCH 45673955d011SMarcel Moolenaar as well as what ends up in _PATH_DEFSYSPATH. We now have: 45683955d011SMarcel Moolenaar 45693955d011SMarcel Moolenaar --with-machine=MACHINE explicitly set MACHINE 45703955d011SMarcel Moolenaar --with-force-machine=MACHINE set FORCE_MACHINE 45713955d011SMarcel Moolenaar --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH 45723955d011SMarcel Moolenaar --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 45733955d011SMarcel Moolenaar --with-prefix-sys-path=PATH:DIR:LIST prefix _PATH_PREFIX_SYSPATH 45743955d011SMarcel Moolenaar --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX 45753955d011SMarcel Moolenaar 45763955d011SMarcel Moolenaar If _PATH_OBJDIRPREFIX is set to "no" we won't define it. 45773955d011SMarcel Moolenaar 45783955d011SMarcel Moolenaar * makefile: added a pathetically simple makefile to drive 45793955d011SMarcel Moolenaar bootstrapping. Running configure by hand is more useful. 45803955d011SMarcel Moolenaar 45813955d011SMarcel Moolenaar * Makefile.in: added MAKE_VERSION, and reworked things to be less 45823955d011SMarcel Moolenaar dependent on NetBSD bsd.*.mk 45833955d011SMarcel Moolenaar 45843955d011SMarcel Moolenaar * pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining 45853955d011SMarcel Moolenaar _PATH_OBJDIRPREFIX for those that don't want a default. 45863955d011SMarcel Moolenaar construct _PATH_DEFSYSPATH from the info we get from configure. 45873955d011SMarcel Moolenaar 45883955d011SMarcel Moolenaar * main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION} 45893955d011SMarcel Moolenaar if MAKE_VERSION is defined. 45903955d011SMarcel Moolenaar 45913955d011SMarcel Moolenaar * compat.c: when we bail, print out the .CURDIR we were in. 45923955d011SMarcel Moolenaar 45933955d011SMarcel MoolenaarSat May 12 00:34:12 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45943955d011SMarcel Moolenaar 45953955d011SMarcel Moolenaar * Merged with NetBSD make 45963955d011SMarcel Moolenaar 45973955d011SMarcel Moolenaar * var.c: fixed a bug in the handling of the modifier :P 45983955d011SMarcel Moolenaar if the node as found but the path was null, we segfault trying to 45993955d011SMarcel Moolenaar duplicate it. 46003955d011SMarcel Moolenaar 46013955d011SMarcel MoolenaarMon Mar 5 16:20:33 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 46023955d011SMarcel Moolenaar 46033955d011SMarcel Moolenaar * Merged with NetBSD make 46043955d011SMarcel Moolenaar 46053955d011SMarcel Moolenaar * make.c: Make_OODate's test for a library out of date was using 46063955d011SMarcel Moolenaar cmtime where it should have used mtime (my bug). 46073955d011SMarcel Moolenaar 46083955d011SMarcel Moolenaar * compat.c: Use perror() to tell us what really went wrong when we 46093955d011SMarcel Moolenaar cannot exec a command. 46103955d011SMarcel Moolenaar 46113955d011SMarcel MoolenaarFri Dec 15 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46123955d011SMarcel Moolenaar 46133955d011SMarcel Moolenaar * Merged with NetBSD make 46143955d011SMarcel Moolenaar 46153955d011SMarcel MoolenaarSat Jun 10 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46163955d011SMarcel Moolenaar 46173955d011SMarcel Moolenaar * Merged with NetBSD make 46183955d011SMarcel Moolenaar 46193955d011SMarcel MoolenaarThu Jun 1 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46203955d011SMarcel Moolenaar 46213955d011SMarcel Moolenaar * Merged with NetBSD make 46223955d011SMarcel Moolenaar 46233955d011SMarcel MoolenaarTue May 30 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46243955d011SMarcel Moolenaar 46253955d011SMarcel Moolenaar * Merged with NetBSD make 46263955d011SMarcel Moolenaar 46273955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46283955d011SMarcel Moolenaar 46293955d011SMarcel Moolenaar * util.c: don't provide signal() since we use sigcompat.c 46303955d011SMarcel Moolenaar 46313955d011SMarcel Moolenaar * Makefile.in: added a build target. 46323955d011SMarcel Moolenaar 46333955d011SMarcel Moolenaar * var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :! 46343955d011SMarcel Moolenaar These allow some quite clever magic. 46353955d011SMarcel Moolenaar 46363955d011SMarcel Moolenaar * main.c (main): added support for getenv(MAKESYSPATH). 46373955d011SMarcel Moolenaar 46383955d011SMarcel MoolenaarMon Apr 2 16:25:13 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46393955d011SMarcel Moolenaar 46403955d011SMarcel Moolenaar * Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set. 46413955d011SMarcel Moolenaar This avoids objdir having a different value depending on how a 46423955d011SMarcel Moolenaar directory was reached (via command line, or subdir.mk). 46433955d011SMarcel Moolenaar 46443955d011SMarcel Moolenaar * If FORCE_MACHINE is defined, ignore getenv("MACHINE"). 46453955d011SMarcel Moolenaar 46463955d011SMarcel MoolenaarMon Apr 2 23:15:31 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46473955d011SMarcel Moolenaar 46483955d011SMarcel Moolenaar * Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if 46493955d011SMarcel Moolenaar MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not. 46503955d011SMarcel Moolenaar I've been testing this in NetBSD's make for some weeks. 46513955d011SMarcel Moolenaar 46523955d011SMarcel Moolenaar * Turn Makefile into Makefile.in and make it useful. 46533955d011SMarcel Moolenaar 46543955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46553955d011SMarcel Moolenaar 46563955d011SMarcel Moolenaar * Imported NetBSD's -current make(1) and resolve conflicts. 46573955d011SMarcel Moolenaar 46583955d011SMarcel Moolenaar * Applied autoconf patches from bmake v2 46593955d011SMarcel Moolenaar 46603955d011SMarcel Moolenaar * Imported clean code base from NetBSD-1.0 4661