1*22619282SSimon J. Gerraty2024-07-13 Simon J Gerraty <sjg@beast.crufty.net> 2*22619282SSimon J. Gerraty 3*22619282SSimon J. Gerraty * cleanup redundant differences from NetBSD make 4*22619282SSimon J. Gerraty o parse.c: no longer uses mmap 5*22619282SSimon J. Gerraty o var.c: check __STDC_VERSION__ not __STDC__ 6*22619282SSimon J. Gerraty 7*22619282SSimon J. Gerraty2024-07-12 Simon J Gerraty <sjg@beast.crufty.net> 8*22619282SSimon J. Gerraty 9*22619282SSimon J. Gerraty * Apply some patches from NetBSD pkgsrc to reduce divergence 10*22619282SSimon J. Gerraty o meta.c: requires sys/select.h if available 11*22619282SSimon J. Gerraty o var.c: ensure SIZE_MAX has a value 12*22619282SSimon J. Gerraty o util.c: ensure SA_RESTART is defined 13*22619282SSimon J. Gerraty 14*22619282SSimon J. Gerraty * configure.in: use *ksh* rather than just *ksh to match 15*22619282SSimon J. Gerraty ksh shell specification. 16*22619282SSimon J. Gerraty 17*22619282SSimon J. Gerraty * unit-tests/Makefile: expand BROKEN_TESTS for ksh and 18*22619282SSimon J. Gerraty mksh in particular 19*22619282SSimon J. Gerraty 20*22619282SSimon J. Gerraty2024-07-11 Simon J Gerraty <sjg@beast.crufty.net> 21*22619282SSimon J. Gerraty 22*22619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240711 23*22619282SSimon J. Gerraty Merge with NetBSD make, pick up 24*22619282SSimon J. Gerraty o compat.c: allow Compat_RunCommand to also handle very long 25*22619282SSimon J. Gerraty commands by writing to a temp file when needed. 26*22619282SSimon J. Gerraty o main.c: extract the temp file logic recently added to Cmd_Exec 27*22619282SSimon J. Gerraty to Cmd_Argv so it can be leveraged by Compat_RunCommand. 28*22619282SSimon J. Gerraty 29*22619282SSimon J. Gerraty2024-07-09 Simon J Gerraty <sjg@beast.crufty.net> 30*22619282SSimon J. Gerraty 31*22619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240709 32*22619282SSimon J. Gerraty Merge with NetBSD make, pick up 33*22619282SSimon J. Gerraty o error out on parse/evaluation errors in shell commands 34*22619282SSimon J. Gerraty o var.c: error out on syntax errors in ':M' and ':N' modifiers 35*22619282SSimon J. Gerraty 36*22619282SSimon J. Gerraty2024-07-07 Simon J Gerraty <sjg@beast.crufty.net> 37*22619282SSimon J. Gerraty 38*22619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240707 39*22619282SSimon J. Gerraty Merge with NetBSD make, pick up 40*22619282SSimon J. Gerraty o only generate code for cleanup functions in CLEANUP mode 41*22619282SSimon J. Gerraty o hash.c: don't track hash table chain lengths during lookup 42*22619282SSimon J. Gerraty unless debugging 43*22619282SSimon J. Gerraty o main.c: move initialization of variable scopes to targ.c 44*22619282SSimon J. Gerraty o var.c: remove Var_End as it is now unnecessary 45*22619282SSimon J. Gerraty 46*22619282SSimon J. Gerraty2024-07-06 Simon J Gerraty <sjg@beast.crufty.net> 47*22619282SSimon J. Gerraty 48*22619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240706 49*22619282SSimon J. Gerraty Merge with NetBSD make, pick up 50*22619282SSimon J. Gerraty o reduce lint comments about ARGSUSED 51*22619282SSimon J. Gerraty o cond.c: error out on conditions containing the operators '&' and '|' 52*22619282SSimon J. Gerraty o str.c: error out on a matching malformed matching pattern '[[' 53*22619282SSimon J. Gerraty o var.c: in error messages, distinguish parsing from evaluating 54*22619282SSimon J. Gerraty in error messages for anonymous variables, log the value 55*22619282SSimon J. Gerraty error out on unclosed expressions during parse time 56*22619282SSimon J. Gerraty 57*22619282SSimon J. Gerraty2024-07-04 Simon J Gerraty <sjg@beast.crufty.net> 58*22619282SSimon J. Gerraty 59*22619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240704 60*22619282SSimon J. Gerraty Merge with NetBSD make, pick up 61*22619282SSimon J. Gerraty o add more context information to error messages 62*22619282SSimon J. Gerraty o main.c: on error, print the targets to be made 63*22619282SSimon J. Gerraty add detailed exit status to message for failed sub-commands 64*22619282SSimon J. Gerraty o var.c: error out on the "Bad modifier" error message 65*22619282SSimon J. Gerraty 66*22619282SSimon J. Gerraty2024-07-01 Simon J Gerraty <sjg@beast.crufty.net> 67*22619282SSimon J. Gerraty 68*22619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240701 69*22619282SSimon J. Gerraty Merge with NetBSD make, pick up 70*22619282SSimon J. Gerraty o var.c: add :tt for Title case 71*22619282SSimon J. Gerraty 72*22619282SSimon J. Gerraty2024-06-30 Simon J Gerraty <sjg@beast.crufty.net> 73*22619282SSimon J. Gerraty 74*22619282SSimon J. Gerraty * configure.in: 20240630 further refine check for whether 75*22619282SSimon J. Gerraty TZ=Europe/Berlin works 76*22619282SSimon J. Gerraty 77*22619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240630 78*22619282SSimon J. Gerraty Merge with NetBSD make, pick up 79*22619282SSimon J. Gerraty o job.c: reduce use of UNCONST 80*22619282SSimon J. Gerraty o main.c: add detailed exit status to message for failed sub-commands 81*22619282SSimon J. Gerraty o var.c: error out on some more syntax errors 82*22619282SSimon J. Gerraty add more context to "returned non-zero status" message 83*22619282SSimon J. Gerraty 848d5c8e21SSimon J. Gerraty2024-06-25 Simon J Gerraty <sjg@beast.crufty.net> 858d5c8e21SSimon J. Gerraty 868d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240625 878d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 888d5c8e21SSimon J. Gerraty o job.c: ensure shellPath is always duped, avoid upsetting free() 898d5c8e21SSimon J. Gerraty 908d5c8e21SSimon J. Gerraty2024-06-16 Simon J Gerraty <sjg@beast.crufty.net> 918d5c8e21SSimon J. Gerraty 928d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240616 938d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 948d5c8e21SSimon J. Gerraty o clean up collection of context information for error messages 958d5c8e21SSimon J. Gerraty o in warnings, move the word "warning" to the front 968d5c8e21SSimon J. Gerraty o var.c: throw an error on attempt to override an internal 978d5c8e21SSimon J. Gerraty read-only variable 988d5c8e21SSimon J. Gerraty 998d5c8e21SSimon J. Gerraty2024-06-10 Simon J Gerraty <sjg@beast.crufty.net> 1008d5c8e21SSimon J. Gerraty 1018d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240610 1028d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 1038d5c8e21SSimon J. Gerraty o for.c: remove redundant shortcut for building the .for loop body 1048d5c8e21SSimon J. Gerraty 1058d5c8e21SSimon J. Gerraty2024-06-02 Simon J Gerraty <sjg@beast.crufty.net> 1068d5c8e21SSimon J. Gerraty 1078d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240602 1088d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 1098d5c8e21SSimon J. Gerraty o rename some VarEvalMode constants to better match debug names. 1108d5c8e21SSimon J. Gerraty o var.c: avoid out-of-bounds read when parsing indirect modifiers. 1118d5c8e21SSimon J. Gerraty 1128d5c8e21SSimon J. Gerraty2024-06-01 Simon J Gerraty <sjg@beast.crufty.net> 1138d5c8e21SSimon J. Gerraty 1148d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240601 1158d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 1168d5c8e21SSimon J. Gerraty o add .export-all rather than allow .export with no argument 1178d5c8e21SSimon J. Gerraty which can happen accidentally. 1188d5c8e21SSimon J. Gerraty o if lua is available, run check-expect.lua after unit-tests 1198d5c8e21SSimon J. Gerraty o main.c: use snprintf rather than strncpy 1208d5c8e21SSimon J. Gerraty fix memory leak when purging realpath cache. 1218d5c8e21SSimon J. Gerraty 1228d5c8e21SSimon J. Gerraty2024-05-28 Simon J Gerraty <sjg@beast.crufty.net> 1238d5c8e21SSimon J. Gerraty 1248d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240528 1258d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 1268d5c8e21SSimon J. Gerraty o fix a number of memory leaks 1278d5c8e21SSimon J. Gerraty o replace magic numbers with POSIX FILENO constants 1288d5c8e21SSimon J. Gerraty o hash.c: remove dead code from HashTable_DeleteEntry 1298d5c8e21SSimon J. Gerraty o main.c: when complaining about unusable .OBJDIR 1308d5c8e21SSimon J. Gerraty call PrintOnError if MAKE_DEBUG_OBJDIR_CHECK_WRITABLE is true. 1318d5c8e21SSimon J. Gerraty o parse.c: use fewer technical terms in debug message for dependency 1328d5c8e21SSimon J. Gerraty 1339d3df31eSSimon J. Gerraty2024-05-20 Simon J Gerraty <sjg@beast.crufty.net> 1349d3df31eSSimon J. Gerraty 1359d3df31eSSimon J. Gerraty * VERSION (_MAKE_VERSION): 1369d3df31eSSimon J. Gerraty Merge with NetBSD make, pick up 1379d3df31eSSimon J. Gerraty o dir.c: in FindFile restore last search of .CURDIR even for 1389d3df31eSSimon J. Gerraty includes, as a number of existing makefiles are broken otherwise. 1399d3df31eSSimon J. Gerraty 1409d3df31eSSimon J. Gerraty2024-05-19 Simon J Gerraty <sjg@beast.crufty.net> 1419d3df31eSSimon J. Gerraty 1429d3df31eSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240519 1439d3df31eSSimon J. Gerraty Merge with NetBSD make, pick up 1449d3df31eSSimon J. Gerraty o dir.c: Add Dir_FindInclude, FindFile without looking in .CURDIR. 1459d3df31eSSimon J. Gerraty Also fix Dir_SetSYSPATH to use defSysIncPath if sysIncPath is empty. 1469d3df31eSSimon J. Gerraty o main.c: no need to set .DOTLAST in sysIncPath 1479d3df31eSSimon J. Gerraty 148c9f4001fSSimon J. Gerraty2024-05-07 Simon J Gerraty <sjg@beast.crufty.net> 149c9f4001fSSimon J. Gerraty 150c9f4001fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240508 151c9f4001fSSimon J. Gerraty Merge with NetBSD make, pick up 152c9f4001fSSimon J. Gerraty o make: ensure variables set on command line get added to 153c9f4001fSSimon J. Gerraty .MAKEOVERRIDES (even if they start with '.') so they are passed to 154c9f4001fSSimon J. Gerraty sub-makes. 155c9f4001fSSimon J. Gerraty 156548bfc56SSimon J. Gerraty2024-04-30 Simon J Gerraty <sjg@beast.crufty.net> 157548bfc56SSimon J. Gerraty 158548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240430 159548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 160548bfc56SSimon J. Gerraty o main.c: ensure '.include <makefile>' respects MAKESYSPATH. 161548bfc56SSimon J. Gerraty Dir_FindFile will search .CURDIR first unless ".DOTLAST" is seen. 162548bfc56SSimon J. Gerraty 163548bfc56SSimon J. Gerraty2024-04-28 Simon J Gerraty <sjg@beast.crufty.net> 164548bfc56SSimon J. Gerraty 165548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240428 166548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 167548bfc56SSimon J. Gerraty o simplify freeing of lists 168548bfc56SSimon J. Gerraty o arch.c: trim pointless comments 169548bfc56SSimon J. Gerraty o var.c: delay variable assignments until actually needed 170548bfc56SSimon J. Gerraty don't reallocate memory after evaluating an expression, result is 171548bfc56SSimon J. Gerraty almost always short-lived. 172548bfc56SSimon J. Gerraty 173548bfc56SSimon J. Gerraty2024-04-26 Simon J Gerraty <sjg@beast.crufty.net> 174548bfc56SSimon J. Gerraty 175548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240426 176548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 177548bfc56SSimon J. Gerraty o job.c: in debug output, print the directory in which a job 178548bfc56SSimon J. Gerraty failed at same time as failed target so it is more easily found in 179548bfc56SSimon J. Gerraty build log. 180548bfc56SSimon J. Gerraty 181548bfc56SSimon J. Gerraty2024-04-24 Simon J Gerraty <sjg@beast.crufty.net> 182548bfc56SSimon J. Gerraty 183548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240424 184548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 185548bfc56SSimon J. Gerraty o clean up comments, code and tests 186548bfc56SSimon J. Gerraty 187548bfc56SSimon J. Gerraty2024-04-23 Simon J Gerraty <sjg@beast.crufty.net> 188548bfc56SSimon J. Gerraty 189548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240422 190548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 191548bfc56SSimon J. Gerraty o var.c: avoid LazyBuf for :*time modifiers. 192548bfc56SSimon J. Gerraty LazyBuf's are not nul terminated so not suitable for passing to 193548bfc56SSimon J. Gerraty functions that expect that. These modifiers are used sparingly so 194548bfc56SSimon J. Gerraty an extra allocation is not a problem. 195548bfc56SSimon J. Gerraty 196548bfc56SSimon J. Gerraty2024-04-20 Simon J Gerraty <sjg@beast.crufty.net> 197548bfc56SSimon J. Gerraty 198548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240420 199548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 200548bfc56SSimon J. Gerraty o provide more context information for parse/evaluate errors 201548bfc56SSimon J. Gerraty 202548bfc56SSimon J. Gerraty2024-04-14 Simon J Gerraty <sjg@beast.crufty.net> 203548bfc56SSimon J. Gerraty 204548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240414 205548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 206548bfc56SSimon J. Gerraty o parse.c: print -dp debug info earlier so we see which 207548bfc56SSimon J. Gerraty .if or .for line is being parsed. 208548bfc56SSimon J. Gerraty 209548bfc56SSimon J. Gerraty2024-04-04 Simon J Gerraty <sjg@beast.crufty.net> 210548bfc56SSimon J. Gerraty 211548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240404 212548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 213548bfc56SSimon J. Gerraty o fix some unit tests for Cygwin 214548bfc56SSimon J. Gerraty o parse.c: exit immediately after reading a null byte from a makefile 215548bfc56SSimon J. Gerraty 216548bfc56SSimon J. Gerraty * fix generation of bmake.cat1 217548bfc56SSimon J. Gerraty 218548bfc56SSimon J. Gerraty2024-03-19 Simon J Gerraty <sjg@beast.crufty.net> 219548bfc56SSimon J. Gerraty 220548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240314 221548bfc56SSimon J. Gerraty Add/Improve support for Cygwin 222548bfc56SSimon J. Gerraty o uname -s output isn't useful so allow configure to 223548bfc56SSimon J. Gerraty set FORCE_MAKE_OS - to force the value of .MAKE.OS 224548bfc56SSimon J. Gerraty and use Cygwin which matches uname -o 225548bfc56SSimon J. Gerraty o fix some unit-tests for Cygwin 226548bfc56SSimon J. Gerraty 227c59c3bf3SSimon J. Gerraty2024-03-10 Simon J Gerraty <sjg@beast.crufty.net> 228c59c3bf3SSimon J. Gerraty 229c59c3bf3SSimon J. Gerraty * boot-strap: tests can take a long time; use a cookie to 230c59c3bf3SSimon J. Gerraty skip them if bmake has not been updated since tests last 231c59c3bf3SSimon J. Gerraty ran successfully. 232c59c3bf3SSimon J. Gerraty 233c59c3bf3SSimon J. Gerraty * Makefile: Cygwin handles MANTARGET man 234c59c3bf3SSimon J. Gerraty 235c59c3bf3SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for Cygwin 236c59c3bf3SSimon J. Gerraty 237c59c3bf3SSimon J. Gerraty2024-03-09 Simon J Gerraty <sjg@beast.crufty.net> 238c59c3bf3SSimon J. Gerraty 239c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240309 240c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 241c59c3bf3SSimon J. Gerraty o set .ERROR_EXIT to the exit status of .ERROR_TARGET 242c59c3bf3SSimon J. Gerraty this allows a .ERROR target to ignore the case of 243c59c3bf3SSimon J. Gerraty .ERROR_EXIT==6 which just means that the build actually 244c59c3bf3SSimon J. Gerraty failed somewhere else. 245c59c3bf3SSimon J. Gerraty 246c59c3bf3SSimon J. Gerraty2024-03-04 Simon J Gerraty <sjg@beast.crufty.net> 247c59c3bf3SSimon J. Gerraty 248c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240303 249c59c3bf3SSimon J. Gerraty 250c59c3bf3SSimon J. Gerraty * var.c: on IRIX we need both inttypes.h and stdint.h 251c59c3bf3SSimon J. Gerraty 252c59c3bf3SSimon J. Gerraty2024-03-01 Simon J Gerraty <sjg@beast.crufty.net> 253c59c3bf3SSimon J. Gerraty 254c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240301 255c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 256c59c3bf3SSimon J. Gerraty o export variables with value from target scope 257c59c3bf3SSimon J. Gerraty when appropriate. 258c59c3bf3SSimon J. Gerraty 259c59c3bf3SSimon J. Gerraty2024-02-12 Simon J Gerraty <sjg@beast.crufty.net> 260c59c3bf3SSimon J. Gerraty 261c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240212 262c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 263c59c3bf3SSimon J. Gerraty o remove unneeded conditional-compilation toggles 264c59c3bf3SSimon J. Gerraty INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB, 265c59c3bf3SSimon J. Gerraty GMAKEEXPORT NO_REGEX and SUNSHCMD 266c59c3bf3SSimon J. Gerraty 267c59c3bf3SSimon J. Gerraty * configure.in: add check for regex.h 268c59c3bf3SSimon J. Gerraty 269c59c3bf3SSimon J. Gerraty * var.c: replace use of NO_REGEX with HAVE_REGEX_H 270c59c3bf3SSimon J. Gerraty 271c59c3bf3SSimon J. Gerraty2024-02-04 Simon J Gerraty <sjg@beast.crufty.net> 272c59c3bf3SSimon J. Gerraty 273c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240204 274c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 275c59c3bf3SSimon J. Gerraty o var.c: fix some lint (-dL) mode parsing issues 276c59c3bf3SSimon J. Gerraty 277c59c3bf3SSimon J. Gerraty2024-02-02 Simon J Gerraty <sjg@beast.crufty.net> 278c59c3bf3SSimon J. Gerraty 279c59c3bf3SSimon J. Gerraty * VERSION: (_MAKE_VERSION): 20240202 280c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 281c59c3bf3SSimon J. Gerraty o make.1: note that arg to :D and :U can be empty 282c59c3bf3SSimon J. Gerraty o var.c: $$ is not a parse error when .MAKE.SAVE_DOLLARS=no 283c59c3bf3SSimon J. Gerraty 284d5e0a182SSimon J. Gerraty2024-01-08 Simon J Gerraty <sjg@beast.crufty.net> 285d5e0a182SSimon J. Gerraty 286d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240108 287d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 288d5e0a182SSimon J. Gerraty o miscellaneous cleanups 289d5e0a182SSimon J. Gerraty 290d5e0a182SSimon J. Gerraty2024-01-06 Simon J Gerraty <sjg@beast.crufty.net> 291d5e0a182SSimon J. Gerraty 292d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240106 293d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 294d5e0a182SSimon J. Gerraty o fix duplicate progname when reporting an unknown target 295d5e0a182SSimon J. Gerraty o unit tests for Cmd_Exec using temp file 296d5e0a182SSimon J. Gerraty 297d5e0a182SSimon J. Gerraty2024-01-05 Simon J Gerraty <sjg@beast.crufty.net> 298d5e0a182SSimon J. Gerraty 299d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240105 300d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 301d5e0a182SSimon J. Gerraty o main.c: Cmd_Exec write cmd to a file if too big 302d5e0a182SSimon J. Gerraty avoid blowing commandline/env limits 303d5e0a182SSimon J. Gerraty 304d5e0a182SSimon J. Gerraty2024-01-02 Simon J Gerraty <sjg@beast.crufty.net> 305d5e0a182SSimon J. Gerraty 306d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240101 307d5e0a182SSimon J. Gerraty o util.c: flesh out more of strftime 308d5e0a182SSimon J. Gerraty * configure.in: add --with-bmake-strftime 309d5e0a182SSimon J. Gerraty it is not a full implementation but enough to pass all 310d5e0a182SSimon J. Gerraty the unit-tests. 311d5e0a182SSimon J. Gerraty * parse.c: LoadFile do not append \n to empty buffer. 312d5e0a182SSimon J. Gerraty 313d5e0a182SSimon J. Gerraty2023-12-30 Simon J Gerraty <sjg@beast.crufty.net> 314d5e0a182SSimon J. Gerraty 315d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231230 316d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 317d5e0a182SSimon J. Gerraty o simplify memory allocation for string buffers 318d5e0a182SSimon J. Gerraty o fix declared types of list nodes 319d5e0a182SSimon J. Gerraty o suff.c: clean up freeing of suffixes 320d5e0a182SSimon J. Gerraty o var.c: simplify debug message for the ':@var@...@' modifier 321d5e0a182SSimon J. Gerraty clean up variable handling 322d5e0a182SSimon J. Gerraty 323d5e0a182SSimon J. Gerraty2023-12-26 Simon J Gerraty <sjg@beast.crufty.net> 324d5e0a182SSimon J. Gerraty 325d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231226 326d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 327d5e0a182SSimon J. Gerraty o compat.c: ensure make's output is correctly ordered with that of 328d5e0a182SSimon J. Gerraty the target when not going to a tty 329d5e0a182SSimon J. Gerraty o main.c: check for shellPath whether to call Shell_Init() 330d5e0a182SSimon J. Gerraty 331d5e0a182SSimon J. Gerraty2023-12-24 Simon J Gerraty <sjg@beast.crufty.net> 332d5e0a182SSimon J. Gerraty 333d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231224 334d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 335d5e0a182SSimon J. Gerraty o compat.c: check for shellPath whether to call Shell_Init() 336d5e0a182SSimon J. Gerraty tweak the unit test to detect the bug thus fixed. 337d5e0a182SSimon J. Gerraty o make.1: do not claim .SHELL is only used by jobs mode. 338d5e0a182SSimon J. Gerraty 339d5e0a182SSimon J. Gerraty2023-12-22 Simon J Gerraty <sjg@beast.crufty.net> 340d5e0a182SSimon J. Gerraty 341d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231220 342d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 343d5e0a182SSimon J. Gerraty o str.c: speed up pattern matching in the ':M' modifier 344d5e0a182SSimon J. Gerraty o var.c: fix confusing debug logging when deleting a variable 345d5e0a182SSimon J. Gerraty use consistent debug messages style when ignoring variables 346d5e0a182SSimon J. Gerraty 347d5e0a182SSimon J. Gerraty2023-12-10 Simon J Gerraty <sjg@beast.crufty.net> 348d5e0a182SSimon J. Gerraty 349d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231210 350d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 351d5e0a182SSimon J. Gerraty o var.c: avoid segfault on empty :C match expression 352d5e0a182SSimon J. Gerraty explain in debug log why variable assignment is ignored. 353d5e0a182SSimon J. Gerraty 354d5e0a182SSimon J. Gerraty2023-12-08 Simon J Gerraty <sjg@beast.crufty.net> 355d5e0a182SSimon J. Gerraty 356d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231208 357d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 358d5e0a182SSimon J. Gerraty o var.c: ensure fromCmd is set correctly for variables set on 359d5e0a182SSimon J. Gerraty command line. 360d5e0a182SSimon J. Gerraty 361d5e0a182SSimon J. Gerraty2023-11-26 Simon J Gerraty <sjg@beast.crufty.net> 362d5e0a182SSimon J. Gerraty 363d5e0a182SSimon J. Gerraty * configure.in: disable generation of 'makefile' for 364d5e0a182SSimon J. Gerraty Darwin by default. 365d5e0a182SSimon J. Gerraty 366d5e0a182SSimon J. Gerraty * boot-strap: docuement --without-makefile 367d5e0a182SSimon J. Gerraty 368d5e0a182SSimon J. Gerraty2023-11-24 Simon J Gerraty <sjg@beast.crufty.net> 369d5e0a182SSimon J. Gerraty 370d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231124 371d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 372d5e0a182SSimon J. Gerraty o main.c: cleanup processing of -j 373d5e0a182SSimon J. Gerraty fix lint warning about strchr 374d5e0a182SSimon J. Gerraty o var.c: more accurate error message for invalid ':mtime' argument 375d5e0a182SSimon J. Gerraty cleanup :[...] modifier 376d5e0a182SSimon J. Gerraty avoid reading beyond substring when comparing 377d5e0a182SSimon J. Gerraty o unit-tests cover all cases of :mtime, test and explain exporting 378d5e0a182SSimon J. Gerraty of variables 379d5e0a182SSimon J. Gerraty o cleanup comments 380d5e0a182SSimon J. Gerraty 381d5e0a182SSimon J. Gerraty2023-09-17 Simon J Gerraty <sjg@beast.crufty.net> 382d5e0a182SSimon J. Gerraty 383d5e0a182SSimon J. Gerraty * bsd.after-import.mk (ECHO_TAG): FreeBSD no longer uses 384d5e0a182SSimon J. Gerraty $FreeBSD$ tag, so avoid adding it. 385d5e0a182SSimon J. Gerraty 38698875883SSimon J. Gerraty2023-09-09 Simon J Gerraty <sjg@beast.crufty.net> 38798875883SSimon J. Gerraty 38898875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230909 38998875883SSimon J. Gerraty Merge with NetBSD make, pick up 39098875883SSimon J. Gerraty o main.c: allow -j to compute a multiple of ncpu 39198875883SSimon J. Gerraty If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating 39298875883SSimon J. Gerraty point number or ends in 'C' compute .MAKE.JOBS as a multiple of 39398875883SSimon J. Gerraty _SC_NPROCESSORS_ONLN 39498875883SSimon J. Gerraty .MAKE.JOBS.C will be "yes" if -jC is supported 39598875883SSimon J. Gerraty 39698875883SSimon J. Gerraty2023-08-20 Simon J Gerraty <sjg@beast.crufty.net> 39798875883SSimon J. Gerraty 39898875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230820 39998875883SSimon J. Gerraty Merge with NetBSD make, pick up 40098875883SSimon J. Gerraty o make.1: note that :localtime is better for %s 40198875883SSimon J. Gerraty o parse.c: improve error messages for invalid input. 40298875883SSimon J. Gerraty o var.c: fix for %s:L:gmtime - set TZ=UTC and use localtime to get 40398875883SSimon J. Gerraty correct result, it is still better to use %s:L:localtime. 40498875883SSimon J. Gerraty 40598875883SSimon J. Gerraty2023-08-18 Simon J Gerraty <sjg@beast.crufty.net> 40698875883SSimon J. Gerraty 40798875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230818 40898875883SSimon J. Gerraty Merge with NetBSD make, pick up 40998875883SSimon J. Gerraty o meta.c: meta_ignore - check raw path against metaIgnorePaths 41098875883SSimon J. Gerraty to potentially skip call to realpath. 41198875883SSimon J. Gerraty o var.c: be strict when parsing the argument of the ':mtime' modifier 41298875883SSimon J. Gerraty o unit-tests/varmod-mtime.mk: document why '${%s:L:localtime}' 41398875883SSimon J. Gerraty should be used to get an equivalent value to time(3). 41498875883SSimon J. Gerraty 41598875883SSimon J. Gerraty2023-08-16 Simon J Gerraty <sjg@beast.crufty.net> 41698875883SSimon J. Gerraty 41798875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230816 41898875883SSimon J. Gerraty Merge with NetBSD make, pick up 41998875883SSimon J. Gerraty o cond.c: clean up multiple-inclusion guards 42098875883SSimon J. Gerraty 42198875883SSimon J. Gerraty2023-07-25 Simon J Gerraty <sjg@beast.crufty.net> 42298875883SSimon J. Gerraty 42398875883SSimon J. Gerraty * unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS 42498875883SSimon J. Gerraty if configure cannot work out how to control TZ. 42598875883SSimon J. Gerraty Remove varmod-localtime from BROKEN_TESTS for IRIX* 42698875883SSimon J. Gerraty 42798875883SSimon J. Gerraty2023-07-24 Simon J Gerraty <sjg@beast.crufty.net> 42898875883SSimon J. Gerraty 42998875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230723 43098875883SSimon J. Gerraty 43198875883SSimon J. Gerraty * configure.in: fix the test for wether TZ=Europe/Berlin works. 43298875883SSimon J. Gerraty Depending on the time of year, if run between 22:00 and 00:00 UTC 43398875883SSimon J. Gerraty the check in configure would fail incorrectly. 43498875883SSimon J. Gerraty Take the day into account as well. 43598875883SSimon J. Gerraty 43698875883SSimon J. Gerraty2023-07-18 Simon J Gerraty <sjg@beast.crufty.net> 43798875883SSimon J. Gerraty 43898875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 43998875883SSimon J. Gerraty Merge with NetBSD make, pick up 44098875883SSimon J. Gerraty o make.1: clean up wording, clarify scope of '!' in conditions 44198875883SSimon J. Gerraty 44298875883SSimon J. Gerraty2023-07-15 Simon J Gerraty <sjg@beast.crufty.net> 44398875883SSimon J. Gerraty 44498875883SSimon J. Gerraty * make-bootstrap.sh.in: set prefix 44598875883SSimon J. Gerraty If configure is run using ksh we get unexpanded ${prefix} in 44698875883SSimon J. Gerraty DEFAULT_SYS_PATH, by ensuring prefix is set we should still get 44798875883SSimon J. Gerraty correct result. 44898875883SSimon J. Gerraty 44998875883SSimon J. Gerraty2023-07-13 Simon J Gerraty <sjg@beast.crufty.net> 45098875883SSimon J. Gerraty 45198875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 45298875883SSimon J. Gerraty bump version for IRIX tweaks 45398875883SSimon J. Gerraty 45498875883SSimon J. Gerraty * make.h: undef OP_NONE if defined 45598875883SSimon J. Gerraty 45698875883SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for IRIX 45798875883SSimon J. Gerraty 45898875883SSimon J. Gerraty * configure.in: override INSTALL on IRIX 45998875883SSimon J. Gerraty 46098875883SSimon J. Gerraty2023-06-27 Simon J Gerraty <sjg@beast.crufty.net> 46198875883SSimon J. Gerraty 46298875883SSimon J. Gerraty * boot-strap op_test: ensure we set TEST_MAKE as we want it. 46398875883SSimon J. Gerraty 464148ee845SSimon J. Gerraty2023-06-22 Simon J Gerraty <sjg@beast.crufty.net> 465148ee845SSimon J. Gerraty 466148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230622 467148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 468148ee845SSimon J. Gerraty o optimize string matching for ':M' and ':N' 469148ee845SSimon J. Gerraty o warn about malformed patterns in ':M', ':N' and '.if make(...)' 470148ee845SSimon J. Gerraty 471148ee845SSimon J. Gerraty2023-06-21 Simon J Gerraty <sjg@beast.crufty.net> 472148ee845SSimon J. Gerraty 473148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230621 474148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 475148ee845SSimon J. Gerraty o more extensive tests for include guards 476148ee845SSimon J. Gerraty o parse.c: if a guard is already defined a file that uses the same 477148ee845SSimon J. Gerraty guard is still guarded by it. 478148ee845SSimon J. Gerraty 479148ee845SSimon J. Gerraty2023-06-20 Simon J Gerraty <sjg@beast.crufty.net> 480148ee845SSimon J. Gerraty 481148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230620 482148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 483148ee845SSimon J. Gerraty o allow guards to be targets as well as variables 484148ee845SSimon J. Gerraty The guard targets may include variable references like 485148ee845SSimon J. Gerraty __${.PARSEDIR:tA}/${.PARSEFILE}__ 486148ee845SSimon J. Gerraty 487148ee845SSimon J. Gerraty2023-06-19 Simon J Gerraty <sjg@beast.crufty.net> 488148ee845SSimon J. Gerraty 489148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230619 490148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 491148ee845SSimon J. Gerraty o unit test for .undef of readOnly vars 492148ee845SSimon J. Gerraty o optimization for makefiles protected from multiple-inclusion 493148ee845SSimon J. Gerraty skip even opening the file after first include. 494148ee845SSimon J. Gerraty Initially this only handles makefiles guarded by a variable 495148ee845SSimon J. Gerraty target guards are next. 496148ee845SSimon J. Gerraty 497148ee845SSimon J. Gerraty2023-06-16 Simon J Gerraty <sjg@beast.crufty.net> 498148ee845SSimon J. Gerraty 499148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230616 500148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 501148ee845SSimon J. Gerraty o var.c: do not allow delete of readOnly variable 502148ee845SSimon J. Gerraty 503148ee845SSimon J. Gerraty2023-06-03 Simon J Gerraty <sjg@beast.crufty.net> 504148ee845SSimon J. Gerraty 505148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230601 506148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 507148ee845SSimon J. Gerraty o parse.c: .break takes no args 508148ee845SSimon J. Gerraty o lots of unit test updates 509148ee845SSimon J. Gerraty 510148ee845SSimon J. Gerraty2023-05-29 Simon J Gerraty <sjg@beast.crufty.net> 511148ee845SSimon J. Gerraty 512148ee845SSimon J. Gerraty * unit-tests/Makefile: skip tests that require /dev/filemon 513148ee845SSimon J. Gerraty if it does not exists - issue a warning. 514148ee845SSimon J. Gerraty 515148ee845SSimon J. Gerraty2023-05-22 Simon J Gerraty <sjg@beast.crufty.net> 516148ee845SSimon J. Gerraty 517148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230522 518148ee845SSimon J. Gerraty Fix building on darwin ppc 519148ee845SSimon J. Gerraty 520148ee845SSimon J. Gerraty * os.sh (MACHINE): Darwin powerpc cannot use `uname -m` 521148ee845SSimon J. Gerraty also recent NetBSD uses x86_64 for MACHINE_ARCH so conform. 522148ee845SSimon J. Gerraty 523148ee845SSimon J. Gerraty2023-05-15 Simon J Gerraty <sjg@beast.crufty.net> 524148ee845SSimon J. Gerraty 525148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230515 526148ee845SSimon J. Gerraty 527148ee845SSimon J. Gerraty * Makefile (COPTS.filemon_ktrace.c): NetBSD 7 needs help to 528148ee845SSimon J. Gerraty compile filemon_ktrace.c 529148ee845SSimon J. Gerraty 530148ee845SSimon J. Gerraty2023-05-13 Simon J Gerraty <sjg@beast.crufty.net> 531148ee845SSimon J. Gerraty 532148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230512 533148ee845SSimon J. Gerraty o sys.dirdeps.mk - broke after-import target 534148ee845SSimon J. Gerraty 535c1d01b5fSSimon J. Gerraty2023-05-10 Simon J Gerraty <sjg@beast.crufty.net> 536c1d01b5fSSimon J. Gerraty 537c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230510 538c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 539c1d01b5fSSimon J. Gerraty o parse.c: don't print null filename in stack traces 540c1d01b5fSSimon J. Gerraty o var.c: :mtime operate on each word in variable value 541c1d01b5fSSimon J. Gerraty 542c1d01b5fSSimon J. Gerraty2023-05-09 Simon J Gerraty <sjg@beast.crufty.net> 543c1d01b5fSSimon J. Gerraty 544c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230509 545c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 546c1d01b5fSSimon J. Gerraty o for.c: skip syntactically wrong .for loops 547c1d01b5fSSimon J. Gerraty o var.c: allow for :gmtime=${mtime} 548c1d01b5fSSimon J. Gerraty add :mtime[=timestamp] where timestamp is used if stat(2) 549c1d01b5fSSimon J. Gerraty fails, if :mtime=error stat(2) failure causes error. 550c1d01b5fSSimon J. Gerraty 551c1d01b5fSSimon J. Gerraty2023-05-05 Simon J Gerraty <sjg@beast.crufty.net> 552c1d01b5fSSimon J. Gerraty 553c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230504 554c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 555c1d01b5fSSimon J. Gerraty o compat.c: fix compile on NetBSD 7.2 556c1d01b5fSSimon J. Gerraty o make.1: fix documentation of .PREFIX to match reality and POSIX 557c1d01b5fSSimon J. Gerraty o unit-tests: improved var-scope-local 558c1d01b5fSSimon J. Gerraty 5598c973ee2SSimon J. Gerraty2023-04-14 Simon J Gerraty <sjg@beast.crufty.net> 5608c973ee2SSimon J. Gerraty 5618c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230414 5628c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5638c973ee2SSimon J. Gerraty o minor cleanup 5648c973ee2SSimon J. Gerraty 5658c973ee2SSimon J. Gerraty2023-03-25 Simon J Gerraty <sjg@beast.crufty.net> 5668c973ee2SSimon J. Gerraty 5678c973ee2SSimon J. Gerraty * main.c: on some systems (eg OS/X) setting RLIMIT_NOFILE to 5688c973ee2SSimon J. Gerraty unlimited results in an insane number (0x7fffffffffffffff). 5698c973ee2SSimon J. Gerraty If BMAKE_NOFILE_MAX is defined, use that instead. 5708c973ee2SSimon J. Gerraty 5718c973ee2SSimon J. Gerraty2023-03-22 Simon J Gerraty <sjg@beast.crufty.net> 5728c973ee2SSimon J. Gerraty 5738c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230321 5748c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5758c973ee2SSimon J. Gerraty * make.1: document seemingly unexplained Error code 6. 5768c973ee2SSimon J. Gerraty 5778c973ee2SSimon J. Gerraty2023-03-18 Simon J Gerraty <sjg@beast.crufty.net> 5788c973ee2SSimon J. Gerraty 5798c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230317 5808c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5818c973ee2SSimon J. Gerraty o compat.c: CompatDeleteTarget skip .PHONY targets to be 5828c973ee2SSimon J. Gerraty consistent with JobDeleteTarget. 5838c973ee2SSimon J. Gerraty o job.c: fix memory leak in handling sysv :from=to modifiers 5848c973ee2SSimon J. Gerraty 5858c973ee2SSimon J. Gerraty2023-03-04 Simon J Gerraty <sjg@beast.crufty.net> 5868c973ee2SSimon J. Gerraty 5878c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230303 5888c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5898c973ee2SSimon J. Gerraty o several updated unit-tests 5908c973ee2SSimon J. Gerraty 5918c973ee2SSimon J. Gerraty2023-02-22 Simon J Gerraty <sjg@beast.crufty.net> 5928c973ee2SSimon J. Gerraty 5938c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230222 5948c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 5958c973ee2SSimon J. Gerraty o unit tests for .MAKE.META.IGNORE_{FILTER,PATHS,PATTERNS} 5968c973ee2SSimon J. Gerraty 5978c973ee2SSimon J. Gerraty2023-02-20 Simon J Gerraty <sjg@beast.crufty.net> 5988c973ee2SSimon J. Gerraty 5998c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230218 6008c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 6018c973ee2SSimon J. Gerraty o var.c: fix parsing of unevaluated subexpressions with 6028c973ee2SSimon J. Gerraty unbalanced '{}' 6038c973ee2SSimon J. Gerraty 6048c973ee2SSimon J. Gerraty2023-02-17 Simon J Gerraty <sjg@beast.crufty.net> 6058c973ee2SSimon J. Gerraty 6068c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230215 6078c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 6088c973ee2SSimon J. Gerraty o inline macros for some variable names 6098c973ee2SSimon J. Gerraty o cond.c: reduce complexity of evaluating expressions 6108c973ee2SSimon J. Gerraty 611dc1b8c9aSSimon J. Gerraty2023-02-08 Simon J Gerraty <sjg@beast.crufty.net> 612dc1b8c9aSSimon J. Gerraty 613dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230208 614dc1b8c9aSSimon J. Gerraty Merge with NetBSD make, pick up 615dc1b8c9aSSimon J. Gerraty o var.c: always use SCOPE_GLOBAL for :_ to avoid problems 616dc1b8c9aSSimon J. Gerraty when it has been used within conditional expressions 617dc1b8c9aSSimon J. Gerraty 618dc1b8c9aSSimon J. Gerraty2023-01-27 Simon J Gerraty <sjg@beast.crufty.net> 619dc1b8c9aSSimon J. Gerraty 620dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230127 621dc1b8c9aSSimon J. Gerraty 622dc1b8c9aSSimon J. Gerraty * install-sh: if making directories ensure umask is set 623dc1b8c9aSSimon J. Gerraty to match mode. 624dc1b8c9aSSimon J. Gerraty 625dc1b8c9aSSimon J. Gerraty * Makefile: use DIRMODE for directories and 626dc1b8c9aSSimon J. Gerraty NONBINMODE for man pages and mk files 627dc1b8c9aSSimon J. Gerraty 6284fde40d9SSimon J. Gerraty2023-01-26 Simon J Gerraty <sjg@beast.crufty.net> 6294fde40d9SSimon J. Gerraty 6304fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230126 6314fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6324fde40d9SSimon J. Gerraty o variables like .newline and .MAKE.{GID,PID,PPID,UID} 6334fde40d9SSimon J. Gerraty should be read-only. 6344fde40d9SSimon J. Gerraty 6354fde40d9SSimon J. Gerraty2023-01-23 Simon J Gerraty <sjg@beast.crufty.net> 6364fde40d9SSimon J. Gerraty 6374fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230123 6384fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6394fde40d9SSimon J. Gerraty o .[NO]READONLY: for control of read-only variables 6404fde40d9SSimon J. Gerraty o .SYSPATH: for controlling the path searched for makefiles 6414fde40d9SSimon J. Gerraty 6424fde40d9SSimon J. Gerraty2023-01-20 Simon J Gerraty <sjg@beast.crufty.net> 6434fde40d9SSimon J. Gerraty 6444fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230120 6454fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6464fde40d9SSimon J. Gerraty o allow for white-space between command specifiers @+- 6474fde40d9SSimon J. Gerraty o add more details to warning 'Extra targets ignored' 6484fde40d9SSimon J. Gerraty 6494fde40d9SSimon J. Gerraty2023-01-12 Simon J Gerraty <sjg@beast.crufty.net> 6504fde40d9SSimon J. Gerraty 6514fde40d9SSimon J. Gerraty * machine.sh: leverage os.sh rather than duplicate 6524fde40d9SSimon J. Gerraty also dispence with the $OS.$MACHINE values - we have $HOST_TARGET 6534fde40d9SSimon J. Gerraty for that purpose for the past decade or so. 6544fde40d9SSimon J. Gerraty We invariably get MACHINE and MACHINE_ARCH at runtime anyway. 6554fde40d9SSimon J. Gerraty 6564fde40d9SSimon J. Gerraty2023-01-02 Simon J Gerraty <sjg@beast.crufty.net> 6574fde40d9SSimon J. Gerraty 6584fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230101 6594fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6604fde40d9SSimon J. Gerraty o cleanup comments, inline some LazyBuf_ methods 6614fde40d9SSimon J. Gerraty o unit-tests/ add/improve comments in tests 6624fde40d9SSimon J. Gerraty o make.1: sync list of built-in variables with reality 6634fde40d9SSimon J. Gerraty sort list of built-in variables 6644fde40d9SSimon J. Gerraty reduce indentation of the long list of variable names 6654fde40d9SSimon J. Gerraty use consistent markup for boolean flags 6664fde40d9SSimon J. Gerraty move description of .MAKE.MODE below the .MAKE.META block 6674fde40d9SSimon J. Gerraty clarify in which case an expression may omit braces 6684fde40d9SSimon J. Gerraty 6694fde40d9SSimon J. Gerraty2022-11-08 Simon J Gerraty <sjg@beast.crufty.net> 6704fde40d9SSimon J. Gerraty 6714fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20221024 6724fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6734fde40d9SSimon J. Gerraty o change return type of unlink_file back to int 6744fde40d9SSimon J. Gerraty 6754fde40d9SSimon J. Gerraty2022-10-07 Simon J Gerraty <sjg@beast.crufty.net> 6764fde40d9SSimon J. Gerraty 6774fde40d9SSimon J. Gerraty * Makefile: Darwin and Linux can handle MANTARGET=man 6784fde40d9SSimon J. Gerraty 6794fde40d9SSimon J. Gerraty2022-09-28 Simon J Gerraty <sjg@beast.crufty.net> 6804fde40d9SSimon J. Gerraty 6814fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220928 6824fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6834fde40d9SSimon J. Gerraty o fix more ignored returns from snprintf 6844fde40d9SSimon J. Gerraty o compile with higher warnings 6854fde40d9SSimon J. Gerraty 6864fde40d9SSimon J. Gerraty2022-09-26 Simon J Gerraty <sjg@beast.crufty.net> 6874fde40d9SSimon J. Gerraty 6884fde40d9SSimon J. Gerraty * main.c meta.c: do not ignore return from snprintf 6894fde40d9SSimon J. Gerraty 6904fde40d9SSimon J. Gerraty * meta.c strlcpy.c: we need prototype for strlcpy 6914fde40d9SSimon J. Gerraty 6924fde40d9SSimon J. Gerraty * sigcompat.c: fix unused function warnings 6934fde40d9SSimon J. Gerraty 6944fde40d9SSimon J. Gerraty2022-09-24 Simon J Gerraty <sjg@beast.crufty.net> 6954fde40d9SSimon J. Gerraty 6964fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220924 6974fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 6984fde40d9SSimon J. Gerraty o fix bug in .break reset of conditional depth 6994fde40d9SSimon J. Gerraty o overhaul and simplify tracking of conditional depth 7004fde40d9SSimon J. Gerraty 7014fde40d9SSimon J. Gerraty2022-09-17 Simon J Gerraty <sjg@beast.crufty.net> 7024fde40d9SSimon J. Gerraty 7034fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220912 7044fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 7054fde40d9SSimon J. Gerraty o man page updates 7064fde40d9SSimon J. Gerraty 7074fde40d9SSimon J. Gerraty2022-09-09 Simon J Gerraty <sjg@beast.crufty.net> 7084fde40d9SSimon J. Gerraty 7094fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220909 7104fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 7114fde40d9SSimon J. Gerraty o update unit-tests to handle deprecation of egrep 7124fde40d9SSimon J. Gerraty o cond.c: add more details to error message for numeric comparison 7134fde40d9SSimon J. Gerraty 7144fde40d9SSimon J. Gerraty * configure.in: allow for deprecation of egrep 7154fde40d9SSimon J. Gerraty 7164fde40d9SSimon J. Gerraty * Makefile: Linux can handle MANTARGET=man 7174fde40d9SSimon J. Gerraty 7184fde40d9SSimon J. Gerraty2022-09-03 Simon J Gerraty <sjg@beast.crufty.net> 7194fde40d9SSimon J. Gerraty 7204fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220903 7214fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 7224fde40d9SSimon J. Gerraty o job.c: fix handling of null bytes in output 7234fde40d9SSimon J. Gerraty 7244fde40d9SSimon J. Gerraty2022-09-02 Simon J Gerraty <sjg@beast.crufty.net> 7254fde40d9SSimon J. Gerraty 7264fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220902 7274fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 7284fde40d9SSimon J. Gerraty o Allow .break to terminate a .for loop early 7294fde40d9SSimon J. Gerraty 7304fde40d9SSimon J. Gerraty2022-09-01 Simon J Gerraty <sjg@beast.crufty.net> 7314fde40d9SSimon J. Gerraty 7324fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220901 7334fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 7344fde40d9SSimon J. Gerraty o var.c: fix out-of-bounds errors when parsing 7354fde40d9SSimon J. Gerraty 7364fde40d9SSimon J. Gerraty2022-08-24 Simon J Gerraty <sjg@beast.crufty.net> 7374fde40d9SSimon J. Gerraty 7384fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220824 7394fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 7404fde40d9SSimon J. Gerraty o var.c: revert change to modifier parsing that breaks 7414fde40d9SSimon J. Gerraty shell variable references within ':@var@body@' 7424fde40d9SSimon J. Gerraty o adjust unit-tests 7434fde40d9SSimon J. Gerraty 7444fde40d9SSimon J. Gerraty2022-08-18 Simon J Gerraty <sjg@beast.crufty.net> 7454fde40d9SSimon J. Gerraty 7464fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220818 7474fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 7484fde40d9SSimon J. Gerraty o fix exit status for '-q' (since 1994) 7494fde40d9SSimon J. Gerraty 7504fde40d9SSimon J. Gerraty2022-08-08 Simon J Gerraty <sjg@beast.crufty.net> 7514fde40d9SSimon J. Gerraty 7524fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220808 7534fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 7544fde40d9SSimon J. Gerraty o var.c: fix parsing of modifiers containing unbalanced subexpressions 7554fde40d9SSimon J. Gerraty extract parsing of ':D' and ':U' modifiers into separate function 7564fde40d9SSimon J. Gerraty 757532d4fbfSSimon J. Gerraty2022-07-26 Simon J Gerraty <sjg@beast.crufty.net> 758532d4fbfSSimon J. Gerraty 759532d4fbfSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220726 760532d4fbfSSimon J. Gerraty 761532d4fbfSSimon J. Gerraty * Auto-create objdir for bmake/unit-tests if appropriate 762532d4fbfSSimon J. Gerraty 763954401e6SSimon J. Gerraty2022-07-24 Simon J Gerraty <sjg@beast.crufty.net> 764954401e6SSimon J. Gerraty 765954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220724 766954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 767954401e6SSimon J. Gerraty o make.1: describe variable assignment and evaluation more precisely 768954401e6SSimon J. Gerraty o parse.c: fix out-of-bounds read when parsing an invalid line 769954401e6SSimon J. Gerraty o var.c: simplify return type of IsShortVarnameValid 770954401e6SSimon J. Gerraty 771954401e6SSimon J. Gerraty2022-06-12 Simon J Gerraty <sjg@beast.crufty.net> 772954401e6SSimon J. Gerraty 773954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220612 774954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 775954401e6SSimon J. Gerraty o allow to randomize build order of targets 776954401e6SSimon J. Gerraty .MAKE.MODE += randomize-targets can help uncover dependency bugs 777954401e6SSimon J. Gerraty within a makefile. 778954401e6SSimon J. Gerraty o compat.c: rename Compat_Run to Compat_MakeAll 779954401e6SSimon J. Gerraty o make.c: inline MakeBuildParent 780954401e6SSimon J. Gerraty inline make_abort, improve error details 781954401e6SSimon J. Gerraty o parse.c: reorganize Parse_Error 782954401e6SSimon J. Gerraty fix memory leak in wildcard targets and sources 783954401e6SSimon J. Gerraty separate cases in HandleDependencyTargetMundane 784954401e6SSimon J. Gerraty extract HandleSingleDependencyTargetMundane 785954401e6SSimon J. Gerraty rename loadfile to LoadFile 786954401e6SSimon J. Gerraty split IncludeFile into separate functions 787954401e6SSimon J. Gerraty condense code for searching a file in the paths 788954401e6SSimon J. Gerraty fix off-by-one error in buffer for .WAIT nodes 789954401e6SSimon J. Gerraty o str.c: condense Str_Match 790954401e6SSimon J. Gerraty make code for string matching syntactically more consistent 791954401e6SSimon J. Gerraty 7922f2a5ecdSSimon J. Gerraty2022-04-18 Simon J Gerraty <sjg@beast.crufty.net> 7932f2a5ecdSSimon J. Gerraty 7942f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220418 7952f2a5ecdSSimon J. Gerraty Merge with NetBSD make, pick up 7962f2a5ecdSSimon J. Gerraty o ignore '.POSIX:' if not in first non-comment line 7972f2a5ecdSSimon J. Gerraty of Makefile as specified by POSIX. 7982f2a5ecdSSimon J. Gerraty add unit-tests for above. 7992f2a5ecdSSimon J. Gerraty o meta.c: make it easier to find usage of identifiers 8002f2a5ecdSSimon J. Gerraty o targ.c: add .USEBEFORE to Targ_PrintType 8012f2a5ecdSSimon J. Gerraty 8022f2a5ecdSSimon J. Gerraty2022-04-14 Simon J Gerraty <sjg@beast.crufty.net> 8032f2a5ecdSSimon J. Gerraty 8042f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220414 8052f2a5ecdSSimon J. Gerraty 8062f2a5ecdSSimon J. Gerraty * unit-tests/Makefile: simplify checks for shells with 8072f2a5ecdSSimon J. Gerraty BROKEN_TESTS, this helps with other Linux distros that 8082f2a5ecdSSimon J. Gerraty use dash. 8092f2a5ecdSSimon J. Gerraty 8101d3f2ddcSSimon J. Gerraty2022-03-30 Simon J Gerraty <sjg@beast.crufty.net> 8111d3f2ddcSSimon J. Gerraty 8121d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220330 8131d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 8141d3f2ddcSSimon J. Gerraty o var.c: fix spacing, and a typo in a test 8151d3f2ddcSSimon J. Gerraty 8161d3f2ddcSSimon J. Gerraty2022-03-26 Simon J Gerraty <sjg@beast.crufty.net> 8171d3f2ddcSSimon J. Gerraty 8181d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220326 8191d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 8201d3f2ddcSSimon J. Gerraty o parse.c: try to include 'posix.mk' the first time 8211d3f2ddcSSimon J. Gerraty .POSIX: is encountered, to allow for beter POSIX compliance. 8221d3f2ddcSSimon J. Gerraty o var.c: make debug logs more readable 8231d3f2ddcSSimon J. Gerraty prefer 'long long' over 'long' on 32-bit C99 platforms 8241d3f2ddcSSimon J. Gerraty fix crash on .undef of an environment variable 8251d3f2ddcSSimon J. Gerraty 8261d3f2ddcSSimon J. Gerraty2022-03-03 Simon J Gerraty <sjg@beast.crufty.net> 8271d3f2ddcSSimon J. Gerraty 8281d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220303 8291d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 8301d3f2ddcSSimon J. Gerraty o tell meta mode unit tests not to expect filemon 8311d3f2ddcSSimon J. Gerraty o cond.c: make debug logging for comparisons less technical 8321d3f2ddcSSimon J. Gerraty o lst.c: fix mem leak in Lst_Remove 8331d3f2ddcSSimon J. Gerraty o str.c: make code for string matching syntactically more consistent 8341d3f2ddcSSimon J. Gerraty o var.c: simplify ParseModifier_Match 8351d3f2ddcSSimon J. Gerraty 8361d3f2ddcSSimon J. Gerraty2022-02-14 Simon J Gerraty <sjg@beast.crufty.net> 8371d3f2ddcSSimon J. Gerraty 8381d3f2ddcSSimon J. Gerraty * unit-tests/Makefile: control MAKESYSPATH for deptgt-phony 8391d3f2ddcSSimon J. Gerraty 8401d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220214 8411d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 8421d3f2ddcSSimon J. Gerraty o cond.c: simplify control flow in CondParser_Comparison 8431d3f2ddcSSimon J. Gerraty o job.c: fix echoing of command with '-' in silent target in jobs mode 8441d3f2ddcSSimon J. Gerraty o main.c: prefix the warning about read-only .OBJDIR with a colon 8451d3f2ddcSSimon J. Gerraty o parse.c: remove redundant conditions 8461d3f2ddcSSimon J. Gerraty o var.c: simplify control flow in ModifyWord_SysVSubst 8471d3f2ddcSSimon J. Gerraty 848a6f0e10bSSimon J. Gerraty2022-02-08 Simon J Gerraty <sjg@beast.crufty.net> 849a6f0e10bSSimon J. Gerraty 850a6f0e10bSSimon J. Gerraty * unit-tests/Makefile: disable opt-debug-x-trace on Linux if there 851a6f0e10bSSimon J. Gerraty is any chance we have dash as .SHELL 852a6f0e10bSSimon J. Gerraty 853a6f0e10bSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220208 854a6f0e10bSSimon J. Gerraty Merge with NetBSD make, pick up 855a6f0e10bSSimon J. Gerraty o more unit tests 856a6f0e10bSSimon J. Gerraty o meta.c: use a variable to hold command line to be filtered 857a6f0e10bSSimon J. Gerraty to avoid any side effects from content of command line. 858a6f0e10bSSimon J. Gerraty 8599f45a3c8SSimon J. Gerraty2022-02-04 Simon J Gerraty <sjg@beast.crufty.net> 8609f45a3c8SSimon J. Gerraty 8619f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220204 8629f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8639f45a3c8SSimon J. Gerraty o use unsigned consistently for line numbers, avoid the need for %z 8649f45a3c8SSimon J. Gerraty o parse.c: do not step off end of input in Parse_IsVar 8659f45a3c8SSimon J. Gerraty when checking for target local variable assignments 8669f45a3c8SSimon J. Gerraty 8679f45a3c8SSimon J. Gerraty2022-02-02 Simon J Gerraty <sjg@beast.crufty.net> 8689f45a3c8SSimon J. Gerraty 8699f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220202 8709f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8719f45a3c8SSimon J. Gerraty o remove redundant declaration of HashIter_Init 8729f45a3c8SSimon J. Gerraty o make DEBUG0 simpler 8739f45a3c8SSimon J. Gerraty 8749f45a3c8SSimon J. Gerraty2022-01-30 Simon J Gerraty <sjg@beast.crufty.net> 8759f45a3c8SSimon J. Gerraty 8769f45a3c8SSimon J. Gerraty * cast gn->lineno to avoid %z 8779f45a3c8SSimon J. Gerraty 8789f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220130 8799f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8809f45a3c8SSimon J. Gerraty o more unit tests 8819f45a3c8SSimon J. Gerraty o make GNode lineno unsigned to please lint 8829f45a3c8SSimon J. Gerraty o print location of recursive variable references in commands 8839f45a3c8SSimon J. Gerraty o print "stack trace" (makefile includes) on fatal errors 8849f45a3c8SSimon J. Gerraty o make.1: refine documentation for target local assignments 8859f45a3c8SSimon J. Gerraty 8869f45a3c8SSimon J. Gerraty2022-01-28 Simon J Gerraty <sjg@beast.crufty.net> 8879f45a3c8SSimon J. Gerraty 8889f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220128 8899f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 8909f45a3c8SSimon J. Gerraty o inline functions called only once 8919f45a3c8SSimon J. Gerraty o for.c: clean up AddEscape for building the body of a .for loop 8929f45a3c8SSimon J. Gerraty o hash.c: merge duplicate code for finding an entry in a hash table 8939f45a3c8SSimon J. Gerraty replace HashEntry_KeyEquals with strncmp 8949f45a3c8SSimon J. Gerraty o make.1: document quirks of target local variable assignments. 8959f45a3c8SSimon J. Gerraty o parse.c: cleanup white-space 8969f45a3c8SSimon J. Gerraty 8979f45a3c8SSimon J. Gerraty2022-01-26 Simon J Gerraty <sjg@beast.crufty.net> 8989f45a3c8SSimon J. Gerraty 8999f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220126 9009f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 9019f45a3c8SSimon J. Gerraty o allow setting target local variables 9029f45a3c8SSimon J. Gerraty o more unit tests 9039f45a3c8SSimon J. Gerraty o add missing newline after "cannot continue" message 9049f45a3c8SSimon J. Gerraty o meta.c: clean up eat_dots 9059f45a3c8SSimon J. Gerraty o parse.c: fix filename in warning about duplicate script 9069f45a3c8SSimon J. Gerraty o var.c: when expanding nested variables, check simple things first 9079f45a3c8SSimon J. Gerraty 9089f45a3c8SSimon J. Gerraty2022-01-16 Simon J Gerraty <sjg@beast.crufty.net> 9099f45a3c8SSimon J. Gerraty 9109f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220116 9119f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 9129f45a3c8SSimon J. Gerraty o fix for unit-tests/varname-makeflags on non-BSD systems 9139f45a3c8SSimon J. Gerraty o use Var_Exists rather than Var_Value where appropriate 9149f45a3c8SSimon J. Gerraty o remove unnecessary functions for expanding variable names 9159f45a3c8SSimon J. Gerraty o cond.c: inline EvalBare 9169f45a3c8SSimon J. Gerraty o main.c: lint cleanup 9179f45a3c8SSimon J. Gerraty o parse.c: condense code in Parse_IsVar 9189f45a3c8SSimon J. Gerraty use islower for parsing directives (none have upper case) 9199f45a3c8SSimon J. Gerraty 9209f45a3c8SSimon J. Gerraty2022-01-12 Simon J Gerraty <sjg@beast.crufty.net> 9219f45a3c8SSimon J. Gerraty 9229f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220112 9239f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 9249f45a3c8SSimon J. Gerraty o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before 9259f45a3c8SSimon J. Gerraty comparion, rarely needed but useful when it is. 9269f45a3c8SSimon J. Gerraty 9279f45a3c8SSimon J. Gerraty2022-01-10 Simon J Gerraty <sjg@beast.crufty.net> 9289f45a3c8SSimon J. Gerraty 9299f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220110 9309f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 9319f45a3c8SSimon J. Gerraty o inline Buf_Clear 9329f45a3c8SSimon J. Gerraty o remove redundant braces 9339f45a3c8SSimon J. Gerraty o rename and inline Targ_Precious 9349f45a3c8SSimon J. Gerraty o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf 9359f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops 9369f45a3c8SSimon J. Gerraty fix reported line numbers of continuation lines 9379f45a3c8SSimon J. Gerraty add details about .for loop variables to stack traces 9389f45a3c8SSimon J. Gerraty o job.c: reduce code for initializing error handling in shell 9399f45a3c8SSimon J. Gerraty o main.c: in Cmd_Exec, return error message instead of format string 9409f45a3c8SSimon J. Gerraty have as few statements as possible between va_start and va_end 9419f45a3c8SSimon J. Gerraty add debug logging for capturing the output of external commands 9429f45a3c8SSimon J. Gerraty o make.c: use consistent variable names for varargs 9439f45a3c8SSimon J. Gerraty o make_malloc.c: remove duplicate code from bmake_strdup 9449f45a3c8SSimon J. Gerraty o parse.c: add missing printflike annotations 9459f45a3c8SSimon J. Gerraty remove redundant lines from stack traces 9469f45a3c8SSimon J. Gerraty fix stack traces in -dp mode 9479f45a3c8SSimon J. Gerraty reduce confusing code in ParseForLoop 9489f45a3c8SSimon J. Gerraty fix line number in debug log after returning from a file 9499f45a3c8SSimon J. Gerraty rename IFile and its fields to match their actual content 9509f45a3c8SSimon J. Gerraty clean up ParseDependencySources 9519f45a3c8SSimon J. Gerraty o var.c: shorten ApplyModifier_Assign 9529f45a3c8SSimon J. Gerraty rename is_shell_metachar, fix character conversion warning 9539f45a3c8SSimon J. Gerraty merge calls to ApplyModifier_Time 9549f45a3c8SSimon J. Gerraty merge duplicate code for modifiers 'gmtime' and 'localtime' 9559f45a3c8SSimon J. Gerraty 9569f45a3c8SSimon J. Gerraty2022-01-04 Simon J Gerraty <sjg@beast.crufty.net> 9579f45a3c8SSimon J. Gerraty 9589f45a3c8SSimon J. Gerraty * parse.c: loadfile restore extra byte in buffer. 9599f45a3c8SSimon J. Gerraty 9609f45a3c8SSimon J. Gerraty2022-01-01 Simon J Gerraty <sjg@beast.crufty.net> 9619f45a3c8SSimon J. Gerraty 9629f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220101 9639f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 9649f45a3c8SSimon J. Gerraty o more unit-tests 9659f45a3c8SSimon J. Gerraty o remove unnecessary words from command line options in CmdOpts 9669f45a3c8SSimon J. Gerraty o rename eunlink to unlink_file 9679f45a3c8SSimon J. Gerraty o cond.c: make ParseWord in condition parser simpler 9689f45a3c8SSimon J. Gerraty internally return false for irrelevant leaves in conditions 9699f45a3c8SSimon J. Gerraty replace table for function lookup in conditions with simple code 9709f45a3c8SSimon J. Gerraty merge duplicate types CondEvalResult and CondResult 9719f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops and .include directives 9729f45a3c8SSimon J. Gerraty o main.c: constify cached_realpath 9739f45a3c8SSimon J. Gerraty clean up Cmd_Exec 9749f45a3c8SSimon J. Gerraty o parse.c: sync API documentation 9759f45a3c8SSimon J. Gerraty fix error message when reading more than 1 GB from stdin 9769f45a3c8SSimon J. Gerraty clean up parsing of makefiles 9779f45a3c8SSimon J. Gerraty fix line number in error message about open conditionals 9789f45a3c8SSimon J. Gerraty unexport types VarAssignOp and VarAssign 9799f45a3c8SSimon J. Gerraty clean up function names 9809f45a3c8SSimon J. Gerraty remove redundant parameters in dependency parsing functions 9819f45a3c8SSimon J. Gerraty reduce scope of the list of wildcard target names 9829f45a3c8SSimon J. Gerraty extract OP_NOTARGET into separate function 9839f45a3c8SSimon J. Gerraty clean up variable names for parsing dependency lines 9849f45a3c8SSimon J. Gerraty make debug logging a bit more human-friendly 9859f45a3c8SSimon J. Gerraty o var.c: condense code in ApplyModifier_Assign 9869f45a3c8SSimon J. Gerraty 9879f45a3c8SSimon J. Gerraty2021-12-21 Simon J Gerraty <sjg@beast.crufty.net> 9889f45a3c8SSimon J. Gerraty 9899f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211221 9909f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 9919f45a3c8SSimon J. Gerraty o more unit-tests 9929f45a3c8SSimon J. Gerraty o style cleanup 9939f45a3c8SSimon J. Gerraty o in CLEANUP mode, free interned strings at the very end 9949f45a3c8SSimon J. Gerraty o fix memory leak for filenames in .for loops 9959f45a3c8SSimon J. Gerraty o buf.c: avoid memory leak 9969f45a3c8SSimon J. Gerraty o cond.c: condense CondParser_ComparisonOp 9979f45a3c8SSimon J. Gerraty o hash.c: change return type of HashTable_Set to void 9989f45a3c8SSimon J. Gerraty o job.c: change return type of Compat_RunCommand from int to bool 9999f45a3c8SSimon J. Gerraty o main.c: remove bmake_free 10009f45a3c8SSimon J. Gerraty o parse.c: condense repetetive code in ParseDirective 10019f45a3c8SSimon J. Gerraty remove dead code for handling traditional include directives 10029f45a3c8SSimon J. Gerraty clean up parsing of variable assignments 10039f45a3c8SSimon J. Gerraty remove unreachable code for parsing the dependency operator 10049f45a3c8SSimon J. Gerraty clean up loading of files 10059f45a3c8SSimon J. Gerraty fix memory leak in IncludeFile 10069f45a3c8SSimon J. Gerraty o var.c: fix memory leak when parsing a variable name 10079f45a3c8SSimon J. Gerraty fix memory leak from ${.SUFFIXES} 10089f45a3c8SSimon J. Gerraty reduce memory allocation in modifier ':?' and ':C' 10099f45a3c8SSimon J. Gerraty condense RegexReplace for the modifier ':C' and avoid strlen 10109f45a3c8SSimon J. Gerraty merge duplicate code for memory handling in Var_Parse 10119f45a3c8SSimon J. Gerraty distinguish between short-lived and environment variables 10129f45a3c8SSimon J. Gerraty rename VarFreeEnv to VarFreeShortLived 10139f45a3c8SSimon J. Gerraty 101412904384SSimon J. Gerraty2021-12-15 Simon J Gerraty <sjg@beast.crufty.net> 101512904384SSimon J. Gerraty 101612904384SSimon J. Gerraty * cond.c: fix mem leak in CondParser_Leaf 101712904384SSimon J. Gerraty 101812904384SSimon J. Gerraty2021-12-12 Simon J Gerraty <sjg@beast.crufty.net> 101912904384SSimon J. Gerraty 102012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211212 102112904384SSimon J. Gerraty Merge with NetBSD make, pick up 102212904384SSimon J. Gerraty o rename Parse_SetInput to Parse_PushInput 102312904384SSimon J. Gerraty o remove remove period from end of error messages and warnings 102412904384SSimon J. Gerraty to be more consistent 102512904384SSimon J. Gerraty o arch.c: use simpler memory management for parsing archive members 102612904384SSimon J. Gerraty o cond.c: rework and reduce recursion 102712904384SSimon J. Gerraty o for.c: rename some functions to better reflect purpose 102812904384SSimon J. Gerraty o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string. 102912904384SSimon J. Gerraty o var.c: in parse errors, mark whitespace more clearly 103012904384SSimon J. Gerraty inline ParseEmptyArg into CondParser_FuncCallEmpty 103112904384SSimon J. Gerraty minimize calls to LazyBuf_Get in ParseVarnameLong 103212904384SSimon J. Gerraty treat .SUFFIXES as a read-only variable 103312904384SSimon J. Gerraty 103412904384SSimon J. Gerraty2021-12-07 Simon J Gerraty <sjg@beast.crufty.net> 103512904384SSimon J. Gerraty 103612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211207 103712904384SSimon J. Gerraty Merge with NetBSD make, pick up 103812904384SSimon J. Gerraty o inline HashIter_Init 103912904384SSimon J. Gerraty o parse.c: inline common subexpression in ParseRawLine 104012904384SSimon J. Gerraty o var.c: merge branches for modifiers ':D' and ':U' 104112904384SSimon J. Gerraty extract common code into Expr_Words 104212904384SSimon J. Gerraty extract common code into Expr_Str 104312904384SSimon J. Gerraty move low-level implementation details out of Var_Parse 104412904384SSimon J. Gerraty 104512904384SSimon J. Gerraty2021-12-06 Simon J Gerraty <sjg@beast.crufty.net> 104612904384SSimon J. Gerraty 104712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211206 104812904384SSimon J. Gerraty Merge with NetBSD make, pick up 104912904384SSimon J. Gerraty o add unit-tests/varmod-loop-delete 105012904384SSimon J. Gerraty o for.c: inline Str_Words - reduce memory allocation 105112904384SSimon J. Gerraty o parse.c: do not try to expand fixed variable names 105212904384SSimon J. Gerraty only allocate the name of an included file if necessary 105312904384SSimon J. Gerraty clean up ParseInclude 105412904384SSimon J. Gerraty o var.c: fix use-after-free in modifier ':@' 105512904384SSimon J. Gerraty save a memory allocation in each modifier ':O' and ':u' 105612904384SSimon J. Gerraty save a memory allocation in the modifier ':[...]' 105712904384SSimon J. Gerraty in UnexportVars, replace Str_Words with Substring_Words to 105812904384SSimon J. Gerraty reduce allocations and copying. 105912904384SSimon J. Gerraty 106012904384SSimon J. Gerraty2021-12-04 Simon J Gerraty <sjg@beast.crufty.net> 106112904384SSimon J. Gerraty 106212904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211204 106312904384SSimon J. Gerraty Merge with NetBSD make, pick up 106412904384SSimon J. Gerraty o flesh out a number of tests 106512904384SSimon J. Gerraty o replace enums with bitfields, this simplifies a lot of code. 106612904384SSimon J. Gerraty o var.c: refactor ParseModifierPartSubst 106712904384SSimon J. Gerraty 106812904384SSimon J. Gerraty2021-10-24 Simon J Gerraty <sjg@beast.crufty.net> 106912904384SSimon J. Gerraty 107012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211024 107112904384SSimon J. Gerraty Merge with NetBSD make, pick up 107212904384SSimon J. Gerraty o Punt on write errors - ENOSPC etc. 107312904384SSimon J. Gerraty 107412904384SSimon J. Gerraty2021-10-22 Simon J Gerraty <sjg@beast.crufty.net> 107512904384SSimon J. Gerraty 107612904384SSimon J. Gerraty * configure.in: use_defshell, set both DEFSHELL_INDEX 107712904384SSimon J. Gerraty and defshell_path if appropriate. 107812904384SSimon J. Gerraty This makes it easier to use say the KSH specification with 107912904384SSimon J. Gerraty and alternate path for the shell. 108012904384SSimon J. Gerraty 108112904384SSimon J. Gerraty * configure.in compat.c: for SCO we need to force UseShell 108212904384SSimon J. Gerraty 108312904384SSimon J. Gerraty * configure.in: SCO /bin/sh is not usable, provide a list of 108412904384SSimon J. Gerraty alternatives for use as .SHELL. 108512904384SSimon J. Gerraty We still have to mark some tests as broken, plus more if we end up 108612904384SSimon J. Gerraty with ksh as .SHELL. 108712904384SSimon J. Gerraty Issue a warning about skipped tests. 108812904384SSimon J. Gerraty 108912904384SSimon J. Gerraty * boot-strap: leave TOOL_DIFF to configure 109012904384SSimon J. Gerraty 109112904384SSimon J. Gerraty * configure.in: on SCO native cc is not usable, 109212904384SSimon J. Gerraty gcc is to be found in /usr/gnu/bin 109312904384SSimon J. Gerraty and while ancient is at least able to compile bmake. 109412904384SSimon J. Gerraty Thus we add /usr/gnu/bin to PATH if it exists, and later 109512904384SSimon J. Gerraty check if $CC would have been found via $PATH. 109612904384SSimon J. Gerraty If not we set CC to the full path of $CC. 109712904384SSimon J. Gerraty Also gnu diff is known to support -u, so if it exists use it. 109812904384SSimon J. Gerraty 109912904384SSimon J. Gerraty * configure.in: move getopt to AC_REPLACE_FUNCS 110012904384SSimon J. Gerraty also add AC_C_INLINE - in an attempt to compile using 110112904384SSimon J. Gerraty native cc on SCO. 110212904384SSimon J. Gerraty 110312904384SSimon J. Gerraty * configure.in: check for stresep as well as strsep, since we 110412904384SSimon J. Gerraty define the later to the former if necessary, and if we have to 110512904384SSimon J. Gerraty provide stresep we also need to provide a prototype. 110612904384SSimon J. Gerraty 110712904384SSimon J. Gerraty * configure.in: we no longer need to worry about 110812904384SSimon J. Gerraty sys/cdefs.h providing __RCSID which simplifies things quite a bit. 110912904384SSimon J. Gerraty 111012904384SSimon J. Gerraty * make.h: make sure we have __RCSID 111112904384SSimon J. Gerraty 111212904384SSimon J. Gerraty * unit-tests/Makefile.config.in: add TOOL_DIFF so configure 111312904384SSimon J. Gerraty can control it. 111412904384SSimon J. Gerraty 111512904384SSimon J. Gerraty2021-10-20 Simon J Gerraty <sjg@beast.crufty.net> 111612904384SSimon J. Gerraty 111712904384SSimon J. Gerraty * VERSION: 20211020 111812904384SSimon J. Gerraty Merge with NetBSD make, pick up 111912904384SSimon J. Gerraty o confirm sync of unit-tests 112012904384SSimon J. Gerraty 112112904384SSimon J. Gerraty2021-10-18 Simon J Gerraty <sjg@beast.crufty.net> 112212904384SSimon J. Gerraty 112312904384SSimon J. Gerraty * configure.in: check if timezone Europe/Berlin is supported 112412904384SSimon J. Gerraty if not try UTC-1 112512904384SSimon J. Gerraty * configure.in: if .OBJDIR is $srcdir/obj we need to create a 112612904384SSimon J. Gerraty symlink unit-tests -> ../unit-tests/obj so that 112712904384SSimon J. Gerraty unit-tests/Makefile.config is put in the right place. 112812904384SSimon J. Gerraty * refine filtering of .OBJDIR in unit-tests 112912904384SSimon J. Gerraty 113012904384SSimon J. Gerraty2021-10-16 Simon J Gerraty <sjg@beast.crufty.net> 113112904384SSimon J. Gerraty 113212904384SSimon J. Gerraty * Fix unit-tests on Minix 3.2.0 113312904384SSimon J. Gerraty o job.c: do not punt if read of token pipe fails for EAGAIN. 113412904384SSimon J. Gerraty On Minix at least, we are not ready to read the childExitJob pipe 113512904384SSimon J. Gerraty when poll says we are. 113612904384SSimon J. Gerraty There should actually be no reason for this pipe to be 113712904384SSimon J. Gerraty non-blocking, but while that works fine on {Net,Free}BSD it 113812904384SSimon J. Gerraty breaks another test case on Minix. 113912904384SSimon J. Gerraty o unit-tests/Makefile: deal with variants of error messages 114012904384SSimon J. Gerraty and use of obj as .OBJDIR 114112904384SSimon J. Gerraty 114212904384SSimon J. Gerraty2021-10-14 Simon J Gerraty <sjg@beast.crufty.net> 114312904384SSimon J. Gerraty 114412904384SSimon J. Gerraty * configure.in: add sigaction to AC_REPLACE_FUNCS 114512904384SSimon J. Gerraty we also need to check for sigaddset etc just for the benefit of 114612904384SSimon J. Gerraty sigact.c 114712904384SSimon J. Gerraty 114812904384SSimon J. Gerraty * Add sigact.c as sigaction.c so this "just works". 114912904384SSimon J. Gerraty This should have been done back when bmake_signal started using 115012904384SSimon J. Gerraty sigaction (I only just noticed that sigact.c wasn't here ;-) 115112904384SSimon J. Gerraty Note: I no longer have access to any system where this would matter. 115212904384SSimon J. Gerraty 115312904384SSimon J. Gerraty2021-10-13 Simon J Gerraty <sjg@beast.crufty.net> 115412904384SSimon J. Gerraty 115512904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211011 115612904384SSimon J. Gerraty 115712904384SSimon J. Gerraty * Makefile: cleanup a little 115812904384SSimon J. Gerraty 115912904384SSimon J. Gerraty * configure.in: check for sigsetmask 116012904384SSimon J. Gerraty 116112904384SSimon J. Gerraty2021-10-01 Simon J Gerraty <sjg@beast.crufty.net> 116212904384SSimon J. Gerraty 116312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211001 116412904384SSimon J. Gerraty Merge with NetBSD make, pick up 116512904384SSimon J. Gerraty o reduce locations reducing text size 116612904384SSimon J. Gerraty o remove unnecessary const 116712904384SSimon J. Gerraty o cond.c: fix lint warning on i386 116812904384SSimon J. Gerraty do not allow unquoted 'left == right' after modifier ':?' 116912904384SSimon J. Gerraty o hash.c: fix build for DEBUG_HASH_LOOKUP 117012904384SSimon J. Gerraty o var.c: fix memory leak in error case of the ':?' modifier 117112904384SSimon J. Gerraty 117212904384SSimon J. Gerraty2021-09-11 Simon J Gerraty <sjg@beast.crufty.net> 117312904384SSimon J. Gerraty 117412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210911 117512904384SSimon J. Gerraty Merge with NetBSD make, pick up 117612904384SSimon J. Gerraty o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval 117712904384SSimon J. Gerraty 117812904384SSimon J. Gerraty2021-09-08 Simon J Gerraty <sjg@beast.crufty.net> 117912904384SSimon J. Gerraty 118012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210906 118112904384SSimon J. Gerraty Merge with NetBSD make, pick up 118212904384SSimon J. Gerraty o more unit tests 118312904384SSimon J. Gerraty o lint cleanup 118412904384SSimon J. Gerraty o rename some functions to better fit purpose 118512904384SSimon J. Gerraty o for.c: cleanup - remove unnecessary optimization 118612904384SSimon J. Gerraty fix embedded newlines 118712904384SSimon J. Gerraty o parse.c: correct case for CVS/RCS 118812904384SSimon J. Gerraty 118912904384SSimon J. Gerraty2021-08-11 Simon J Gerraty <sjg@beast.crufty.net> 119012904384SSimon J. Gerraty 119112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210808 119212904384SSimon J. Gerraty Merge with NetBSD make, pick up 119312904384SSimon J. Gerraty o var.c: remove redundant initialization in ApplyModifier_Order 119412904384SSimon J. Gerraty 119512904384SSimon J. Gerraty * mk/options.mk: issue warning for incorrect usage 119612904384SSimon J. Gerraty 119712904384SSimon J. Gerraty2021-08-03 Simon J Gerraty <sjg@beast.crufty.net> 119812904384SSimon J. Gerraty 119912904384SSimon J. Gerraty * var.c: use long for :On if we don't have a 64bit int type 120012904384SSimon J. Gerraty 120112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210803 120212904384SSimon J. Gerraty Merge with NetBSD make, pick up 120312904384SSimon J. Gerraty o rework varmod-order tests to avoid qsort instability 120412904384SSimon J. Gerraty o make.1: clarify :On entry 120512904384SSimon J. Gerraty 120612904384SSimon J. Gerraty2021-07-31 Simon J Gerraty <sjg@beast.crufty.net> 120712904384SSimon J. Gerraty 120812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210731 120912904384SSimon J. Gerraty Merge with NetBSD make, pick up 121012904384SSimon J. Gerraty o fix some lint issues 121112904384SSimon J. Gerraty o more unit tests 121212904384SSimon J. Gerraty o var.c: rework of ApplyModifier_Order 121312904384SSimon J. Gerraty 121412904384SSimon J. Gerraty2021-07-30 Simon J Gerraty <sjg@beast.crufty.net> 121512904384SSimon J. Gerraty 121612904384SSimon J. Gerraty * util.c: add strto*l if HAVE_STRTO*L not defined 121712904384SSimon J. Gerraty 121812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210730 121912904384SSimon J. Gerraty Merge with NetBSD make, pick up 122012904384SSimon J. Gerraty o var.c: add :On and :Orn for numeric sort 122112904384SSimon J. Gerraty disabled if no 64bit type available. 122212904384SSimon J. Gerraty o _strtol.h: to implement strto*l functions 122312904384SSimon J. Gerraty 122412904384SSimon J. Gerraty2021-07-04 Simon J Gerraty <sjg@beast.crufty.net> 122512904384SSimon J. Gerraty 122612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210704 122712904384SSimon J. Gerraty Merge with NetBSD make, pick up 122812904384SSimon J. Gerraty o unit-tests: fix some tests to be more portable 122912904384SSimon J. Gerraty - job-output-null not all shells do the same number of write calls 123012904384SSimon J. Gerraty - objdir-writable if TMPDIR is set; /tmp may not be usable 123112904384SSimon J. Gerraty 123212904384SSimon J. Gerraty2021-07-01 Simon J Gerraty <sjg@beast.crufty.net> 123312904384SSimon J. Gerraty 123412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210701 123512904384SSimon J. Gerraty Merge with NetBSD make, pick up 123612904384SSimon J. Gerraty o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped; 123712904384SSimon J. Gerraty some tests just cannot work in some environments. 123812904384SSimon J. Gerraty o buf.c: simpler upper bound for length in Buf_AddInt 123912904384SSimon J. Gerraty o cond.c: fix grammar in error message for malformed conditional 124012904384SSimon J. Gerraty o for.c: prevent newline injection (from ${.newline}) in .for loops 124112904384SSimon J. Gerraty o var.c: use more practical data type in RegexReplace 124212904384SSimon J. Gerraty (avoid need for %zu) 124312904384SSimon J. Gerraty extract RegexReplace from ModifyWord_SubstRegex 124412904384SSimon J. Gerraty 1245b0c40a00SSimon J. Gerraty2021-06-21 Simon J Gerraty <sjg@beast.crufty.net> 1246b0c40a00SSimon J. Gerraty 1247b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210621 1248b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1249b0c40a00SSimon J. Gerraty o var.c: only report error for unmatched regex subexpression 1250b0c40a00SSimon J. Gerraty when linting (-dL) since we cannot tell when an unmatched 1251b0c40a00SSimon J. Gerraty subexpression is an expected result. 1252b0c40a00SSimon J. Gerraty o move unmatched regex subexpression tests to 1253b0c40a00SSimon J. Gerraty varmod-subst-regex.mk and enable strict (lint) mode 1254b0c40a00SSimon J. Gerraty 1255b0c40a00SSimon J. Gerraty2021-06-16 Simon J Gerraty <sjg@beast.crufty.net> 1256b0c40a00SSimon J. Gerraty 1257b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210616 1258b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1259b0c40a00SSimon J. Gerraty o more unit tests 1260b0c40a00SSimon J. Gerraty o cond.c: rename If_Eval to EvalBare 1261b0c40a00SSimon J. Gerraty improve function names for parsing conditions 1262b0c40a00SSimon J. Gerraty o job.c: fix error handling of targets that cannot be made 1263b0c40a00SSimon J. Gerraty o var.c: uncompress code in ApplyModifier_Unique 1264b0c40a00SSimon J. Gerraty 1265b0c40a00SSimon J. Gerraty2021-05-18 Simon J Gerraty <sjg@beast.crufty.net> 1266b0c40a00SSimon J. Gerraty 1267b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210518 1268b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1269b0c40a00SSimon J. Gerraty o fix unit-tests/opt-chdir to cope with /nonexistent existing. 1270b0c40a00SSimon J. Gerraty o job.c: Print -de error information when running multiple jobs 1271b0c40a00SSimon J. Gerraty 1272b0c40a00SSimon J. Gerraty2021-04-20 Simon J Gerraty <sjg@beast.crufty.net> 1273b0c40a00SSimon J. Gerraty 1274b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210420 1275b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1276b0c40a00SSimon J. Gerraty o use C99 bool type 1277b0c40a00SSimon J. Gerraty o convert VarEvalFlags back into an enum 1278b0c40a00SSimon J. Gerraty o cond.c: do not complain when skipping the condition 'no >= 10' 1279b0c40a00SSimon J. Gerraty o hash.c: avoid allocating memory for simple variable names 1280b0c40a00SSimon J. Gerraty o job.c: use distinct wording for writing to the shell commands file 1281b0c40a00SSimon J. Gerraty remove type name for the abort status in job handling 1282b0c40a00SSimon J. Gerraty rename PrintOutput to PrintFilteredOutput to avoid confusion 1283b0c40a00SSimon J. Gerraty o main.c: avoid double slash in name of temporary directory 1284b0c40a00SSimon J. Gerraty o var.c: use straight quotes for error 'Bad conditional expression' 1285b0c40a00SSimon J. Gerraty reduce memory allocations in the modifiers ':D' and ':U' 1286b0c40a00SSimon J. Gerraty rename members of ModifyWord_LoopArgs 1287b0c40a00SSimon J. Gerraty clean up pattern flags for the modifiers ':S' and ':C' 1288b0c40a00SSimon J. Gerraty reduce memory allocation and strlen calls in modifier ':from=to' 1289b0c40a00SSimon J. Gerraty in the ':Q' modifier, only allocate memory if necessary 1290b0c40a00SSimon J. Gerraty improve performance for LazyBuf 1291b0c40a00SSimon J. Gerraty remove redundant parameter from ParseVarnameLong 1292b0c40a00SSimon J. Gerraty migrate ParseModifierPart to use Substring 1293b0c40a00SSimon J. Gerraty avoid unnecessary calls to strlen when evaluating modifiers 1294b0c40a00SSimon J. Gerraty migrate ModifyWord functions to use Substring 1295b0c40a00SSimon J. Gerraty migrate handling of the modifier ':S,from,to,' to Substring 1296b0c40a00SSimon J. Gerraty reduce debug logging and memory allocation for ${:U...} 1297b0c40a00SSimon J. Gerraty reduce verbosity of the -dv debug logging for standard cases 1298b0c40a00SSimon J. Gerraty clean up debug logging for ':M' and ':N' 1299b0c40a00SSimon J. Gerraty disallow '$' in the variable name of the modifier ':@' 1300b0c40a00SSimon J. Gerraty simplify access to the name of an expression during evaluation 1301b0c40a00SSimon J. Gerraty 1302b0c40a00SSimon J. Gerraty2021-03-30 Simon J Gerraty <sjg@beast.crufty.net> 1303b0c40a00SSimon J. Gerraty 1304b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210330 1305b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1306b0c40a00SSimon J. Gerraty o replace enum bit-field with struct bit-field for VarEvalFlags 1307b0c40a00SSimon J. Gerraty o rename VARE_NONE to VARE_PARSE_ONLY 1308b0c40a00SSimon J. Gerraty o var.c: rename ApplyModifiersState to ModChain 1309b0c40a00SSimon J. Gerraty fix double varname expansion in the variable modifier '::=' 1310b0c40a00SSimon J. Gerraty change debug log for variable evaluation flags to lowercase 1311b0c40a00SSimon J. Gerraty 1312b0c40a00SSimon J. Gerraty2021-03-14 Simon J Gerraty <sjg@beast.crufty.net> 1313b0c40a00SSimon J. Gerraty 1314b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210314 1315b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1316b0c40a00SSimon J. Gerraty o var.c: avoid evaluating many modifiers in parse only mode 1317b0c40a00SSimon J. Gerraty in strict mode (-dL) many variable references are parsed twice, 1318b0c40a00SSimon J. Gerraty the first time just to report parse errors early, so we want to 1319b0c40a00SSimon J. Gerraty avoid side effects and wasted effort to the extent possible. 1320b0c40a00SSimon J. Gerraty 1321b0c40a00SSimon J. Gerraty2021-02-26 Simon J Gerraty <sjg@beast.crufty.net> 1322b0c40a00SSimon J. Gerraty 1323b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210226 1324b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1325b0c40a00SSimon J. Gerraty o remove freestanding freeIt variables 1326b0c40a00SSimon J. Gerraty link via FStr 1327b0c40a00SSimon J. Gerraty o var.c: restructure code in ParseVarname to target human readers 1328b0c40a00SSimon J. Gerraty improve error message for; 1329b0c40a00SSimon J. Gerraty bad modifier in variable expression 1330b0c40a00SSimon J. Gerraty unclosed modifier 1331b0c40a00SSimon J. Gerraty unknown modifier 1332b0c40a00SSimon J. Gerraty remove redundant parameter of ApplySingleModifier 1333b0c40a00SSimon J. Gerraty explain non-obvious code around indirect variable modifiers 1334b0c40a00SSimon J. Gerraty quote ':S' in error message about missing delimiter 1335b0c40a00SSimon J. Gerraty extract ParseModifier_Match into separate function 1336b0c40a00SSimon J. Gerraty add context information to error message about ':range' modifier 1337b0c40a00SSimon J. Gerraty add quotes around variable name in an error message 1338b0c40a00SSimon J. Gerraty reorder code in ModifyWords 1339b0c40a00SSimon J. Gerraty use more common parameter order for VarSelectWords 1340b0c40a00SSimon J. Gerraty make ModifyWord_Subst a little easier to understand 1341b0c40a00SSimon J. Gerraty do not expand variable name from the command line twice 1342b0c40a00SSimon J. Gerraty extract ExistsInCmdline from Var_SetWithFlags 1343b0c40a00SSimon J. Gerraty save a hash map lookup when defining a cmdline variable 1344b0c40a00SSimon J. Gerraty clean up VarAdd, Var_Delete, Var_ReexportVars 1345b0c40a00SSimon J. Gerraty use bit-shift expressions for VarFlags constants 1346b0c40a00SSimon J. Gerraty rename constants for VarFlags 1347b0c40a00SSimon J. Gerraty rename ExprDefined constants for debug logging 1348b0c40a00SSimon J. Gerraty rename ExprStatus to ExprDefined 1349b0c40a00SSimon J. Gerraty split parameters for evaluating variable expressions 1350b0c40a00SSimon J. Gerraty reduce redundant code around ModifyWords 1351b0c40a00SSimon J. Gerraty print error about failed shell command before overwriting variable 1352b0c40a00SSimon J. Gerraty clean up ValidShortVarname, ParseVarnameShort 1353b0c40a00SSimon J. Gerraty rename VarExprStatus to ExprStatus 1354b0c40a00SSimon J. Gerraty add functions for assigning the value of an expression 1355b0c40a00SSimon J. Gerraty rename ApplyModifiersState_Define to Expr_Define 1356b0c40a00SSimon J. Gerraty condense the code for parsing :S and :C modifiers 1357b0c40a00SSimon J. Gerraty 1358dba7b0efSSimon J. Gerraty2021-02-06 Simon J Gerraty <sjg@beast.crufty.net> 1359dba7b0efSSimon J. Gerraty 1360dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210206 1361dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1362dba7b0efSSimon J. Gerraty o unit-tests: use private TMPDIR to avoid errors from other users 1363dba7b0efSSimon J. Gerraty 1364dba7b0efSSimon J. Gerraty2021-02-05 Simon J Gerraty <sjg@beast.crufty.net> 1365dba7b0efSSimon J. Gerraty 1366dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210205 1367dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1368dba7b0efSSimon J. Gerraty o avoid strdup in mkTempFile 1369dba7b0efSSimon J. Gerraty o always use vfork 1370dba7b0efSSimon J. Gerraty o rename context and ctxt to scope 1371dba7b0efSSimon J. Gerraty o rename some VAR constants to SCOPE 1372dba7b0efSSimon J. Gerraty o Var_ functions, move the scope to the front 1373dba7b0efSSimon J. Gerraty o use shortcut functions Global_Set and Global_Append 1374dba7b0efSSimon J. Gerraty o add shortcut Global_Delete for deleting a global variable 1375dba7b0efSSimon J. Gerraty o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete 1376dba7b0efSSimon J. Gerraty o compat.c: when exiting due to an error, print graph information 1377dba7b0efSSimon J. Gerraty o enum.c: remove overengineered Enum_ValueToString 1378dba7b0efSSimon J. Gerraty o make.c: remove unused INTERNAL flag 1379dba7b0efSSimon J. Gerraty remove unused return type of MakeBuildParent 1380dba7b0efSSimon J. Gerraty o parse.c: replace parse error "Need an operator" with better message 1381dba7b0efSSimon J. Gerraty o var.c: improve documentation about variable scopes 1382dba7b0efSSimon J. Gerraty rename Var_ValueDirect to GNode_ValueDirect 1383dba7b0efSSimon J. Gerraty rename old Var_SetWithFlags to Var_SetExpandWithFlags 1384dba7b0efSSimon J. Gerraty merge SetVar into Var_SetWithFlags 1385dba7b0efSSimon J. Gerraty split Var_Exists into plain Var_Exists and Var_ExistsExpand 1386dba7b0efSSimon J. Gerraty split Var_Append into Var_Append and Var_AppendExpand 1387dba7b0efSSimon J. Gerraty replace enum bit-set with bit-field 1388dba7b0efSSimon J. Gerraty o unit-tests/var-op-shell: use kill rather than kill -14 1389dba7b0efSSimon J. Gerraty which broke on darwin with recent update. 1390dba7b0efSSimon J. Gerraty 1391dba7b0efSSimon J. Gerraty2021-02-01 Simon J Gerraty <sjg@beast.crufty.net> 1392dba7b0efSSimon J. Gerraty 1393dba7b0efSSimon J. Gerraty * configure.in: check for sig_atomic_t and define it as 'int' 1394dba7b0efSSimon J. Gerraty if missing. 1395dba7b0efSSimon J. Gerraty 1396dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210201 1397dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1398dba7b0efSSimon J. Gerraty o use sig_atomic_t for caught_sigchld 1399dba7b0efSSimon J. Gerraty 1400dba7b0efSSimon J. Gerraty2021-01-30 Simon J Gerraty <sjg@beast.crufty.net> 1401dba7b0efSSimon J. Gerraty 1402dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210130 1403dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1404dba7b0efSSimon J. Gerraty o more unit tests 1405dba7b0efSSimon J. Gerraty o convert SearchPath to struct 1406dba7b0efSSimon J. Gerraty o split Buf_Destroy into Buf_Done and Buf_DoneData 1407dba7b0efSSimon J. Gerraty o for.c: split For_Eval into separate functions 1408dba7b0efSSimon J. Gerraty rename struct For to struct ForLoop 1409dba7b0efSSimon J. Gerraty o job.c: do not create empty shell files in jobs mode 1410dba7b0efSSimon J. Gerraty rename JobOpenTmpFile to JobWriteShellCommands 1411dba7b0efSSimon J. Gerraty reduce unnecessary calls to waitpid 1412dba7b0efSSimon J. Gerraty o parse.c: in -dp mode, print stack trace with each diagnostic 1413dba7b0efSSimon J. Gerraty 1414dba7b0efSSimon J. Gerraty2021-01-23 Simon J Gerraty <sjg@beast.crufty.net> 1415dba7b0efSSimon J. Gerraty 1416dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210123 1417dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1418dba7b0efSSimon J. Gerraty o rename Dir_Expand to SearchPath_Expand 1419dba7b0efSSimon J. Gerraty o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags 1420dba7b0efSSimon J. Gerraty o cond.c: fix debug output for comparison operators in conditionals 1421dba7b0efSSimon J. Gerraty o dir.c: split Dir_FindFile into separate functions 1422dba7b0efSSimon J. Gerraty 1423dba7b0efSSimon J. Gerraty2021-01-20 Simon J Gerraty <sjg@beast.crufty.net> 1424dba7b0efSSimon J. Gerraty 1425dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210120 1426dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1427dba7b0efSSimon J. Gerraty o fix some more lint nits 1428dba7b0efSSimon J. Gerraty o refine some unit tests for portability 1429dba7b0efSSimon J. Gerraty o cond.c: rework parsing 1430dba7b0efSSimon J. Gerraty 143106b9b3e0SSimon J. Gerraty2021-01-10 Simon J Gerraty <sjg@beast.crufty.net> 143206b9b3e0SSimon J. Gerraty 143306b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210110 143406b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 143506b9b3e0SSimon J. Gerraty o fix lint warnings 143606b9b3e0SSimon J. Gerraty o consistently use boolean expressions in conditions 143706b9b3e0SSimon J. Gerraty 143806b9b3e0SSimon J. Gerraty2021-01-08 Simon J Gerraty <sjg@beast.crufty.net> 143906b9b3e0SSimon J. Gerraty 144006b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210108 144106b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 144206b9b3e0SSimon J. Gerraty o job.c: back to polling token pipe if we want a token 144306b9b3e0SSimon J. Gerraty o main.c: always print 'stopped in' on first call 144406b9b3e0SSimon J. Gerraty The execption is if we bail because of an abort token 144506b9b3e0SSimon J. Gerraty in which case just exit 6. 144606b9b3e0SSimon J. Gerraty 144706b9b3e0SSimon J. Gerraty2021-01-01 Simon J Gerraty <sjg@beast.crufty.net> 144806b9b3e0SSimon J. Gerraty 144906b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210101 145006b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 145106b9b3e0SSimon J. Gerraty o Happy New Year! 145206b9b3e0SSimon J. Gerraty o rename CmdOpts.lint to strict 145306b9b3e0SSimon J. Gerraty o exit 2 on technical errors 145406b9b3e0SSimon J. Gerraty o replace pointers in controlling conditions with booleans 145506b9b3e0SSimon J. Gerraty o replace global preserveUndefined with VARE_KEEP_UNDEF 145606b9b3e0SSimon J. Gerraty o compat.c: re-export variables from the actual make process 145706b9b3e0SSimon J. Gerraty if using vfork this is the effect anyway 145806b9b3e0SSimon J. Gerraty o cond.c: clean up VarParseResult constants 145906b9b3e0SSimon J. Gerraty o for.c: fix undefined behavior in SubstVarLong 146006b9b3e0SSimon J. Gerraty make control flow in SubstVarLong of .for loops more obvious 146106b9b3e0SSimon J. Gerraty clean up SubstVarShort in .for loops 146206b9b3e0SSimon J. Gerraty extract ForSubstBody from ForReadMore 146306b9b3e0SSimon J. Gerraty clean up ForReadMore 146406b9b3e0SSimon J. Gerraty simplify termination condition for .for loop 146506b9b3e0SSimon J. Gerraty add error handling for .for loop items 146606b9b3e0SSimon J. Gerraty job.c: re-export variables from the actual make process 146706b9b3e0SSimon J. Gerraty parse.c: remove mmap for loading files, only allow files < 1 GiB 146806b9b3e0SSimon J. Gerraty fix edge case in := with undefined in variable name 146906b9b3e0SSimon J. Gerraty skip variable expansion in ParseDependencyTargetWord 147006b9b3e0SSimon J. Gerraty var.c: split ExportVar into separate functions 147106b9b3e0SSimon J. Gerraty clean up code in extracted ExportVar functions 147206b9b3e0SSimon J. Gerraty remove dead code from ApplyModifiersIndirect 147306b9b3e0SSimon J. Gerraty split Var_Subst into easily understandable functions 147406b9b3e0SSimon J. Gerraty clean up VarParseResult constants 147506b9b3e0SSimon J. Gerraty 147606b9b3e0SSimon J. Gerraty2020-12-25 Simon J Gerraty <sjg@beast.crufty.net> 147706b9b3e0SSimon J. Gerraty 147806b9b3e0SSimon J. Gerraty * main.c: use .MAKE.DEPENDFILE as set by makefiles 147906b9b3e0SSimon J. Gerraty 148006b9b3e0SSimon J. Gerraty2020-12-22 Simon J Gerraty <sjg@beast.crufty.net> 148106b9b3e0SSimon J. Gerraty 148206b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201222 148306b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 148406b9b3e0SSimon J. Gerraty o make DEBUG macro return boolean 148506b9b3e0SSimon J. Gerraty o parse.c: fix assertion failure for files without trailing newline 148606b9b3e0SSimon J. Gerraty o var.c: allow .undef to undefine multiple variables at once 148706b9b3e0SSimon J. Gerraty remove excess newline from parse errors 148806b9b3e0SSimon J. Gerraty 148906b9b3e0SSimon J. Gerraty2020-12-21 Simon J Gerraty <sjg@beast.crufty.net> 149006b9b3e0SSimon J. Gerraty 149106b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201221 149206b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 149306b9b3e0SSimon J. Gerraty o some unit-test updates 149406b9b3e0SSimon J. Gerraty 149506b9b3e0SSimon J. Gerraty2020-12-20 Simon J Gerraty <sjg@beast.crufty.net> 149606b9b3e0SSimon J. Gerraty 149706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201220 149806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 149906b9b3e0SSimon J. Gerraty o more unit tests 150006b9b3e0SSimon J. Gerraty o return FStr from Var_Parse and Var_Value 150106b9b3e0SSimon J. Gerraty o spell nonexistent consistently 150206b9b3e0SSimon J. Gerraty o add str_basename to reduce duplicate code 150306b9b3e0SSimon J. Gerraty o compat.c: fix .ERROR_TARGET in compat -k mode 150406b9b3e0SSimon J. Gerraty extract InitSignals from Compat_Run 150506b9b3e0SSimon J. Gerraty extract UseShell from Compat_RunCommand 150606b9b3e0SSimon J. Gerraty o cond.c: error out if an '.endif' or '.else' contain extraneous text 150706b9b3e0SSimon J. Gerraty o for.c: rename ForIterate to ForReadMore 150806b9b3e0SSimon J. Gerraty o hash.c: clean up hash function for HashTable 150906b9b3e0SSimon J. Gerraty o lst.c: rename Vector.priv_cap to cap 151006b9b3e0SSimon J. Gerraty o main.c: remove constant parameter from MakeMode 151106b9b3e0SSimon J. Gerraty o make.c: use symbolic time for 0 in Make_Recheck 151206b9b3e0SSimon J. Gerraty extract MakeChildren from MakeStartJobs 151306b9b3e0SSimon J. Gerraty o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar 151406b9b3e0SSimon J. Gerraty fix error message for .info/.warning/.error without argument 151506b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 151606b9b3e0SSimon J. Gerraty extract ParseSkippedBranches, ParseForLoop from ParseReadLine 151706b9b3e0SSimon J. Gerraty rename mode constants for ParseGetLine to be more expressive 151806b9b3e0SSimon J. Gerraty reduce debugging details in Parse_SetInput 151906b9b3e0SSimon J. Gerraty fix line numbers in .for loops 152006b9b3e0SSimon J. Gerraty split ParseGetLine into separate functions 152106b9b3e0SSimon J. Gerraty fix garbled output for failed shell command 152206b9b3e0SSimon J. Gerraty var.c: remove redundant assignment in ApplyModifier_SysV 152306b9b3e0SSimon J. Gerraty error out on unknown variable modifiers at parse time 152406b9b3e0SSimon J. Gerraty remove wrong error message for indirect modifier in lint mode 152506b9b3e0SSimon J. Gerraty extract ApplySingleModifier from ApplyModifiers 152606b9b3e0SSimon J. Gerraty use FStr for memory management in Var_SetWithFlags 152706b9b3e0SSimon J. Gerraty extract SetVar from Var_SetWithFlags 152806b9b3e0SSimon J. Gerraty use FStr in VarNew 152906b9b3e0SSimon J. Gerraty extract string functions from ApplyModifier_To 153006b9b3e0SSimon J. Gerraty error out if .undef has not exactly 1 argument 153106b9b3e0SSimon J. Gerraty extract Var_DeleteVar from Var_Delete 153206b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 153306b9b3e0SSimon J. Gerraty clean up memory management for expanding variable expressions 153406b9b3e0SSimon J. Gerraty 153506b9b3e0SSimon J. Gerraty2020-12-12 Simon J Gerraty <sjg@beast.crufty.net> 153606b9b3e0SSimon J. Gerraty 153706b9b3e0SSimon J. Gerraty * avoid %zu 153806b9b3e0SSimon J. Gerraty 153906b9b3e0SSimon J. Gerraty * lst.c: avoid anonymous union 154006b9b3e0SSimon J. Gerraty 154106b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201212 154206b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 154306b9b3e0SSimon J. Gerraty o more unit tests 154406b9b3e0SSimon J. Gerraty o inline Targ_Ignore and Targ_Silent 154506b9b3e0SSimon J. Gerraty o split JobFlags into separate fields 154606b9b3e0SSimon J. Gerraty o remove const from function parameters (left overs from refactoring) 154706b9b3e0SSimon J. Gerraty o eliminate boolean argument of Var_Export 154806b9b3e0SSimon J. Gerraty o make API of Buf_Init simpler 154906b9b3e0SSimon J. Gerraty o rename ParseRunOptions to ParseCommandFlags 155006b9b3e0SSimon J. Gerraty o replace *line with line[0] 155106b9b3e0SSimon J. Gerraty o compat.c: fix wrong exit status for multiple failed main targets 155206b9b3e0SSimon J. Gerraty refactor Compat_Run to show the error condition more clearly 155306b9b3e0SSimon J. Gerraty don't make .END if the main targets already failed (-k mode) 155406b9b3e0SSimon J. Gerraty fix exit status in -k mode if a dependency fails 155506b9b3e0SSimon J. Gerraty o for.c: clean up Buf_AddEscaped in .for loops 155606b9b3e0SSimon J. Gerraty o job.c: extract ShellWriter_ErrOn from JobPrintCommand 155706b9b3e0SSimon J. Gerraty make Job_Touch simpler 155806b9b3e0SSimon J. Gerraty refactor JobFinish 155906b9b3e0SSimon J. Gerraty rename Shell.exitFlag to errFlag 156006b9b3e0SSimon J. Gerraty move Job.xtraced to ShellWriter 156106b9b3e0SSimon J. Gerraty make printing of shell commands independent from the job 156206b9b3e0SSimon J. Gerraty rename shell flags in struct Shell 156306b9b3e0SSimon J. Gerraty extract JobOpenTmpFile from JobStart 156406b9b3e0SSimon J. Gerraty rename RunFlags to CommandFlags 156506b9b3e0SSimon J. Gerraty split various Job.* into separate fields 156606b9b3e0SSimon J. Gerraty rename commandShell to shell 156706b9b3e0SSimon J. Gerraty extract InitShellNameAndPath from Shell_Init 156806b9b3e0SSimon J. Gerraty replace signal handling macros with local functions 156906b9b3e0SSimon J. Gerraty replace macro MESSAGE with local function 157006b9b3e0SSimon J. Gerraty parse.c: error out on null bytes in makefiles 157106b9b3e0SSimon J. Gerraty error out on misspelled directives 157206b9b3e0SSimon J. Gerraty rename IFile.nextbuf to readMore 157306b9b3e0SSimon J. Gerraty fix undefined behavior in ParseEOF 157406b9b3e0SSimon J. Gerraty str.c: remove redundant call to strlen in Str_Words 157506b9b3e0SSimon J. Gerraty var.c: error out on misspelled .unexport-env 157606b9b3e0SSimon J. Gerraty error out on misspelled .export directives 157706b9b3e0SSimon J. Gerraty extract ExportVars from Var_Export 157806b9b3e0SSimon J. Gerraty extract ExportVarsExpand from Var_Export 157906b9b3e0SSimon J. Gerraty eliminate boolean argument of Var_Export 158006b9b3e0SSimon J. Gerraty fix undefined behavior when exporting ${:U } 158106b9b3e0SSimon J. Gerraty rename Var_ExportVars to Var_ReexportVars 158206b9b3e0SSimon J. Gerraty rename Var_Export1 to ExportVar 158306b9b3e0SSimon J. Gerraty 158406b9b3e0SSimon J. Gerraty2020-12-06 Simon J Gerraty <sjg@beast.crufty.net> 158506b9b3e0SSimon J. Gerraty 158606b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201206 158706b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 158806b9b3e0SSimon J. Gerraty o more unit tests 158906b9b3e0SSimon J. Gerraty o inline macros for debug logging 159006b9b3e0SSimon J. Gerraty o use consistent variable names for list nodes 159106b9b3e0SSimon J. Gerraty o define constants for enum zero-values 159206b9b3e0SSimon J. Gerraty o dir.c: use fixed format for debug output of the directory cache 159306b9b3e0SSimon J. Gerraty remove Dir_InitDir 159406b9b3e0SSimon J. Gerraty o lst.c: inline Lst_Enqueue, Vector_Done 159506b9b3e0SSimon J. Gerraty o meta.c: remove unused parameter from meta_needed 159606b9b3e0SSimon J. Gerraty o parse.c: rename parse functions 159706b9b3e0SSimon J. Gerraty o suff.c: extract ExpandChildrenRegular from ExpandChildren 159806b9b3e0SSimon J. Gerraty o targ.c: don't concatenate identifiers in Targ_PrintType 159906b9b3e0SSimon J. Gerraty o var.c: remove comment decoration 160006b9b3e0SSimon J. Gerraty extract UnexportVars from Var_UnExport 160106b9b3e0SSimon J. Gerraty extract GetVarnamesToUnexport from Var_UnExport 160206b9b3e0SSimon J. Gerraty extract UnexportEnv from Var_UnExport 160306b9b3e0SSimon J. Gerraty extract UnexportVar from Var_UnExport 160406b9b3e0SSimon J. Gerraty move CleanEnv to UnexportVars 160506b9b3e0SSimon J. Gerraty replace pointer comparisons with enum 160606b9b3e0SSimon J. Gerraty add FStr to var.c to make memory handling simpler 160706b9b3e0SSimon J. Gerraty use FStr in Var_UnExport 160806b9b3e0SSimon J. Gerraty move type definitions in var.c to the top 160906b9b3e0SSimon J. Gerraty extract FreeEnvVar from Var_Parse 161006b9b3e0SSimon J. Gerraty extract ShuffleStrings from ApplyModifier_Order 161106b9b3e0SSimon J. Gerraty 161206b9b3e0SSimon J. Gerraty2020-11-30 Simon J Gerraty <sjg@beast.crufty.net> 161306b9b3e0SSimon J. Gerraty 161406b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201130 161506b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 161606b9b3e0SSimon J. Gerraty o add unit tests for META MODE 161706b9b3e0SSimon J. Gerraty o reduce memory allocation for dirSearchPath, GNode.parents, 161806b9b3e0SSimon J. Gerraty GNode.children, OpenDirs 161906b9b3e0SSimon J. Gerraty o reduce pointer indirection for GNode.cohorts and 162006b9b3e0SSimon J. Gerraty GNode.implicitParents 162106b9b3e0SSimon J. Gerraty o remove pointer indirection from GNode.commands 162206b9b3e0SSimon J. Gerraty o inline Lst_ForEachUntil in meta mode 162306b9b3e0SSimon J. Gerraty o dir.c: fix memory leak for lstat cache in -DCLEANUP mode 162406b9b3e0SSimon J. Gerraty clean up memory management for CachedDirs 162506b9b3e0SSimon J. Gerraty fix the reference count of dotLast going negative 162606b9b3e0SSimon J. Gerraty add debug logging for OpenDirs_Done 162706b9b3e0SSimon J. Gerraty extract CacheNewDir from Dir_AddDir 162806b9b3e0SSimon J. Gerraty add debug logging for reference counting of CachedDir 162906b9b3e0SSimon J. Gerraty rename some Dir functions to SearchPath 163006b9b3e0SSimon J. Gerraty o job.c: rename some global variables 163106b9b3e0SSimon J. Gerraty o main.c: reduce memory allocation in ReadBuiltinRules 163206b9b3e0SSimon J. Gerraty reduce memory allocation in CmdOpts.create, CmdOpts.variables, 163306b9b3e0SSimon J. Gerraty CmdOpts.makefiles 163406b9b3e0SSimon J. Gerraty Add .MAKE.UID and .MAKE.GID 163506b9b3e0SSimon J. Gerraty o make.c: reduce memory allocation for/in toBeMade, 163606b9b3e0SSimon J. Gerraty Make_ProcessWait, Make_ExpandUse 163706b9b3e0SSimon J. Gerraty o meta.c: reduce memory allocation in meta_oodate 163806b9b3e0SSimon J. Gerraty o parse.c: reduce memory allocations for parsing dependencies and 163906b9b3e0SSimon J. Gerraty targets 164006b9b3e0SSimon J. Gerraty o suff.c: reduce memory allocation in suffix handling 164106b9b3e0SSimon J. Gerraty 164206b9b3e0SSimon J. Gerraty2020-11-24 Simon J Gerraty <sjg@beast.crufty.net> 164306b9b3e0SSimon J. Gerraty 164406b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201124 164506b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 164606b9b3e0SSimon J. Gerraty o .MAKE.{UID,GID} represent uid and gid running make. 164706b9b3e0SSimon J. Gerraty o fix error handling for .BEGIN and .END dependency in -k mode 164806b9b3e0SSimon J. Gerraty o fix missing "Stop." after failed .END node in -k mode 164906b9b3e0SSimon J. Gerraty o use properly typed comparisons in boolean contexts 165006b9b3e0SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 165106b9b3e0SSimon J. Gerraty o add HashSet type 165206b9b3e0SSimon J. Gerraty o compat.c: split Compat_Make into smaller functions 165306b9b3e0SSimon J. Gerraty extract DebugFailedTarget from Compat_RunCommand 165406b9b3e0SSimon J. Gerraty o dir.c: refactor Dir_UpdateMTime 165506b9b3e0SSimon J. Gerraty migrate CachedDir.files from HashTable to HashSet 165606b9b3e0SSimon J. Gerraty o make.c: add high-level API for GNode.made 165706b9b3e0SSimon J. Gerraty 165806b9b3e0SSimon J. Gerraty2020-11-22 Simon J Gerraty <sjg@beast.crufty.net> 165906b9b3e0SSimon J. Gerraty 166006b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201122 166106b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 166206b9b3e0SSimon J. Gerraty o rename GNode.context to vars 166306b9b3e0SSimon J. Gerraty o suff.c: cleanup and refactor 166406b9b3e0SSimon J. Gerraty rename some functions and vars to better reflect usage 166506b9b3e0SSimon J. Gerraty add high-level API for CandidateSearcher 166606b9b3e0SSimon J. Gerraty o targ.c: add more debug logging for suffix handling 166706b9b3e0SSimon J. Gerraty o more unit tests 166806b9b3e0SSimon J. Gerraty o add debug logging for setting and resetting the main target 166906b9b3e0SSimon J. Gerraty 1670e2eeea75SSimon J. Gerraty2020-11-17 Simon J Gerraty <sjg@beast.crufty.net> 1671e2eeea75SSimon J. Gerraty 1672e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201117 1673e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 167406b9b3e0SSimon J. Gerraty o fix some unit-tests when .SHELL is dash 1675e2eeea75SSimon J. Gerraty o rename Targ_NewGN to GNode_New 1676e2eeea75SSimon J. Gerraty o make some GNode functions const 1677e2eeea75SSimon J. Gerraty o main.c: call Targ_Init before Var_Init 1678e2eeea75SSimon J. Gerraty cleanup PrintOnError, getTmpdir and ParseBoolean 1679e2eeea75SSimon J. Gerraty o var.c: fix error message of failed :!cmd! modifier 1680e2eeea75SSimon J. Gerraty 1681e2eeea75SSimon J. Gerraty2020-11-14 Simon J Gerraty <sjg@beast.crufty.net> 1682e2eeea75SSimon J. Gerraty 1683e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201114 1684e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1685e2eeea75SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 1686e2eeea75SSimon J. Gerraty o clean up cached_stats 1687e2eeea75SSimon J. Gerraty o rename DEFAULT to defaultNode 1688e2eeea75SSimon J. Gerraty o remove redundant struct make_stat 1689e2eeea75SSimon J. Gerraty o cond.c: in lint mode, check for ".else <cond>" 1690e2eeea75SSimon J. Gerraty use bitset for IfState 1691e2eeea75SSimon J. Gerraty replace large switch with if-else in Cond_EvalLine 1692e2eeea75SSimon J. Gerraty o job.c: clean up JobExec, JobStart, JobDoOutput 1693e2eeea75SSimon J. Gerraty use stderr for error message about failed touch 1694e2eeea75SSimon J. Gerraty clean up Job_Touch 1695e2eeea75SSimon J. Gerraty replace macro DBPRINTF with JobPrintln 1696e2eeea75SSimon J. Gerraty rename JobState to JobStatus 1697e2eeea75SSimon J. Gerraty main.c: switch cache for realpath from GNode to HashTable 1698e2eeea75SSimon J. Gerraty clean up Fatal 1699e2eeea75SSimon J. Gerraty clean up InitDefSysIncPath 1700e2eeea75SSimon J. Gerraty use progname instead of hard-coded 'make' in warning 1701e2eeea75SSimon J. Gerraty rename Main_SetVarObjdir to SetVarObjdir 1702e2eeea75SSimon J. Gerraty make.1: document the -S option 1703e2eeea75SSimon J. Gerraty make.c: fix debug output for GNode details 1704e2eeea75SSimon J. Gerraty use symbolic names in debug output of GNodes 1705e2eeea75SSimon J. Gerraty 1706e2eeea75SSimon J. Gerraty2020-11-12 Simon J Gerraty <sjg@beast.crufty.net> 1707e2eeea75SSimon J. Gerraty 1708e2eeea75SSimon J. Gerraty * configure.in: fix --with-force-machine-arch 1709e2eeea75SSimon J. Gerraty 1710e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201112 1711e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1712e2eeea75SSimon J. Gerraty o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable 1713e2eeea75SSimon J. Gerraty checks in InitObjdir. Explicit .OBJDIR target always allows 1714e2eeea75SSimon J. Gerraty read-only directory. 1715e2eeea75SSimon J. Gerraty o cond.c: clean up Cond_EvalLine 1716e2eeea75SSimon J. Gerraty 1717e2eeea75SSimon J. Gerraty2020-11-11 Simon J Gerraty <sjg@beast.crufty.net> 1718e2eeea75SSimon J. Gerraty 1719e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201111 1720e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1721e2eeea75SSimon J. Gerraty o more unit-tests 1722e2eeea75SSimon J. Gerraty o style cleanup 1723e2eeea75SSimon J. Gerraty remove redundant parentheses from sizeof operator 1724e2eeea75SSimon J. Gerraty replace character literal 0 with '\0'. 1725e2eeea75SSimon J. Gerraty replace pointer literal 0 with NULL. 1726e2eeea75SSimon J. Gerraty remove redundant parentheses. 1727e2eeea75SSimon J. Gerraty replace (expr & mask) == 0 with !(expr & mask). 1728e2eeea75SSimon J. Gerraty use strict typing in conditions of the form !var 1729e2eeea75SSimon J. Gerraty o rename Make_OODate to GNode_IsOODate 1730e2eeea75SSimon J. Gerraty o rename Make_TimeStamp to GNode_UpdateYoungestChild 1731e2eeea75SSimon J. Gerraty o rename Var_Set_with_flags to Var_SetWithFlags 1732e2eeea75SSimon J. Gerraty o rename dieQuietly to shouldDieQuietly 1733e2eeea75SSimon J. Gerraty o buf.c: make API of Buf_Init simpler 1734e2eeea75SSimon J. Gerraty o compat.c: clean up Compat_Make, Compat_RunCommand, 1735e2eeea75SSimon J. Gerraty CompatDeleteTarget and CompatInterrupt 1736e2eeea75SSimon J. Gerraty o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|' 1737e2eeea75SSimon J. Gerraty clean up CondParser_Comparison 1738e2eeea75SSimon J. Gerraty o main.c: rename getBoolean and s2Boolean 1739e2eeea75SSimon J. Gerraty rename MAKEFILE_PREFERENCE for consistency 1740e2eeea75SSimon J. Gerraty o parse.c: replace strstr in ParseMaybeSubMake with optimized code 1741e2eeea75SSimon J. Gerraty o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR 1742e2eeea75SSimon J. Gerraty replace emptyString with allocated empty string 1743e2eeea75SSimon J. Gerraty error out on unclosed expressions after the colon 1744e2eeea75SSimon J. Gerraty 1745956e45f6SSimon J. Gerraty2020-11-01 Simon J Gerraty <sjg@beast.crufty.net> 1746956e45f6SSimon J. Gerraty 1747956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201101 1748956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1749956e45f6SSimon J. Gerraty o negate NoExecute to GNode_ShouldExecute 1750956e45f6SSimon J. Gerraty o job.c: rename JobMatchShell to FindShellByName 1751956e45f6SSimon J. Gerraty extract EscapeShellDblQuot from JobPrintCommand 1752956e45f6SSimon J. Gerraty extract ParseRunOptions from JobPrintCommand 1753956e45f6SSimon J. Gerraty o var.c: extract ApplyModifiersIndirect from ApplyModifiers 1754956e45f6SSimon J. Gerraty treat malformed :range, :ts and :[...] as errors 1755956e45f6SSimon J. Gerraty add tests for the variable modifiers :[words] and :range 1756956e45f6SSimon J. Gerraty 1757956e45f6SSimon J. Gerraty2020-10-31 Simon J Gerraty <sjg@beast.crufty.net> 1758956e45f6SSimon J. Gerraty 1759956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201031 1760956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1761956e45f6SSimon J. Gerraty o format #include directives consistently 1762956e45f6SSimon J. Gerraty o do not look up local variables like .TARGET anywhere else 1763956e45f6SSimon J. Gerraty o main.c: Main_SetObjdir is first called for curdir which may be 1764956e45f6SSimon J. Gerraty readonly 1765956e45f6SSimon J. Gerraty reduce the scope where recursive expressions are detected 1766956e45f6SSimon J. Gerraty remove redundant :tl from getBoolean 1767956e45f6SSimon J. Gerraty clean up mkTempFile 1768956e45f6SSimon J. Gerraty o meta.c: simplify memory allocation in meta_create and meta_oodate 1769956e45f6SSimon J. Gerraty o parse.c: extract loadedfile_mmap from loadfile 1770956e45f6SSimon J. Gerraty o trace.c: document possible undefined behavior with .CURDIR 1771956e45f6SSimon J. Gerraty o var.c: make parsing of the :gmtime and :localtime modifiers stricter 1772956e45f6SSimon J. Gerraty rename ismeta to is_shell_metachar 1773956e45f6SSimon J. Gerraty remove debug logging for the :Q variable modifier 1774956e45f6SSimon J. Gerraty rename VarIsDynamic to VarnameIsDynamic 1775956e45f6SSimon J. Gerraty use consistent parameter order in varname parsing functions 1776956e45f6SSimon J. Gerraty extract ParseVarnameLong from Var_Parse 1777956e45f6SSimon J. Gerraty extract ParseVarnameShort from Var_Parse 1778956e45f6SSimon J. Gerraty fix type of ParseModifierPart parameter delim 1779956e45f6SSimon J. Gerraty extract IsEscapedModifierPart from ParseModifierPart 1780956e45f6SSimon J. Gerraty clean up ModifyWords 1781956e45f6SSimon J. Gerraty add test for combining the :@ and :? variable modifiers 1782956e45f6SSimon J. Gerraty 1783956e45f6SSimon J. Gerraty2020-10-30 Simon J Gerraty <sjg@beast.crufty.net> 1784956e45f6SSimon J. Gerraty 1785956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201030 1786956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1787956e45f6SSimon J. Gerraty o change char * to void * in Var_Value 1788956e45f6SSimon J. Gerraty o make iterating over HashTable simpler 1789956e45f6SSimon J. Gerraty o rename VAR_CMD to VAR_CMDLINE 1790956e45f6SSimon J. Gerraty o cond.c: clean up is_separator 1791956e45f6SSimon J. Gerraty fix parse error in string literal in conditional 1792956e45f6SSimon J. Gerraty o main.c: do not use objdir that is not writable 1793956e45f6SSimon J. Gerraty in lint mode, exit with error status on errors 1794956e45f6SSimon J. Gerraty o parse.c: clean up StrContainsWord 1795956e45f6SSimon J. Gerraty fix out-of-bounds pointer in ParseTrackInput 1796956e45f6SSimon J. Gerraty o var.c: rename Str_SYSVMatch and its parameters 1797956e45f6SSimon J. Gerraty remove unsatisfiable conditions in Var_Set_with_flags 1798956e45f6SSimon J. Gerraty document where the variable name is expanded 1799956e45f6SSimon J. Gerraty fix documentation for VARP_SUB_ONE 1800956e45f6SSimon J. Gerraty rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME 1801956e45f6SSimon J. Gerraty document VAR_READONLY 1802956e45f6SSimon J. Gerraty prevent appending to read-only variables 1803956e45f6SSimon J. Gerraty extract MayExport from Var_Export1 1804956e45f6SSimon J. Gerraty remove redundant evaluations in VarFind 1805956e45f6SSimon J. Gerraty replace VarFindFlags with a simple Boolean 1806956e45f6SSimon J. Gerraty rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE 1807956e45f6SSimon J. Gerraty 1808956e45f6SSimon J. Gerraty2020-10-28 Simon J Gerraty <sjg@beast.crufty.net> 1809956e45f6SSimon J. Gerraty 1810956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201028 1811956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1812956e45f6SSimon J. Gerraty o rename defIncPath to defSysIncPath 1813956e45f6SSimon J. Gerraty o initialize all CmdOpts fields 1814956e45f6SSimon J. Gerraty o lst.c: inline Vector_Get 1815956e45f6SSimon J. Gerraty o main.c: refactor main extract 1816956e45f6SSimon J. Gerraty InitMaxJobs,InitObjdir,InitVarMake,InitRandom, 1817956e45f6SSimon J. Gerraty ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules, 1818956e45f6SSimon J. Gerraty InitDefIncPath,CmdOpts_Init,UnlimitFiles 1819956e45f6SSimon J. Gerraty o parse.c: merge curFile into includes 1820956e45f6SSimon J. Gerraty rename predecessor to order_pred 1821956e45f6SSimon J. Gerraty sort ParseSpecial alphabetically 1822956e45f6SSimon J. Gerraty remove unused, undocumented .NOEXPORT 1823956e45f6SSimon J. Gerraty rename ParseSpecial enum values consistently 1824956e45f6SSimon J. Gerraty rename some fields of struct IFile 1825956e45f6SSimon J. Gerraty 1826956e45f6SSimon J. Gerraty2020-10-26 Simon J Gerraty <sjg@beast.crufty.net> 1827956e45f6SSimon J. Gerraty 1828956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201026 1829956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1830956e45f6SSimon J. Gerraty o group the command line options and arguments into a struct 1831956e45f6SSimon J. Gerraty o rename GNode.cmgn to youngestChild 1832956e45f6SSimon J. Gerraty o rename hash functions to identify the type name 1833956e45f6SSimon J. Gerraty o negate OP_NOP and rename it to GNode_IsTarget 1834956e45f6SSimon J. Gerraty o add GNode_Path to access the path of a GNode 1835956e45f6SSimon J. Gerraty o remove macros MIN and MAX 1836956e45f6SSimon J. Gerraty o remove unused Lst_Find and Lst_FindFrom 1837956e45f6SSimon J. Gerraty o arch.c: and make Arch_FindLib simpler 1838956e45f6SSimon J. Gerraty clean up code layout 1839956e45f6SSimon J. Gerraty make Arch_ParseArchive simpler 1840956e45f6SSimon J. Gerraty o cond.c: inline CondFindStrMatch into FuncMake 1841956e45f6SSimon J. Gerraty o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath 1842956e45f6SSimon J. Gerraty omit trailing space in debug output for expanding file patterns 1843956e45f6SSimon J. Gerraty refactor DirMatchFiles 1844956e45f6SSimon J. Gerraty document that the SearchPath of Dir_FindFile may be NULL 1845956e45f6SSimon J. Gerraty remove UNCONST from Dir_Expand 1846956e45f6SSimon J. Gerraty inline DirFindName 1847956e45f6SSimon J. Gerraty o for.c: clean up code for handling .for loops 1848956e45f6SSimon J. Gerraty o hash.c: print hash in debug log with fixed width 1849956e45f6SSimon J. Gerraty clean up hash table functions 1850956e45f6SSimon J. Gerraty reduce amount of string hashing 1851956e45f6SSimon J. Gerraty o job.c: refactor JobDeleteTarget 1852956e45f6SSimon J. Gerraty use proper enum constants for aborting 1853956e45f6SSimon J. Gerraty convert result of JobStart from macros to enum 1854956e45f6SSimon J. Gerraty convert abort reason macros to enum 1855956e45f6SSimon J. Gerraty rework Job_CheckCommands to reduce indentation 1856956e45f6SSimon J. Gerraty rename Shell fields 1857956e45f6SSimon J. Gerraty add field names in declaration of DEFSHELL_CUSTOM 1858956e45f6SSimon J. Gerraty convert JobState and JobFlags to enum types 1859956e45f6SSimon J. Gerraty move handling of the "..." command to JobPrintCommands 1860956e45f6SSimon J. Gerraty o lst.c: clean up 1861956e45f6SSimon J. Gerraty refactor LstNodeNew 1862956e45f6SSimon J. Gerraty remove Lst_Open, Lst_Next, Lst_Close 1863956e45f6SSimon J. Gerraty remove code for circular lists from Lst_Next 1864956e45f6SSimon J. Gerraty o main.c: do not attempt to read .MAKE.DEPENFILE if set to 1865956e45f6SSimon J. Gerraty /dev/null or anything starting with "no" 1866956e45f6SSimon J. Gerraty convert macros for debug flags into enum 1867956e45f6SSimon J. Gerraty o make.c: inline Lst_Copy in Make_ExpandUse 1868956e45f6SSimon J. Gerraty o meta.c: inline Lst_Find in meta_oodate 1869956e45f6SSimon J. Gerraty make Lst_RemoveIf simpler in meta_oodate 1870956e45f6SSimon J. Gerraty o parse.c: convert error level for Parse_Error to an enum 1871956e45f6SSimon J. Gerraty o suff.c: properly terminate debug output with newline 1872956e45f6SSimon J. Gerraty add more details to DEBUG_SRC log 1873956e45f6SSimon J. Gerraty replace Dir_CopyDir with Dir_CopyDirSearchPath 1874956e45f6SSimon J. Gerraty don't modify GNode name while rebuilding the suffix graph 1875956e45f6SSimon J. Gerraty o var.c: reduce duplicate code in VarFind 1876956e45f6SSimon J. Gerraty 1877956e45f6SSimon J. Gerraty2020-10-22 Simon J Gerraty <sjg@beast.crufty.net> 1878956e45f6SSimon J. Gerraty 1879956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201022 1880956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1881956e45f6SSimon J. Gerraty o more refactoring and simplification to reduce code size 1882956e45f6SSimon J. Gerraty o var.c: extract CanonicalVarname from VarFind 1883956e45f6SSimon J. Gerraty o make.c: extract UpdateImplicitParentsVars from Make_Update 1884956e45f6SSimon J. Gerraty o main.c: extract PrintVar from doPrintVars 1885956e45f6SSimon J. Gerraty extract HandlePWD from main 1886956e45f6SSimon J. Gerraty o lst.c: inline simple Lst getters 1887956e45f6SSimon J. Gerraty remove unused Lst_ForEach 1888956e45f6SSimon J. Gerraty o job.c: move struct Shell from job.h to job.c 1889956e45f6SSimon J. Gerraty o more unit tests 1890956e45f6SSimon J. Gerraty 1891956e45f6SSimon J. Gerraty2020-10-19 Simon J Gerraty <sjg@beast.crufty.net> 1892956e45f6SSimon J. Gerraty 1893956e45f6SSimon J. Gerraty * configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT 1894956e45f6SSimon J. Gerraty 1895956e45f6SSimon J. Gerraty2020-10-18 Simon J Gerraty <sjg@beast.crufty.net> 1896956e45f6SSimon J. Gerraty 1897956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201018 1898956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1899956e45f6SSimon J. Gerraty o remove USE_IOVEC 1900956e45f6SSimon J. Gerraty o rename some Hash_* apis to Hash* 1901956e45f6SSimon J. Gerraty o replace execError with execDie 1902956e45f6SSimon J. Gerraty o rename Lst_Init to Lst_New 1903956e45f6SSimon J. Gerraty o add tags to enum types 1904956e45f6SSimon J. Gerraty o rename Stack to Vector 1905956e45f6SSimon J. Gerraty o parse.c: more refactoring 1906956e45f6SSimon J. Gerraty o unit-tests: make some tests use line buffered stdout 1907956e45f6SSimon J. Gerraty o unit-tests/Makefile: in meta mode do not make all tests depend on 1908956e45f6SSimon J. Gerraty Makefile, it isn't necessary. 1909956e45f6SSimon J. Gerraty 1910956e45f6SSimon J. Gerraty2020-10-10 Simon J Gerraty <sjg@beast.crufty.net> 1911956e45f6SSimon J. Gerraty 1912956e45f6SSimon J. Gerraty * main.c: check for CTL_HW being defined. 1913956e45f6SSimon J. Gerraty * unit-tests/Makefile: ensure export tests output are POSIX compliant 1914956e45f6SSimon J. Gerraty disable opt-debug-jobs test until it works on ubuntu 1915956e45f6SSimon J. Gerraty 1916956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201010 1917956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1918956e45f6SSimon J. Gerraty o dir.c: remove pathname limit for Dir_FindHereOrAbove 1919956e45f6SSimon J. Gerraty o hash.c: replace strcpy with memcpy in Hash_CreateEntry 1920956e45f6SSimon J. Gerraty o main.c: extract init_machine and init_machine_arch from main 1921956e45f6SSimon J. Gerraty allow to disable debug logging options 1922956e45f6SSimon J. Gerraty o parse.c: enable format string truncation warnings 1923956e45f6SSimon J. Gerraty extract parsing of sources from ParseDoDependency 1924956e45f6SSimon J. Gerraty split ParseDoSrc into smaller functions 1925956e45f6SSimon J. Gerraty hide implementation details from Parse_DoVar 1926956e45f6SSimon J. Gerraty clean up parsing of variable assignments 1927956e45f6SSimon J. Gerraty split Parse_DoVar into manageable pieces 1928956e45f6SSimon J. Gerraty don't modify the given line during Parse_DoVar 1929956e45f6SSimon J. Gerraty fix out-of-bounds memory access in Parse_DoVar 1930956e45f6SSimon J. Gerraty fix parsing of the :sh assignment modifier 1931956e45f6SSimon J. Gerraty o var.c: rework memory allocation for the name of variables 1932956e45f6SSimon J. Gerraty extract ApplyModifier_Literal into separate function 1933956e45f6SSimon J. Gerraty in lint mode, reject modifiers without delimiter 1934956e45f6SSimon J. Gerraty do not export variable names starting with '-' 1935956e45f6SSimon J. Gerraty o fix double-free bug in -DCLEANUP mode 1936956e45f6SSimon J. Gerraty o more cleanup to enable higher warnings level 1937956e45f6SSimon J. Gerraty o more unit tests 1938956e45f6SSimon J. Gerraty 1939956e45f6SSimon J. Gerraty2020-10-02 Simon J Gerraty <sjg@beast.crufty.net> 1940956e45f6SSimon J. Gerraty 1941956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201002 1942956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1943956e45f6SSimon J. Gerraty o dir.c: use hash table for looking up open directories by name 1944956e45f6SSimon J. Gerraty o main.c: clean up option handling 1945956e45f6SSimon J. Gerraty o parse.c: add missing const for Parse_AddIncludeDir 1946956e45f6SSimon J. Gerraty o var.c: ApplyModifier_To, update pp in each branch 1947956e45f6SSimon J. Gerraty o remove redundant function prototypes 1948956e45f6SSimon J. Gerraty o more unit tests 1949956e45f6SSimon J. Gerraty 1950956e45f6SSimon J. Gerraty2020-10-01 Simon J Gerraty <sjg@beast.crufty.net> 1951956e45f6SSimon J. Gerraty 1952956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201001 1953956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1954956e45f6SSimon J. Gerraty o compat.c: comment about "..." 1955956e45f6SSimon J. Gerraty 1956956e45f6SSimon J. Gerraty2020-09-30 Simon J Gerraty <sjg@beast.crufty.net> 1957956e45f6SSimon J. Gerraty 1958956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200930 1959956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1960956e45f6SSimon J. Gerraty o job.c: split Job.jobPipe into 2 separate fields 1961956e45f6SSimon J. Gerraty replace Lst_Open with direct iteration 1962956e45f6SSimon J. Gerraty o lst.c: remove redundant assertions 1963956e45f6SSimon J. Gerraty o targ.c: replace Lst_Open with direct iteration 1964956e45f6SSimon J. Gerraty o var.c: fix bug in evaluation of indirect variable modifiers 1965956e45f6SSimon J. Gerraty extract ApplyModifier_Quote into separate function 1966956e45f6SSimon J. Gerraty o make debug logging simpler 1967956e45f6SSimon J. Gerraty 1968956e45f6SSimon J. Gerraty2020-09-27 Simon J Gerraty <sjg@beast.crufty.net> 1969956e45f6SSimon J. Gerraty 1970956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200927 1971956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1972956e45f6SSimon J. Gerraty o parse.c: ensure parse errors result in 'stopped in' message. 1973956e45f6SSimon J. Gerraty o compat.c: make parameter of Compat_RunCommand const 1974956e45f6SSimon J. Gerraty o main.c: extract InitVarTarget from main 1975956e45f6SSimon J. Gerraty o parse.c: rename ParseFinishLine to FinishDependencyGroup 1976956e45f6SSimon J. Gerraty refactor ParseDoDependency 1977956e45f6SSimon J. Gerraty o var.c: Var_Subst no longer returns string result 1978956e45f6SSimon J. Gerraty rename Var_ParsePP back to Var_Parse 1979956e45f6SSimon J. Gerraty in lint mode, improve error handling for undefined variables 1980956e45f6SSimon J. Gerraty extract ParseVarname from Var_Parse 1981956e45f6SSimon J. Gerraty o rename Lst_ForEach to Lst_ForEachUntil 1982956e45f6SSimon J. Gerraty o inline Lst_ForEachUntil in several cases 1983956e45f6SSimon J. Gerraty o clean up API for finding and creating GNodes 1984956e45f6SSimon J. Gerraty o fix assertion failure in -j mode with .END node 1985956e45f6SSimon J. Gerraty o inline and remove LstNode_Prev and LstNode_Next 1986956e45f6SSimon J. Gerraty o use fine-grained type names for lists and their nodes 1987956e45f6SSimon J. Gerraty o more unit tests 1988956e45f6SSimon J. Gerraty 1989956e45f6SSimon J. Gerraty2020-09-11 Simon J Gerraty <sjg@beast.crufty.net> 1990956e45f6SSimon J. Gerraty 1991956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200911 1992956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1993956e45f6SSimon J. Gerraty o cond.c: split EvalComparison into smaller functions 1994956e45f6SSimon J. Gerraty reorder parameters of condition parsing functions 1995956e45f6SSimon J. Gerraty reduce code size in CondParser_Eval 1996956e45f6SSimon J. Gerraty rename CondGetString to CondParser_String 1997956e45f6SSimon J. Gerraty add CondLexer_SkipWhitespace 1998956e45f6SSimon J. Gerraty group the condition parsing state into a struct 1999956e45f6SSimon J. Gerraty in CondGetString, replace repeated Buf_Add with Buf_AddStr 2000956e45f6SSimon J. Gerraty o migrate Var_Parse to Var_ParsePP 2001956e45f6SSimon J. Gerraty o add wrappers around ctype.h functions 2002956e45f6SSimon J. Gerraty o lst.c: use a stack instead of a list for the nested include path 2003956e45f6SSimon J. Gerraty o more unit tests 2004956e45f6SSimon J. Gerraty 2005956e45f6SSimon J. Gerraty2020-09-04 Simon J Gerraty <sjg@beast.crufty.net> 2006956e45f6SSimon J. Gerraty 2007956e45f6SSimon J. Gerraty * make-bootstrap.sh.in: adjust object list 2008956e45f6SSimon J. Gerraty 20092c3632d1SSimon J. Gerraty2020-09-02 Simon J Gerraty <sjg@beast.crufty.net> 20102c3632d1SSimon J. Gerraty 20112c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200902 20122c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20132c3632d1SSimon J. Gerraty o use make_stat to ensure no confusion over valid fields 20142c3632d1SSimon J. Gerraty returned by cached_stat 20152c3632d1SSimon J. Gerraty o var.c: make VarQuote const-correct 20162c3632d1SSimon J. Gerraty o add unit tests for .for 20172c3632d1SSimon J. Gerraty 20182c3632d1SSimon J. Gerraty2020-09-01 Simon J Gerraty <sjg@beast.crufty.net> 20192c3632d1SSimon J. Gerraty 20202c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200901 20212c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20222c3632d1SSimon J. Gerraty o rename Hash_Table fields 20232c3632d1SSimon J. Gerraty o make data types in Dir_HasWildcards more precise 20242c3632d1SSimon J. Gerraty 20252c3632d1SSimon J. Gerraty2020-08-31 Simon J Gerraty <sjg@beast.crufty.net> 20262c3632d1SSimon J. Gerraty 20272c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200831 20282c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20292c3632d1SSimon J. Gerraty o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds 20302c3632d1SSimon J. Gerraty o lst.c: Lst_Open renable assert that list isn't open 20312c3632d1SSimon J. Gerraty o unit test for .TARGET dependent flags 20322c3632d1SSimon J. Gerraty o var.c: fix aliasing bug in VarUniq 20332c3632d1SSimon J. Gerraty o more unit tests for :u 20342c3632d1SSimon J. Gerraty 20352c3632d1SSimon J. Gerraty2020-08-30 Simon J Gerraty <sjg@beast.crufty.net> 20362c3632d1SSimon J. Gerraty 20372c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200830 20382c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20392c3632d1SSimon J. Gerraty o allow for strict type checking for Boolean 20402c3632d1SSimon J. Gerraty o Var_Parse never returns NULL 20412c3632d1SSimon J. Gerraty o Var_Subst never returns NULL 20422c3632d1SSimon J. Gerraty o Lst_Find now takes boolean match function 20432c3632d1SSimon J. Gerraty o rename Lst_Memeber to Lst_FindDatum 20442c3632d1SSimon J. Gerraty o rename LstNode functions to match their type 20452c3632d1SSimon J. Gerraty o rename GNode.iParents to implicitParents 20462c3632d1SSimon J. Gerraty o fix assertion failure for .SUFFIXES in archives 20472c3632d1SSimon J. Gerraty o compat.c: clean up documentation for CompatInterrupt and Compat_Run 20482c3632d1SSimon J. Gerraty remove unreachable code from CompatRunCommand 20492c3632d1SSimon J. Gerraty o main.c: simplify getBoolean 20502c3632d1SSimon J. Gerraty o stc.c: replace brk_string with simpler Str_Words 20512c3632d1SSimon J. Gerraty o suff.c: add debug macros 20522c3632d1SSimon J. Gerraty 20532c3632d1SSimon J. Gerraty2020-08-28 Simon J Gerraty <sjg@beast.crufty.net> 20542c3632d1SSimon J. Gerraty 20552c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200828 20562c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20572c3632d1SSimon J. Gerraty o lst.c: inline LstIsValid and LstNodeIsValid 20582c3632d1SSimon J. Gerraty o remove trailing S from Lst function names after migration complete 20592c3632d1SSimon J. Gerraty o more comment cleanup/clarification 20602c3632d1SSimon J. Gerraty o suff.c: clean up suffix handling 20612c3632d1SSimon J. Gerraty o more unit tests 20622c3632d1SSimon J. Gerraty 20632c3632d1SSimon J. Gerraty2020-08-26 Simon J Gerraty <sjg@beast.crufty.net> 20642c3632d1SSimon J. Gerraty 20652c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200826 20662c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20672c3632d1SSimon J. Gerraty o enum.c: distinguish between bitsets containing flags and 20682c3632d1SSimon J. Gerraty ordinary enums 20692c3632d1SSimon J. Gerraty o var.c: fix error message for ::!= modifier with shell error 20702c3632d1SSimon J. Gerraty o fix bugs in -DCLEANUP mode 20712c3632d1SSimon J. Gerraty 20722c3632d1SSimon J. Gerraty2020-08-24 Simon J Gerraty <sjg@beast.crufty.net> 20732c3632d1SSimon J. Gerraty 20742c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200824 20752c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20762c3632d1SSimon J. Gerraty o in debug mode, print GNode details in symbols 20772c3632d1SSimon J. Gerraty 20782c3632d1SSimon J. Gerraty2020-08-23 Simon J Gerraty <sjg@beast.crufty.net> 20792c3632d1SSimon J. Gerraty 20802c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200823 20812c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20822c3632d1SSimon J. Gerraty o lst.c: more asserts, 20832c3632d1SSimon J. Gerraty make args to Lst_Find match others. 20842c3632d1SSimon J. Gerraty o var.c: pass flags to VarAdd 20852c3632d1SSimon J. Gerraty o arch.c: use Buffer 20862c3632d1SSimon J. Gerraty o str.c: brk_string return size_t for nwords 20872c3632d1SSimon J. Gerraty o more unit tests 20882c3632d1SSimon J. Gerraty 20892c3632d1SSimon J. Gerraty2020-08-22 Simon J Gerraty <sjg@beast.crufty.net> 20902c3632d1SSimon J. Gerraty 20912c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20922c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 20932c3632d1SSimon J. Gerraty o var.c: support for read-only variables eg .SHELL 20942c3632d1SSimon J. Gerraty being the shell used to run scripts. 20952c3632d1SSimon J. Gerraty o lst.c: more simplification 20962c3632d1SSimon J. Gerraty o more documentation and style cleanup 20972c3632d1SSimon J. Gerraty o more unit tests 20982c3632d1SSimon J. Gerraty o ensure unit-test/Makefile is run by TEST_MAKE 20992c3632d1SSimon J. Gerraty o reduce duplication of header inclusion 21002c3632d1SSimon J. Gerraty 21012c3632d1SSimon J. Gerraty2020-08-21 Simon J Gerraty <sjg@beast.crufty.net> 21022c3632d1SSimon J. Gerraty 21032c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200821 21042c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21052c3632d1SSimon J. Gerraty o lst.c: revert invalid assertion - but document it 21062c3632d1SSimon J. Gerraty o dir.c: split Dir_Init into two functions 21072c3632d1SSimon J. Gerraty 21082c3632d1SSimon J. Gerraty2020-08-20 Simon J Gerraty <sjg@beast.crufty.net> 21092c3632d1SSimon J. Gerraty 21102c3632d1SSimon J. Gerraty * lst.c: needs inttypes.h on Linux 21112c3632d1SSimon J. Gerraty 21122c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200820 21132c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21142c3632d1SSimon J. Gerraty o make.1: clarify some passages 21152c3632d1SSimon J. Gerraty o var.c: more cleanup, clarify comments 21162c3632d1SSimon J. Gerraty o make_malloc.c: remove unreachable code 21172c3632d1SSimon J. Gerraty o cond.c: make CondGetString easier to debug 21182c3632d1SSimon J. Gerraty o simplify list usage 21192c3632d1SSimon J. Gerraty o unit-tests: more 21202c3632d1SSimon J. Gerraty 21212c3632d1SSimon J. Gerraty2020-08-16 Simon J Gerraty <sjg@beast.crufty.net> 21222c3632d1SSimon J. Gerraty 21232c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200816 21242c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21252c3632d1SSimon J. Gerraty o refactor unit-tests to be more fine grained 21262c3632d1SSimon J. Gerraty not all tests moved yet 21272c3632d1SSimon J. Gerraty 21282c3632d1SSimon J. Gerraty2020-08-14 Simon J Gerraty <sjg@beast.crufty.net> 21292c3632d1SSimon J. Gerraty 21302c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200814 21312c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21322c3632d1SSimon J. Gerraty o more str_concat variants 21332c3632d1SSimon J. Gerraty o more enums for flags 21342c3632d1SSimon J. Gerraty o var.c: cleanup for higher warnings level 21352c3632d1SSimon J. Gerraty 21362c3632d1SSimon J. Gerraty2020-08-10 Simon J Gerraty <sjg@beast.crufty.net> 21372c3632d1SSimon J. Gerraty 21382c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200810 21392c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21402c3632d1SSimon J. Gerraty o more unit tests 21412c3632d1SSimon J. Gerraty o general comment and style cleanup 21422c3632d1SSimon J. Gerraty 21432c3632d1SSimon J. Gerraty2020-08-08 Simon J Gerraty <sjg@beast.crufty.net> 21442c3632d1SSimon J. Gerraty 21452c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200808 21462c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21472c3632d1SSimon J. Gerraty o enum.[ch]: streamline, enums for use in flags and debug output 21482c3632d1SSimon J. Gerraty o cond.c: cleanup 21492c3632d1SSimon J. Gerraty o var.c: reduce duplicate code for modifiers 21502c3632d1SSimon J. Gerraty debug logging for Var_Parse 21512c3632d1SSimon J. Gerraty more detailed debug output 21522c3632d1SSimon J. Gerraty o more unit tests 21532c3632d1SSimon J. Gerraty 21542c3632d1SSimon J. Gerraty2020-08-06 Simon J Gerraty <sjg@beast.crufty.net> 21552c3632d1SSimon J. Gerraty 21562c3632d1SSimon J. Gerraty * unit-tests/Makefile: -r for recursive and include Makefile.inc 21572c3632d1SSimon J. Gerraty so I can run tests in meta mode 21582c3632d1SSimon J. Gerraty supress extra noise if in meta mode 21592c3632d1SSimon J. Gerraty 21602c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200806 21612c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21622c3632d1SSimon J. Gerraty o parse.c: remove VARE_WANTRES for LINT 21632c3632d1SSimon J. Gerraty we just want to check parsing (for now). 21642c3632d1SSimon J. Gerraty 21652c3632d1SSimon J. Gerraty2020-08-05 Simon J Gerraty <sjg@beast.crufty.net> 21662c3632d1SSimon J. Gerraty 21672c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200805 21682c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21692c3632d1SSimon J. Gerraty o make.1: Rework the description of dependence operators 21702c3632d1SSimon J. Gerraty 21712c3632d1SSimon J. Gerraty2020-08-03 Simon J Gerraty <sjg@beast.crufty.net> 21722c3632d1SSimon J. Gerraty 21732c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200803 21742c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21752c3632d1SSimon J. Gerraty o revert some C99 usage, for max portability 21762c3632d1SSimon J. Gerraty o unit-tests/lint 21772c3632d1SSimon J. Gerraty 21782c3632d1SSimon J. Gerraty2020-08-02 Simon J Gerraty <sjg@beast.crufty.net> 21792c3632d1SSimon J. Gerraty 21802c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200802 21812c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21822c3632d1SSimon J. Gerraty o more unit tests 21832c3632d1SSimon J. Gerraty 21842c3632d1SSimon J. Gerraty2020-08-01 Simon J Gerraty <sjg@beast.crufty.net> 21852c3632d1SSimon J. Gerraty 21862c3632d1SSimon J. Gerraty * Remove NetBSD specific plumbing from unit-tests/Makefile 21872c3632d1SSimon J. Gerraty 21882c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200801 21892c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21902c3632d1SSimon J. Gerraty o make Var_Value return const 21912c3632d1SSimon J. Gerraty o size_t for buf sizes 21922c3632d1SSimon J. Gerraty o optimize some buffer operations - avoid strlen 21932c3632d1SSimon J. Gerraty 21942c3632d1SSimon J. Gerraty2020-07-31 Simon J Gerraty <sjg@beast.crufty.net> 21952c3632d1SSimon J. Gerraty 21962c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200731 21972c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 21982c3632d1SSimon J. Gerraty o var.c: fix undefinded behavior for incomplete :t modifier 21992c3632d1SSimon J. Gerraty fixes unit-test/moderrs on Ubuntu 22002c3632d1SSimon J. Gerraty o parse.c: When parsing variable assignments other than := 22012c3632d1SSimon J. Gerraty if DEBUG(LINT) test substition of value, so we get a file and 22022c3632d1SSimon J. Gerraty line number in the resulting error. 22032c3632d1SSimon J. Gerraty o dir.c: fix parsing of nested braces in dependency lines 22042c3632d1SSimon J. Gerraty add unit-tests 22052c3632d1SSimon J. Gerraty 22062c3632d1SSimon J. Gerraty2020-07-30 Simon J Gerraty <sjg@beast.crufty.net> 22072c3632d1SSimon J. Gerraty 22082c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200730 22092c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 22102c3632d1SSimon J. Gerraty o var.c: minor cleanup 22112c3632d1SSimon J. Gerraty o unit-tests: more tests to improve code coverage 22122c3632d1SSimon J. Gerraty 22132c3632d1SSimon J. Gerraty2020-07-28 Simon J Gerraty <sjg@beast.crufty.net> 22142c3632d1SSimon J. Gerraty 22152c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200728 22162c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 22172c3632d1SSimon J. Gerraty o var.c: more optimizations 22182c3632d1SSimon J. Gerraty 22192c3632d1SSimon J. Gerraty2020-07-26 Simon J Gerraty <sjg@beast.crufty.net> 22202c3632d1SSimon J. Gerraty 22212c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200726 22222c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 22232c3632d1SSimon J. Gerraty o collapse lsd.lib into lst.c - reduce code size and allow inlining 22242c3632d1SSimon J. Gerraty o lots of function comment updates 22252c3632d1SSimon J. Gerraty o var.c: more optimizations 22262c3632d1SSimon J. Gerraty o make return of Var_Parse const 22272c3632d1SSimon J. Gerraty 22282c3632d1SSimon J. Gerraty2020-07-20 Simon J Gerraty <sjg@beast.crufty.net> 22292c3632d1SSimon J. Gerraty 22302c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200720 22312c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 22322c3632d1SSimon J. Gerraty o DEBUG_HASH report stats at end and tone down the noise 22332c3632d1SSimon J. Gerraty o var.c: each flag type gets its own prefix. 22342c3632d1SSimon J. Gerraty move SysV string matching to var.c 22352c3632d1SSimon J. Gerraty make ampersand in ${VAR:from=to&} an ordinary character 22362c3632d1SSimon J. Gerraty cleanup and simplify implementation of modifiers 22372c3632d1SSimon J. Gerraty o make.1: move documentation for assignment modifiers 22382c3632d1SSimon J. Gerraty 22392c3632d1SSimon J. Gerraty2020-07-18 Simon J Gerraty <sjg@beast.crufty.net> 22402c3632d1SSimon J. Gerraty 22412c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200718 22422c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 22432c3632d1SSimon J. Gerraty o DEBUG_HASH to see how well the hash tables are working 22442c3632d1SSimon J. Gerraty 22452c3632d1SSimon J. Gerraty2020-07-11 Simon J Gerraty <sjg@beast.crufty.net> 22462c3632d1SSimon J. Gerraty 22472c3632d1SSimon J. Gerraty * bsd.after-import.mk: make sure we update unit-tests/Makefile 22482c3632d1SSimon J. Gerraty 22493841c287SSimon J. Gerraty2020-07-10 Simon J Gerraty <sjg@beast.crufty.net> 22503841c287SSimon J. Gerraty 22513841c287SSimon J. Gerraty * configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC 22523841c287SSimon J. Gerraty 22533841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200710 22543841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22553841c287SSimon J. Gerraty o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall 22563841c287SSimon J. Gerraty o meta.c: target flagged .META is out-of-date if meta file missing 22573841c287SSimon J. Gerraty 22583841c287SSimon J. Gerraty2020-07-09 Simon J Gerraty <sjg@beast.crufty.net> 22593841c287SSimon J. Gerraty 22603841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200709 22613841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22623841c287SSimon J. Gerraty o cond.c: fix for compare_expression when doEval=0 22633841c287SSimon J. Gerraty o unit-tests/Makefile: rework 22643841c287SSimon J. Gerraty o filemon/filemon_dev.c: ensure filemon fd is closed on exec. 22653841c287SSimon J. Gerraty 22663841c287SSimon J. Gerraty2020-07-04 Simon J Gerraty <sjg@beast.crufty.net> 22673841c287SSimon J. Gerraty 22683841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200704 22693841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22703841c287SSimon J. Gerraty (most of this by rillig@) 22713841c287SSimon J. Gerraty o lots of style and white-space cleanup 22723841c287SSimon J. Gerraty o lots more unit tests for variable modifiers 22733841c287SSimon J. Gerraty o simplified description of some functions 22743841c287SSimon J. Gerraty o str.c: refactor Str_Match 22753841c287SSimon J. Gerraty o var.c: debugging output for :@ 22763841c287SSimon J. Gerraty constify VarModify parameter 22773841c287SSimon J. Gerraty fix :hash modifier on 16-bit platforms 22783841c287SSimon J. Gerraty remove unnecessary forward declarations 22793841c287SSimon J. Gerraty refactor ApplyModifier_SysV to have less indentation 22803841c287SSimon J. Gerraty simplify code for :E and :R 22813841c287SSimon J. Gerraty clean up code for :H and :T 22823841c287SSimon J. Gerraty refactor ApplyModifiers 22833841c287SSimon J. Gerraty 22843841c287SSimon J. Gerraty * var.c: we need stdint.h on some platforms to get uint32_t 22853841c287SSimon J. Gerraty * unit-test/Makefile: we need to supress the specific error 22863841c287SSimon J. Gerraty for RE substitution error in modmisc, since it varies accross 22873841c287SSimon J. Gerraty different OS. 22883841c287SSimon J. Gerraty 22893841c287SSimon J. Gerraty2020-07-02 Simon J Gerraty <sjg@beast.crufty.net> 22903841c287SSimon J. Gerraty 22913841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200702 22923841c287SSimon J. Gerraty Merge with NetBSD make, pick up 22933841c287SSimon J. Gerraty o var.c: more improvements to avoiding unnecessary evaluation 22943841c287SSimon J. Gerraty use enums for flags 22953841c287SSimon J. Gerraty o remove flags arg to Var_Set which outside of var.c is always 0 22963841c287SSimon J. Gerraty 22973841c287SSimon J. Gerraty2020-07-01 Simon J Gerraty <sjg@beast.crufty.net> 22983841c287SSimon J. Gerraty 22993841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200701 23003841c287SSimon J. Gerraty Merge with NetBSD make, pick up 23013841c287SSimon J. Gerraty o var.c: with change to cond.c; ensure that nested variables 23023841c287SSimon J. Gerraty within a variable name are expanded. 23033841c287SSimon J. Gerraty o unit-tests/varmisc.mk: test for nested varname 23043841c287SSimon J. Gerraty 23053841c287SSimon J. Gerraty2020-06-29 Simon J Gerraty <sjg@beast.crufty.net> 23063841c287SSimon J. Gerraty 23073841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200629 23083841c287SSimon J. Gerraty Merge with NetBSD make, pick up 23093841c287SSimon J. Gerraty o cond.c: do not eval unnecessary terms of conditionals. 23103841c287SSimon J. Gerraty 23113841c287SSimon J. Gerraty2020-06-25 Simon J Gerraty <sjg@beast.crufty.net> 23123841c287SSimon J. Gerraty 23133841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200625 23143841c287SSimon J. Gerraty Merge with NetBSD make, pick up 23153841c287SSimon J. Gerraty o meta.c: report error if lseek in filemon_read fails 23163841c287SSimon J. Gerraty 23173841c287SSimon J. Gerraty2020-06-22 Simon J Gerraty <sjg@beast.crufty.net> 23183841c287SSimon J. Gerraty 23193841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200622 23203841c287SSimon J. Gerraty Merge with NetBSD make, pick up 23213841c287SSimon J. Gerraty o dieQuietly: ignore OP_SUBMAKE as too aggressive 23223841c287SSimon J. Gerraty 23233841c287SSimon J. Gerraty2020-06-19 Simon J Gerraty <sjg@beast.crufty.net> 23243841c287SSimon J. Gerraty 23253841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200619 23263841c287SSimon J. Gerraty Merge with NetBSD make, pick up 23273841c287SSimon J. Gerraty o str.c: performance improvement for Str_Match for multiple '*' 23283841c287SSimon J. Gerraty o dieQuietly: supress the failure output from make 23293841c287SSimon J. Gerraty when failing node is a sub-make or a sibling failed. 23303841c287SSimon J. Gerraty This cuts down greatly on unhelpful noise at the end of 23313841c287SSimon J. Gerraty build log. Disabled by -dj or .MAKE.DIE_QUIETLY=no 23323841c287SSimon J. Gerraty 23333841c287SSimon J. Gerraty2020-06-10 Simon J Gerraty <sjg@beast.crufty.net> 23343841c287SSimon J. Gerraty 23353841c287SSimon J. Gerraty * FILES: add LICENSE to appease some packagers. 23363841c287SSimon J. Gerraty This is an attempt to fairly represent the license on almost 23373841c287SSimon J. Gerraty 200 files, which are almost all BSD-3-Clause 23383841c287SSimon J. Gerraty The few exceptions being more liberal. 23393841c287SSimon J. Gerraty 23403841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200610 23413841c287SSimon J. Gerraty Merge with NetBSD make, pick up 23423841c287SSimon J. Gerraty o unit test for :Or 23433841c287SSimon J. Gerraty 2344ef0b2538SSimon J. Gerraty2020-06-06 Simon J Gerraty <sjg@beast.crufty.net> 2345ef0b2538SSimon J. Gerraty 2346ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200606 2347ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 2348ef0b2538SSimon J. Gerraty o make.1: cleanup 2349ef0b2538SSimon J. Gerraty 2350ef0b2538SSimon J. Gerraty * Makefile: fix depends for main.o which broke MAKE_VERSION 2351ef0b2538SSimon J. Gerraty 2352ef0b2538SSimon J. Gerraty2020-06-05 Simon J Gerraty <sjg@beast.crufty.net> 2353ef0b2538SSimon J. Gerraty 2354ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200605 2355ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 2356ef0b2538SSimon J. Gerraty o dir.c: cached_stats - don't confuse stat and lstat results. 2357ef0b2538SSimon J. Gerraty o var.c: add :Or for reverse sort. 2358ef0b2538SSimon J. Gerraty 2359ef0b2538SSimon J. Gerraty2020-05-24 Simon J Gerraty <sjg@beast.crufty.net> 2360ef0b2538SSimon J. Gerraty 2361ef0b2538SSimon J. Gerraty * configure.in: add AC_PROG_CC_C99 for mipspro compiler 2362ef0b2538SSimon J. Gerraty also if --with-filemon= specifies path to filemon.h 2363ef0b2538SSimon J. Gerraty set use_filemon=dev 2364ef0b2538SSimon J. Gerraty * dirname.c: remove include of namespace.h 2365ef0b2538SSimon J. Gerraty 236649caa483SSimon J. Gerraty2020-05-17 Simon J Gerraty <sjg@beast.crufty.net> 236749caa483SSimon J. Gerraty 236849caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200517 236949caa483SSimon J. Gerraty Merge with NetBSD make, pick up 237049caa483SSimon J. Gerraty o modified dollar tests to avoid shell dependencies 237149caa483SSimon J. Gerraty o new tests for .INCLUDEFROM 237249caa483SSimon J. Gerraty 237349caa483SSimon J. Gerraty2020-05-16 Simon J Gerraty <sjg@beast.crufty.net> 237449caa483SSimon J. Gerraty 237549caa483SSimon J. Gerraty * unit-tests/dollar.mk: tweak '1 dollar literal' test 237649caa483SSimon J. Gerraty to not depend so much on shell behavior 237749caa483SSimon J. Gerraty 237849caa483SSimon J. Gerraty2020-05-10 Simon J Gerraty <sjg@beast.crufty.net> 237949caa483SSimon J. Gerraty 238049caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200510 238149caa483SSimon J. Gerraty Merge with NetBSD make, pick up 238249caa483SSimon J. Gerraty o unit test for dollar handling 238349caa483SSimon J. Gerraty 238449caa483SSimon J. Gerraty2020-05-06 Simon J Gerraty <sjg@beast.crufty.net> 238549caa483SSimon J. Gerraty 238649caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200506 238749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 238849caa483SSimon J. Gerraty o str.c: empty string does not match % pattern 238949caa483SSimon J. Gerraty plus unit-test changes 239049caa483SSimon J. Gerraty 239149caa483SSimon J. Gerraty2020-05-04 Simon J Gerraty <sjg@beast.crufty.net> 239249caa483SSimon J. Gerraty 239349caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200504 239449caa483SSimon J. Gerraty May the 4th be with you 239549caa483SSimon J. Gerraty Merge with NetBSD make, pick up 239649caa483SSimon J. Gerraty o var.c: import handling of old sysV style modifier using '%' 239749caa483SSimon J. Gerraty o str.c: refactor brk_string 239849caa483SSimon J. Gerraty o unit-tests: add test case for lazy conditions 239949caa483SSimon J. Gerraty 240049caa483SSimon J. Gerraty2020-04-18 Simon J Gerraty <sjg@beast.crufty.net> 240149caa483SSimon J. Gerraty 240249caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200418 240349caa483SSimon J. Gerraty 2404548bfc56SSimon J. Gerraty * configure.in: use_makefile=no for Cygwin et al. 240549caa483SSimon J. Gerraty case insensitive filesystems just don't work if both 240649caa483SSimon J. Gerraty makefile and Makefile exist. 2407548bfc56SSimon J. Gerraty NOTE: bmake does not support Cygwin and likely never will, 240849caa483SSimon J. Gerraty but if brave souls want to try it - help them out. 240949caa483SSimon J. Gerraty 241049caa483SSimon J. Gerraty2020-04-02 Simon J Gerraty <sjg@beast.crufty.net> 241149caa483SSimon J. Gerraty 241249caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200402 241349caa483SSimon J. Gerraty Merge with NetBSD make, pick up 241449caa483SSimon J. Gerraty o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD 241549caa483SSimon J. Gerraty a blank command is perfectly valid. 241649caa483SSimon J. Gerraty 241749caa483SSimon J. Gerraty2020-03-30 Simon J Gerraty <sjg@beast.crufty.net> 241849caa483SSimon J. Gerraty 241949caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200330 242049caa483SSimon J. Gerraty Merge with NetBSD make, pick up 242149caa483SSimon J. Gerraty o make.h: extern debug_file 242249caa483SSimon J. Gerraty 242349caa483SSimon J. Gerraty2020-03-18 Simon J Gerraty <sjg@beast.crufty.net> 242449caa483SSimon J. Gerraty 242549caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200318 242649caa483SSimon J. Gerraty Merge with NetBSD make, pick up 242749caa483SSimon J. Gerraty o meta.c: meta_oodate, check for corrupted meta file 242849caa483SSimon J. Gerraty earlier and more often. 242949caa483SSimon J. Gerraty 243049caa483SSimon J. Gerraty2020-02-20 Simon J Gerraty <sjg@beast.crufty.net> 243149caa483SSimon J. Gerraty 243249caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200220 243349caa483SSimon J. Gerraty 243449caa483SSimon J. Gerraty2020-02-19 Simon J Gerraty <sjg@beast.crufty.net> 243549caa483SSimon J. Gerraty 243649caa483SSimon J. Gerraty * boot-strap: unset MAKEFLAGS 243749caa483SSimon J. Gerraty 243849caa483SSimon J. Gerraty2020-02-12 Simon J Gerraty <sjg@beast.crufty.net> 243949caa483SSimon J. Gerraty 244049caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200212 244149caa483SSimon J. Gerraty * meta.c: meta_compat_parent check for USE_FILEMON 244249caa483SSimon J. Gerraty patch from Soeren Tempel 244349caa483SSimon J. Gerraty 244449caa483SSimon J. Gerraty2020-02-05 Simon J Gerraty <sjg@beast.crufty.net> 244549caa483SSimon J. Gerraty 244649caa483SSimon J. Gerraty * VERSION: 20200205 244749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 244849caa483SSimon J. Gerraty o meta.c: fix compat mode, need to call meta_job_output() 244949caa483SSimon J. Gerraty o job.c: extra fds for meta mode not needed if using filemon_dev 245049caa483SSimon J. Gerraty 245149caa483SSimon J. Gerraty2020-01-22 Simon J Gerraty <sjg@beast.crufty.net> 245249caa483SSimon J. Gerraty 245349caa483SSimon J. Gerraty * VERSION: 20200122 245449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 245549caa483SSimon J. Gerraty o meta.c: avoid passing NULL to filemon_*() when meta_needed() 245649caa483SSimon J. Gerraty returns FALSE. 245749caa483SSimon J. Gerraty 245849caa483SSimon J. Gerraty2020-01-21 Simon J Gerraty <sjg@beast.crufty.net> 245949caa483SSimon J. Gerraty 246049caa483SSimon J. Gerraty * VERSION: 20200121 246149caa483SSimon J. Gerraty Merge with NetBSD make, pick up 246249caa483SSimon J. Gerraty o filemon/filemon_{dev,ktrace}.c: allow selection of 246349caa483SSimon J. Gerraty filemon implementation. filemon_dev.c uses the kernel module 246449caa483SSimon J. Gerraty while filemon_ktrace.c leverages the fktrace api available in 246549caa483SSimon J. Gerraty NetBSD. filemon_ktrace.c can hopefully form the basis for 246649caa483SSimon J. Gerraty adding support for other tracing mechanisms such as strace on 246749caa483SSimon J. Gerraty Linux. 246849caa483SSimon J. Gerraty o meta.c: when target is out-of-date per normal make rules 246949caa483SSimon J. Gerraty record value of .OODATE in meta file. 247049caa483SSimon J. Gerraty 247149caa483SSimon J. Gerraty2019-09-26 Simon J Gerraty <sjg@beast.crufty.net> 247249caa483SSimon J. Gerraty 247349caa483SSimon J. Gerraty * VERSION: 20190926 247449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 247549caa483SSimon J. Gerraty o parse.c: don't pass NULL to realpath(3) 247649caa483SSimon J. Gerraty some versions cannot handle it. 247749caa483SSimon J. Gerraty 247849caa483SSimon J. Gerraty2019-04-09 Simon J Gerraty <sjg@beast.crufty.net> 247949caa483SSimon J. Gerraty 248049caa483SSimon J. Gerraty * VERSION: 20190409 248149caa483SSimon J. Gerraty Merge with NetBSD make, pick up 248249caa483SSimon J. Gerraty o parse.c: ParseDoDependency: free paths rather than assert 248349caa483SSimon J. Gerraty 248449caa483SSimon J. Gerraty2018-12-22 Simon J Gerraty <sjg@beast.crufty.net> 248549caa483SSimon J. Gerraty 248649caa483SSimon J. Gerraty * VERSION: 20181222 248749caa483SSimon J. Gerraty 248849caa483SSimon J. Gerraty * configure.in: add --without-makefile to avoid generating 248949caa483SSimon J. Gerraty makefile and make-bootstrap.sh 249049caa483SSimon J. Gerraty 249149caa483SSimon J. Gerraty * include Makefile.inc if it exists 249249caa483SSimon J. Gerraty 249349caa483SSimon J. Gerraty * Use Makefile and Makefile.config.in in unit-tests 249449caa483SSimon J. Gerraty so we can use just: make obj && make && make test 249549caa483SSimon J. Gerraty when bmake is already available. 249649caa483SSimon J. Gerraty We add --without-makefile to CONFIGURE_ARGS in this case. 249749caa483SSimon J. Gerraty 249849caa483SSimon J. Gerraty * tweak bsd.after-import.mk (captures Makefile.config etc 249949caa483SSimon J. Gerraty after import to FreeBSD for example) to cope with all the above. 250049caa483SSimon J. Gerraty 2501dfd669abSSimon J. Gerraty2018-12-21 Simon J Gerraty <sjg@beast.crufty.net> 2502dfd669abSSimon J. Gerraty 2503dfd669abSSimon J. Gerraty * VERSION: 20181221 2504dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2505dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .PARSEDIR 2506dfd669abSSimon J. Gerraty and apply if relative, and then use .PARSEFILE 2507dfd669abSSimon J. Gerraty for consistent result. 2508dfd669abSSimon J. Gerraty 2509dfd669abSSimon J. Gerraty2018-12-20 Simon J Gerraty <sjg@beast.crufty.net> 2510dfd669abSSimon J. Gerraty 2511dfd669abSSimon J. Gerraty * VERSION: 20181220 2512dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2513dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR 2514dfd669abSSimon J. Gerraty is relative 2515dfd669abSSimon J. Gerraty o var.c: avoid SEGFAULT in .unexport-env 2516dfd669abSSimon J. Gerraty when MAKELEVEL is not set 2517dfd669abSSimon J. Gerraty 2518dfd669abSSimon J. Gerraty2018-12-16 Simon J Gerraty <sjg@beast.crufty.net> 2519dfd669abSSimon J. Gerraty 2520dfd669abSSimon J. Gerraty * VERSION: 20181216 2521dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2522dfd669abSSimon J. Gerraty o fix for unit-tests/varquote.mk on Debian 2523dfd669abSSimon J. Gerraty 25242eae894cSSimon J. Gerraty2018-09-21 Simon J. Gerraty <sjg@bad.crufty.net> 25252eae894cSSimon J. Gerraty 25262eae894cSSimon J. Gerraty * VERSION: 20180919 25272eae894cSSimon J. Gerraty Merge with NetBSD make, pick up 25282eae894cSSimon J. Gerraty o var.c: add :q 25292eae894cSSimon J. Gerraty o dir.c: cleanup caching of stats 25302eae894cSSimon J. Gerraty 25312eae894cSSimon J. Gerraty2018-09-21 Simon J Gerraty <sjg@beast.crufty.net> 25322eae894cSSimon J. Gerraty 25332eae894cSSimon J. Gerraty * Makefile.config.in: use += where it makes sense. 25342eae894cSSimon J. Gerraty 2535494f7191SSimon J. Gerraty2018-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2536494f7191SSimon J. Gerraty 2537494f7191SSimon J. Gerraty * VERSION: 20180512 2538494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2539494f7191SSimon J. Gerraty o job.c: skip polling job token pipe 2540494f7191SSimon J. Gerraty 2541494f7191SSimon J. Gerraty2018-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 2542494f7191SSimon J. Gerraty 2543494f7191SSimon J. Gerraty * VERSION: 20180405 2544494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2545494f7191SSimon J. Gerraty o parse.c: be more cautious about detecting depenency line 2546494f7191SSimon J. Gerraty rather than sysV style include. 2547494f7191SSimon J. Gerraty 254850d2e745SSimon J. Gerraty2018-02-22 Simon J. Gerraty <sjg@bad.crufty.net> 254950d2e745SSimon J. Gerraty 255050d2e745SSimon J. Gerraty * VERSION: 20180222 255150d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 255250d2e745SSimon J. Gerraty o parse.c: avoid calling sysconf for every call to loadfile 255350d2e745SSimon J. Gerraty 255450d2e745SSimon J. Gerraty2018-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 255550d2e745SSimon J. Gerraty 255650d2e745SSimon J. Gerraty * VERSION: 20180218 255750d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 255850d2e745SSimon J. Gerraty o var.c: Var_Set handle NULL value anytime. 255950d2e745SSimon J. Gerraty 256050d2e745SSimon J. Gerraty2018-02-12 Simon J. Gerraty <sjg@bad.crufty.net> 256150d2e745SSimon J. Gerraty 256250d2e745SSimon J. Gerraty * VERSION: 20180212 256350d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 256450d2e745SSimon J. Gerraty o parse.c: do not treat .info as warning with -W 256550d2e745SSimon J. Gerraty 256650d2e745SSimon J. Gerraty2017-12-07 Simon J. Gerraty <sjg@bad.crufty.net> 256750d2e745SSimon J. Gerraty 256850d2e745SSimon J. Gerraty * VERSION: 20171207 256950d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 257050d2e745SSimon J. Gerraty o var.c: Var_Append use Var_Set if var not previously set 257150d2e745SSimon J. Gerraty so that VAR_CMD is handled correctly. 257250d2e745SSimon J. Gerraty Add a suitable unit-test. 257350d2e745SSimon J. Gerraty 257450d2e745SSimon J. Gerraty2017-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 257550d2e745SSimon J. Gerraty 257650d2e745SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20171126 257750d2e745SSimon J. Gerraty 257850d2e745SSimon J. Gerraty * aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__ 257950d2e745SSimon J. Gerraty since AC_TRY_COMPILE puts input inside main() 258050d2e745SSimon J. Gerraty which upsets modern compilers. 258150d2e745SSimon J. Gerraty 258250d2e745SSimon J. Gerraty2017-11-18 Simon J. Gerraty <sjg@bad.crufty.net> 258350d2e745SSimon J. Gerraty 258450d2e745SSimon J. Gerraty * VERSION: 20171118 258550d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 258650d2e745SSimon J. Gerraty o var.c: do not append to variable set on command line 258750d2e745SSimon J. Gerraty add unit-test to catch this. 258850d2e745SSimon J. Gerraty 2589e22fef7dSSimon J. Gerraty2017-10-28 Simon J. Gerraty <sjg@bad.crufty.net> 2590e22fef7dSSimon J. Gerraty 2591e22fef7dSSimon J. Gerraty * VERSION: 20171028 2592e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2593e22fef7dSSimon J. Gerraty o main.c: ignore empty MAKEOBJDIR 2594e22fef7dSSimon J. Gerraty 2595e22fef7dSSimon J. Gerraty * Makefile.config.in: 2596e22fef7dSSimon J. Gerraty make @prefix@ @machine*@ and @default_sys_path@ defaults. 2597e22fef7dSSimon J. Gerraty 2598e22fef7dSSimon J. Gerraty2017-10-05 Simon J. Gerraty <sjg@bad.crufty.net> 2599e22fef7dSSimon J. Gerraty 2600e22fef7dSSimon J. Gerraty * VERSION: 20171005 2601e22fef7dSSimon J. Gerraty 2602e22fef7dSSimon J. Gerraty * unit-tests/dotwait.mk: redirect stderr through pipe for more 2603e22fef7dSSimon J. Gerraty consistent result on some platforms. 2604e22fef7dSSimon J. Gerraty 2605e22fef7dSSimon J. Gerraty2017-08-13 Simon J. Gerraty <sjg@bad.crufty.net> 2606e22fef7dSSimon J. Gerraty 2607e22fef7dSSimon J. Gerraty * machine.sh: entry for AIX 2608e22fef7dSSimon J. Gerraty 2609e22fef7dSSimon J. Gerraty2017-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 2610e22fef7dSSimon J. Gerraty 2611e22fef7dSSimon J. Gerraty * VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION 2612e22fef7dSSimon J. Gerraty to a file that can be included by configure as well as make. 2613e22fef7dSSimon J. Gerraty This allows configure to set set _MAKE_VERSION in make-bootstrap.sh 2614e22fef7dSSimon J. Gerraty 2615e22fef7dSSimon J. Gerraty2017-08-10 Simon J. Gerraty <sjg@bad.crufty.net> 2616e22fef7dSSimon J. Gerraty 2617e22fef7dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170810 2618e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2619e22fef7dSSimon J. Gerraty o meta.c: if target is in subdir we only need subdir name in 2620e22fef7dSSimon J. Gerraty meta_name. 2621e22fef7dSSimon J. Gerraty 2622c7019bf7SSimon J. Gerraty2017-07-20 Simon J. Gerraty <sjg@bad.crufty.net> 2623c7019bf7SSimon J. Gerraty 2624c7019bf7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170720 2625c7019bf7SSimon J. Gerraty Merge with NetBSD make, pick up 2626c7019bf7SSimon J. Gerraty o compat.c: pass SIGINT etc onto child and wait for it to exit 2627c7019bf7SSimon J. Gerraty before we self-terminate. 2628c7019bf7SSimon J. Gerraty 26298695518cSSimon J. Gerraty2017-07-11 Simon J. Gerraty <sjg@bad.crufty.net> 26308695518cSSimon J. Gerraty 26318695518cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170711 26328695518cSSimon J. Gerraty forgot to update after merge on 20170708 ;-) 26338695518cSSimon J. Gerraty o main.c: refactor to reduce size of main function. 26348695518cSSimon J. Gerraty add -v option to always fully expand values. 26358695518cSSimon J. Gerraty o meta.c: ensure command output in meta file has ending newline 26368695518cSSimon J. Gerraty even when filemon not being used. 26378695518cSSimon J. Gerraty When matching ${.MAKE.META.IGNORE_PATTERNS} do not use 26388695518cSSimon J. Gerraty pathname via ':L' since any ':' in pathname breaks that. 26398695518cSSimon J. Gerraty Instead set a '${.p.}' to pathname in the target context and 26408695518cSSimon J. Gerraty use that. 26418695518cSSimon J. Gerraty 2642cac6fd11SSimon J. Gerraty2017-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 2643cac6fd11SSimon J. Gerraty 2644cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170510 2645cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2646cac6fd11SSimon J. Gerraty o main.c: Main_SetObjdir: ensure buf2 is in scope 2647cac6fd11SSimon J. Gerraty 2648cac6fd11SSimon J. Gerraty2017-05-08 Simon J. Gerraty <sjg@bad.crufty.net> 2649cac6fd11SSimon J. Gerraty 2650cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170505 2651cac6fd11SSimon J. Gerraty see mk/ChangeLog 2652cac6fd11SSimon J. Gerraty 2653cac6fd11SSimon J. Gerraty2017-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 2654cac6fd11SSimon J. Gerraty 2655cac6fd11SSimon J. Gerraty * parse.c: not everyone has stdint.h 2656cac6fd11SSimon J. Gerraty 2657cac6fd11SSimon J. Gerraty2017-05-01 Simon J. Gerraty <sjg@bad.crufty.net> 2658cac6fd11SSimon J. Gerraty 2659cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170501 2660cac6fd11SSimon J. Gerraty see mk/ChangeLog 2661cac6fd11SSimon J. Gerraty 2662cac6fd11SSimon J. Gerraty2017-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 2663cac6fd11SSimon J. Gerraty 2664cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170421 2665cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2666cac6fd11SSimon J. Gerraty o str.c: Str_Match: fix closure tests for [^] and add unit-test. 2667cac6fd11SSimon J. Gerraty 2668e1cee40dSSimon J. Gerraty2017-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 2669e1cee40dSSimon J. Gerraty 2670e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170420 2671e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2672e1cee40dSSimon J. Gerraty o main.c: only use -C arg "as is" if it contains no 2673e1cee40dSSimon J. Gerraty relative component. 2674e1cee40dSSimon J. Gerraty 2675e1cee40dSSimon J. Gerraty2017-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2676e1cee40dSSimon J. Gerraty 2677e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170418 2678e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2679e1cee40dSSimon J. Gerraty o main.c: fix Main_SetObjdir() for relative paths (eg obj). 2680e1cee40dSSimon J. Gerraty 2681e1cee40dSSimon J. Gerraty2017-04-17 Simon J. Gerraty <sjg@bad.crufty.net> 2682e1cee40dSSimon J. Gerraty 2683e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170417 2684e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2685e1cee40dSSimon J. Gerraty o fixes a number of coverity complaints 2686e1cee40dSSimon J. Gerraty - check return value of fseek, fcntl 2687e1cee40dSSimon J. Gerraty - plug memory leak in Dir_FindFile, Var_LoopExpand, 2688e1cee40dSSimon J. Gerraty JobPrintCommand, ParseTraditionalInclude 2689e1cee40dSSimon J. Gerraty - use bmake_malloc() where NULL is not tollerated 2690e1cee40dSSimon J. Gerraty - use MAKE_ATTR_UNUSED rather that kludges like 2691e1cee40dSSimon J. Gerraty return(unused ? 0 : 0) 2692e1cee40dSSimon J. Gerraty - use purge_cached_realpaths() rather than abuse cached_realpath() 2693e1cee40dSSimon J. Gerraty 2694b46b9039SSimon J. Gerraty2017-04-13 Simon J. Gerraty <sjg@bad.crufty.net> 2695b46b9039SSimon J. Gerraty 2696b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170413 2697b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2698b46b9039SSimon J. Gerraty o main.c: when setting .OBJDIR ignore '$' in paths. 2699b46b9039SSimon J. Gerraty 2700b46b9039SSimon J. Gerraty * job.c: use MALLOC_OPTIONS to set malloc_options. 2701b46b9039SSimon J. Gerraty 2702b46b9039SSimon J. Gerraty2017-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2703b46b9039SSimon J. Gerraty 2704b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170411 2705b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2706b46b9039SSimon J. Gerraty o str.c: Str_Match: allow [^a-z] to behave as expected. 2707b46b9039SSimon J. Gerraty 2708b46b9039SSimon J. Gerraty2017-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2709b46b9039SSimon J. Gerraty 2710b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170326 2711b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2712b46b9039SSimon J. Gerraty o main.c: purge relative paths from realpath cache when .OBJDIR 2713b46b9039SSimon J. Gerraty is changed. 2714b46b9039SSimon J. Gerraty 2715b46b9039SSimon J. Gerraty2017-03-11 Simon J. Gerraty <sjg@bad.crufty.net> 2716b46b9039SSimon J. Gerraty 2717b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170311 2718b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2719b46b9039SSimon J. Gerraty o main.c: only use -C arg "as is" if it starts with '/'. 2720b46b9039SSimon J. Gerraty 27211ce939a7SSimon J. Gerraty2017-03-01 Simon J. Gerraty <sjg@bad.crufty.net> 27221ce939a7SSimon J. Gerraty 27231ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170301 27241ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 2725b46b9039SSimon J. Gerraty o main.c: use -C arg "as is" rather than getcwd() 27261ce939a7SSimon J. Gerraty if they identify the same directory. 27271ce939a7SSimon J. Gerraty o parse.c: ensure loadfile buffer is \n terminated in non-mmap case 27281ce939a7SSimon J. Gerraty 27291ce939a7SSimon J. Gerraty2017-02-01 Simon J. Gerraty <sjg@bad.crufty.net> 27301ce939a7SSimon J. Gerraty 27311ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170201 27321ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 27331ce939a7SSimon J. Gerraty o var.c: allow :_=var and avoid use of special context. 27341ce939a7SSimon J. Gerraty 27351ce939a7SSimon J. Gerraty2017-01-30 Simon J. Gerraty <sjg@bad.crufty.net> 27361ce939a7SSimon J. Gerraty 27371ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170130 27381ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 27391ce939a7SSimon J. Gerraty o var.c: add :range and :_ 27401ce939a7SSimon J. Gerraty o main.c: partially initialize Dir_* before MainParseArgs() 27411ce939a7SSimon J. Gerraty can be called. 27421ce939a7SSimon J. Gerraty If -V, skip Main_ExportMAKEFLAGS() 27431ce939a7SSimon J. Gerraty 27441ce939a7SSimon J. Gerraty2017-01-14 Simon J. Gerraty <sjg@bad.crufty.net> 27451ce939a7SSimon J. Gerraty 27461ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170114 27471ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 27481ce939a7SSimon J. Gerraty o var.c: allow specifying the utc value used by :{gm,local}time 27491ce939a7SSimon J. Gerraty 275045447996SSimon J. Gerraty2016-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 275145447996SSimon J. Gerraty 275245447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161212 275345447996SSimon J. Gerraty Merge with NetBSD make, pick up 275445447996SSimon J. Gerraty o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too. 275545447996SSimon J. Gerraty 275645447996SSimon J. Gerraty2016-12-09 Simon J. Gerraty <sjg@bad.crufty.net> 275745447996SSimon J. Gerraty 275845447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161209 275945447996SSimon J. Gerraty Merge with NetBSD make, pick up 276045447996SSimon J. Gerraty o main.c: cleanup setting of .OBJDIR 276145447996SSimon J. Gerraty o parse.c: avoid coredump from (var)=val 276245447996SSimon J. Gerraty 276345447996SSimon J. Gerraty2016-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 276445447996SSimon J. Gerraty 276545447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161126 276645447996SSimon J. Gerraty Merge with NetBSD make, pick up 276745447996SSimon J. Gerraty o make.c: Make_OODate: report src node name if path not set 276845447996SSimon J. Gerraty 276945447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 277045447996SSimon J. Gerraty 277145447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160926 277245447996SSimon J. Gerraty Merge with NetBSD make, pick up 277345447996SSimon J. Gerraty o support for .DELETE_ON_ERROR: (remove targets that fail) 277445447996SSimon J. Gerraty 277545447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 277645447996SSimon J. Gerraty 277745447996SSimon J. Gerraty * Makefile MAN: tweak .Dt to match ${PROG} 277845447996SSimon J. Gerraty 277995e3ed2cSSimon J. Gerraty2016-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 278095e3ed2cSSimon J. Gerraty 278195e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160818 278295e3ed2cSSimon J. Gerraty its a neater number; pick up whitespace fixes to man page. 278395e3ed2cSSimon J. Gerraty 278495e3ed2cSSimon J. Gerraty2016-08-17 Simon J. Gerraty <sjg@bad.crufty.net> 278595e3ed2cSSimon J. Gerraty 278695e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160817 278795e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 278895e3ed2cSSimon J. Gerraty o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore() 278995e3ed2cSSimon J. Gerraty so we can call it before adding entries to missingFiles. 279095e3ed2cSSimon J. Gerraty Thus we do not track files we have been told to ignore. 279195e3ed2cSSimon J. Gerraty 279295e3ed2cSSimon J. Gerraty2016-08-15 Simon J. Gerraty <sjg@bad.crufty.net> 279395e3ed2cSSimon J. Gerraty 279495e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160815 279595e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 279695e3ed2cSSimon J. Gerraty o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to 279795e3ed2cSSimon J. Gerraty pathnames, and skip if the expansion is empty. 279895e3ed2cSSimon J. Gerraty Useful for dirdeps.mk when checking DIRDEPS_CACHE. 279995e3ed2cSSimon J. Gerraty 280095e3ed2cSSimon J. Gerraty2016-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 280195e3ed2cSSimon J. Gerraty 280295e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160812 280395e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 280495e3ed2cSSimon J. Gerraty o meta.c: remove all missingFiles entries that match a deleted 280595e3ed2cSSimon J. Gerraty dir. 280695e3ed2cSSimon J. Gerraty o main.c: set .ERROR_CMD if possible. 280795e3ed2cSSimon J. Gerraty 280839ac7ef4SSimon J. Gerraty2016-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 280939ac7ef4SSimon J. Gerraty 281039ac7ef4SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160606 281139ac7ef4SSimon J. Gerraty Merge with NetBSD make, pick up 281239ac7ef4SSimon J. Gerraty o dir.c: extend mtimes cache to others via cached_stat() 281339ac7ef4SSimon J. Gerraty 2814b778b302SSimon J. Gerraty2016-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 2815b778b302SSimon J. Gerraty 2816b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160604 2817b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2818b778b302SSimon J. Gerraty o meta.c: missing filemon data is only relevant if we read a 2819b778b302SSimon J. Gerraty meta file. 2820b778b302SSimon J. Gerraty Also do not return oodate for a missing metafile if gn->path 2821b778b302SSimon J. Gerraty points to .CURDIR 2822b778b302SSimon J. Gerraty 2823b778b302SSimon J. Gerraty2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 2824b778b302SSimon J. Gerraty 2825b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160602 2826b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2827b778b302SSimon J. Gerraty o cached_realpath(): avoid hitting filesystem more than necessary. 2828b778b302SSimon J. Gerraty o meta.c: refactor need_meta decision, add knobs for 2829b778b302SSimon J. Gerraty missing meta file and filemon data wrt out-of-datedness. 2830b778b302SSimon J. Gerraty 2831b778b302SSimon J. Gerraty2016-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 2832b778b302SSimon J. Gerraty 2833b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160528 2834b778b302SSimon J. Gerraty 2835b778b302SSimon J. Gerraty * boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION 2836b778b302SSimon J. Gerraty 2837e48f47ddSSimon J. Gerraty2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2838e48f47ddSSimon J. Gerraty 2839e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160512 2840e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2841e48f47ddSSimon J. Gerraty o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS 2842e48f47ddSSimon J. Gerraty this is useful for gcov builds. 2843e48f47ddSSimon J. Gerraty o propagate errors from filemon(4). 2844e48f47ddSSimon J. Gerraty 2845e48f47ddSSimon J. Gerraty2016-05-09 Simon J. Gerraty <sjg@bad.crufty.net> 2846e48f47ddSSimon J. Gerraty 2847e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160509 2848e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2849e48f47ddSSimon J. Gerraty o remove use of non-standard types u_int etc. 2850e48f47ddSSimon J. Gerraty o meta.c: apply realpath() before matching against metaIgnorePaths 2851e48f47ddSSimon J. Gerraty 2852e48f47ddSSimon J. Gerraty2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net> 2853e48f47ddSSimon J. Gerraty 2854e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160404 2855e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2856e48f47ddSSimon J. Gerraty o allow makefile to set .MAKE.JOBS 2857e48f47ddSSimon J. Gerraty 2858e48f47ddSSimon J. Gerraty * Makefile (PROG_NAME): use ${_MAKE_VERSION} 2859e48f47ddSSimon J. Gerraty 28603bebe729SSimon J. Gerraty2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net> 28613bebe729SSimon J. Gerraty 28623bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160315 28633bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 28643bebe729SSimon J. Gerraty o fix handling of archive members 28653bebe729SSimon J. Gerraty 28663bebe729SSimon J. Gerraty2016-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 28673bebe729SSimon J. Gerraty 28683bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): rename variable to avoid interference 28693bebe729SSimon J. Gerraty with checks for ${MAKE_VERSION} 28703bebe729SSimon J. Gerraty 28713bebe729SSimon J. Gerraty2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net> 28723bebe729SSimon J. Gerraty 28733bebe729SSimon J. Gerraty * Makefile (MAKE_VERSION): 20160310 28743bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 28753bebe729SSimon J. Gerraty o meta.c: treat missing Read file same as Write, incase we Delete it. 28763bebe729SSimon J. Gerraty 2877be19d90bSSimon J. Gerraty2016-03-07 Simon J. Gerraty <sjg@bad.crufty.net> 2878be19d90bSSimon J. Gerraty 2879be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160307 2880be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2881be19d90bSSimon J. Gerraty o var.c: fix :ts\nnn to be octal by default. 2882be19d90bSSimon J. Gerraty o meta.c: meta_finish() to cleanup memory. 2883be19d90bSSimon J. Gerraty 2884be19d90bSSimon J. Gerraty2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 2885be19d90bSSimon J. Gerraty 2886be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160226 2887be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2888be19d90bSSimon J. Gerraty o meta.c: allow meta file for makeDepend if makefiles want it. 2889be19d90bSSimon J. Gerraty 2890be19d90bSSimon J. Gerraty2016-02-19 Simon J. Gerraty <sjg@bad.crufty.net> 2891be19d90bSSimon J. Gerraty 2892be19d90bSSimon J. Gerraty * var.c: default .MAKE.SAVE_DOLLARS to FALSE 2893be19d90bSSimon J. Gerraty for backwards compatability. 2894be19d90bSSimon J. Gerraty 2895be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160220 2896be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2897be19d90bSSimon J. Gerraty o var.c: add knob to control handling of '$$' in := 2898be19d90bSSimon J. Gerraty 2899be19d90bSSimon J. Gerraty2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 2900be19d90bSSimon J. Gerraty 2901be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160218 2902be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2903be19d90bSSimon J. Gerraty o var.c: add .export-literal allows us to fix sys.clean-env.mk 2904be19d90bSSimon J. Gerraty post the changes to Var_Subst. 2905be19d90bSSimon J. Gerraty Var_Subst now takes flags, and does not consume '$$' in := 2906be19d90bSSimon J. Gerraty 2907be19d90bSSimon J. Gerraty2016-02-17 Simon J. Gerraty <sjg@bad.crufty.net> 2908be19d90bSSimon J. Gerraty 2909be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160217 2910be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2911be19d90bSSimon J. Gerraty o var.c: preserve '$$' in := 2912be19d90bSSimon J. Gerraty o parse.c: add .dinclude for handling included 2913be19d90bSSimon J. Gerraty makefile like .depend 2914be19d90bSSimon J. Gerraty 29156e050540SSimon J. Gerraty2015-12-20 Simon J. Gerraty <sjg@bad.crufty.net> 29166e050540SSimon J. Gerraty 29176e050540SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151220 29186e050540SSimon J. Gerraty Merge with NetBSD make, pick up 29196e050540SSimon J. Gerraty o suff.c: re-initialize suffNull when clearing suffixes. 29206e050540SSimon J. Gerraty 2921ac3446e9SSimon J. Gerraty2015-12-01 Simon J. Gerraty <sjg@bad.crufty.net> 2922ac3446e9SSimon J. Gerraty 2923ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151201 2924ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2925ac3446e9SSimon J. Gerraty o cond.c: CondCvtArg: avoid access beyond end of empty buffer. 2926ac3446e9SSimon J. Gerraty o meta.c: meta_oodate: use lstat(2) for checking link target 2927ac3446e9SSimon J. Gerraty in case it is a symlink. 2928ac3446e9SSimon J. Gerraty o var.c: avoid calling brk_string and Var_Export1 with empty 2929ac3446e9SSimon J. Gerraty strings. 2930ac3446e9SSimon J. Gerraty 2931ac3446e9SSimon J. Gerraty2015-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 2932ac3446e9SSimon J. Gerraty 2933ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151126 2934ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2935ac3446e9SSimon J. Gerraty o parse.c: ParseTrackInput don't access beyond 2936ac3446e9SSimon J. Gerraty end of old value. 2937ac3446e9SSimon J. Gerraty 2938ac3446e9SSimon J. Gerraty2015-10-22 Simon J. Gerraty <sjg@bad.crufty.net> 2939ac3446e9SSimon J. Gerraty 2940ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151022 2941ac3446e9SSimon J. Gerraty 2942ac3446e9SSimon J. Gerraty * Add support for BSD/OS which lacks inttypes.h 2943ac3446e9SSimon J. Gerraty and really needs sys/param.h for sys/sysctl.h 2944ac3446e9SSimon J. Gerraty also 'type' is not a shell builtin. 2945ac3446e9SSimon J. Gerraty 2946ac3446e9SSimon J. Gerraty * var.c: eliminate uint32_t and need for inttypes.h 2947ac3446e9SSimon J. Gerraty 2948ac3446e9SSimon J. Gerraty * main.c: PrintOnError flush stdout before run .ERROR 2949ac3446e9SSimon J. Gerraty 2950ac3446e9SSimon J. Gerraty * parse.c: cope with _SC_PAGESIZE not being defined. 2951ac3446e9SSimon J. Gerraty 2952ac3446e9SSimon J. Gerraty 29534c620fe5SSimon J. Gerraty2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net> 29544c620fe5SSimon J. Gerraty 29554c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151020 29564c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 29574c620fe5SSimon J. Gerraty o var.c: fix uninitialized var 29584c620fe5SSimon J. Gerraty 29594c620fe5SSimon J. Gerraty2015-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 29604c620fe5SSimon J. Gerraty 29614c620fe5SSimon J. Gerraty * var.c: the conditional expressions used with ':?' can be 29624c620fe5SSimon J. Gerraty expensive, if already discarding do not evaluate or expand 29634c620fe5SSimon J. Gerraty anything. 29644c620fe5SSimon J. Gerraty 29654c620fe5SSimon J. Gerraty2015-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 29664c620fe5SSimon J. Gerraty 29674c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151010 29684c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 29694c620fe5SSimon J. Gerraty o Add Boolean wantit flag to Var_Subst and Var_Parse 29704c620fe5SSimon J. Gerraty when FALSE we know we are discarding the result and can 29714c620fe5SSimon J. Gerraty skip operations like Cmd_Exec. 29724c620fe5SSimon J. Gerraty 29734c620fe5SSimon J. Gerraty2015-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 29744c620fe5SSimon J. Gerraty 29754c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151009 29764c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 29774c620fe5SSimon J. Gerraty o var.c: don't check for NULL before free() 29784c620fe5SSimon J. Gerraty o meta.c: meta_oodate, do not hard code ignore of makeDependfile 29794c620fe5SSimon J. Gerraty 29804c620fe5SSimon J. Gerraty2015-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 29814c620fe5SSimon J. Gerraty 29824c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150910 29834c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 29844c620fe5SSimon J. Gerraty o main.c: with -w print Enter/Leaving messages for objdir too 29854c620fe5SSimon J. Gerraty if necessary. 29864c620fe5SSimon J. Gerraty o centralize shell metachar handling 29874c620fe5SSimon J. Gerraty 29884c620fe5SSimon J. Gerraty * FILES: add metachar.[ch] 29894c620fe5SSimon J. Gerraty 2990128a4105SSimon J. Gerraty2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 2991128a4105SSimon J. Gerraty 2992128a4105SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150606 2993128a4105SSimon J. Gerraty Merge with NetBSD make, pick up 2994128a4105SSimon J. Gerraty o make.1: document .OBJDIR target 2995128a4105SSimon J. Gerraty 299628a6bc81SSimon J. Gerraty2015-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 299728a6bc81SSimon J. Gerraty 299828a6bc81SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150505 299928a6bc81SSimon J. Gerraty Merge with NetBSD make, pick up 300028a6bc81SSimon J. Gerraty o cond.c: be strict about lhs of comparison when evaluating .if 300128a6bc81SSimon J. Gerraty but less so when called from variable expansion. 300228a6bc81SSimon J. Gerraty o unit-tests/cond2.mk: test various error conditions 300328a6bc81SSimon J. Gerraty 300428a6bc81SSimon J. Gerraty2015-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 300528a6bc81SSimon J. Gerraty 300628a6bc81SSimon J. Gerraty * machine.sh (MACHINE): Add Bitrig 300728a6bc81SSimon J. Gerraty patch from joerg@netbsd.org 300828a6bc81SSimon J. Gerraty 3009db29cad8SSimon J. Gerraty2015-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 3010db29cad8SSimon J. Gerraty 3011db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150418 3012db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3013db29cad8SSimon J. Gerraty o job.c: use memmove() rather than memcpy() 3014db29cad8SSimon J. Gerraty 3015db29cad8SSimon J. Gerraty * unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL 3016db29cad8SSimon J. Gerraty case, so skip it. 3017db29cad8SSimon J. Gerraty 3018db29cad8SSimon J. Gerraty2015-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 3019db29cad8SSimon J. Gerraty 3020db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150411 3021db29cad8SSimon J. Gerraty bump version - only mk/ changes. 3022db29cad8SSimon J. Gerraty 3023db29cad8SSimon J. Gerraty2015-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 3024db29cad8SSimon J. Gerraty 3025db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150410 3026db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3027db29cad8SSimon J. Gerraty o document different handling of '-' in jobs mode vs compat 3028db29cad8SSimon J. Gerraty o fix jobs mode so that '-' only applies to whole job 3029db29cad8SSimon J. Gerraty when shell lacks hasErrCtl 3030db29cad8SSimon J. Gerraty o meta.c: use separate vars to track lcwd and latestdir (read) 3031db29cad8SSimon J. Gerraty per process 3032db29cad8SSimon J. Gerraty 3033db29cad8SSimon J. Gerraty2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 3034db29cad8SSimon J. Gerraty 3035db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150401 3036db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3037db29cad8SSimon J. Gerraty o meta.c: close meta file in child 3038db29cad8SSimon J. Gerraty 3039db29cad8SSimon J. Gerraty * Makefile: use BINDIR.bmake if set. 3040db29cad8SSimon J. Gerraty Same for MANDIR and SHAREDIR 3041db29cad8SSimon J. Gerraty Handy for testing release candidates 3042db29cad8SSimon J. Gerraty in various environments. 3043db29cad8SSimon J. Gerraty 3044db29cad8SSimon J. Gerraty2015-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 3045db29cad8SSimon J. Gerraty 3046db29cad8SSimon J. Gerraty * move initialization of savederr to block where it is used 3047db29cad8SSimon J. Gerraty to avoid spurious warning from gcc5 3048db29cad8SSimon J. Gerraty 3049db29cad8SSimon J. Gerraty2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 3050db29cad8SSimon J. Gerraty 3051db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141111 3052db29cad8SSimon J. Gerraty just a cooler number 3053db29cad8SSimon J. Gerraty 3054db29cad8SSimon J. Gerraty2014-11-05 Simon J. Gerraty <sjg@bad.crufty.net> 3055db29cad8SSimon J. Gerraty 3056db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141105 3057db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3058db29cad8SSimon J. Gerraty o revert major overhaul of suffix handling 3059db29cad8SSimon J. Gerraty and POSIX compliance - too much breakage 3060db29cad8SSimon J. Gerraty and impossible to make backwards compatible. 3061db29cad8SSimon J. Gerraty o we still have the new unit test structure which is ok. 3062db29cad8SSimon J. Gerraty o meta.c ensure "-- filemon" is at start of line. 3063db29cad8SSimon J. Gerraty 3064db29cad8SSimon J. Gerraty2014-09-17 Simon J. Gerraty <sjg@bad.crufty.net> 3065db29cad8SSimon J. Gerraty 3066db29cad8SSimon J. Gerraty * configure.in: test that result of getconf PATH_MAX is numeric 3067db29cad8SSimon J. Gerraty and discard if not. Apparently needed for Hurd. 3068db29cad8SSimon J. Gerraty 3069db29cad8SSimon J. Gerraty2014-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 3070db29cad8SSimon J. Gerraty 3071db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140830 3072db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3073db29cad8SSimon J. Gerraty o major overhaul of suffix handling 3074db29cad8SSimon J. Gerraty o improved POSIX compliance 3075db29cad8SSimon J. Gerraty o overhauled unit-tests 3076db29cad8SSimon J. Gerraty 30775bcb7424SSimon J. Gerraty2014-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 30785bcb7424SSimon J. Gerraty 30795bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140620 30805bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 3081db29cad8SSimon J. Gerraty o var.c return varNoError rather than var_Error for ::= modifiers. 30825bcb7424SSimon J. Gerraty 30835bcb7424SSimon J. Gerraty2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net> 30845bcb7424SSimon J. Gerraty 30855bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140522 30865bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 30875bcb7424SSimon J. Gerraty o var.c detect some parse errors. 30885bcb7424SSimon J. Gerraty 30895bcb7424SSimon J. Gerraty2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 30905bcb7424SSimon J. Gerraty 30915bcb7424SSimon J. Gerraty * Fix spelling errors - patch from Pedro Giffuni 30925bcb7424SSimon J. Gerraty 30935bcb7424SSimon J. Gerraty2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 30945bcb7424SSimon J. Gerraty 30955bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140214 30965bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 30975bcb7424SSimon J. Gerraty o .INCLUDEFROM* 30985bcb7424SSimon J. Gerraty o use Var_Value to get MAKEOBJDIR[PREFIX] 30995bcb7424SSimon J. Gerraty o reduced realloc'ign in brk_string. 31005bcb7424SSimon J. Gerraty * configure.in: add a check for compiler supporting __func__ 31015bcb7424SSimon J. Gerraty 31020dede8b0SSimon J. Gerraty2014-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 31030dede8b0SSimon J. Gerraty 31040dede8b0SSimon J. Gerraty * boot-strap: ignore mksrc=none 31050dede8b0SSimon J. Gerraty 31060dede8b0SSimon J. Gerraty2014-01-02 Simon J. Gerraty <sjg@bad.crufty.net> 31070dede8b0SSimon J. Gerraty 31080dede8b0SSimon J. Gerraty * Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk 31090dede8b0SSimon J. Gerraty 31100dede8b0SSimon J. Gerraty2014-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 31110dede8b0SSimon J. Gerraty 31120dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140101 31130dede8b0SSimon J. Gerraty * configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024) 31140dede8b0SSimon J. Gerraty * Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max 31150dede8b0SSimon J. Gerraty * make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for 31160dede8b0SSimon J. Gerraty Hurd) 31170dede8b0SSimon J. Gerraty * configure.in: Add AC_PREREQ and check for 31180dede8b0SSimon J. Gerraty sysctl; patch from Andrew Shadura andrewsh at debian.org 31190dede8b0SSimon J. Gerraty 31200dede8b0SSimon J. Gerraty2013-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 31210dede8b0SSimon J. Gerraty 31220dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131010 31230dede8b0SSimon J. Gerraty * lose the const from arg to systcl to avoid problems on older BSDs. 31240dede8b0SSimon J. Gerraty 31250dede8b0SSimon J. Gerraty2013-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 31260dede8b0SSimon J. Gerraty 31270dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131001 31280dede8b0SSimon J. Gerraty Merge with NetBSD make, pick up 31290dede8b0SSimon J. Gerraty o main.c: for NATIVE build sysctl to get MACHINE_ARCH from 31300dede8b0SSimon J. Gerraty hw.machine_arch if necessary. 31310dede8b0SSimon J. Gerraty o meta.c: meta_oodate - need to look at src of Link and target 31320dede8b0SSimon J. Gerraty of Move as well. 31330dede8b0SSimon J. Gerraty * main.c: check that CTL_HW and HW_MACHINE_ARCH exist. 31340dede8b0SSimon J. Gerraty provide __arraycount() if needed. 31350dede8b0SSimon J. Gerraty 31361bbe5942SSimon J. Gerraty2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net> 31371bbe5942SSimon J. Gerraty 31381bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130904 31391bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 31401bbe5942SSimon J. Gerraty o Add VAR_INTERNAL context, so that internal setting of 31411bbe5942SSimon J. Gerraty MAKEFILE does not override value set by makefiles. 31421bbe5942SSimon J. Gerraty 31431bbe5942SSimon J. Gerraty2013-09-02 Simon J. Gerraty <sjg@bad.crufty.net> 31441bbe5942SSimon J. Gerraty 31451bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130902 31461bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 31471bbe5942SSimon J. Gerraty o CompatRunCommand: only apply shellErrFlag when errCheck is true 31481bbe5942SSimon J. Gerraty 31491bbe5942SSimon J. Gerraty2013-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 31501bbe5942SSimon J. Gerraty 31511bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130828 31521bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 31531bbe5942SSimon J. Gerraty o Fix VAR :sh = syntax from Will Andrews at freebsd.org 31541bbe5942SSimon J. Gerraty o Call Job_SetPrefix() from Job_Init() so makefiles have 31551bbe5942SSimon J. Gerraty opportunity to set .MAKE.JOB.PREFIX 31561bbe5942SSimon J. Gerraty 315751ee2c1cSSimon J. Gerraty2013-07-30 Simon J. Gerraty <sjg@bad.crufty.net> 315851ee2c1cSSimon J. Gerraty 315951ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130730 316051ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 316151ee2c1cSSimon J. Gerraty o Allow suppression of --- job -- tokens by setting 316251ee2c1cSSimon J. Gerraty .MAKE.JOB.PREFIX empty. 316351ee2c1cSSimon J. Gerraty 316451ee2c1cSSimon J. Gerraty2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net> 316551ee2c1cSSimon J. Gerraty 316651ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130716 316751ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 31685bcb7424SSimon J. Gerraty o number of gmake compatibility tweaks 316951ee2c1cSSimon J. Gerraty -w for gmake style entering/leaving messages 317051ee2c1cSSimon J. Gerraty if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc. 317151ee2c1cSSimon J. Gerraty handle MAKEFLAGS containing only letters. 317251ee2c1cSSimon J. Gerraty o when overriding a GLOBAL variable on the command line, 317351ee2c1cSSimon J. Gerraty delete it from GLOBAL context so -V doesn't show the wrong 317451ee2c1cSSimon J. Gerraty value. 317551ee2c1cSSimon J. Gerraty 317651ee2c1cSSimon J. Gerraty2013-07-06 Simon J. Gerraty <sjg@bad.crufty.net> 317751ee2c1cSSimon J. Gerraty 317851ee2c1cSSimon J. Gerraty * configure.in: We don't need MAKE_LEVEL_SAFE anymore. 317951ee2c1cSSimon J. Gerraty 318051ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130706 318151ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 318251ee2c1cSSimon J. Gerraty o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is 318351ee2c1cSSimon J. Gerraty true so that CompatRunCommand() can use it, to ensure 318451ee2c1cSSimon J. Gerraty consistent behavior with jobs mode. 318551ee2c1cSSimon J. Gerraty o use MAKE_LEVEL_ENV to define the variable to propagate 318651ee2c1cSSimon J. Gerraty .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake). 318751ee2c1cSSimon J. Gerraty o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of 318851ee2c1cSSimon J. Gerraty paths to ignore. 318951ee2c1cSSimon J. Gerraty 319074d2e02bSSimon J. Gerraty2013-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 319174d2e02bSSimon J. Gerraty 319274d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130604 319374d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 319474d2e02bSSimon J. Gerraty o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's 319574d2e02bSSimon J. Gerraty to avoid leaking descriptors. 319674d2e02bSSimon J. Gerraty 319774d2e02bSSimon J. Gerraty2013-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 319874d2e02bSSimon J. Gerraty 319974d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130528 320074d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 320174d2e02bSSimon J. Gerraty o var.c: cleanup some left-overs in VarHash() 320274d2e02bSSimon J. Gerraty 320352d86256SSimon J. Gerraty2013-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 320452d86256SSimon J. Gerraty 320552d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130520 320652d86256SSimon J. Gerraty generate manifest from component FILES rather than have to 320752d86256SSimon J. Gerraty update FILES when mk/FILES changes. 320852d86256SSimon J. Gerraty 320952d86256SSimon J. Gerraty2013-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 321052d86256SSimon J. Gerraty 321152d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130518 321252d86256SSimon J. Gerraty Merge with NetBSD make, pick up 321352d86256SSimon J. Gerraty o suff.c: don't skip all processsing for .PHONY targets 321452d86256SSimon J. Gerraty else wildcard srcs do not get expanded. 321552d86256SSimon J. Gerraty o var.c: expand name of variable to delete if necessary. 321652d86256SSimon J. Gerraty 32171748de26SSimon J. Gerraty2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 32181748de26SSimon J. Gerraty 32191748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130330 32201748de26SSimon J. Gerraty Merge with NetBSD make, pick up 32211748de26SSimon J. Gerraty o meta.c: refine the handling of .OODATE in commands. 32221748de26SSimon J. Gerraty Rather than suppress command comparison for the entire script 32231748de26SSimon J. Gerraty as though .NOMETA_CMP had been used, only suppress it for the 32241748de26SSimon J. Gerraty one command line. 32251748de26SSimon J. Gerraty This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 32261748de26SSimon J. Gerraty suppress comparison of a command without otherwise affecting it. 32271748de26SSimon J. Gerraty o make.1: document that 32281748de26SSimon J. Gerraty 32291748de26SSimon J. Gerraty2013-03-22 Simon J. Gerraty <sjg@bad.crufty.net> 32301748de26SSimon J. Gerraty 32311748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130321 32321748de26SSimon J. Gerraty yes, not quite right but its a cooler number. 32331748de26SSimon J. Gerraty Merge with NetBSD make, pick up 32341748de26SSimon J. Gerraty o parse.c: fix ParseGmakeExport to be portable 32351748de26SSimon J. Gerraty and add a unit-test. 32361748de26SSimon J. Gerraty * meta.c: call meta_init() before makefiles are read and if built 32371748de26SSimon J. Gerraty with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON 32381748de26SSimon J. Gerraty this let's makefiles test for support. 32391748de26SSimon J. Gerraty Call meta_mode_init() to process .MAKE.MODE. 32401748de26SSimon J. Gerraty 32411748de26SSimon J. Gerraty2013-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 32421748de26SSimon J. Gerraty 32431748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130305 32441748de26SSimon J. Gerraty Merge with NetBSD make, pick up 32451748de26SSimon J. Gerraty o run .STALE: target when a dependency from .depend is missing. 32461748de26SSimon J. Gerraty o job.c: add Job_RunTarget() for the above and .BEGIN 32471748de26SSimon J. Gerraty 32481748de26SSimon J. Gerraty2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 32491748de26SSimon J. Gerraty 32501748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130303 32511748de26SSimon J. Gerraty Merge with NetBSD make, pick up 32521748de26SSimon J. Gerraty o main.c: set .MAKE.OS to utsname.sysname 32531748de26SSimon J. Gerraty o job.c: more checks for read and poll errors 32541748de26SSimon J. Gerraty o var.c: lose VarChangeCase() saves 4% time 32551748de26SSimon J. Gerraty 32561748de26SSimon J. Gerraty2013-03-02 Simon J. Gerraty <sjg@bad.crufty.net> 32571748de26SSimon J. Gerraty 32581748de26SSimon J. Gerraty * boot-strap: remove MAKEOBJDIRPREFIX from environment since we 32591748de26SSimon J. Gerraty want to use MAKEOBJDIR 32601748de26SSimon J. Gerraty 32613cbdda60SSimon J. Gerraty2013-01-27 Simon J. Gerraty <sjg@bad.crufty.net> 32623cbdda60SSimon J. Gerraty 32633cbdda60SSimon J. Gerraty * Merge with NetBSD make, pick up 32643cbdda60SSimon J. Gerraty o make.1: more info on how shell commands are handled. 32653cbdda60SSimon J. Gerraty o job.c,main.c: detect write errors to job pipes. 32663cbdda60SSimon J. Gerraty 32673cbdda60SSimon J. Gerraty2013-01-25 Simon J. Gerraty <sjg@bad.crufty.net> 32683cbdda60SSimon J. Gerraty 32693cbdda60SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130123 32703cbdda60SSimon J. Gerraty Merge with NetBSD make, pick up 32713cbdda60SSimon J. Gerraty o meta.c: if script uses .OODATE and meta_oodate() decides 32723cbdda60SSimon J. Gerraty rebuild is needed, .OODATE will be empty - set it to .ALLSRC. 32733cbdda60SSimon J. Gerraty o var.c: in debug output indicate which variabale modifiers 32743cbdda60SSimon J. Gerraty apply to. 32753cbdda60SSimon J. Gerraty o remove Check_Cwd logic the makefiles have been fixed. 32763cbdda60SSimon J. Gerraty 32773cbdda60SSimon J. Gerraty2012-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 32783cbdda60SSimon J. Gerraty 32793cbdda60SSimon J. Gerraty * makefile.in: add a simple makefile for folk who insist on 32803cbdda60SSimon J. Gerraty ./configure; make; make install 32813cbdda60SSimon J. Gerraty it just runs boot-strap 32823cbdda60SSimon J. Gerraty * include mk/* to accommodate the above 32833cbdda60SSimon J. Gerraty * boot-strap: re-work to accommodate the above 32843cbdda60SSimon J. Gerraty mksrc defaults to $Mydir/mk 32853cbdda60SSimon J. Gerraty allow op={configure,build,install,clean,all} 32863cbdda60SSimon J. Gerraty add options to facilitate install 32873cbdda60SSimon J. Gerraty * Makefile.config.in: just the bits set by configure 32883cbdda60SSimon J. Gerraty * Makefile: bump version to 20121212 32893cbdda60SSimon J. Gerraty abandon Makefile.in (NetBSD Makefile) 32903cbdda60SSimon J. Gerraty leverage mk/* instead 32913cbdda60SSimon J. Gerraty * configure.in: ensure srcdir is absolute 32923cbdda60SSimon J. Gerraty 329359a02420SSimon J. Gerraty2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 329459a02420SSimon J. Gerraty 329559a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121111 329659a02420SSimon J. Gerraty fix generation of bmake.cat1 329759a02420SSimon J. Gerraty 329859a02420SSimon J. Gerraty2012-11-09 Simon J. Gerraty <sjg@bad.crufty.net> 329959a02420SSimon J. Gerraty 330059a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121109 330159a02420SSimon J. Gerraty Merge with NetBSD make, pick up 330259a02420SSimon J. Gerraty o make.c: MakeBuildChild: return 0 so search continues if a 330359a02420SSimon J. Gerraty .ORDER dependency is detected. 330459a02420SSimon J. Gerraty o unit-tests/order: test the above 330559a02420SSimon J. Gerraty 330659a02420SSimon J. Gerraty2012-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 330759a02420SSimon J. Gerraty 330859a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121102 330959a02420SSimon J. Gerraty Merge with NetBSD make, pick up 331059a02420SSimon J. Gerraty o cond.c: allow cond_state[] to grow. 331159a02420SSimon J. Gerraty In meta mode with a very large tree, we can hit the limit 331259a02420SSimon J. Gerraty while processing dirdeps. 331359a02420SSimon J. Gerraty 331459a02420SSimon J. Gerraty2012-10-25 Simon J. Gerraty <sjg@bad.crufty.net> 331559a02420SSimon J. Gerraty 331659a02420SSimon J. Gerraty * Makefile.in: we need to use ${srcdir} not ${.CURDIR} 331759a02420SSimon J. Gerraty 331893036677SSimon J. Gerraty2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 331993036677SSimon J. Gerraty 332093036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121010 332193036677SSimon J. Gerraty o protect syntax that only bmake parses correctly. 332293036677SSimon J. Gerraty o remove auto setting of FORCE_MACHINE, use configure's 332393036677SSimon J. Gerraty --with-force-machine=whatever if that is desired. 332493036677SSimon J. Gerraty 332593036677SSimon J. Gerraty2012-10-08 Simon J. Gerraty <sjg@bad.crufty.net> 332693036677SSimon J. Gerraty 332793036677SSimon J. Gerraty * Makefile.in: do not lose history from make.1 when generating bmake.1 332893036677SSimon J. Gerraty 332993036677SSimon J. Gerraty2012-10-07 Simon J. Gerraty <sjg@bad.crufty.net> 333093036677SSimon J. Gerraty 333193036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121007 333293036677SSimon J. Gerraty Merge with NetBSD make, pick up 333393036677SSimon J. Gerraty o compat.c: ignore empty commands - same as jobs mode. 333493036677SSimon J. Gerraty o make.1: document meta chars that cause use of shell 333593036677SSimon J. Gerraty 333693036677SSimon J. Gerraty2012-09-11 Simon J. Gerraty <sjg@bad.crufty.net> 333793036677SSimon J. Gerraty 333893036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): bump version to 20120911 333993036677SSimon J. Gerraty * bsd.after-import.mk: include Makefile.inc early and allow it to 334093036677SSimon J. Gerraty override PROG 334193036677SSimon J. Gerraty 33423955d011SMarcel Moolenaar2012-08-31 Simon J. Gerraty <sjg@bad.crufty.net> 33433955d011SMarcel Moolenaar 33443955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120831 33453955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33463955d011SMarcel Moolenaar o cast sizeof() to int for comparison 33473955d011SMarcel Moolenaar o minor make.1 tweak 33483955d011SMarcel Moolenaar 33493955d011SMarcel Moolenaar2012-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 33503955d011SMarcel Moolenaar 33513955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120830 33523955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33533955d011SMarcel Moolenaar o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V 33543955d011SMarcel Moolenaar o debug flag -dV causes -V to show raw value regardless. 33553955d011SMarcel Moolenaar 33563955d011SMarcel Moolenaar2012-07-05 Simon J. Gerraty <sjg@bad.crufty.net> 33573955d011SMarcel Moolenaar 33583955d011SMarcel Moolenaar * bsd.after-import.mk (after-import): ensure unit-tests/Makefile 33593955d011SMarcel Moolenaar gets SRCTOP set. 33603955d011SMarcel Moolenaar 33613955d011SMarcel Moolenaar2012-07-04 Simon J. Gerraty <sjg@bad.crufty.net> 33623955d011SMarcel Moolenaar 33633955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120704 33643955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33653955d011SMarcel Moolenaar o Job_ParseShell should call Shell_Init if it has been 33663955d011SMarcel Moolenaar previously called. 33673955d011SMarcel Moolenaar * Makefile.in: set USE_META based on configure result. 33683955d011SMarcel Moolenaar also .PARSEDIR is safer indicator of bmake. 33693955d011SMarcel Moolenaar 33703955d011SMarcel Moolenaar2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net> 33713955d011SMarcel Moolenaar 33723955d011SMarcel Moolenaar * Makefile.in: bump version to 20120626 33733955d011SMarcel Moolenaar ensure CPPFLAGS is in CFLAGS 33743955d011SMarcel Moolenaar * meta.c: avoid nested externs 33753955d011SMarcel Moolenaar * bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target 33763955d011SMarcel Moolenaar 33773955d011SMarcel Moolenaar2012-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 33783955d011SMarcel Moolenaar 33793955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120620 33803955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33813955d011SMarcel Moolenaar o make_malloc.c: avoid including make_malloc.h again 33823955d011SMarcel Moolenaar 33833955d011SMarcel Moolenaar * Makefile.in: avoid bmake only syntax or protect with 33843955d011SMarcel Moolenaar .if defined(.MAKE.LEVEL) 33853955d011SMarcel Moolenaar * bsd.after-import.mk: replace .-include with .sinclude 33863955d011SMarcel Moolenaar ensure? SRCTOP gets a value 33873955d011SMarcel Moolenaar * configure.in: look for filemon.h in /usr/include/dev/filemon first. 33883955d011SMarcel Moolenaar 33893955d011SMarcel Moolenaar2012-06-19 Simon J. Gerraty <sjg@bad.crufty.net> 33903955d011SMarcel Moolenaar 33913955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120612 33923955d011SMarcel Moolenaar Merge with NetBSD make, pick up 33933955d011SMarcel Moolenaar o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler 33943955d011SMarcel Moolenaar for greater portability. 33953955d011SMarcel Moolenaar o unit-tests/forloop: check that .for works as expected wrt 33963955d011SMarcel Moolenaar number of times and with "quoted strings". 33973955d011SMarcel Moolenaar 33983955d011SMarcel Moolenaar2012-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 33993955d011SMarcel Moolenaar 34003955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120606 34013955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34023955d011SMarcel Moolenaar o compat.c: use kill(2) rather than raise(3). 34033955d011SMarcel Moolenaar * configure.in: look for sys/dev/filemon 34043955d011SMarcel Moolenaar * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile 34053955d011SMarcel Moolenaar and pass BOOTSTRAP_XTRAS to boot-strap. 34063955d011SMarcel Moolenaar 34073955d011SMarcel Moolenaar2012-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 34083955d011SMarcel Moolenaar 34093955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120604 34103955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34113955d011SMarcel Moolenaar o util.c and var.c share same var for tracking if environ 34123955d011SMarcel Moolenaar has been reallocated. 34133955d011SMarcel Moolenaar o util.c provide getenv with setenv. 34143955d011SMarcel Moolenaar * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL 34153955d011SMarcel Moolenaar when the shell actively strips .MAKE.* from the environment. 34163955d011SMarcel Moolenaar We still refer to the variable always as .MAKE.LEVEL 34173955d011SMarcel Moolenaar * util.c fix bug in findenv() was finding prefix of name. 34183955d011SMarcel Moolenaar * compat.c: re-raising SIGINT etc after running .INTERRUPT 34193955d011SMarcel Moolenaar results in more reliable termination of all activity on many 34203955d011SMarcel Moolenaar platforms. 34213955d011SMarcel Moolenaar 34223955d011SMarcel Moolenaar2012-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 34233955d011SMarcel Moolenaar 34243955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120602 34253955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34263955d011SMarcel Moolenaar o for.c: handle quoted items in .for list 34273955d011SMarcel Moolenaar 34283955d011SMarcel Moolenaar2012-05-30 Simon J. Gerraty <sjg@bad.crufty.net> 34293955d011SMarcel Moolenaar 34303955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120530 34313955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34323955d011SMarcel Moolenaar o compat.c: ignore empty command. 34333955d011SMarcel Moolenaar 34343955d011SMarcel Moolenaar2012-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 34353955d011SMarcel Moolenaar 34363955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120524 34373955d011SMarcel Moolenaar * FILES: add bsd.after-import.mk: 34383955d011SMarcel Moolenaar A simple means of integrating bmake into a BSD build system. 34393955d011SMarcel Moolenaar 34403955d011SMarcel Moolenaar2012-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 34413955d011SMarcel Moolenaar 34423955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120520 34433955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34443955d011SMarcel Moolenaar o increased limit for nested conditionals. 34453955d011SMarcel Moolenaar 34463955d011SMarcel Moolenaar2012-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 34473955d011SMarcel Moolenaar 34483955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120518 34493955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34503955d011SMarcel Moolenaar o use _exit(2) in signal hanlder 34513955d011SMarcel Moolenaar o Don't use the [dir] cache when building nodes that might have 34523955d011SMarcel Moolenaar changed since the last exec. 34533955d011SMarcel Moolenaar o Avoid nested extern declaration warnings. 34543955d011SMarcel Moolenaar 34553955d011SMarcel Moolenaar2012-04-27 Simon J. Gerraty <sjg@bad.crufty.net> 34563955d011SMarcel Moolenaar 34573955d011SMarcel Moolenaar * meta.c (fgetLine): avoid %z - not portable. 34583955d011SMarcel Moolenaar * parse.c: Since we moved include of sys/mman.h 34593955d011SMarcel Moolenaar and def's of MAP_COPY etc. we got dups from a merge. 34603955d011SMarcel Moolenaar 34613955d011SMarcel Moolenaar2012-04-24 Simon J. Gerraty <sjg@bad.crufty.net> 34623955d011SMarcel Moolenaar 34633955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 34643955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34653955d011SMarcel Moolenaar o restore duplicate supression in .MAKE.MAKEFILES 34663955d011SMarcel Moolenaar runtime saving can be significant. 34673955d011SMarcel Moolenaar o Var_Subst() uses Buf_DestroyCompact() to reduce memory 34683955d011SMarcel Moolenaar consumption up to 20%. 34693955d011SMarcel Moolenaar 34703955d011SMarcel Moolenaar2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 34713955d011SMarcel Moolenaar 34723955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 34733955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34743955d011SMarcel Moolenaar o remove duplicate supression in .MAKE.MAKEFILES 34753955d011SMarcel Moolenaar o improved dir cache behavior 34763955d011SMarcel Moolenaar o gmake'ish export command 34773955d011SMarcel Moolenaar 34783955d011SMarcel Moolenaar2012-03-25 Simon J. Gerraty <sjg@bad.crufty.net> 34793955d011SMarcel Moolenaar 34803955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120325 34813955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34823955d011SMarcel Moolenaar o fix parsing of :[#] in conditionals. 34833955d011SMarcel Moolenaar 34843955d011SMarcel Moolenaar2012-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 34853955d011SMarcel Moolenaar 34863955d011SMarcel Moolenaar * Makefile.in: replace use of .Nx in bmake.1 with NetBSD 34873955d011SMarcel Moolenaar since some systems cannot cope with .Nx <version> 34883955d011SMarcel Moolenaar 34893955d011SMarcel Moolenaar2011-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 34903955d011SMarcel Moolenaar 34913955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111111 34923955d011SMarcel Moolenaar Merge with NetBSD make, pick up 34933955d011SMarcel Moolenaar o debug output for .PARSEDIR and .PARSEFILE 34943955d011SMarcel Moolenaar 34953955d011SMarcel Moolenaar2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 34963955d011SMarcel Moolenaar 34973955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111010 34983955d011SMarcel Moolenaar 34993955d011SMarcel Moolenaar2011-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 35003955d011SMarcel Moolenaar 35013955d011SMarcel Moolenaar * boot-strap: check for an expected file in the dirs we look for. 35023955d011SMarcel Moolenaar * make-bootstrap.sh: pass on LDSTATIC 35033955d011SMarcel Moolenaar 35043955d011SMarcel Moolenaar2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 35053955d011SMarcel Moolenaar 35063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111001 35073955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35083955d011SMarcel Moolenaar o ensure .PREFIX is set for .PHONY 35093955d011SMarcel Moolenaar and .TARGET set for .PHONY run via .END 35103955d011SMarcel Moolenaar o __dead used consistently 35113955d011SMarcel Moolenaar 35123955d011SMarcel Moolenaar2011-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 35133955d011SMarcel Moolenaar 35143955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-) 35153955d011SMarcel Moolenaar 35163955d011SMarcel Moolenaar2011-09-05 Simon J. Gerraty <sjg@bad.crufty.net> 35173955d011SMarcel Moolenaar 35183955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110905 35193955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35203955d011SMarcel Moolenaar o meta_oodate: ignore makeDependfile 35213955d011SMarcel Moolenaar 35223955d011SMarcel Moolenaar2011-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 35233955d011SMarcel Moolenaar 35243955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110828 35253955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35263955d011SMarcel Moolenaar o silent=yes in .MAKE.MODE causes meta mode to mark targets 35273955d011SMarcel Moolenaar as SILENT if a .meta file is created 35283955d011SMarcel Moolenaar 35293955d011SMarcel Moolenaar2011-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 35303955d011SMarcel Moolenaar 35313955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110818 35323955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35333955d011SMarcel Moolenaar o in meta mode, if target flagged .META a missing .meta file 35343955d011SMarcel Moolenaar means target is out-of-date 35353955d011SMarcel Moolenaar o fixes for gcc 4.5 warnings 35363955d011SMarcel Moolenaar o simplify job printing code 35373955d011SMarcel Moolenaar 35383955d011SMarcel Moolenaar2011-08-09 Simon J. Gerraty <sjg@bad.crufty.net> 35393955d011SMarcel Moolenaar 35403955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110808 35413955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35423955d011SMarcel Moolenaar o do not touch OP_SPECIAL targets when doing make -t 35433955d011SMarcel Moolenaar 35443955d011SMarcel Moolenaar2011-06-22 Simon J. Gerraty <sjg@bad.crufty.net> 35453955d011SMarcel Moolenaar 35463955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110622 35473955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35483955d011SMarcel Moolenaar o meta_oodate detect corrupted .meta file and declare oodate. 35493955d011SMarcel Moolenaar * configure.in: add check for setsid 35503955d011SMarcel Moolenaar 35513955d011SMarcel Moolenaar2011-06-07 Simon J. Gerraty <sjg@bad.crufty.net> 35523955d011SMarcel Moolenaar 35533955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 35543955d011SMarcel Moolenaar o unit-tests/modts now works on MirBSD 35553955d011SMarcel Moolenaar 35563955d011SMarcel Moolenaar2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 35573955d011SMarcel Moolenaar 35583955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110606 35593955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35603955d011SMarcel Moolenaar o ApplyModifiers: when we parse a variable which is not 35613955d011SMarcel Moolenaar the entire modifier string, or not followed by ':', do not 35623955d011SMarcel Moolenaar consider it as containing modifiers. 35633955d011SMarcel Moolenaar o loadfile: ensure newline at end of mapped file. 35643955d011SMarcel Moolenaar 35653955d011SMarcel Moolenaar2011-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 35663955d011SMarcel Moolenaar 35673955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110505 35683955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35693955d011SMarcel Moolenaar o .MAKE.META.BAILIWICK - list of prefixes which define the scope 35703955d011SMarcel Moolenaar of make's control. In meta mode, any generated file within 35713955d011SMarcel Moolenaar said bailiwick, which is found to be missing, causes current 35723955d011SMarcel Moolenaar target to be out-of-date. 35733955d011SMarcel Moolenaar 35743955d011SMarcel Moolenaar2011-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 35753955d011SMarcel Moolenaar 35763955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110411 35773955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35783955d011SMarcel Moolenaar o when long modifiers fail to match, check sysV style. 35793955d011SMarcel Moolenaar - add a test case 35803955d011SMarcel Moolenaar 35813955d011SMarcel Moolenaar2011-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 35823955d011SMarcel Moolenaar 35833955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110410 35843955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35853955d011SMarcel Moolenaar o :hash - cheap 32bit hash of value 35863955d011SMarcel Moolenaar o :localtime, :gmtime - use value as format string for strftime. 35873955d011SMarcel Moolenaar 35883955d011SMarcel Moolenaar2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 35893955d011SMarcel Moolenaar 35903955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110330 35913955d011SMarcel Moolenaar mostly because its a cooler version. 35923955d011SMarcel Moolenaar Merge with NetBSD make, pick up 35933955d011SMarcel Moolenaar o NetBSD tags for meta.[ch] 35943955d011SMarcel Moolenaar o job.c call meta_job_finish() after meta_job_error(). 35953955d011SMarcel Moolenaar o meta_job_error() should call meta_job_finish() to ensure 35963955d011SMarcel Moolenaar .meta file is closed, and safe to copy - if .ERROR target wants. 35973955d011SMarcel Moolenaar meta_job_finish() is safe to call repeatedly. 35983955d011SMarcel Moolenaar 35993955d011SMarcel Moolenaar2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net> 36003955d011SMarcel Moolenaar 36013955d011SMarcel Moolenaar * unit-tests/modts: use printf if it is a builtin, 36023955d011SMarcel Moolenaar to save us from MirBSD 36033955d011SMarcel Moolenaar 36043955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110329 36053955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36063955d011SMarcel Moolenaar o fix for use after free() in CondDoExists(). 36073955d011SMarcel Moolenaar o meta_oodate() report extra commands and return earlier. 36083955d011SMarcel Moolenaar 36093955d011SMarcel Moolenaar2011-03-27 Simon J. Gerraty <sjg@bad.crufty.net> 36103955d011SMarcel Moolenaar 36113955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110327 36123955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36133955d011SMarcel Moolenaar o meta.c, if .MAKE.MODE contains curdirOk=yes 36143955d011SMarcel Moolenaar allow creating .meta files in .CURDIR 36153955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): aparently at least on linux distro 36163955d011SMarcel Moolenaar formats the output of 'type' differently - so eat any "()" 36173955d011SMarcel Moolenaar 36183955d011SMarcel Moolenaar2011-03-06 Simon J. Gerraty <sjg@bad.crufty.net> 36193955d011SMarcel Moolenaar 36203955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110306 36213955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36223955d011SMarcel Moolenaar o meta.c, only do getcwd() once 36233955d011SMarcel Moolenaar 36243955d011SMarcel Moolenaar2011-03-05 Simon J. Gerraty <sjg@bad.crufty.net> 36253955d011SMarcel Moolenaar 36263955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110305 36273955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36283955d011SMarcel Moolenaar o correct sysV substitution handling of empty lhs and variable 36293955d011SMarcel Moolenaar o correct exists() check for dir with trailing / 36303955d011SMarcel Moolenaar o correct handling of modifiers for non-existant variables 36313955d011SMarcel Moolenaar during evaluation of conditionals. 36323955d011SMarcel Moolenaar o ensure MAP_FILE is defined. 36333955d011SMarcel Moolenaar o meta.c use curdir[] now exported by main.c 36343955d011SMarcel Moolenaar 36353955d011SMarcel Moolenaar2011-02-25 Simon J. Gerraty <sjg@bad.crufty.net> 36363955d011SMarcel Moolenaar 36373955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110225 36383955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36393955d011SMarcel Moolenaar o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after 36403955d011SMarcel Moolenaar makefiles have been read. 36413955d011SMarcel Moolenaar o fix example of :? modifier in man page. 36423955d011SMarcel Moolenaar 36433955d011SMarcel Moolenaar2011-02-13 Simon J. Gerraty <sjg@bad.crufty.net> 36443955d011SMarcel Moolenaar 36453955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110214 36463955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36473955d011SMarcel Moolenaar o meta.c handle realpath() failing when generating meta file 36483955d011SMarcel Moolenaar name. 36493955d011SMarcel Moolenaar 36503955d011SMarcel Moolenaar * sigcompat.c: convert to ansi so we can use higher warning levels. 36513955d011SMarcel Moolenaar 36523955d011SMarcel Moolenaar 36533955d011SMarcel Moolenaar2011-02-07 Simon J. Gerraty <sjg@bad.crufty.net> 36543955d011SMarcel Moolenaar 36553955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110207 36563955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36573955d011SMarcel Moolenaar o fix for bug in meta mode. 36583955d011SMarcel Moolenaar 36593955d011SMarcel Moolenaar2011-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 36603955d011SMarcel Moolenaar 36613955d011SMarcel Moolenaar * parse.c: SunOS 5.8 at least does not have MAP_FILE 36623955d011SMarcel Moolenaar 36633955d011SMarcel Moolenaar2011-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 36643955d011SMarcel Moolenaar 36653955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110101 36663955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36673955d011SMarcel Moolenaar o use mmap(2) if available, for reading makefiles 36683955d011SMarcel Moolenaar 36693955d011SMarcel Moolenaar2010-12-15 Simon J. Gerraty <sjg@bad.crufty.net> 36703955d011SMarcel Moolenaar 36713955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101215 36723955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36733955d011SMarcel Moolenaar o ensure meta_job_error() does not report a previous .meta file 36743955d011SMarcel Moolenaar as being culprit. 36753955d011SMarcel Moolenaar 36763955d011SMarcel Moolenaar2010-12-10 Simon J. Gerraty <sjg@bad.crufty.net> 36773955d011SMarcel Moolenaar 36783955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101210 36793955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36803955d011SMarcel Moolenaar o meta_oodate: track cwd per process, and only consider target 36813955d011SMarcel Moolenaar out-of-date if missing file is outside make's CWD. 36823955d011SMarcel Moolenaar Ignore files in /tmp/ etc. 36833955d011SMarcel Moolenaar o to ensure unit-tests results match, need to control LC_ALL 36843955d011SMarcel Moolenaar as well as LANG. 36853955d011SMarcel Moolenaar o fix for parsing bug in var.c 36863955d011SMarcel Moolenaar 36873955d011SMarcel Moolenaar2010-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 36883955d011SMarcel Moolenaar 36893955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101126 36903955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36913955d011SMarcel Moolenaar o if stale dependency is an IMPSRC, search via .PATH 36923955d011SMarcel Moolenaar o meta_oodate: if a referenced file is missing, target is 36933955d011SMarcel Moolenaar out-of-date. 36943955d011SMarcel Moolenaar o meta_oodate: if a target uses .OODATE in its commands, 36953955d011SMarcel Moolenaar it (.OODATE) needs to be recomputed. 36963955d011SMarcel Moolenaar o keep a pointer to youngest child node, rather than just its 36973955d011SMarcel Moolenaar mtime. 36983955d011SMarcel Moolenaar 36993955d011SMarcel Moolenaar2010-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 37003955d011SMarcel Moolenaar 37013955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101101 37023955d011SMarcel Moolenaar 37033955d011SMarcel Moolenaar2010-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 37043955d011SMarcel Moolenaar 37053955d011SMarcel Moolenaar * machine.sh: like os.sh, 37063955d011SMarcel Moolenaar allow for uname -p producing useless drivel 37073955d011SMarcel Moolenaar 37083955d011SMarcel Moolenaar2010-09-13 Simon J. Gerraty <sjg@bad.crufty.net> 37093955d011SMarcel Moolenaar 37103955d011SMarcel Moolenaar * boot-strap: document configure knobs for meta and filemon. 37113955d011SMarcel Moolenaar 37123955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100911 37133955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37143955d011SMarcel Moolenaar o meta.c - meta mode 37153955d011SMarcel Moolenaar 37163955d011SMarcel Moolenaar * make-bootstrap.sh.in: handle meta.c 37173955d011SMarcel Moolenaar * configure.in: add knobs for use_meta and filemon_h 37183955d011SMarcel Moolenaar also, look for dirname, str[e]sep and strlcpy 37193955d011SMarcel Moolenaar * util.c: add simple err[x] and warn[x] 37203955d011SMarcel Moolenaar 37213955d011SMarcel Moolenaar2010-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 37223955d011SMarcel Moolenaar 37233955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): set this to ensure tests use 37243955d011SMarcel Moolenaar the same version of diff that configure tested 37253955d011SMarcel Moolenaar 37263955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100808 37273955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37283955d011SMarcel Moolenaar o in jobs mode, when we discover we cannot make something, 37293955d011SMarcel Moolenaar call PrintOnError before exit. 37303955d011SMarcel Moolenaar 37313955d011SMarcel Moolenaar2010-08-06 Simon J. Gerraty <sjg@bad.crufty.net> 37323955d011SMarcel Moolenaar 37333955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100806 37343955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37353955d011SMarcel Moolenaar o formatting fixes for ignored errors 37363955d011SMarcel Moolenaar o ensure jobs are cleaned up regardless of where wait() was called. 37373955d011SMarcel Moolenaar 37383955d011SMarcel Moolenaar2010-06-28 Simon J. Gerraty <sjg@bad.crufty.net> 37393955d011SMarcel Moolenaar 37403955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100618 37413955d011SMarcel Moolenaar * os.sh (MACHINE_ARCH): watch out for drivel from uname -p 37423955d011SMarcel Moolenaar 37433955d011SMarcel Moolenaar2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net> 37443955d011SMarcel Moolenaar 37453955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100616 37463955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37473955d011SMarcel Moolenaar o man page update 37483955d011SMarcel Moolenaar o call PrintOnError from JobFinish when we detect an error we 37493955d011SMarcel Moolenaar are not ignoring. 37503955d011SMarcel Moolenaar 37513955d011SMarcel Moolenaar2010-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 37523955d011SMarcel Moolenaar 37533955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100606 37543955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37553955d011SMarcel Moolenaar o man page update 37563955d011SMarcel Moolenaar 37573955d011SMarcel Moolenaar2010-06-05 Simon J. Gerraty <sjg@bad.crufty.net> 37583955d011SMarcel Moolenaar 37593955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100605 37603955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37613955d011SMarcel Moolenaar o use bmake_signal() which is a wrapper around sigaction() 37623955d011SMarcel Moolenaar in place of signal() 37633955d011SMarcel Moolenaar o add .export-env to allow exporting variables to environment 37643955d011SMarcel Moolenaar without tracking (so no re-export when the internal value is 37653955d011SMarcel Moolenaar changed). 37663955d011SMarcel Moolenaar 37673955d011SMarcel Moolenaar2010-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 37683955d011SMarcel Moolenaar 37693955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100524 37703955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37713955d011SMarcel Moolenaar o fix for .info et al being greedy. 37723955d011SMarcel Moolenaar 37733955d011SMarcel Moolenaar2010-05-23 Simon J. Gerraty <sjg@bad.crufty.net> 37743955d011SMarcel Moolenaar 37753955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100520 37763955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37773955d011SMarcel Moolenaar o back to using realpath on argv[0] 37783955d011SMarcel Moolenaar but only if contains '/' and does not start with '/'. 37793955d011SMarcel Moolenaar 37803955d011SMarcel Moolenaar2010-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 37813955d011SMarcel Moolenaar 37823955d011SMarcel Moolenaar * boot-strap: use absolute path for bmake when running tests. 37833955d011SMarcel Moolenaar 37843955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100510 37853955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37863955d011SMarcel Moolenaar o revert use of realpath on argv[0] 37873955d011SMarcel Moolenaar too many corner cases. 37883955d011SMarcel Moolenaar o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target. 37893955d011SMarcel Moolenaar 37903955d011SMarcel Moolenaar2010-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 37913955d011SMarcel Moolenaar 37923955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100505 37933955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37943955d011SMarcel Moolenaar o fix for missed SIGCHLD when compiled with SunPRO 37953955d011SMarcel Moolenaar actually for bmake, defining FORCE_POSIX_SIGNALS would have 37963955d011SMarcel Moolenaar done the job. 37973955d011SMarcel Moolenaar 37983955d011SMarcel Moolenaar2010-04-30 Simon J. Gerraty <sjg@bad.crufty.net> 37993955d011SMarcel Moolenaar 38003955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100430 38013955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38023955d011SMarcel Moolenaar o fflush stdout before writing to stdout 38033955d011SMarcel Moolenaar 38043955d011SMarcel Moolenaar2010-04-23 Simon J. Gerraty <sjg@bad.crufty.net> 38053955d011SMarcel Moolenaar 38063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100423 38073955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38083955d011SMarcel Moolenaar o updated unit tests for Haiku (this time for sure). 38093955d011SMarcel Moolenaar * boot-strap: based on patch from joerg 38103955d011SMarcel Moolenaar honor --with-default-sys-path better. 38113955d011SMarcel Moolenaar * boot-strap: remove mention of --with-prefix-sys-path 38123955d011SMarcel Moolenaar 38133955d011SMarcel Moolenaar2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net> 38143955d011SMarcel Moolenaar 38153955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100422 38163955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 38173955d011SMarcel Moolenaar o fix for vfork() on Darwin. 38183955d011SMarcel Moolenaar o fix for bogus $TMPDIR. 38193955d011SMarcel Moolenaar o set .MAKE.MODE=compat for -B 38203955d011SMarcel Moolenaar o set .MAKE.JOBS=max_jobs for -j max_jobs 38213955d011SMarcel Moolenaar o allow unit-tests to run without any *.mk 38223955d011SMarcel Moolenaar o unit-tests/modmisc be more conservative in dirs presumed to exist. 38233955d011SMarcel Moolenaar * boot-strap: ignore /usr/share/mk except on NetBSD. 38243955d011SMarcel Moolenaar * unit-tests/Makefile.in: set LANG=C when running unit-tests to 38253955d011SMarcel Moolenaar ensure sort(1) behaves as expected. 38263955d011SMarcel Moolenaar 38273955d011SMarcel Moolenaar2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 38283955d011SMarcel Moolenaar 38293955d011SMarcel Moolenaar * boot-strap: add FindHereOrAbove so we can use -m .../mk 38303955d011SMarcel Moolenaar 38313955d011SMarcel Moolenaar2010-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 38323955d011SMarcel Moolenaar 38333955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100420 38343955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 38353955d011SMarcel Moolenaar o fix for variable realpath() behavior. 38363955d011SMarcel Moolenaar we have to stat(2) the result to be sure. 38373955d011SMarcel Moolenaar o fix for .export (all) when nested vars use :sh 38383955d011SMarcel Moolenaar 38393955d011SMarcel Moolenaar2010-04-14 Simon J. Gerraty <sjg@bad.crufty.net> 38403955d011SMarcel Moolenaar 38413955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100414 38423955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 38433955d011SMarcel Moolenaar o use realpath to resolve argv[0] (for .MAKE) if needed. 38443955d011SMarcel Moolenaar o add realpath from libc. 38453955d011SMarcel Moolenaar o add :tA to resolve variable via realpath(3) if possible. 38463955d011SMarcel Moolenaar 38473955d011SMarcel Moolenaar2010-04-08 Simon J. Gerraty <sjg@bad.crufty.net> 38483955d011SMarcel Moolenaar 38493955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100408 38503955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 38513955d011SMarcel Moolenaar o unit tests for .ERROR, .error 38523955d011SMarcel Moolenaar o fix for .ERROR to ensure it cannot be default target. 38533955d011SMarcel Moolenaar 38543955d011SMarcel Moolenaar2010-04-06 Simon J. Gerraty <sjg@bad.crufty.net> 38553955d011SMarcel Moolenaar 38563955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100406 38573955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 38583955d011SMarcel Moolenaar o fix for compat mode "Error code" going to debug_file. 38593955d011SMarcel Moolenaar o fix for .ALLSRC being populated twice. 38603955d011SMarcel Moolenaar o support for .info, .warning and .error directives 38613955d011SMarcel Moolenaar o .MAKE.MODE to control make's operational mode 38623955d011SMarcel Moolenaar o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile 38633955d011SMarcel Moolenaar name(s). 38643955d011SMarcel Moolenaar o .MAKE.DEPENDFILE to control the name of the depend file 38653955d011SMarcel Moolenaar o .ERROR target - run on failure. 38663955d011SMarcel Moolenaar 38673955d011SMarcel Moolenaar2010-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 38683955d011SMarcel Moolenaar 38693955d011SMarcel Moolenaar * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile 38703955d011SMarcel Moolenaar 38713955d011SMarcel Moolenaar * os.sh,arch.c: patch for Haiku from joerg at netbsd 38723955d011SMarcel Moolenaar 38733955d011SMarcel Moolenaar2010-03-17 Simon J. Gerraty <sjg@bad.crufty.net> 38743955d011SMarcel Moolenaar 38753955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100222 38763955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 38773955d011SMarcel Moolenaar o better error msg for .for with mutiple inter vars 38783955d011SMarcel Moolenaar 38793955d011SMarcel Moolenaar * boot-strap: 38803955d011SMarcel Moolenaar o use make-bootstrap.sh from joerg at netbsd 38813955d011SMarcel Moolenaar to avoid the need for a native make when bootstrapping. 38823955d011SMarcel Moolenaar o add "" everywhere ;-) 38833955d011SMarcel Moolenaar o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1 38843955d011SMarcel Moolenaar otherwise the pre-formated version. 38853955d011SMarcel Moolenaar 38863955d011SMarcel Moolenaar2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net> 38873955d011SMarcel Moolenaar 38883955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100102 38893955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38903955d011SMarcel Moolenaar o fix for -m .../ 38913955d011SMarcel Moolenaar 38923955d011SMarcel Moolenaar2009-11-18 Simon J. Gerraty <sjg@void.crufty.net> 38933955d011SMarcel Moolenaar 38943955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20091118 38953955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 38963955d011SMarcel Moolenaar o .unexport 38973955d011SMarcel Moolenaar o report lines that start with '.' and should have ':' 38983955d011SMarcel Moolenaar (catch typo's of .el*if). 38993955d011SMarcel Moolenaar 39003955d011SMarcel Moolenaar2009-10-30 Simon J. Gerraty <sjg@void.crufty.net> 39013955d011SMarcel Moolenaar 39023955d011SMarcel Moolenaar * configure.in: Ensure that srcdir and mksrc are absolute paths. 39033955d011SMarcel Moolenaar 39043955d011SMarcel Moolenaar2009-10-09 Simon J. Gerraty <sjg@void.crufty.net> 39053955d011SMarcel Moolenaar 39063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): fix version to 20091007 39073955d011SMarcel Moolenaar 39083955d011SMarcel Moolenaar2009-10-07 Simon J. Gerraty <sjg@void.crufty.net> 39093955d011SMarcel Moolenaar 39103955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 200910007 39113955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39123955d011SMarcel Moolenaar o fix for parsing of :S;...;...; applied to .for loop iterator 39133955d011SMarcel Moolenaar appearing in a dependency line. 39143955d011SMarcel Moolenaar 39153955d011SMarcel Moolenaar2009-09-09 Simon J. Gerraty <sjg@void.crufty.net> 39163955d011SMarcel Moolenaar 39173955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090909 39183955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39193955d011SMarcel Moolenaar o fix for -C, .CURDIR and .OBJDIR 39203955d011SMarcel Moolenaar * boot-strap: 39213955d011SMarcel Moolenaar o allow share_dir to be set independent of prefix. 39223955d011SMarcel Moolenaar o select default share_dir better when prefix ends in $HOST_TARGET 39233955d011SMarcel Moolenaar o if FORCE_BSD_MK etc were set, include them in the suggested 39243955d011SMarcel Moolenaar install-mk command. 39253955d011SMarcel Moolenaar 39263955d011SMarcel Moolenaar2009-09-08 Simon J. Gerraty <sjg@void.crufty.net> 39273955d011SMarcel Moolenaar 39283955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090908 39293955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39303955d011SMarcel Moolenaar o .MAKE.LEVEL for recursion tracking 39313955d011SMarcel Moolenaar o fix for :M scanning \: 39323955d011SMarcel Moolenaar 39333955d011SMarcel Moolenaar2009-09-03 Simon J. Gerraty <sjg@void.crufty.net> 39343955d011SMarcel Moolenaar 39353955d011SMarcel Moolenaar * configure.in: Don't -D__EXTENSIONS__ if 39363955d011SMarcel Moolenaar AC_USE_SYSTEM_EXTENSIONS says "no". 39373955d011SMarcel Moolenaar 39383955d011SMarcel Moolenaar2009-08-26 Simon J. Gerraty <sjg@void.crufty.net> 39393955d011SMarcel Moolenaar 39403955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090826 39413955d011SMarcel Moolenaar Simplify MAKE_VERSION to just the bare date. 39423955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39433955d011SMarcel Moolenaar o -C directory support. 39443955d011SMarcel Moolenaar o support for SIGINFO 39453955d011SMarcel Moolenaar o use $TMPDIR for temp files. 39463955d011SMarcel Moolenaar o child of vfork should be careful about modifying parent's state. 39473955d011SMarcel Moolenaar 39483955d011SMarcel Moolenaar 39493955d011SMarcel Moolenaar2009-03-26 Simon J. Gerraty <sjg@void.crufty.net> 39503955d011SMarcel Moolenaar 39513955d011SMarcel Moolenaar * Appy some patches for MiNT from David Brownlee 39523955d011SMarcel Moolenaar 39533955d011SMarcel Moolenaar2009-02-26 Simon J. Gerraty <sjg@void.crufty.net> 39543955d011SMarcel Moolenaar 39553955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090222 39563955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39573955d011SMarcel Moolenaar o Possible null pointer de-ref in Var_Set. 39583955d011SMarcel Moolenaar 39593955d011SMarcel Moolenaar2009-02-08 Simon J. Gerraty <sjg@void.crufty.net> 39603955d011SMarcel Moolenaar 39613955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090204 39623955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39633955d011SMarcel Moolenaar o bmake_malloc et al moved to their own .c 39643955d011SMarcel Moolenaar o Count both () and {} when looking for the end of a :M pattern 39653955d011SMarcel Moolenaar o Change 'Buffer' so that it is the actual struct, not a pointer to it. 39663955d011SMarcel Moolenaar o strlist.c - functions for processing extendable arrays of pointers to strings. 39673955d011SMarcel Moolenaar o ClientData replaced with void *, so const void * can be used. 39683955d011SMarcel Moolenaar o New debug flag C for DEBUG_CWD 39693955d011SMarcel Moolenaar 39703955d011SMarcel Moolenaar2008-11-11 Simon J. Gerraty <sjg@void.crufty.net> 39713955d011SMarcel Moolenaar 39723955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081111 39733955d011SMarcel Moolenaar Apply patch from Joerg Sonnenberge to 39743955d011SMarcel Moolenaar configure.in: 39753955d011SMarcel Moolenaar o remove some redundant checks 39763955d011SMarcel Moolenaar o check for emlloc etc only in libutil and require the whole family. 39773955d011SMarcel Moolenaar util.c: 39783955d011SMarcel Moolenaar o remove [v]asprintf which is no longer used. 39793955d011SMarcel Moolenaar 39803955d011SMarcel Moolenaar2008-11-04 Simon J. Gerraty <sjg@void.crufty.net> 39813955d011SMarcel Moolenaar 39823955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081101 39833955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 39843955d011SMarcel Moolenaar o util.c: avoid use of putenv() - christos 39853955d011SMarcel Moolenaar 39863955d011SMarcel Moolenaar2008-10-30 Simon J. Gerraty <sjg@void.crufty.net> 39873955d011SMarcel Moolenaar 39883955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081030 39893955d011SMarcel Moolenaar pick up man page tweaks. 39903955d011SMarcel Moolenaar 39913955d011SMarcel Moolenaar2008-10-29 Simon J. Gerraty <sjg@void.crufty.net> 39923955d011SMarcel Moolenaar 39933955d011SMarcel Moolenaar * Makefile.in: move processing of LIBOBJS to after is definition! 39943955d011SMarcel Moolenaar thus we'll have getenv.c in SRCS only if needed. 39953955d011SMarcel Moolenaar 39963955d011SMarcel Moolenaar * make.1: add examples of how to use :? 39973955d011SMarcel Moolenaar 39983955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081029 39993955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40003955d011SMarcel Moolenaar o fix for .END processing with -j 40013955d011SMarcel Moolenaar o segfault from Parse_Error when no makefile is open 40023955d011SMarcel Moolenaar o handle numeric expressions in any variable expansion 40033955d011SMarcel Moolenaar o debug output now defaults to stderr, -dF to change it - apb 40043955d011SMarcel Moolenaar o make now uses bmake_malloc etc so that it can build natively 40053955d011SMarcel Moolenaar on A/UX - wasn't an issue for bmake, but we want to keep in sync. 40063955d011SMarcel Moolenaar 40073955d011SMarcel Moolenaar2008-09-27 Simon J. Gerraty <sjg@void.crufty.net> 40083955d011SMarcel Moolenaar 40093955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080808 40103955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40113955d011SMarcel Moolenaar o fix for PR/38840: Pierre Pronchery: make crashes while parsing 40123955d011SMarcel Moolenaar long lines in Makefiles 40133955d011SMarcel Moolenaar o optimizations for VarQuote by joerg 40143955d011SMarcel Moolenaar o fix for PR/38756: dominik: make dumps core on invalid makefile 40153955d011SMarcel Moolenaar 40163955d011SMarcel Moolenaar2008-05-15 Simon J. Gerraty <sjg@void.crufty.net> 40173955d011SMarcel Moolenaar 40183955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080515 40193955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40203955d011SMarcel Moolenaar o fix skip setting vars in VAR_GLOBAL context, to handle 40213955d011SMarcel Moolenaar cases where VAR_CMD is used for other than command line vars. 40223955d011SMarcel Moolenaar 40233955d011SMarcel Moolenaar2008-05-14 Simon J. Gerraty <sjg@void.crufty.net> 40243955d011SMarcel Moolenaar 40253955d011SMarcel Moolenaar * boot-strap (make_version): we may need to look in 40263955d011SMarcel Moolenaar $prefix/share/mk for sys.mk 40273955d011SMarcel Moolenaar 40283955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080514 40293955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40303955d011SMarcel Moolenaar o skip setting vars in VAR_GLOBAL context, when already set in 40313955d011SMarcel Moolenaar VAR_CMD which takes precedence. 40323955d011SMarcel Moolenaar 40333955d011SMarcel Moolenaar2008-03-30 Simon J. Gerraty <sjg@void.crufty.net> 40343955d011SMarcel Moolenaar 40353955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080330 40363955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40373955d011SMarcel Moolenaar o fix for ?= when LHS contains variable reference. 40383955d011SMarcel Moolenaar 40393955d011SMarcel Moolenaar2008-02-15 Simon J. Gerraty <sjg@void.crufty.net> 40403955d011SMarcel Moolenaar 40413955d011SMarcel Moolenaar * merge some patches from NetBSD pkgsrc. 40423955d011SMarcel Moolenaar 40433955d011SMarcel Moolenaar * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of 40443955d011SMarcel Moolenaar the MAKSYSPATH used during bootstrap. 40453955d011SMarcel Moolenaar 40463955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080215 40473955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40483955d011SMarcel Moolenaar o warn if non-space chars follow 'empty' in a conditional. 40493955d011SMarcel Moolenaar 40503955d011SMarcel Moolenaar2008-01-18 Simon J. Gerraty <sjg@void.crufty.net> 40513955d011SMarcel Moolenaar 40523955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080118 40533955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40543955d011SMarcel Moolenaar o consider dependencies read from .depend as optional - dsl 40553955d011SMarcel Moolenaar o remember when buffer for reading makefile grows - dsl 40563955d011SMarcel Moolenaar o add -dl (aka LOUD) - David O'Brien 40573955d011SMarcel Moolenaar 40583955d011SMarcel Moolenaar2007-10-22 Simon J. Gerraty <sjg@void.crufty.net> 40593955d011SMarcel Moolenaar 40603955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071022 40613955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40623955d011SMarcel Moolenaar o Allow .PATH<suffix> to be used for .include "" 40633955d011SMarcel Moolenaar 40643955d011SMarcel Moolenaar * boot-strap: source default settings from .bmake-boot-strap.rc 40653955d011SMarcel Moolenaar 40663955d011SMarcel Moolenaar2007-10-16 Simon J. Gerraty <sjg@void.crufty.net> 40673955d011SMarcel Moolenaar 40683955d011SMarcel Moolenaar * Makefile.in: fix maninstall on various systems 40693955d011SMarcel Moolenaar provided that our man.mk is used. 40703955d011SMarcel Moolenaar For non-BSD systems we install the preformatted page 40713955d011SMarcel Moolenaar into $MANDIR/cat1 40723955d011SMarcel Moolenaar 40733955d011SMarcel Moolenaar2007-10-15 Simon J. Gerraty <sjg@void.crufty.net> 40743955d011SMarcel Moolenaar 40753955d011SMarcel Moolenaar * boot-strap: make bmake.1 too, so maninstall works. 40763955d011SMarcel Moolenaar 40773955d011SMarcel Moolenaar2007-10-14 Simon J. Gerraty <sjg@void.crufty.net> 40783955d011SMarcel Moolenaar 40793955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071014 40803955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40813955d011SMarcel Moolenaar o revamped handling of defshell - configure no longer needs to 40823955d011SMarcel Moolenaar know the content of the shells array - apb 40833955d011SMarcel Moolenaar o stop Var_Subst modifying its input - apb 40843955d011SMarcel Moolenaar o avoid calling ParseTrackInput too often - dsl 40853955d011SMarcel Moolenaar 40863955d011SMarcel Moolenaar2007-10-11 Simon J. Gerraty <sjg@void.crufty.net> 40873955d011SMarcel Moolenaar 40883955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071011 40893955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 40903955d011SMarcel Moolenaar o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path. 40913955d011SMarcel Moolenaar 40923955d011SMarcel Moolenaar * sigcompat.c: some tweaks for HP-UX 11.x based on 40933955d011SMarcel Moolenaar patch from Tobias Nygren 40943955d011SMarcel Moolenaar 40953955d011SMarcel Moolenaar * configure.in: update handling of --with-defshell to match 40963955d011SMarcel Moolenaar new make behavior. --with-defshell=/usr/xpg4/bin/sh 40973955d011SMarcel Moolenaar will now do what one might hope - provided the chosen shell 40983955d011SMarcel Moolenaar behaves enough like sh. 40993955d011SMarcel Moolenaar 41003955d011SMarcel Moolenaar2007-10-08 Simon J. Gerraty <sjg@void.crufty.net> 41013955d011SMarcel Moolenaar 41023955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20071008 41033955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41043955d011SMarcel Moolenaar o .MAKE.JOB.PREFIX - control the token output before jobs - sjg 41053955d011SMarcel Moolenaar o .export/.MAKE.EXPORTED - export of variables - sjg 41063955d011SMarcel Moolenaar o .MAKE.MAKEFILES - track all makefiles read - sjg 41073955d011SMarcel Moolenaar o performance improvements - dsl 41083955d011SMarcel Moolenaar o revamp parallel job scheduling - dsl 41093955d011SMarcel Moolenaar 41103955d011SMarcel Moolenaar2006-07-28 Simon J. Gerraty <sjg@void.crufty.net> 41113955d011SMarcel Moolenaar 41123955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060728 41133955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41143955d011SMarcel Moolenaar o extra debug info during variable and cond processing - sjg 41153955d011SMarcel Moolenaar o shell definition now covers newline - rillig 41163955d011SMarcel Moolenaar o minor mem leak in PrintOnError - sjg 41173955d011SMarcel Moolenaar 41183955d011SMarcel Moolenaar2006-05-11 Simon J. Gerraty <sjg@void.crufty.net> 41193955d011SMarcel Moolenaar 41203955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060511 41213955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41223955d011SMarcel Moolenaar o more memory leaks - coverity 41233955d011SMarcel Moolenaar o possible overflow in ArchFindMember - coverity 41243955d011SMarcel Moolenaar o extract variable modifier code out of Var_Parse() 41253955d011SMarcel Moolenaar so it can be called recursively - sjg 41263955d011SMarcel Moolenaar o unit-tests/moderrs - sjg 41273955d011SMarcel Moolenaar 41283955d011SMarcel Moolenaar2006-04-12 Simon J. Gerraty <sjg@void.crufty.net> 41293955d011SMarcel Moolenaar 41303955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060412 41313955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41323955d011SMarcel Moolenaar o fixes for some memory leaks - coverity 41333955d011SMarcel Moolenaar o only read first sys.mk etc when searching sysIncPath - sjg 41343955d011SMarcel Moolenaar 41353955d011SMarcel Moolenaar * main.c (ReadMakefile): remove hack for __INTERIX that prevented 41363955d011SMarcel Moolenaar setting ${MAKEFILE} - OBATA Akio 41373955d011SMarcel Moolenaar 41383955d011SMarcel Moolenaar2006-03-18 Simon J. Gerraty <sjg@void.crufty.net> 41393955d011SMarcel Moolenaar 41403955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060318 41413955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41423955d011SMarcel Moolenaar o cleanup of job.c to remove remote handling, distcc is more 41433955d011SMarcel Moolenaar useful and this code was likely bit-rotting - dsl 41443955d011SMarcel Moolenaar o fix for :P modifier - sjg 41453955d011SMarcel Moolenaar * boot-strap: set default prefix to something reasonable 41463955d011SMarcel Moolenaar (for me anyway). 41473955d011SMarcel Moolenaar 41483955d011SMarcel Moolenaar2006-03-01 Simon J. Gerraty <sjg@void.crufty.net> 41493955d011SMarcel Moolenaar 41503955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060301 41513955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41523955d011SMarcel Moolenaar o make .WAIT apply recursively, document and test case - apb 41533955d011SMarcel Moolenaar o allow variable modifiers in a variable appear anywhere in 41543955d011SMarcel Moolenaar modifier list, document and test case - sjg 41553955d011SMarcel Moolenaar 41563955d011SMarcel Moolenaar2006-02-22 Simon J. Gerraty <sjg@void.crufty.net> 41573955d011SMarcel Moolenaar 41583955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060222 41593955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 41603955d011SMarcel Moolenaar o improved job token handling - dsl 41613955d011SMarcel Moolenaar o SIG_DFL the correct signal before exec - dsl 41623955d011SMarcel Moolenaar o more debug info during parsing - dsl 41633955d011SMarcel Moolenaar o allow variable modifiers to be specified via variable - sjg 41643955d011SMarcel Moolenaar * boot-strap: explain why we died if no mksrc 41653955d011SMarcel Moolenaar 41663955d011SMarcel Moolenaar2005-11-05 Simon J. Gerraty <sjg@void.crufty.net> 41673955d011SMarcel Moolenaar 41683955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051105 41693955d011SMarcel Moolenaar * configure.in: always set default_sys_path 41703955d011SMarcel Moolenaar default is ${prefix}/share/mk 41713955d011SMarcel Moolenaar - remove prefix_sys_path, anyone wanting more than above 41723955d011SMarcel Moolenaar needs to set it manually. 41733955d011SMarcel Moolenaar 41743955d011SMarcel Moolenaar2005-11-04 Simon J. Gerraty <sjg@void.crufty.net> 41753955d011SMarcel Moolenaar 41763955d011SMarcel Moolenaar * boot-strap: make this a bit easier for pkgsrc folk. 41773955d011SMarcel Moolenaar bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to 41783955d011SMarcel Moolenaar 'mips' while pkgsrc wants 'mipseb' or 'mipsel' 41793955d011SMarcel Moolenaar 41803955d011SMarcel Moolenaar2005-11-02 Simon J. Gerraty <sjg@void.crufty.net> 41813955d011SMarcel Moolenaar 41823955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051102 41833955d011SMarcel Moolenaar * job.c (JobFinish): fix likely ancient merge lossage 41843955d011SMarcel Moolenaar fix from Todd Vierling. 41853955d011SMarcel Moolenaar * boot-strap (srcdir): allow setting mksrc=none 41863955d011SMarcel Moolenaar 41873955d011SMarcel Moolenaar2005-10-31 Simon J. Gerraty <sjg@void.crufty.net> 41883955d011SMarcel Moolenaar 41893955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051031 41903955d011SMarcel Moolenaar * ranlib.h: skip on OSF too. 41913955d011SMarcel Moolenaar (NetBSD PR 31864) 41923955d011SMarcel Moolenaar 41933955d011SMarcel Moolenaar2005-10-10 Simon J. Gerraty <sjg@void.crufty.net> 41943955d011SMarcel Moolenaar 41953955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051002 41963955d011SMarcel Moolenaar fix a silly typo 41973955d011SMarcel Moolenaar 41983955d011SMarcel Moolenaar2005-10-09 Simon J. Gerraty <sjg@void.crufty.net> 41993955d011SMarcel Moolenaar 42003955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051001 42013955d011SMarcel Moolenaar support for UnixWare and some other systems, 42023955d011SMarcel Moolenaar based on patches from pkgsrc/bootstrap 42033955d011SMarcel Moolenaar 42043955d011SMarcel Moolenaar2005-09-03 Simon J. Gerraty <sjg@void.crufty.net> 42053955d011SMarcel Moolenaar 42063955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050901 42073955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42083955d011SMarcel Moolenaar o possible parse error causing us to wander off. 42093955d011SMarcel Moolenaar 42103955d011SMarcel Moolenaar2005-06-06 Simon J. Gerraty <sjg@void.crufty.net> 42113955d011SMarcel Moolenaar 42123955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050606 42133955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42143955d011SMarcel Moolenaar o :0x modifier for randomizing a list 42153955d011SMarcel Moolenaar o fixes for a number of -Wuninitialized issues. 42163955d011SMarcel Moolenaar 42173955d011SMarcel Moolenaar2005-05-30 Simon J. Gerraty <sjg@void.crufty.net> 42183955d011SMarcel Moolenaar 42193955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050530 42203955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42213955d011SMarcel Moolenaar o Handle dependencies for .BEGIN, .END and .INTERRUPT 42223955d011SMarcel Moolenaar 42233955d011SMarcel Moolenaar * README: was seriously out of date. 42243955d011SMarcel Moolenaar 42253955d011SMarcel Moolenaar2005-03-22 Simon J. Gerraty <sjg@void.crufty.net> 42263955d011SMarcel Moolenaar 42273955d011SMarcel Moolenaar * Important to use .MAKE rather than MAKE. 42283955d011SMarcel Moolenaar 42293955d011SMarcel Moolenaar2005-03-15 Simon J. Gerraty <sjg@void.crufty.net> 42303955d011SMarcel Moolenaar 42313955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050315 42323955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42333955d011SMarcel Moolenaar o don't mistake .elsefoo for .else 42343955d011SMarcel Moolenaar o use suffix-specific search path correctly 42353955d011SMarcel Moolenaar o bunch of style nits 42363955d011SMarcel Moolenaar 42373955d011SMarcel Moolenaar2004-05-11 Simon J. Gerraty <sjg@void.crufty.net> 42383955d011SMarcel Moolenaar 42393955d011SMarcel Moolenaar * boot-strap: 42403955d011SMarcel Moolenaar o ensure that args to --src and --with-mksrc 42413955d011SMarcel Moolenaar are resolved before giving them to configure. 42423955d011SMarcel Moolenaar o add -o "objdir" so that builder can control it, 42433955d011SMarcel Moolenaar default is $OS as determined by os.sh 42443955d011SMarcel Moolenaar o add -q to suppress all the install instructions. 42453955d011SMarcel Moolenaar 42463955d011SMarcel Moolenaar2004-05-08 Simon J. Gerraty <sjg@void.crufty.net> 42473955d011SMarcel Moolenaar 42483955d011SMarcel Moolenaar * Remove __IDSTRING() 42493955d011SMarcel Moolenaar 42503955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040508 42513955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42523955d011SMarcel Moolenaar o posix fixes 42533955d011SMarcel Moolenaar - remove '-e' from compat mode 42543955d011SMarcel Moolenaar - add support for '+' command-line prefix. 42553955d011SMarcel Moolenaar o fix for handling '--' on command-line. 42563955d011SMarcel Moolenaar o fix include in lst.lib/lstInt.h to simplify '-I's 42573955d011SMarcel Moolenaar o we also picked up replacement of MAKE_BOOTSTRAP 42583955d011SMarcel Moolenaar with !MAKE_NATIVE which is a noop, but possibly confusing. 42593955d011SMarcel Moolenaar 42603955d011SMarcel Moolenaar2004-04-14 Simon J. Gerraty <sjg@void.crufty.net> 42613955d011SMarcel Moolenaar 42623955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040414 42633955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42643955d011SMarcel Moolenaar o allow quoted strings on lhs of conditionals 42653955d011SMarcel Moolenaar o issue warning when extra .else is seen 42663955d011SMarcel Moolenaar o print line numer when errors encountered during parsing from 42673955d011SMarcel Moolenaar string. 42683955d011SMarcel Moolenaar 42693955d011SMarcel Moolenaar2004-02-20 Simon J. Gerraty <sjg@void.crufty.net> 42703955d011SMarcel Moolenaar 42713955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040220 42723955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42733955d011SMarcel Moolenaar o fix for old :M parsing bug. 42743955d011SMarcel Moolenaar o re-jigged unit-tests 42753955d011SMarcel Moolenaar 42763955d011SMarcel Moolenaar2004-02-15 Simon J. Gerraty <sjg@void.crufty.net> 42773955d011SMarcel Moolenaar 42783955d011SMarcel Moolenaar * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,} 42793955d011SMarcel Moolenaar so that './bmake -f Makefile test' works. 42803955d011SMarcel Moolenaar 42813955d011SMarcel Moolenaar2004-02-14 Simon J. Gerraty <sjg@void.crufty.net> 42823955d011SMarcel Moolenaar 42833955d011SMarcel Moolenaar * Makefile.in: (BMAKE_VERSION): bump to 20040214 42843955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42853955d011SMarcel Moolenaar o search upwards for *.mk 42863955d011SMarcel Moolenaar o fix for double free of var substitution buffers 42873955d011SMarcel Moolenaar o use of getopt replaced with custom code, since the usage 42883955d011SMarcel Moolenaar (re-scanning) isn't posix compatible. 42893955d011SMarcel Moolenaar 42903955d011SMarcel Moolenaar2004-02-12 Simon J. Gerraty <sjg@void.crufty.net> 42913955d011SMarcel Moolenaar 42923955d011SMarcel Moolenaar * arch.c: don't include ranlib.h on ELF systems 42933955d011SMarcel Moolenaar (thanks to Chuck Cranor <chuck@ece.cmu.edu>). 42943955d011SMarcel Moolenaar 42953955d011SMarcel Moolenaar2004-01-18 Simon J. Gerraty <sjg@void.crufty.net> 42963955d011SMarcel Moolenaar 42973955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040118 42983955d011SMarcel Moolenaar 42993955d011SMarcel Moolenaar * boot-strap (while): export vars we assign to on cmdline 43003955d011SMarcel Moolenaar * unit-test/Makefile.in: ternary is .PHONY 43013955d011SMarcel Moolenaar 43023955d011SMarcel Moolenaar2004-01-08 Simon J. Gerraty <sjg@void.crufty.net> 43033955d011SMarcel Moolenaar 43043955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040108 43053955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43063955d011SMarcel Moolenaar o fix for ternary modifier 43073955d011SMarcel Moolenaar 43083955d011SMarcel Moolenaar2004-01-06 Simon J. Gerraty <sjg@void.crufty.net> 43093955d011SMarcel Moolenaar 43103955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040105 43113955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43123955d011SMarcel Moolenaar o fix for cond.c to handle compound expressions better 43133955d011SMarcel Moolenaar o variable expansion within sysV style replacements 43143955d011SMarcel Moolenaar 43153955d011SMarcel Moolenaar2003-12-22 Simon J. Gerraty <sjg@void.crufty.net> 43163955d011SMarcel Moolenaar 43173955d011SMarcel Moolenaar * Make portable snprintf safer - output to /dev/null first to 43183955d011SMarcel Moolenaar check space needed. 43193955d011SMarcel Moolenaar 43203955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20031222 43213955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43223955d011SMarcel Moolenaar o -dg3 to show input graph when things go wrong. 43233955d011SMarcel Moolenaar o explicitly look for makefiles in objdir if not found in curdir so 43243955d011SMarcel Moolenaar that errors in .depend etc will be reported accurarely. 43253955d011SMarcel Moolenaar o avoid use of -e in shell scripts in jobs mode, use '|| exit $?' 43263955d011SMarcel Moolenaar instead as it more accurately reflects the expected behavior and 43273955d011SMarcel Moolenaar is more consistently implemented. 43283955d011SMarcel Moolenaar o avoid use of asprintf. 43293955d011SMarcel Moolenaar 43303955d011SMarcel Moolenaar2003-09-28 Simon J. Gerraty <sjg@void.crufty.net> 43313955d011SMarcel Moolenaar 43323955d011SMarcel Moolenaar * util.c: Add asprintf and vasprintf. 43333955d011SMarcel Moolenaar 43343955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030928 43353955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43363955d011SMarcel Moolenaar :[] modifier - allows picking words from a variable. 43373955d011SMarcel Moolenaar :tW modifier - allows treating value as one big word. 43383955d011SMarcel Moolenaar W flag for :C and :S - allows treating value as one big word. 43393955d011SMarcel Moolenaar 43403955d011SMarcel Moolenaar2003-09-12 Simon J. Gerraty <sjg@void.crufty.net> 43413955d011SMarcel Moolenaar 43423955d011SMarcel Moolenaar * Merge with NetBSD make 43433955d011SMarcel Moolenaar pick up -de flag to enable printing failed command. 43443955d011SMarcel Moolenaar don't skip 1st two dir entries (normally . and ..) since 43453955d011SMarcel Moolenaar coda does not have them. 43463955d011SMarcel Moolenaar 43473955d011SMarcel Moolenaar2003-09-09 Simon J. Gerraty <sjg@void.crufty.net> 43483955d011SMarcel Moolenaar 43493955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030909 43503955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43513955d011SMarcel Moolenaar - changes for -V '${VAR}' to print fully expanded value 43523955d011SMarcel Moolenaar cf. -V VAR 43533955d011SMarcel Moolenaar - CompatRunCommand now prints the command that failed. 43543955d011SMarcel Moolenaar - several files got updated 3 clause Berkeley license. 43553955d011SMarcel Moolenaar 43563955d011SMarcel Moolenaar2003-08-02 Simon J. Gerraty <sjg@void.crufty.net> 43573955d011SMarcel Moolenaar 43583955d011SMarcel Moolenaar * boot-strap: Allow setting configure args on command line. 43593955d011SMarcel Moolenaar 43603955d011SMarcel Moolenaar2003-07-31 Simon J. Gerraty <sjg@void.crufty.net> 43613955d011SMarcel Moolenaar 43623955d011SMarcel Moolenaar * configure.in: add --with-defshell to allow sh or ksh 43633955d011SMarcel Moolenaar to be selected as default shell. 43643955d011SMarcel Moolenaar 43653955d011SMarcel Moolenaar * Makefile.in: bump version to 20030731 43663955d011SMarcel Moolenaar 43673955d011SMarcel Moolenaar * Merge with NetBSD make 43683955d011SMarcel Moolenaar Pick up .SHELL spec for ksh and associate man page changes. 43693955d011SMarcel Moolenaar Also compat mode now uses the same shell specs. 43703955d011SMarcel Moolenaar 43713955d011SMarcel Moolenaar2003-07-29 Simon J. Gerraty <sjg@void.crufty.net> 43723955d011SMarcel Moolenaar 43733955d011SMarcel Moolenaar * var.c (Var_Parse): ensure delim is initialized. 43743955d011SMarcel Moolenaar 43753955d011SMarcel Moolenaar * unit-tests/Makefile.in: use single quotes to avoid problems from 43763955d011SMarcel Moolenaar some shells. 43773955d011SMarcel Moolenaar 43783955d011SMarcel Moolenaar * makefile.boot.in: 43793955d011SMarcel Moolenaar Run the unit-tests as part of the bootstrap procedure. 43803955d011SMarcel Moolenaar 43813955d011SMarcel Moolenaar2003-07-28 Simon J. Gerraty <sjg@void.crufty.net> 43823955d011SMarcel Moolenaar 43833955d011SMarcel Moolenaar * unit-tests/Makefile.in: always force complaints from 43843955d011SMarcel Moolenaar ${TEST_MAKE} to be from 'make'. 43853955d011SMarcel Moolenaar 43863955d011SMarcel Moolenaar * configure.in: add check for 'diff -u' 43873955d011SMarcel Moolenaar also fix some old autoconf'isms 43883955d011SMarcel Moolenaar 43893955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030728. 43903955d011SMarcel Moolenaar if using GCC add -Wno-cast-qual to CFLAGS for var.o 43913955d011SMarcel Moolenaar 43923955d011SMarcel Moolenaar * Merge with NetBSD make 43933955d011SMarcel Moolenaar Pick up fix for :ts parsing error in some cases. 43943955d011SMarcel Moolenaar Pick unit-tests. 43953955d011SMarcel Moolenaar 43963955d011SMarcel Moolenaar2003-07-23 Simon J. Gerraty <sjg@void.crufty.net> 43973955d011SMarcel Moolenaar 43983955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030723. 43993955d011SMarcel Moolenaar 44003955d011SMarcel Moolenaar * var.c (Var_Parse): fix bug in :ts modifier, after const 44013955d011SMarcel Moolenaar correctness fixes, must pass nstr to VarModify. 44023955d011SMarcel Moolenaar 44033955d011SMarcel Moolenaar2003-07-14 Simon J. Gerraty <sjg@void.crufty.net> 44043955d011SMarcel Moolenaar 44053955d011SMarcel Moolenaar * Makefile.in: BMAKE_VERSION switch to a date based version. 44063955d011SMarcel Moolenaar We'll generally use the date of last import from NetBSD. 44073955d011SMarcel Moolenaar 44083955d011SMarcel Moolenaar * Merge with NetBSD make 44093955d011SMarcel Moolenaar Pick up fixes for const-correctness, now passes WARNS=3 on 44103955d011SMarcel Moolenaar NetBSD. 44113955d011SMarcel Moolenaar Pick up :ts modifier, allows controlling the separator used 44123955d011SMarcel Moolenaar between words in variable expansion. 44133955d011SMarcel Moolenaar 44143955d011SMarcel Moolenaar2003-07-11 Simon J. Gerraty <sjg@void.crufty.net> 44153955d011SMarcel Moolenaar 44163955d011SMarcel Moolenaar * FILES: include boot-strap and os.sh 44173955d011SMarcel Moolenaar 44183955d011SMarcel Moolenaar * Makefile.in: only set WARNS if we are NetBSD, the effect on 44193955d011SMarcel Moolenaar FreeBSD is known to be bad. 44203955d011SMarcel Moolenaar 44213955d011SMarcel Moolenaar * makefile.boot.in (bootstrap): make this the default target. 44223955d011SMarcel Moolenaar 44233955d011SMarcel Moolenaar * Makefile.in: bump version to 3.1.19 44243955d011SMarcel Moolenaar 44253955d011SMarcel Moolenaar * machine.sh: avoid A-Z with tr as it is bound to lose. 44263955d011SMarcel Moolenaar 44273955d011SMarcel Moolenaar2003-07-10 Simon J. Gerraty <sjg@void.crufty.net> 44283955d011SMarcel Moolenaar 44293955d011SMarcel Moolenaar * Merge with NetBSD make 44303955d011SMarcel Moolenaar Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo 44313955d011SMarcel Moolenaar Plus some doc fixes. 44323955d011SMarcel Moolenaar 44333955d011SMarcel Moolenaar2003-04-27 Simon J. Gerraty <sjg@void.crufty.net> 44343955d011SMarcel Moolenaar 44353955d011SMarcel Moolenaar * Merge with NetBSD make 44363955d011SMarcel Moolenaar Pick up fix for PR/1523 - don't count a library as built, if there 44373955d011SMarcel Moolenaar is no way to build it 44383955d011SMarcel Moolenaar 44393955d011SMarcel Moolenaar * Bump version to 3.1.18 44403955d011SMarcel Moolenaar 44413955d011SMarcel Moolenaar2003-03-23 Simon J. Gerraty <sjg@void.crufty.net> 44423955d011SMarcel Moolenaar 44433955d011SMarcel Moolenaar * Merge with NetBSD make 44443955d011SMarcel Moolenaar Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT 44453955d011SMarcel Moolenaar appears in src list. 44463955d011SMarcel Moolenaar 44473955d011SMarcel Moolenaar2003-03-21 Simon J. Gerraty <sjg@void.crufty.net> 44483955d011SMarcel Moolenaar 44493955d011SMarcel Moolenaar * Merge with NetBSD make (mmm 10th anniversary!) 44503955d011SMarcel Moolenaar pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828) 44513955d011SMarcel Moolenaar pick up -X which tells us to not export VAR=val via setenv if 44523955d011SMarcel Moolenaar we are already doing so via MAKEFLAGS. This saves valuable env 44533955d011SMarcel Moolenaar space on systems like Darwin. 44543955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.17 44553955d011SMarcel Moolenaar 44563955d011SMarcel Moolenaar * parse.c: pix up fix for suffix rules 44573955d011SMarcel Moolenaar 44583955d011SMarcel Moolenaar2003-03-06 Simon J. Gerraty <sjg@void.crufty.net> 44593955d011SMarcel Moolenaar 44603955d011SMarcel Moolenaar * Merge with NetBSD make. 44613955d011SMarcel Moolenaar pick up fix for propagating -B via MAKEFLAGS. 44623955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.16 44633955d011SMarcel Moolenaar 44643955d011SMarcel Moolenaar * Apply some patches from pkgsrc-bootstrap/bmake 44653955d011SMarcel Moolenaar Originally by Grant Beattie <grant@netbsd.org> 44663955d011SMarcel Moolenaar I may have missed some - since they are based on bmake-3.1.12 44673955d011SMarcel Moolenaar 44683955d011SMarcel Moolenaar2002-12-03 Simon J. Gerraty <sjg@void.crufty.net> 44693955d011SMarcel Moolenaar 44703955d011SMarcel Moolenaar * makefile.boot.in (bmake): update install targets for those that 44713955d011SMarcel Moolenaar use them, also clear MAKEFLAGS when invoking bmake.boot to avoid 44723955d011SMarcel Moolenaar havoc from gmake -w. Thanks to Harlan Stenn <hstenn@cisco.com>. 44733955d011SMarcel Moolenaar 44743955d011SMarcel Moolenaar * bmake.cat1: update the pre-formatted man page! 44753955d011SMarcel Moolenaar 44763955d011SMarcel Moolenaar2002-11-30 Simon J. Gerraty <sjg@void.crufty.net> 44773955d011SMarcel Moolenaar 44783955d011SMarcel Moolenaar * Merge with NetBSD make. 44793955d011SMarcel Moolenaar pick up fix for premature free of pointer used in call 44803955d011SMarcel Moolenaar to Dir_InitCur(). 44813955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.15 44823955d011SMarcel Moolenaar 44833955d011SMarcel Moolenaar2002-11-26 Simon J. Gerraty <sjg@void.crufty.net> 44843955d011SMarcel Moolenaar 44853955d011SMarcel Moolenaar * configure.in: determine suitable value for MKSRC. 44863955d011SMarcel Moolenaar override using --with-mksrc=PATH. 44873955d011SMarcel Moolenaar 44883955d011SMarcel Moolenaar * machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems. 44893955d011SMarcel Moolenaar configs(8) will use 'sun4' as an alias for 'sparc'. 44903955d011SMarcel Moolenaar 44913955d011SMarcel Moolenaar2002-11-25 Simon J. Gerraty <sjg@void.crufty.net> 44923955d011SMarcel Moolenaar 44933955d011SMarcel Moolenaar * Merge with NetBSD make. 44943955d011SMarcel Moolenaar pick up ${.PATH} 44953955d011SMarcel Moolenaar pick up fix for finding ../cat.c via .PATH when .CURDIR=.. 44963955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.14 44973955d011SMarcel Moolenaar add configure checks for killpg and sys/socket.h 44983955d011SMarcel Moolenaar 44993955d011SMarcel Moolenaar2002-09-16 Simon J. Gerraty <sjg@void.crufty.net> 45003955d011SMarcel Moolenaar 45013955d011SMarcel Moolenaar * tag bmake-3-1-13 45023955d011SMarcel Moolenaar 45033955d011SMarcel Moolenaar * makefile.boot.in (bmake): use install-mk 45043955d011SMarcel Moolenaar Also setup ./mk before trying to invoke bmake.boot incase we 45053955d011SMarcel Moolenaar needed install-mk to create a sys.mk for us. 45063955d011SMarcel Moolenaar 45073955d011SMarcel Moolenaar * configure.in: If we need to add -I${srcdir}/missing, make it an 45083955d011SMarcel Moolenaar absolute path so that it works for lst.lib too. 45093955d011SMarcel Moolenaar 45103955d011SMarcel Moolenaar * make.h: always include sys/cdefs.h since we provide one if the 45113955d011SMarcel Moolenaar host does not. 45123955d011SMarcel Moolenaar 45133955d011SMarcel Moolenaar * Makefile.in (install-mk): 45143955d011SMarcel Moolenaar use MKSRC/install-mk which will do the right thing. 45153955d011SMarcel Moolenaar use uname -p for ARCH if possible. 45163955d011SMarcel Moolenaar since install-mk will setup links bsd.prog.mk -> prog.mk if 45173955d011SMarcel Moolenaar needed, just .include bsd.prog.mk 45183955d011SMarcel Moolenaar 45193955d011SMarcel Moolenaar * Merge with NetBSD make (NetBSD-1.6) 45203955d011SMarcel Moolenaar Code is ansi-C only now. 45213955d011SMarcel Moolenaar Bug in handling of dotLast is fixed. 45223955d011SMarcel Moolenaar Can now assign .OBJDIR and make will reset its notions of life. 45233955d011SMarcel Moolenaar New modifiers :tu :tl for toUpper and toLower. 45243955d011SMarcel Moolenaar 45253955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001 Simon J. Gerraty <sjg@zen.crufty.net> 45263955d011SMarcel Moolenaar 45273955d011SMarcel Moolenaar * Merge with NetBSD make 45283955d011SMarcel Moolenaar pick up fix for .END failure in compat mode. 45293955d011SMarcel Moolenaar pick up fix for extra va_end() in ParseVErrorInternal. 45303955d011SMarcel Moolenaar 45313955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001 Simon J. Gerraty <sjg@zen.crufty.net> 45323955d011SMarcel Moolenaar 45333955d011SMarcel Moolenaar * configure.in: for systems that have sys/cdefs.h check if it is 45343955d011SMarcel Moolenaar compatible. If not, include the one under missing, but tell it to 45353955d011SMarcel Moolenaar include the native one too - necessary on Linux. 45363955d011SMarcel Moolenaar 45373955d011SMarcel Moolenaar * missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use 45383955d011SMarcel Moolenaar include_next (for gcc) to get the native sys/cdefs.h 45393955d011SMarcel Moolenaar 45403955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45413955d011SMarcel Moolenaar 45423955d011SMarcel Moolenaar * job.c (JobFinish): Fix an earlier merge bug that resulted in 45433955d011SMarcel Moolenaar leaking descriptors when using -jN. 45443955d011SMarcel Moolenaar 45453955d011SMarcel Moolenaar * job.c (JobPrintCommand): See if "curdir" exists before 45463955d011SMarcel Moolenaar attempting to chdir(). Doing the chdir directly in make (when in 45473955d011SMarcel Moolenaar compat mode) fails silently, so let the -jN version do the same. 45483955d011SMarcel Moolenaar This can happen when building kernels in an object tree and 45493955d011SMarcel Moolenaar playing clever games to reset .CURDIR. 45503955d011SMarcel Moolenaar 45513955d011SMarcel Moolenaar * Merged with NetBSD make 45523955d011SMarcel Moolenaar pick up .USEBEFORE 45533955d011SMarcel Moolenaar 45543955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45553955d011SMarcel Moolenaar 45563955d011SMarcel Moolenaar * makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work. 45573955d011SMarcel Moolenaar 45583955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45593955d011SMarcel Moolenaar 45603955d011SMarcel Moolenaar * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell 45613955d011SMarcel Moolenaar us not to export the iterator variable when using VAR_CMD context. 45623955d011SMarcel Moolenaar 45633955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45643955d011SMarcel Moolenaar 45653955d011SMarcel Moolenaar * job.c (Job_CatchChildren): don't call Job_CatchOutput() here, 45663955d011SMarcel Moolenaar its the wrong "fix". 45673955d011SMarcel Moolenaar 45683955d011SMarcel MoolenaarSat Jun 9 00:11:24 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45693955d011SMarcel Moolenaar 45703955d011SMarcel Moolenaar * Redesigned export of VAR_CMD's via MAKEFLAGS. 45713955d011SMarcel Moolenaar We now simply append the variable names to .MAKEOVERRIDES, and 45723955d011SMarcel Moolenaar handle duplicate suppression and quoting in ExportMAKEFLAGS using: 45733955d011SMarcel Moolenaar ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@} 45743955d011SMarcel Moolenaar Apart from fixing quoting bugs in previous version, this allows us 45753955d011SMarcel Moolenaar to export vars to the environment by simply doing: 45763955d011SMarcel Moolenaar .MAKEOVERRIDES+= PATH 45773955d011SMarcel Moolenaar Merged again with NetBSD make, but the above is the only change. 45783955d011SMarcel Moolenaar 45793955d011SMarcel Moolenaar * configure.in: added 45803955d011SMarcel Moolenaar --disable-pwd-override disable $PWD overriding getcwd() 45813955d011SMarcel Moolenaar --disable-check-make-chdir disable make trying to guess 45823955d011SMarcel Moolenaar when it should automatically cd ${.CURDIR} 45833955d011SMarcel Moolenaar 45843955d011SMarcel Moolenaar * Merge with NetBSD make, changes include: 45853955d011SMarcel Moolenaar parse.c (ParseDoDependency): Spot that the syntax error is 45863955d011SMarcel Moolenaar caused by an unresolved cvs/rcs conflict and say so. 45873955d011SMarcel Moolenaar var.c: most of Var* functions now take a ctxt as 1st arg. 45883955d011SMarcel Moolenaar now does variable substituion on rhs of sysv style modifiers. 45893955d011SMarcel Moolenaar 45903955d011SMarcel Moolenaar * var.c (Var_Set): exporting of command line variables (VAR_CMD) 45913955d011SMarcel Moolenaar is now done here. We append the name='value' to .MAKEOVERRIDES 45923955d011SMarcel Moolenaar rather than directly into MAKEFLAGS as this allows a Makefile to 45933955d011SMarcel Moolenaar use .MAKEOVERRIDES= to disable this behaviour. GNU make uses a 45943955d011SMarcel Moolenaar very similar mechanism. Note that in adding name='value' to 45953955d011SMarcel Moolenaar .MAKEOVERRIDES we do the moral equivalent of: 45963955d011SMarcel Moolenaar .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val' 45973955d011SMarcel Moolenaar 45983955d011SMarcel MoolenaarFri Jun 1 14:08:02 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 45993955d011SMarcel Moolenaar 46003955d011SMarcel Moolenaar * make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H 46013955d011SMarcel Moolenaar 46023955d011SMarcel Moolenaar * Merged with NetBSD make 46033955d011SMarcel Moolenaar make -dx can now be used to run commands via sh -x 46043955d011SMarcel Moolenaar better error messages on exec failures. 46053955d011SMarcel Moolenaar 46063955d011SMarcel MoolenaarThu May 31 01:44:54 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 46073955d011SMarcel Moolenaar 46083955d011SMarcel Moolenaar * Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that 46093955d011SMarcel Moolenaar MAKE_VERSION gets updated. Also don't use ?= for MAKE_VERSION, 46103955d011SMarcel Moolenaar MACHINE etc otherwise they propagate from the previous bmake. 46113955d011SMarcel Moolenaar 46123955d011SMarcel Moolenaar * configure.in (machine): allow --with-machine=generic to make 46133955d011SMarcel Moolenaar configure use machine.sh to set MACHINE. 46143955d011SMarcel Moolenaar 46153955d011SMarcel Moolenaar * job.c (JobInterrupt): convert to using WAIT_T and friends. 46163955d011SMarcel Moolenaar 46173955d011SMarcel Moolenaar * Makefile.in: mention in bmake.1 that we use autoconf. 46183955d011SMarcel Moolenaar 46193955d011SMarcel Moolenaar * make.1: mention MAKE_PRINT_VAR_ON_ERROR. 46203955d011SMarcel Moolenaar 46213955d011SMarcel MoolenaarWed May 30 23:17:18 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 46223955d011SMarcel Moolenaar 46233955d011SMarcel Moolenaar * main.c (ReadMakefile): don't set MAKEFILE if reading ".depend" 46243955d011SMarcel Moolenaar as that rather defeats the usefulness of ${MAKEFILE}. 46253955d011SMarcel Moolenaar 46263955d011SMarcel Moolenaar * main.c (MainParseArgs): append command line variable assignments 46273955d011SMarcel Moolenaar to MAKEFLAGS so that they get propagated to child make's. 46283955d011SMarcel Moolenaar Apparently this is required POSIX behaviour? Its useful anyway. 46293955d011SMarcel Moolenaar 46303955d011SMarcel MoolenaarTue May 29 02:20:07 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 46313955d011SMarcel Moolenaar 46323955d011SMarcel Moolenaar * compat.c (CompatRunCommand): don't use perror() since stdio may 46333955d011SMarcel Moolenaar cause problems in child of vfork(). 46343955d011SMarcel Moolenaar 46353955d011SMarcel Moolenaar * compat.c, main.c: Call PrintOnError() when we are going to bail. 46363955d011SMarcel Moolenaar This routine prints out the .curdir where we stopped and will also 46373955d011SMarcel Moolenaar display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}. 46383955d011SMarcel Moolenaar 46393955d011SMarcel Moolenaar * main.c: add ${.newline} to hold a "\n" - sometimes handy in 46403955d011SMarcel Moolenaar :@ expansion. 46413955d011SMarcel Moolenaar 46423955d011SMarcel Moolenaar * var.c: VarLoopExpand: ignore addSpace if a \n is present. 46433955d011SMarcel Moolenaar 46443955d011SMarcel Moolenaar * Added RCSid's for the files we've touched. 46453955d011SMarcel Moolenaar 46463955d011SMarcel MoolenaarThu May 24 15:41:37 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 46473955d011SMarcel Moolenaar 46483955d011SMarcel Moolenaar * configure.in: Thanks to some clues from mdb@juniper.net, 46493955d011SMarcel Moolenaar added autoconf magic to control setting of MACHINE, MACHINE_ARCH 46503955d011SMarcel Moolenaar as well as what ends up in _PATH_DEFSYSPATH. We now have: 46513955d011SMarcel Moolenaar 46523955d011SMarcel Moolenaar --with-machine=MACHINE explicitly set MACHINE 46533955d011SMarcel Moolenaar --with-force-machine=MACHINE set FORCE_MACHINE 46543955d011SMarcel Moolenaar --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH 46553955d011SMarcel Moolenaar --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 46563955d011SMarcel Moolenaar --with-prefix-sys-path=PATH:DIR:LIST prefix _PATH_PREFIX_SYSPATH 46573955d011SMarcel Moolenaar --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX 46583955d011SMarcel Moolenaar 46593955d011SMarcel Moolenaar If _PATH_OBJDIRPREFIX is set to "no" we won't define it. 46603955d011SMarcel Moolenaar 46613955d011SMarcel Moolenaar * makefile: added a pathetically simple makefile to drive 46623955d011SMarcel Moolenaar bootstrapping. Running configure by hand is more useful. 46633955d011SMarcel Moolenaar 46643955d011SMarcel Moolenaar * Makefile.in: added MAKE_VERSION, and reworked things to be less 46653955d011SMarcel Moolenaar dependent on NetBSD bsd.*.mk 46663955d011SMarcel Moolenaar 46673955d011SMarcel Moolenaar * pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining 46683955d011SMarcel Moolenaar _PATH_OBJDIRPREFIX for those that don't want a default. 46693955d011SMarcel Moolenaar construct _PATH_DEFSYSPATH from the info we get from configure. 46703955d011SMarcel Moolenaar 46713955d011SMarcel Moolenaar * main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION} 46723955d011SMarcel Moolenaar if MAKE_VERSION is defined. 46733955d011SMarcel Moolenaar 46743955d011SMarcel Moolenaar * compat.c: when we bail, print out the .CURDIR we were in. 46753955d011SMarcel Moolenaar 46763955d011SMarcel MoolenaarSat May 12 00:34:12 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 46773955d011SMarcel Moolenaar 46783955d011SMarcel Moolenaar * Merged with NetBSD make 46793955d011SMarcel Moolenaar 46803955d011SMarcel Moolenaar * var.c: fixed a bug in the handling of the modifier :P 46813955d011SMarcel Moolenaar if the node as found but the path was null, we segfault trying to 46823955d011SMarcel Moolenaar duplicate it. 46833955d011SMarcel Moolenaar 46843955d011SMarcel MoolenaarMon Mar 5 16:20:33 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 46853955d011SMarcel Moolenaar 46863955d011SMarcel Moolenaar * Merged with NetBSD make 46873955d011SMarcel Moolenaar 46883955d011SMarcel Moolenaar * make.c: Make_OODate's test for a library out of date was using 46893955d011SMarcel Moolenaar cmtime where it should have used mtime (my bug). 46903955d011SMarcel Moolenaar 46913955d011SMarcel Moolenaar * compat.c: Use perror() to tell us what really went wrong when we 46923955d011SMarcel Moolenaar cannot exec a command. 46933955d011SMarcel Moolenaar 46943955d011SMarcel MoolenaarFri Dec 15 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46953955d011SMarcel Moolenaar 46963955d011SMarcel Moolenaar * Merged with NetBSD make 46973955d011SMarcel Moolenaar 46983955d011SMarcel MoolenaarSat Jun 10 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 46993955d011SMarcel Moolenaar 47003955d011SMarcel Moolenaar * Merged with NetBSD make 47013955d011SMarcel Moolenaar 47023955d011SMarcel MoolenaarThu Jun 1 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 47033955d011SMarcel Moolenaar 47043955d011SMarcel Moolenaar * Merged with NetBSD make 47053955d011SMarcel Moolenaar 47063955d011SMarcel MoolenaarTue May 30 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 47073955d011SMarcel Moolenaar 47083955d011SMarcel Moolenaar * Merged with NetBSD make 47093955d011SMarcel Moolenaar 47103955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 47113955d011SMarcel Moolenaar 47123955d011SMarcel Moolenaar * util.c: don't provide signal() since we use sigcompat.c 47133955d011SMarcel Moolenaar 47143955d011SMarcel Moolenaar * Makefile.in: added a build target. 47153955d011SMarcel Moolenaar 47163955d011SMarcel Moolenaar * var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :! 47173955d011SMarcel Moolenaar These allow some quite clever magic. 47183955d011SMarcel Moolenaar 47193955d011SMarcel Moolenaar * main.c (main): added support for getenv(MAKESYSPATH). 47203955d011SMarcel Moolenaar 47213955d011SMarcel MoolenaarMon Apr 2 16:25:13 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 47223955d011SMarcel Moolenaar 47233955d011SMarcel Moolenaar * Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set. 47243955d011SMarcel Moolenaar This avoids objdir having a different value depending on how a 47253955d011SMarcel Moolenaar directory was reached (via command line, or subdir.mk). 47263955d011SMarcel Moolenaar 47273955d011SMarcel Moolenaar * If FORCE_MACHINE is defined, ignore getenv("MACHINE"). 47283955d011SMarcel Moolenaar 47293955d011SMarcel MoolenaarMon Apr 2 23:15:31 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 47303955d011SMarcel Moolenaar 47313955d011SMarcel Moolenaar * Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if 47323955d011SMarcel Moolenaar MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not. 47333955d011SMarcel Moolenaar I've been testing this in NetBSD's make for some weeks. 47343955d011SMarcel Moolenaar 47353955d011SMarcel Moolenaar * Turn Makefile into Makefile.in and make it useful. 47363955d011SMarcel Moolenaar 47373955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 47383955d011SMarcel Moolenaar 47393955d011SMarcel Moolenaar * Imported NetBSD's -current make(1) and resolve conflicts. 47403955d011SMarcel Moolenaar 47413955d011SMarcel Moolenaar * Applied autoconf patches from bmake v2 47423955d011SMarcel Moolenaar 47433955d011SMarcel Moolenaar * Imported clean code base from NetBSD-1.0 4744