1*b4894ecaSSimon J. Gerraty2025-08-04 Simon J Gerraty <sjg@beast.crufty.net> 2*b4894ecaSSimon J. Gerraty 3*b4894ecaSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250804 4*b4894ecaSSimon J. Gerraty Merge with NetBSD make, pick up 5*b4894ecaSSimon J. Gerraty o meta.c: allow printing only partial string to meta file 6*b4894ecaSSimon J. Gerraty in jobs mode, otherwise we end up with duplicated output when 7*b4894ecaSSimon J. Gerraty buffer does not end in newline. 8*b4894ecaSSimon J. Gerraty Add a suitable unit test. 9*b4894ecaSSimon J. Gerraty 10a8c56be4SSimon J. Gerraty2025-07-07 Simon J Gerraty <sjg@beast.crufty.net> 11a8c56be4SSimon J. Gerraty 12a8c56be4SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250707 13a8c56be4SSimon J. Gerraty Merge with NetBSD make, pick up 14a8c56be4SSimon J. Gerraty o cond.c: improve debug log message for 'exists' function. 15a8c56be4SSimon J. Gerraty complain about unfinished escape sequences or string literals. 16a8c56be4SSimon J. Gerraty 17a8c56be4SSimon J. Gerraty2025-07-04 Simon J Gerraty <sjg@beast.crufty.net> 18a8c56be4SSimon J. Gerraty 19a8c56be4SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250704 20a8c56be4SSimon J. Gerraty Merge with NetBSD make, pick up 21a8c56be4SSimon J. Gerraty o make.1: add a DIAGNOSTICS section for make to reference. 22a8c56be4SSimon J. Gerraty o main.c: simplify the warning for invalid -J by refering to 23a8c56be4SSimon J. Gerraty manual page. 24a8c56be4SSimon J. Gerraty 25a8c56be4SSimon J. Gerraty2025-06-30 Simon J Gerraty <sjg@beast.crufty.net> 26a8c56be4SSimon J. Gerraty 27a8c56be4SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250630 28a8c56be4SSimon J. Gerraty Merge with NetBSD make, pick up 29a8c56be4SSimon J. Gerraty o consistently use double quotes in error messages 30a8c56be4SSimon J. Gerraty o cond.c: if a condition is erroneous, skip the whole .if/.endif 31a8c56be4SSimon J. Gerraty o make_malloc.c: in cleanup mode, initialize freshly allocated memory 32a8c56be4SSimon J. Gerraty o str.c: error out on an ":M" modifier whose pattern ends with 33a8c56be4SSimon J. Gerraty backslash 34a8c56be4SSimon J. Gerraty o var.c: fix parsing of modifier parts for :gmtime and :localtime 35a8c56be4SSimon J. Gerraty add POSIX $^ support 36a8c56be4SSimon J. Gerraty 370b46a53aSSimon J. Gerraty2025-06-18 Simon J Gerraty <sjg@beast.crufty.net> 380b46a53aSSimon J. Gerraty 390b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250618 400b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 410b46a53aSSimon J. Gerraty o parse.c: in a warning without location information, 420b46a53aSSimon J. Gerraty print the stack trace 430b46a53aSSimon J. Gerraty 440b46a53aSSimon J. Gerraty2025-06-15 Simon J Gerraty <sjg@beast.crufty.net> 450b46a53aSSimon J. Gerraty 460b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250615 470b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 480b46a53aSSimon J. Gerraty o add on-demand inter-process stack traces 490b46a53aSSimon J. Gerraty o job.c,meta.c: do not discard empty lines in the output of a command 500b46a53aSSimon J. Gerraty o job.c: add job prefix if necessary in non-default filtered mode 510b46a53aSSimon J. Gerraty o parse.c,var.c: skip inter-process stack trace when 520b46a53aSSimon J. Gerraty MAKE_STACK_TRACE=no 530b46a53aSSimon J. Gerraty 540b46a53aSSimon J. Gerraty2025-06-12 Simon J Gerraty <sjg@beast.crufty.net> 550b46a53aSSimon J. Gerraty 560b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250612 570b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 580b46a53aSSimon J. Gerraty o use a common style for unexpected error messages 590b46a53aSSimon J. Gerraty o parse.c: add program name to stack traces from sub-makes 600b46a53aSSimon J. Gerraty add quotes to "in directory" line in stack traces 610b46a53aSSimon J. Gerraty o var.c: check variable names for invalid characters when there 620b46a53aSSimon J. Gerraty are no modifiers to apply. This detects and warns about gmake 630b46a53aSSimon J. Gerraty syntax like: $(addprefix -I, $(LIST)) 640b46a53aSSimon J. Gerraty 650b46a53aSSimon J. Gerraty2025-06-09 Simon J Gerraty <sjg@beast.crufty.net> 660b46a53aSSimon J. Gerraty 670b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250606 680b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 690b46a53aSSimon J. Gerraty o main.c: fix bug in handling of output of children in jobs mode 700b46a53aSSimon J. Gerraty 710b46a53aSSimon J. Gerraty2025-05-28 Simon J Gerraty <sjg@beast.crufty.net> 720b46a53aSSimon J. Gerraty 730b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250528 740b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 750b46a53aSSimon J. Gerraty o show contents of MAKEFLAGS in the stack trace. 760b46a53aSSimon J. Gerraty o main.c: delay warning about bogus -J flag, if we end up in 770b46a53aSSimon J. Gerraty compat mode before the call to InitMaxJobs, the warning isn't 780b46a53aSSimon J. Gerraty necessary. 790b46a53aSSimon J. Gerraty 800b46a53aSSimon J. Gerraty2025-05-25 Simon J Gerraty <sjg@beast.crufty.net> 810b46a53aSSimon J. Gerraty 820b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250525 830b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 840b46a53aSSimon J. Gerraty o main.c: set .CURDIR earlier so it can be reported in some errors. 850b46a53aSSimon J. Gerraty 860b46a53aSSimon J. Gerraty2025-05-20 Simon J Gerraty <sjg@beast.crufty.net> 870b46a53aSSimon J. Gerraty 880b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250520 890b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 900b46a53aSSimon J. Gerraty o rename variables, remove now-redundant comments 910b46a53aSSimon J. Gerraty o job.c: clean up building the shell commands in parallel mode 920b46a53aSSimon J. Gerraty remove timeout for polling in parallel mode 930b46a53aSSimon J. Gerraty o main.c: clean up error message for malformed internal -J option 940b46a53aSSimon J. Gerraty 950b46a53aSSimon J. Gerraty2025-05-11 Simon J Gerraty <sjg@beast.crufty.net> 960b46a53aSSimon J. Gerraty 970b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250511 980b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 990b46a53aSSimon J. Gerraty o job.c: rename token pool variables to be more descriptive 1000b46a53aSSimon J. Gerraty move ContinueJobs further up, to eliminate a forward declaration 1010b46a53aSSimon J. Gerraty error out if writing to an internal pipe fails 1020b46a53aSSimon J. Gerraty clean up constant names and function names 1030b46a53aSSimon J. Gerraty use uniform debug log messages for the token pool 1040b46a53aSSimon J. Gerraty in the debug log, replace magic numbers with identifiers 1050b46a53aSSimon J. Gerraty o main.c: clean up error message for malformed internal -J option 1060b46a53aSSimon J. Gerraty o make.c: replace bitset in trace output with descriptive node 1070b46a53aSSimon J. Gerraty attributes 1080b46a53aSSimon J. Gerraty o targ.c: add end marker for -dg1, -dg2 and -dg3 debug log 1090b46a53aSSimon J. Gerraty o var.c: fix order of error messages in the ":?" modifier 1100b46a53aSSimon J. Gerraty 1110b46a53aSSimon J. Gerraty2025-04-25 Simon J Gerraty <sjg@beast.crufty.net> 1120b46a53aSSimon J. Gerraty 1130b46a53aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250424 1140b46a53aSSimon J. Gerraty Merge with NetBSD make, pick up 1150b46a53aSSimon J. Gerraty o cleanup; replace unsigned int with just unsigned 1160b46a53aSSimon J. Gerraty Inline the TMPPAT macro, as it is only needed in a single place 1170b46a53aSSimon J. Gerraty o move struct Job from job.h to job.c 1180b46a53aSSimon J. Gerraty o job.c: group the code for handling the job token pool 1190b46a53aSSimon J. Gerraty avoid excessive values of -j 1200b46a53aSSimon J. Gerraty o make.c: fix grammar in debug log message 1210b46a53aSSimon J. Gerraty 122759b177aSSimon J. Gerraty2025-04-14 Simon J Gerraty <sjg@beast.crufty.net> 123759b177aSSimon J. Gerraty 124759b177aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250414 125759b177aSSimon J. Gerraty Merge with NetBSD make, pick up 126759b177aSSimon J. Gerraty o job.c: clean up job and output handling 127759b177aSSimon J. Gerraty o parse.c: after entering POSIX mode, don't leave it again 128759b177aSSimon J. Gerraty 129759b177aSSimon J. Gerraty2025-04-11 Simon J Gerraty <sjg@beast.crufty.net> 130759b177aSSimon J. Gerraty 131759b177aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250411 132759b177aSSimon J. Gerraty Merge with NetBSD make, pick up 133759b177aSSimon J. Gerraty o convert more messages to file:line: format 134759b177aSSimon J. Gerraty o for.c: condense code for parsing variable names in .for loops 135759b177aSSimon J. Gerraty 136759b177aSSimon J. Gerraty2025-04-10 Simon J Gerraty <sjg@beast.crufty.net> 137759b177aSSimon J. Gerraty 138759b177aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250410 139759b177aSSimon J. Gerraty Merge with NetBSD make, pick up 140759b177aSSimon J. Gerraty o cond.c: remove redundant error counter when parsing a condition 141759b177aSSimon J. Gerraty 142759b177aSSimon J. Gerraty2025-04-04 Simon J Gerraty <sjg@beast.crufty.net> 143759b177aSSimon J. Gerraty 144759b177aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250404 145759b177aSSimon J. Gerraty Merge with NetBSD make, pick up 146759b177aSSimon J. Gerraty o make.1: better document meta mode. 147759b177aSSimon J. Gerraty o var.c: fix error message for undefined variable in conditional. 148759b177aSSimon J. Gerraty 149759b177aSSimon J. Gerraty2025-03-30 Simon J Gerraty <sjg@beast.crufty.net> 150759b177aSSimon J. Gerraty 151759b177aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250330 152759b177aSSimon J. Gerraty Merge with NetBSD make, pick up 153759b177aSSimon J. Gerraty o in POSIX compatability mode, give preference to sysV style modifiers. 154759b177aSSimon J. Gerraty o in stack trace with details and includes, list the current file 155759b177aSSimon J. Gerraty o parse.c: report file location in more common file:line: format. 156759b177aSSimon J. Gerraty o var.c: simplify error handling for unknown modifiers 157759b177aSSimon J. Gerraty let the ":O" and ":t" modifiers fall back to the ":from=to" modifier 158759b177aSSimon J. Gerraty stop parsing after seeing an unknown modifier in an expression 159759b177aSSimon J. Gerraty fix error message for unclosed expression and invalid :[...] 160759b177aSSimon J. Gerraty add details to errors about ::= modifier 161759b177aSSimon J. Gerraty add details about indirect modifiers to the stack traces 162759b177aSSimon J. Gerraty in stack traces from target commands, add the command level 163759b177aSSimon J. Gerraty 164759b177aSSimon J. Gerraty2025-03-23 Simon J Gerraty <sjg@beast.crufty.net> 165759b177aSSimon J. Gerraty 166759b177aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250323 167759b177aSSimon J. Gerraty Merge with NetBSD make, pick up 168759b177aSSimon J. Gerraty o var.c: just ignore attempts to override a read-only global with 169759b177aSSimon J. Gerraty the same value. 170759b177aSSimon J. Gerraty 171d9a65c5dSSimon J. Gerraty2025-03-08 Simon J Gerraty <sjg@beast.crufty.net> 172d9a65c5dSSimon J. Gerraty 173d9a65c5dSSimon J. Gerraty * bsd.after-import.mk: by default generate makefiles 174d9a65c5dSSimon J. Gerraty closer to BSD style. 175d9a65c5dSSimon J. Gerraty 176d9a65c5dSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250308 177d9a65c5dSSimon J. Gerraty Merge with NetBSD make, pick up 178d9a65c5dSSimon J. Gerraty o clean up comments and code for parallel mode 179d9a65c5dSSimon J. Gerraty o job.c: avoid SIGPIPE for children, call Job_Wait befor abort. 180d9a65c5dSSimon J. Gerraty 181d9a65c5dSSimon J. Gerraty2025-02-27 Simon J Gerraty <sjg@beast.crufty.net> 182d9a65c5dSSimon J. Gerraty 183d9a65c5dSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250225 184d9a65c5dSSimon J. Gerraty Merge with NetBSD make, pick up 185d9a65c5dSSimon J. Gerraty o job.c: reliably remove targets on interrupt, 186d9a65c5dSSimon J. Gerraty by passing signal to children first. 187d9a65c5dSSimon J. Gerraty 1886a7405f5SSimon J. Gerraty2025-01-25 Simon J Gerraty <sjg@beast.crufty.net> 1896a7405f5SSimon J. Gerraty 1906a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250125 1916a7405f5SSimon J. Gerraty Merge with NetBSD make, sync up below change. 1926a7405f5SSimon J. Gerraty 1936a7405f5SSimon J. Gerraty * unit-tests/Makefile: remove $TMPDIR via .END 1946a7405f5SSimon J. Gerraty to avoid failure in test on NFS - since the temp file for the 1956a7405f5SSimon J. Gerraty target script is open and thus gets renamed by the server rather 1966a7405f5SSimon J. Gerraty than removed. 1976a7405f5SSimon J. Gerraty 1986a7405f5SSimon J. Gerraty2025-01-20 Simon J Gerraty <sjg@beast.crufty.net> 1996a7405f5SSimon J. Gerraty 2006a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250120 2016a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2026a7405f5SSimon J. Gerraty o use FORK_FUNCTION so it can be forced to fork when doing coverage. 2036a7405f5SSimon J. Gerraty o main.c: avoid memory allocation in error path after exec failure. 2046a7405f5SSimon J. Gerraty 2056a7405f5SSimon J. Gerraty2025-01-16 Simon J Gerraty <sjg@beast.crufty.net> 2066a7405f5SSimon J. Gerraty 2076a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250116 2086a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2096a7405f5SSimon J. Gerraty o clarify that undefined expressions are allowed in dependencies 2106a7405f5SSimon J. Gerraty o simplify code for evaluating the '!=' variable assignment 2116a7405f5SSimon J. Gerraty 2126a7405f5SSimon J. Gerraty2025-01-11 Simon J Gerraty <sjg@beast.crufty.net> 2136a7405f5SSimon J. Gerraty 2146a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250111 2156a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2166a7405f5SSimon J. Gerraty o replace "Malformed conditional" with "Variable is undefined" 2176a7405f5SSimon J. Gerraty when appropriate 2186a7405f5SSimon J. Gerraty 2196a7405f5SSimon J. Gerraty2025-01-10 Simon J Gerraty <sjg@beast.crufty.net> 2206a7405f5SSimon J. Gerraty 2216a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250110 2226a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2236a7405f5SSimon J. Gerraty o job.c: remove some unnecessary layers in job handling 2246a7405f5SSimon J. Gerraty o unit-tests: test expressions based on undefined variables 2256a7405f5SSimon J. Gerraty 2266a7405f5SSimon J. Gerraty2025-01-01 Simon J Gerraty <sjg@beast.crufty.net> 2276a7405f5SSimon J. Gerraty 2286a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20250101 2296a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2306a7405f5SSimon J. Gerraty o var.c: reduce pointer indirections when unexporting a variable 2316a7405f5SSimon J. Gerraty 2326a7405f5SSimon J. Gerraty2024-12-12 Simon J Gerraty <sjg@beast.crufty.net> 2336a7405f5SSimon J. Gerraty 2346a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20241212 2356a7405f5SSimon J. Gerraty * mk/ updates 2366a7405f5SSimon J. Gerraty 2376a7405f5SSimon J. Gerraty2024-11-24 Simon J Gerraty <sjg@beast.crufty.net> 2386a7405f5SSimon J. Gerraty 2396a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20241124 2406a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2416a7405f5SSimon J. Gerraty o var.c: fix confusing error message when overriding a read-only 2426a7405f5SSimon J. Gerraty variable 2436a7405f5SSimon J. Gerraty 2446a7405f5SSimon J. Gerraty2024-11-22 Simon J Gerraty <sjg@beast.crufty.net> 2456a7405f5SSimon J. Gerraty 2466a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20241122 2476a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2486a7405f5SSimon J. Gerraty o unit-tests/Makefile: optimize running of tests skip extra cat 2496a7405f5SSimon J. Gerraty in 99% of cases. 2506a7405f5SSimon J. Gerraty 2516a7405f5SSimon J. Gerraty2024-11-15 Simon J Gerraty <sjg@beast.crufty.net> 2526a7405f5SSimon J. Gerraty 2536a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20241114 2546a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2556a7405f5SSimon J. Gerraty o make.1: note that MAKEOBJPREFIX should be absolute path 2566a7405f5SSimon J. Gerraty also that it can be set via makefile if suitable care taken. 2576a7405f5SSimon J. Gerraty 2586a7405f5SSimon J. Gerraty2024-11-10 Simon J Gerraty <sjg@beast.crufty.net> 2596a7405f5SSimon J. Gerraty 2606a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20241110 2616a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2626a7405f5SSimon J. Gerraty o make: allow .../ (search here and above) in 2636a7405f5SSimon J. Gerraty .MAKE.MAKEFILE_PREFERENCE and -f argument. 2646a7405f5SSimon J. Gerraty 2656a7405f5SSimon J. Gerraty2024-11-03 Simon J Gerraty <sjg@beast.crufty.net> 2666a7405f5SSimon J. Gerraty 2676a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20241101 2686a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2696a7405f5SSimon J. Gerraty o parse.c: report filename:linenumber in parse debug output 2706a7405f5SSimon J. Gerraty 2716a7405f5SSimon J. Gerraty2024-09-21 Simon J Gerraty <sjg@beast.crufty.net> 2726a7405f5SSimon J. Gerraty 2736a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240921 2746a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2756a7405f5SSimon J. Gerraty o make.1: Only list the defaults for MAKEFILE_PREFERENCE once. 2766a7405f5SSimon J. Gerraty 2776a7405f5SSimon J. Gerraty * Makefile: use genfiles.mk to generate ${MAN} 2786a7405f5SSimon J. Gerraty so that it can be tuned for local site. 2796a7405f5SSimon J. Gerraty Ensure MAN is defined before including Makefile.inc 2806a7405f5SSimon J. Gerraty 2816a7405f5SSimon J. Gerraty * Makefile: use MK_GEN_MAN to make it easier to control whether we 2826a7405f5SSimon J. Gerraty generate ${MAN} 2836a7405f5SSimon J. Gerraty 2846a7405f5SSimon J. Gerraty2024-09-16 Simon J Gerraty <sjg@beast.crufty.net> 2856a7405f5SSimon J. Gerraty 2866a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240909 2876a7405f5SSimon J. Gerraty 2886a7405f5SSimon J. Gerraty * arch.c: fix NetBSD PR 58597 2896a7405f5SSimon J. Gerraty 2906a7405f5SSimon J. Gerraty2024-09-01 Simon J Gerraty <sjg@beast.crufty.net> 2916a7405f5SSimon J. Gerraty 2926a7405f5SSimon J. Gerraty * Makefile: use SUBDIR.${MK_TESTS} so that we skip 2936a7405f5SSimon J. Gerraty unit-tests for obj and clean when FreeBSD is building WITHOUT_TESTS 2946a7405f5SSimon J. Gerraty 2956a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240901 2966a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 2976a7405f5SSimon J. Gerraty o reduce line length in error messages 2986a7405f5SSimon J. Gerraty o var.c: simplify printing of an evaluation stack element 2996a7405f5SSimon J. Gerraty 3006a7405f5SSimon J. Gerraty2024-08-29 Simon J Gerraty <sjg@beast.crufty.net> 3016a7405f5SSimon J. Gerraty 3026a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240828 3036a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 3046a7405f5SSimon J. Gerraty o add more context to error message about recursive variables 3056a7405f5SSimon J. Gerraty o treat recursive variables non-fatally - continue parsing to end 3066a7405f5SSimon J. Gerraty of makefile 3076a7405f5SSimon J. Gerraty 3086a7405f5SSimon J. Gerraty2024-08-12 Simon J Gerraty <sjg@beast.crufty.net> 3096a7405f5SSimon J. Gerraty 3106a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240808 3116a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 3126a7405f5SSimon J. Gerraty o improve some error messages for better clarify and readability 3136a7405f5SSimon J. Gerraty 3146a7405f5SSimon J. Gerraty2024-07-22 Simon J Gerraty <sjg@beast.crufty.net> 3156a7405f5SSimon J. Gerraty 3166a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240722 3176a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 3186a7405f5SSimon J. Gerraty o job.c: remove dead code 3196a7405f5SSimon J. Gerraty 3206a7405f5SSimon J. Gerraty2024-07-21 Simon J Gerraty <sjg@beast.crufty.net> 3216a7405f5SSimon J. Gerraty 3226a7405f5SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240720 3236a7405f5SSimon J. Gerraty Merge with NetBSD make, pick up 3246a7405f5SSimon J. Gerraty o compat.c: do not run commands that have parse or evaluation errors. 3256a7405f5SSimon J. Gerraty o var.c: remove wrong error message about an undefined variable 3266a7405f5SSimon J. Gerraty 32722619282SSimon J. Gerraty2024-07-13 Simon J Gerraty <sjg@beast.crufty.net> 32822619282SSimon J. Gerraty 32922619282SSimon J. Gerraty * cleanup redundant differences from NetBSD make 33022619282SSimon J. Gerraty o parse.c: no longer uses mmap 33122619282SSimon J. Gerraty o var.c: check __STDC_VERSION__ not __STDC__ 33222619282SSimon J. Gerraty 33322619282SSimon J. Gerraty2024-07-12 Simon J Gerraty <sjg@beast.crufty.net> 33422619282SSimon J. Gerraty 33522619282SSimon J. Gerraty * Apply some patches from NetBSD pkgsrc to reduce divergence 33622619282SSimon J. Gerraty o meta.c: requires sys/select.h if available 33722619282SSimon J. Gerraty o var.c: ensure SIZE_MAX has a value 33822619282SSimon J. Gerraty o util.c: ensure SA_RESTART is defined 33922619282SSimon J. Gerraty 34022619282SSimon J. Gerraty * configure.in: use *ksh* rather than just *ksh to match 34122619282SSimon J. Gerraty ksh shell specification. 34222619282SSimon J. Gerraty 34322619282SSimon J. Gerraty * unit-tests/Makefile: expand BROKEN_TESTS for ksh and 34422619282SSimon J. Gerraty mksh in particular 34522619282SSimon J. Gerraty 34622619282SSimon J. Gerraty2024-07-11 Simon J Gerraty <sjg@beast.crufty.net> 34722619282SSimon J. Gerraty 34822619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240711 34922619282SSimon J. Gerraty Merge with NetBSD make, pick up 35022619282SSimon J. Gerraty o compat.c: allow Compat_RunCommand to also handle very long 35122619282SSimon J. Gerraty commands by writing to a temp file when needed. 35222619282SSimon J. Gerraty o main.c: extract the temp file logic recently added to Cmd_Exec 35322619282SSimon J. Gerraty to Cmd_Argv so it can be leveraged by Compat_RunCommand. 35422619282SSimon J. Gerraty 35522619282SSimon J. Gerraty2024-07-09 Simon J Gerraty <sjg@beast.crufty.net> 35622619282SSimon J. Gerraty 35722619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240709 35822619282SSimon J. Gerraty Merge with NetBSD make, pick up 35922619282SSimon J. Gerraty o error out on parse/evaluation errors in shell commands 36022619282SSimon J. Gerraty o var.c: error out on syntax errors in ':M' and ':N' modifiers 36122619282SSimon J. Gerraty 36222619282SSimon J. Gerraty2024-07-07 Simon J Gerraty <sjg@beast.crufty.net> 36322619282SSimon J. Gerraty 36422619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240707 36522619282SSimon J. Gerraty Merge with NetBSD make, pick up 36622619282SSimon J. Gerraty o only generate code for cleanup functions in CLEANUP mode 36722619282SSimon J. Gerraty o hash.c: don't track hash table chain lengths during lookup 36822619282SSimon J. Gerraty unless debugging 36922619282SSimon J. Gerraty o main.c: move initialization of variable scopes to targ.c 37022619282SSimon J. Gerraty o var.c: remove Var_End as it is now unnecessary 37122619282SSimon J. Gerraty 37222619282SSimon J. Gerraty2024-07-06 Simon J Gerraty <sjg@beast.crufty.net> 37322619282SSimon J. Gerraty 37422619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240706 37522619282SSimon J. Gerraty Merge with NetBSD make, pick up 37622619282SSimon J. Gerraty o reduce lint comments about ARGSUSED 37722619282SSimon J. Gerraty o cond.c: error out on conditions containing the operators '&' and '|' 37822619282SSimon J. Gerraty o str.c: error out on a matching malformed matching pattern '[[' 37922619282SSimon J. Gerraty o var.c: in error messages, distinguish parsing from evaluating 38022619282SSimon J. Gerraty in error messages for anonymous variables, log the value 38122619282SSimon J. Gerraty error out on unclosed expressions during parse time 38222619282SSimon J. Gerraty 38322619282SSimon J. Gerraty2024-07-04 Simon J Gerraty <sjg@beast.crufty.net> 38422619282SSimon J. Gerraty 38522619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240704 38622619282SSimon J. Gerraty Merge with NetBSD make, pick up 38722619282SSimon J. Gerraty o add more context information to error messages 38822619282SSimon J. Gerraty o main.c: on error, print the targets to be made 38922619282SSimon J. Gerraty add detailed exit status to message for failed sub-commands 39022619282SSimon J. Gerraty o var.c: error out on the "Bad modifier" error message 39122619282SSimon J. Gerraty 39222619282SSimon J. Gerraty2024-07-01 Simon J Gerraty <sjg@beast.crufty.net> 39322619282SSimon J. Gerraty 39422619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240701 39522619282SSimon J. Gerraty Merge with NetBSD make, pick up 39622619282SSimon J. Gerraty o var.c: add :tt for Title case 39722619282SSimon J. Gerraty 39822619282SSimon J. Gerraty2024-06-30 Simon J Gerraty <sjg@beast.crufty.net> 39922619282SSimon J. Gerraty 40022619282SSimon J. Gerraty * configure.in: 20240630 further refine check for whether 40122619282SSimon J. Gerraty TZ=Europe/Berlin works 40222619282SSimon J. Gerraty 40322619282SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240630 40422619282SSimon J. Gerraty Merge with NetBSD make, pick up 40522619282SSimon J. Gerraty o job.c: reduce use of UNCONST 40622619282SSimon J. Gerraty o main.c: add detailed exit status to message for failed sub-commands 40722619282SSimon J. Gerraty o var.c: error out on some more syntax errors 40822619282SSimon J. Gerraty add more context to "returned non-zero status" message 40922619282SSimon J. Gerraty 4108d5c8e21SSimon J. Gerraty2024-06-25 Simon J Gerraty <sjg@beast.crufty.net> 4118d5c8e21SSimon J. Gerraty 4128d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240625 4138d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 4148d5c8e21SSimon J. Gerraty o job.c: ensure shellPath is always duped, avoid upsetting free() 4158d5c8e21SSimon J. Gerraty 4168d5c8e21SSimon J. Gerraty2024-06-16 Simon J Gerraty <sjg@beast.crufty.net> 4178d5c8e21SSimon J. Gerraty 4188d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240616 4198d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 4208d5c8e21SSimon J. Gerraty o clean up collection of context information for error messages 4218d5c8e21SSimon J. Gerraty o in warnings, move the word "warning" to the front 4228d5c8e21SSimon J. Gerraty o var.c: throw an error on attempt to override an internal 4238d5c8e21SSimon J. Gerraty read-only variable 4248d5c8e21SSimon J. Gerraty 4258d5c8e21SSimon J. Gerraty2024-06-10 Simon J Gerraty <sjg@beast.crufty.net> 4268d5c8e21SSimon J. Gerraty 4278d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240610 4288d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 4298d5c8e21SSimon J. Gerraty o for.c: remove redundant shortcut for building the .for loop body 4308d5c8e21SSimon J. Gerraty 4318d5c8e21SSimon J. Gerraty2024-06-02 Simon J Gerraty <sjg@beast.crufty.net> 4328d5c8e21SSimon J. Gerraty 4338d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240602 4348d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 4358d5c8e21SSimon J. Gerraty o rename some VarEvalMode constants to better match debug names. 4368d5c8e21SSimon J. Gerraty o var.c: avoid out-of-bounds read when parsing indirect modifiers. 4378d5c8e21SSimon J. Gerraty 4388d5c8e21SSimon J. Gerraty2024-06-01 Simon J Gerraty <sjg@beast.crufty.net> 4398d5c8e21SSimon J. Gerraty 4408d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240601 4418d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 4428d5c8e21SSimon J. Gerraty o add .export-all rather than allow .export with no argument 4438d5c8e21SSimon J. Gerraty which can happen accidentally. 4448d5c8e21SSimon J. Gerraty o if lua is available, run check-expect.lua after unit-tests 4458d5c8e21SSimon J. Gerraty o main.c: use snprintf rather than strncpy 4468d5c8e21SSimon J. Gerraty fix memory leak when purging realpath cache. 4478d5c8e21SSimon J. Gerraty 4488d5c8e21SSimon J. Gerraty2024-05-28 Simon J Gerraty <sjg@beast.crufty.net> 4498d5c8e21SSimon J. Gerraty 4508d5c8e21SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240528 4518d5c8e21SSimon J. Gerraty Merge with NetBSD make, pick up 4528d5c8e21SSimon J. Gerraty o fix a number of memory leaks 4538d5c8e21SSimon J. Gerraty o replace magic numbers with POSIX FILENO constants 4548d5c8e21SSimon J. Gerraty o hash.c: remove dead code from HashTable_DeleteEntry 4558d5c8e21SSimon J. Gerraty o main.c: when complaining about unusable .OBJDIR 4568d5c8e21SSimon J. Gerraty call PrintOnError if MAKE_DEBUG_OBJDIR_CHECK_WRITABLE is true. 4578d5c8e21SSimon J. Gerraty o parse.c: use fewer technical terms in debug message for dependency 4588d5c8e21SSimon J. Gerraty 4599d3df31eSSimon J. Gerraty2024-05-20 Simon J Gerraty <sjg@beast.crufty.net> 4609d3df31eSSimon J. Gerraty 4619d3df31eSSimon J. Gerraty * VERSION (_MAKE_VERSION): 4629d3df31eSSimon J. Gerraty Merge with NetBSD make, pick up 4639d3df31eSSimon J. Gerraty o dir.c: in FindFile restore last search of .CURDIR even for 4649d3df31eSSimon J. Gerraty includes, as a number of existing makefiles are broken otherwise. 4659d3df31eSSimon J. Gerraty 4669d3df31eSSimon J. Gerraty2024-05-19 Simon J Gerraty <sjg@beast.crufty.net> 4679d3df31eSSimon J. Gerraty 4689d3df31eSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240519 4699d3df31eSSimon J. Gerraty Merge with NetBSD make, pick up 4709d3df31eSSimon J. Gerraty o dir.c: Add Dir_FindInclude, FindFile without looking in .CURDIR. 4719d3df31eSSimon J. Gerraty Also fix Dir_SetSYSPATH to use defSysIncPath if sysIncPath is empty. 4729d3df31eSSimon J. Gerraty o main.c: no need to set .DOTLAST in sysIncPath 4739d3df31eSSimon J. Gerraty 474c9f4001fSSimon J. Gerraty2024-05-07 Simon J Gerraty <sjg@beast.crufty.net> 475c9f4001fSSimon J. Gerraty 476c9f4001fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240508 477c9f4001fSSimon J. Gerraty Merge with NetBSD make, pick up 478c9f4001fSSimon J. Gerraty o make: ensure variables set on command line get added to 479c9f4001fSSimon J. Gerraty .MAKEOVERRIDES (even if they start with '.') so they are passed to 480c9f4001fSSimon J. Gerraty sub-makes. 481c9f4001fSSimon J. Gerraty 482548bfc56SSimon J. Gerraty2024-04-30 Simon J Gerraty <sjg@beast.crufty.net> 483548bfc56SSimon J. Gerraty 484548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240430 485548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 486548bfc56SSimon J. Gerraty o main.c: ensure '.include <makefile>' respects MAKESYSPATH. 487548bfc56SSimon J. Gerraty Dir_FindFile will search .CURDIR first unless ".DOTLAST" is seen. 488548bfc56SSimon J. Gerraty 489548bfc56SSimon J. Gerraty2024-04-28 Simon J Gerraty <sjg@beast.crufty.net> 490548bfc56SSimon J. Gerraty 491548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240428 492548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 493548bfc56SSimon J. Gerraty o simplify freeing of lists 494548bfc56SSimon J. Gerraty o arch.c: trim pointless comments 495548bfc56SSimon J. Gerraty o var.c: delay variable assignments until actually needed 496548bfc56SSimon J. Gerraty don't reallocate memory after evaluating an expression, result is 497548bfc56SSimon J. Gerraty almost always short-lived. 498548bfc56SSimon J. Gerraty 499548bfc56SSimon J. Gerraty2024-04-26 Simon J Gerraty <sjg@beast.crufty.net> 500548bfc56SSimon J. Gerraty 501548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240426 502548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 503548bfc56SSimon J. Gerraty o job.c: in debug output, print the directory in which a job 504548bfc56SSimon J. Gerraty failed at same time as failed target so it is more easily found in 505548bfc56SSimon J. Gerraty build log. 506548bfc56SSimon J. Gerraty 507548bfc56SSimon J. Gerraty2024-04-24 Simon J Gerraty <sjg@beast.crufty.net> 508548bfc56SSimon J. Gerraty 509548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240424 510548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 511548bfc56SSimon J. Gerraty o clean up comments, code and tests 512548bfc56SSimon J. Gerraty 513548bfc56SSimon J. Gerraty2024-04-23 Simon J Gerraty <sjg@beast.crufty.net> 514548bfc56SSimon J. Gerraty 515548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240422 516548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 517548bfc56SSimon J. Gerraty o var.c: avoid LazyBuf for :*time modifiers. 518548bfc56SSimon J. Gerraty LazyBuf's are not nul terminated so not suitable for passing to 519548bfc56SSimon J. Gerraty functions that expect that. These modifiers are used sparingly so 520548bfc56SSimon J. Gerraty an extra allocation is not a problem. 521548bfc56SSimon J. Gerraty 522548bfc56SSimon J. Gerraty2024-04-20 Simon J Gerraty <sjg@beast.crufty.net> 523548bfc56SSimon J. Gerraty 524548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240420 525548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 526548bfc56SSimon J. Gerraty o provide more context information for parse/evaluate errors 527548bfc56SSimon J. Gerraty 528548bfc56SSimon J. Gerraty2024-04-14 Simon J Gerraty <sjg@beast.crufty.net> 529548bfc56SSimon J. Gerraty 530548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240414 531548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 532548bfc56SSimon J. Gerraty o parse.c: print -dp debug info earlier so we see which 533548bfc56SSimon J. Gerraty .if or .for line is being parsed. 534548bfc56SSimon J. Gerraty 535548bfc56SSimon J. Gerraty2024-04-04 Simon J Gerraty <sjg@beast.crufty.net> 536548bfc56SSimon J. Gerraty 537548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240404 538548bfc56SSimon J. Gerraty Merge with NetBSD make, pick up 539548bfc56SSimon J. Gerraty o fix some unit tests for Cygwin 540548bfc56SSimon J. Gerraty o parse.c: exit immediately after reading a null byte from a makefile 541548bfc56SSimon J. Gerraty 542548bfc56SSimon J. Gerraty * fix generation of bmake.cat1 543548bfc56SSimon J. Gerraty 544548bfc56SSimon J. Gerraty2024-03-19 Simon J Gerraty <sjg@beast.crufty.net> 545548bfc56SSimon J. Gerraty 546548bfc56SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240314 547548bfc56SSimon J. Gerraty Add/Improve support for Cygwin 548548bfc56SSimon J. Gerraty o uname -s output isn't useful so allow configure to 549548bfc56SSimon J. Gerraty set FORCE_MAKE_OS - to force the value of .MAKE.OS 550548bfc56SSimon J. Gerraty and use Cygwin which matches uname -o 551548bfc56SSimon J. Gerraty o fix some unit-tests for Cygwin 552548bfc56SSimon J. Gerraty 553c59c3bf3SSimon J. Gerraty2024-03-10 Simon J Gerraty <sjg@beast.crufty.net> 554c59c3bf3SSimon J. Gerraty 555c59c3bf3SSimon J. Gerraty * boot-strap: tests can take a long time; use a cookie to 556c59c3bf3SSimon J. Gerraty skip them if bmake has not been updated since tests last 557c59c3bf3SSimon J. Gerraty ran successfully. 558c59c3bf3SSimon J. Gerraty 559c59c3bf3SSimon J. Gerraty * Makefile: Cygwin handles MANTARGET man 560c59c3bf3SSimon J. Gerraty 561c59c3bf3SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for Cygwin 562c59c3bf3SSimon J. Gerraty 563c59c3bf3SSimon J. Gerraty2024-03-09 Simon J Gerraty <sjg@beast.crufty.net> 564c59c3bf3SSimon J. Gerraty 565c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240309 566c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 567c59c3bf3SSimon J. Gerraty o set .ERROR_EXIT to the exit status of .ERROR_TARGET 568c59c3bf3SSimon J. Gerraty this allows a .ERROR target to ignore the case of 569c59c3bf3SSimon J. Gerraty .ERROR_EXIT==6 which just means that the build actually 570c59c3bf3SSimon J. Gerraty failed somewhere else. 571c59c3bf3SSimon J. Gerraty 572c59c3bf3SSimon J. Gerraty2024-03-04 Simon J Gerraty <sjg@beast.crufty.net> 573c59c3bf3SSimon J. Gerraty 574c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240303 575c59c3bf3SSimon J. Gerraty 576c59c3bf3SSimon J. Gerraty * var.c: on IRIX we need both inttypes.h and stdint.h 577c59c3bf3SSimon J. Gerraty 578c59c3bf3SSimon J. Gerraty2024-03-01 Simon J Gerraty <sjg@beast.crufty.net> 579c59c3bf3SSimon J. Gerraty 580c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240301 581c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 582c59c3bf3SSimon J. Gerraty o export variables with value from target scope 583c59c3bf3SSimon J. Gerraty when appropriate. 584c59c3bf3SSimon J. Gerraty 585c59c3bf3SSimon J. Gerraty2024-02-12 Simon J Gerraty <sjg@beast.crufty.net> 586c59c3bf3SSimon J. Gerraty 587c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240212 588c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 589c59c3bf3SSimon J. Gerraty o remove unneeded conditional-compilation toggles 590c59c3bf3SSimon J. Gerraty INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB, 591c59c3bf3SSimon J. Gerraty GMAKEEXPORT NO_REGEX and SUNSHCMD 592c59c3bf3SSimon J. Gerraty 593c59c3bf3SSimon J. Gerraty * configure.in: add check for regex.h 594c59c3bf3SSimon J. Gerraty 595c59c3bf3SSimon J. Gerraty * var.c: replace use of NO_REGEX with HAVE_REGEX_H 596c59c3bf3SSimon J. Gerraty 597c59c3bf3SSimon J. Gerraty2024-02-04 Simon J Gerraty <sjg@beast.crufty.net> 598c59c3bf3SSimon J. Gerraty 599c59c3bf3SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240204 600c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 601c59c3bf3SSimon J. Gerraty o var.c: fix some lint (-dL) mode parsing issues 602c59c3bf3SSimon J. Gerraty 603c59c3bf3SSimon J. Gerraty2024-02-02 Simon J Gerraty <sjg@beast.crufty.net> 604c59c3bf3SSimon J. Gerraty 605c59c3bf3SSimon J. Gerraty * VERSION: (_MAKE_VERSION): 20240202 606c59c3bf3SSimon J. Gerraty Merge with NetBSD make, pick up 607c59c3bf3SSimon J. Gerraty o make.1: note that arg to :D and :U can be empty 608c59c3bf3SSimon J. Gerraty o var.c: $$ is not a parse error when .MAKE.SAVE_DOLLARS=no 609c59c3bf3SSimon J. Gerraty 610d5e0a182SSimon J. Gerraty2024-01-08 Simon J Gerraty <sjg@beast.crufty.net> 611d5e0a182SSimon J. Gerraty 612d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240108 613d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 614d5e0a182SSimon J. Gerraty o miscellaneous cleanups 615d5e0a182SSimon J. Gerraty 616d5e0a182SSimon J. Gerraty2024-01-06 Simon J Gerraty <sjg@beast.crufty.net> 617d5e0a182SSimon J. Gerraty 618d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240106 619d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 620d5e0a182SSimon J. Gerraty o fix duplicate progname when reporting an unknown target 621d5e0a182SSimon J. Gerraty o unit tests for Cmd_Exec using temp file 622d5e0a182SSimon J. Gerraty 623d5e0a182SSimon J. Gerraty2024-01-05 Simon J Gerraty <sjg@beast.crufty.net> 624d5e0a182SSimon J. Gerraty 625d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240105 626d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 627d5e0a182SSimon J. Gerraty o main.c: Cmd_Exec write cmd to a file if too big 628d5e0a182SSimon J. Gerraty avoid blowing commandline/env limits 629d5e0a182SSimon J. Gerraty 630d5e0a182SSimon J. Gerraty2024-01-02 Simon J Gerraty <sjg@beast.crufty.net> 631d5e0a182SSimon J. Gerraty 632d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20240101 633d5e0a182SSimon J. Gerraty o util.c: flesh out more of strftime 634d5e0a182SSimon J. Gerraty * configure.in: add --with-bmake-strftime 635d5e0a182SSimon J. Gerraty it is not a full implementation but enough to pass all 636d5e0a182SSimon J. Gerraty the unit-tests. 637d5e0a182SSimon J. Gerraty * parse.c: LoadFile do not append \n to empty buffer. 638d5e0a182SSimon J. Gerraty 639d5e0a182SSimon J. Gerraty2023-12-30 Simon J Gerraty <sjg@beast.crufty.net> 640d5e0a182SSimon J. Gerraty 641d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231230 642d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 643d5e0a182SSimon J. Gerraty o simplify memory allocation for string buffers 644d5e0a182SSimon J. Gerraty o fix declared types of list nodes 645d5e0a182SSimon J. Gerraty o suff.c: clean up freeing of suffixes 646d5e0a182SSimon J. Gerraty o var.c: simplify debug message for the ':@var@...@' modifier 647d5e0a182SSimon J. Gerraty clean up variable handling 648d5e0a182SSimon J. Gerraty 649d5e0a182SSimon J. Gerraty2023-12-26 Simon J Gerraty <sjg@beast.crufty.net> 650d5e0a182SSimon J. Gerraty 651d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231226 652d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 653d5e0a182SSimon J. Gerraty o compat.c: ensure make's output is correctly ordered with that of 654d5e0a182SSimon J. Gerraty the target when not going to a tty 655d5e0a182SSimon J. Gerraty o main.c: check for shellPath whether to call Shell_Init() 656d5e0a182SSimon J. Gerraty 657d5e0a182SSimon J. Gerraty2023-12-24 Simon J Gerraty <sjg@beast.crufty.net> 658d5e0a182SSimon J. Gerraty 659d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231224 660d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 661d5e0a182SSimon J. Gerraty o compat.c: check for shellPath whether to call Shell_Init() 662d5e0a182SSimon J. Gerraty tweak the unit test to detect the bug thus fixed. 663d5e0a182SSimon J. Gerraty o make.1: do not claim .SHELL is only used by jobs mode. 664d5e0a182SSimon J. Gerraty 665d5e0a182SSimon J. Gerraty2023-12-22 Simon J Gerraty <sjg@beast.crufty.net> 666d5e0a182SSimon J. Gerraty 667d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231220 668d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 669d5e0a182SSimon J. Gerraty o str.c: speed up pattern matching in the ':M' modifier 670d5e0a182SSimon J. Gerraty o var.c: fix confusing debug logging when deleting a variable 671d5e0a182SSimon J. Gerraty use consistent debug messages style when ignoring variables 672d5e0a182SSimon J. Gerraty 673d5e0a182SSimon J. Gerraty2023-12-10 Simon J Gerraty <sjg@beast.crufty.net> 674d5e0a182SSimon J. Gerraty 675d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231210 676d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 677d5e0a182SSimon J. Gerraty o var.c: avoid segfault on empty :C match expression 678d5e0a182SSimon J. Gerraty explain in debug log why variable assignment is ignored. 679d5e0a182SSimon J. Gerraty 680d5e0a182SSimon J. Gerraty2023-12-08 Simon J Gerraty <sjg@beast.crufty.net> 681d5e0a182SSimon J. Gerraty 682d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231208 683d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 684d5e0a182SSimon J. Gerraty o var.c: ensure fromCmd is set correctly for variables set on 685d5e0a182SSimon J. Gerraty command line. 686d5e0a182SSimon J. Gerraty 687d5e0a182SSimon J. Gerraty2023-11-26 Simon J Gerraty <sjg@beast.crufty.net> 688d5e0a182SSimon J. Gerraty 689d5e0a182SSimon J. Gerraty * configure.in: disable generation of 'makefile' for 690d5e0a182SSimon J. Gerraty Darwin by default. 691d5e0a182SSimon J. Gerraty 692d5e0a182SSimon J. Gerraty * boot-strap: docuement --without-makefile 693d5e0a182SSimon J. Gerraty 694d5e0a182SSimon J. Gerraty2023-11-24 Simon J Gerraty <sjg@beast.crufty.net> 695d5e0a182SSimon J. Gerraty 696d5e0a182SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20231124 697d5e0a182SSimon J. Gerraty Merge with NetBSD make, pick up 698d5e0a182SSimon J. Gerraty o main.c: cleanup processing of -j 699d5e0a182SSimon J. Gerraty fix lint warning about strchr 700d5e0a182SSimon J. Gerraty o var.c: more accurate error message for invalid ':mtime' argument 701d5e0a182SSimon J. Gerraty cleanup :[...] modifier 702d5e0a182SSimon J. Gerraty avoid reading beyond substring when comparing 703d5e0a182SSimon J. Gerraty o unit-tests cover all cases of :mtime, test and explain exporting 704d5e0a182SSimon J. Gerraty of variables 705d5e0a182SSimon J. Gerraty o cleanup comments 706d5e0a182SSimon J. Gerraty 707d5e0a182SSimon J. Gerraty2023-09-17 Simon J Gerraty <sjg@beast.crufty.net> 708d5e0a182SSimon J. Gerraty 709d5e0a182SSimon J. Gerraty * bsd.after-import.mk (ECHO_TAG): FreeBSD no longer uses 710d5e0a182SSimon J. Gerraty $FreeBSD$ tag, so avoid adding it. 711d5e0a182SSimon J. Gerraty 71298875883SSimon J. Gerraty2023-09-09 Simon J Gerraty <sjg@beast.crufty.net> 71398875883SSimon J. Gerraty 71498875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230909 71598875883SSimon J. Gerraty Merge with NetBSD make, pick up 71698875883SSimon J. Gerraty o main.c: allow -j to compute a multiple of ncpu 71798875883SSimon J. Gerraty If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating 71898875883SSimon J. Gerraty point number or ends in 'C' compute .MAKE.JOBS as a multiple of 71998875883SSimon J. Gerraty _SC_NPROCESSORS_ONLN 72098875883SSimon J. Gerraty .MAKE.JOBS.C will be "yes" if -jC is supported 72198875883SSimon J. Gerraty 72298875883SSimon J. Gerraty2023-08-20 Simon J Gerraty <sjg@beast.crufty.net> 72398875883SSimon J. Gerraty 72498875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230820 72598875883SSimon J. Gerraty Merge with NetBSD make, pick up 72698875883SSimon J. Gerraty o make.1: note that :localtime is better for %s 72798875883SSimon J. Gerraty o parse.c: improve error messages for invalid input. 72898875883SSimon J. Gerraty o var.c: fix for %s:L:gmtime - set TZ=UTC and use localtime to get 72998875883SSimon J. Gerraty correct result, it is still better to use %s:L:localtime. 73098875883SSimon J. Gerraty 73198875883SSimon J. Gerraty2023-08-18 Simon J Gerraty <sjg@beast.crufty.net> 73298875883SSimon J. Gerraty 73398875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230818 73498875883SSimon J. Gerraty Merge with NetBSD make, pick up 73598875883SSimon J. Gerraty o meta.c: meta_ignore - check raw path against metaIgnorePaths 73698875883SSimon J. Gerraty to potentially skip call to realpath. 73798875883SSimon J. Gerraty o var.c: be strict when parsing the argument of the ':mtime' modifier 73898875883SSimon J. Gerraty o unit-tests/varmod-mtime.mk: document why '${%s:L:localtime}' 73998875883SSimon J. Gerraty should be used to get an equivalent value to time(3). 74098875883SSimon J. Gerraty 74198875883SSimon J. Gerraty2023-08-16 Simon J Gerraty <sjg@beast.crufty.net> 74298875883SSimon J. Gerraty 74398875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230816 74498875883SSimon J. Gerraty Merge with NetBSD make, pick up 74598875883SSimon J. Gerraty o cond.c: clean up multiple-inclusion guards 74698875883SSimon J. Gerraty 74798875883SSimon J. Gerraty2023-07-25 Simon J Gerraty <sjg@beast.crufty.net> 74898875883SSimon J. Gerraty 74998875883SSimon J. Gerraty * unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS 75098875883SSimon J. Gerraty if configure cannot work out how to control TZ. 75198875883SSimon J. Gerraty Remove varmod-localtime from BROKEN_TESTS for IRIX* 75298875883SSimon J. Gerraty 75398875883SSimon J. Gerraty2023-07-24 Simon J Gerraty <sjg@beast.crufty.net> 75498875883SSimon J. Gerraty 75598875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230723 75698875883SSimon J. Gerraty 75798875883SSimon J. Gerraty * configure.in: fix the test for wether TZ=Europe/Berlin works. 75898875883SSimon J. Gerraty Depending on the time of year, if run between 22:00 and 00:00 UTC 75998875883SSimon J. Gerraty the check in configure would fail incorrectly. 76098875883SSimon J. Gerraty Take the day into account as well. 76198875883SSimon J. Gerraty 76298875883SSimon J. Gerraty2023-07-18 Simon J Gerraty <sjg@beast.crufty.net> 76398875883SSimon J. Gerraty 76498875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 76598875883SSimon J. Gerraty Merge with NetBSD make, pick up 76698875883SSimon J. Gerraty o make.1: clean up wording, clarify scope of '!' in conditions 76798875883SSimon J. Gerraty 76898875883SSimon J. Gerraty2023-07-15 Simon J Gerraty <sjg@beast.crufty.net> 76998875883SSimon J. Gerraty 77098875883SSimon J. Gerraty * make-bootstrap.sh.in: set prefix 77198875883SSimon J. Gerraty If configure is run using ksh we get unexpanded ${prefix} in 77298875883SSimon J. Gerraty DEFAULT_SYS_PATH, by ensuring prefix is set we should still get 77398875883SSimon J. Gerraty correct result. 77498875883SSimon J. Gerraty 77598875883SSimon J. Gerraty2023-07-13 Simon J Gerraty <sjg@beast.crufty.net> 77698875883SSimon J. Gerraty 77798875883SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230711 77898875883SSimon J. Gerraty bump version for IRIX tweaks 77998875883SSimon J. Gerraty 78098875883SSimon J. Gerraty * make.h: undef OP_NONE if defined 78198875883SSimon J. Gerraty 78298875883SSimon J. Gerraty * unit-tests/Makefile: set BROKEN_TESTS for IRIX 78398875883SSimon J. Gerraty 78498875883SSimon J. Gerraty * configure.in: override INSTALL on IRIX 78598875883SSimon J. Gerraty 78698875883SSimon J. Gerraty2023-06-27 Simon J Gerraty <sjg@beast.crufty.net> 78798875883SSimon J. Gerraty 78898875883SSimon J. Gerraty * boot-strap op_test: ensure we set TEST_MAKE as we want it. 78998875883SSimon J. Gerraty 790148ee845SSimon J. Gerraty2023-06-22 Simon J Gerraty <sjg@beast.crufty.net> 791148ee845SSimon J. Gerraty 792148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230622 793148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 794148ee845SSimon J. Gerraty o optimize string matching for ':M' and ':N' 795148ee845SSimon J. Gerraty o warn about malformed patterns in ':M', ':N' and '.if make(...)' 796148ee845SSimon J. Gerraty 797148ee845SSimon J. Gerraty2023-06-21 Simon J Gerraty <sjg@beast.crufty.net> 798148ee845SSimon J. Gerraty 799148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230621 800148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 801148ee845SSimon J. Gerraty o more extensive tests for include guards 802148ee845SSimon J. Gerraty o parse.c: if a guard is already defined a file that uses the same 803148ee845SSimon J. Gerraty guard is still guarded by it. 804148ee845SSimon J. Gerraty 805148ee845SSimon J. Gerraty2023-06-20 Simon J Gerraty <sjg@beast.crufty.net> 806148ee845SSimon J. Gerraty 807148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230620 808148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 809148ee845SSimon J. Gerraty o allow guards to be targets as well as variables 810148ee845SSimon J. Gerraty The guard targets may include variable references like 811148ee845SSimon J. Gerraty __${.PARSEDIR:tA}/${.PARSEFILE}__ 812148ee845SSimon J. Gerraty 813148ee845SSimon J. Gerraty2023-06-19 Simon J Gerraty <sjg@beast.crufty.net> 814148ee845SSimon J. Gerraty 815148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230619 816148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 817148ee845SSimon J. Gerraty o unit test for .undef of readOnly vars 818148ee845SSimon J. Gerraty o optimization for makefiles protected from multiple-inclusion 819148ee845SSimon J. Gerraty skip even opening the file after first include. 820148ee845SSimon J. Gerraty Initially this only handles makefiles guarded by a variable 821148ee845SSimon J. Gerraty target guards are next. 822148ee845SSimon J. Gerraty 823148ee845SSimon J. Gerraty2023-06-16 Simon J Gerraty <sjg@beast.crufty.net> 824148ee845SSimon J. Gerraty 825148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230616 826148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 827148ee845SSimon J. Gerraty o var.c: do not allow delete of readOnly variable 828148ee845SSimon J. Gerraty 829148ee845SSimon J. Gerraty2023-06-03 Simon J Gerraty <sjg@beast.crufty.net> 830148ee845SSimon J. Gerraty 831148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230601 832148ee845SSimon J. Gerraty Merge with NetBSD make, pick up 833148ee845SSimon J. Gerraty o parse.c: .break takes no args 834148ee845SSimon J. Gerraty o lots of unit test updates 835148ee845SSimon J. Gerraty 836148ee845SSimon J. Gerraty2023-05-29 Simon J Gerraty <sjg@beast.crufty.net> 837148ee845SSimon J. Gerraty 838148ee845SSimon J. Gerraty * unit-tests/Makefile: skip tests that require /dev/filemon 839148ee845SSimon J. Gerraty if it does not exists - issue a warning. 840148ee845SSimon J. Gerraty 841148ee845SSimon J. Gerraty2023-05-22 Simon J Gerraty <sjg@beast.crufty.net> 842148ee845SSimon J. Gerraty 843148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230522 844148ee845SSimon J. Gerraty Fix building on darwin ppc 845148ee845SSimon J. Gerraty 846148ee845SSimon J. Gerraty * os.sh (MACHINE): Darwin powerpc cannot use `uname -m` 847148ee845SSimon J. Gerraty also recent NetBSD uses x86_64 for MACHINE_ARCH so conform. 848148ee845SSimon J. Gerraty 849148ee845SSimon J. Gerraty2023-05-15 Simon J Gerraty <sjg@beast.crufty.net> 850148ee845SSimon J. Gerraty 851148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230515 852148ee845SSimon J. Gerraty 853148ee845SSimon J. Gerraty * Makefile (COPTS.filemon_ktrace.c): NetBSD 7 needs help to 854148ee845SSimon J. Gerraty compile filemon_ktrace.c 855148ee845SSimon J. Gerraty 856148ee845SSimon J. Gerraty2023-05-13 Simon J Gerraty <sjg@beast.crufty.net> 857148ee845SSimon J. Gerraty 858148ee845SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230512 859148ee845SSimon J. Gerraty o sys.dirdeps.mk - broke after-import target 860148ee845SSimon J. Gerraty 861c1d01b5fSSimon J. Gerraty2023-05-10 Simon J Gerraty <sjg@beast.crufty.net> 862c1d01b5fSSimon J. Gerraty 863c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230510 864c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 865c1d01b5fSSimon J. Gerraty o parse.c: don't print null filename in stack traces 866c1d01b5fSSimon J. Gerraty o var.c: :mtime operate on each word in variable value 867c1d01b5fSSimon J. Gerraty 868c1d01b5fSSimon J. Gerraty2023-05-09 Simon J Gerraty <sjg@beast.crufty.net> 869c1d01b5fSSimon J. Gerraty 870c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230509 871c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 872c1d01b5fSSimon J. Gerraty o for.c: skip syntactically wrong .for loops 873c1d01b5fSSimon J. Gerraty o var.c: allow for :gmtime=${mtime} 874c1d01b5fSSimon J. Gerraty add :mtime[=timestamp] where timestamp is used if stat(2) 875c1d01b5fSSimon J. Gerraty fails, if :mtime=error stat(2) failure causes error. 876c1d01b5fSSimon J. Gerraty 877c1d01b5fSSimon J. Gerraty2023-05-05 Simon J Gerraty <sjg@beast.crufty.net> 878c1d01b5fSSimon J. Gerraty 879c1d01b5fSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230504 880c1d01b5fSSimon J. Gerraty Merge with NetBSD make, pick up 881c1d01b5fSSimon J. Gerraty o compat.c: fix compile on NetBSD 7.2 882c1d01b5fSSimon J. Gerraty o make.1: fix documentation of .PREFIX to match reality and POSIX 883c1d01b5fSSimon J. Gerraty o unit-tests: improved var-scope-local 884c1d01b5fSSimon J. Gerraty 8858c973ee2SSimon J. Gerraty2023-04-14 Simon J Gerraty <sjg@beast.crufty.net> 8868c973ee2SSimon J. Gerraty 8878c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230414 8888c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 8898c973ee2SSimon J. Gerraty o minor cleanup 8908c973ee2SSimon J. Gerraty 8918c973ee2SSimon J. Gerraty2023-03-25 Simon J Gerraty <sjg@beast.crufty.net> 8928c973ee2SSimon J. Gerraty 8938c973ee2SSimon J. Gerraty * main.c: on some systems (eg OS/X) setting RLIMIT_NOFILE to 8948c973ee2SSimon J. Gerraty unlimited results in an insane number (0x7fffffffffffffff). 8958c973ee2SSimon J. Gerraty If BMAKE_NOFILE_MAX is defined, use that instead. 8968c973ee2SSimon J. Gerraty 8978c973ee2SSimon J. Gerraty2023-03-22 Simon J Gerraty <sjg@beast.crufty.net> 8988c973ee2SSimon J. Gerraty 8998c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230321 9008c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 9018c973ee2SSimon J. Gerraty * make.1: document seemingly unexplained Error code 6. 9028c973ee2SSimon J. Gerraty 9038c973ee2SSimon J. Gerraty2023-03-18 Simon J Gerraty <sjg@beast.crufty.net> 9048c973ee2SSimon J. Gerraty 9058c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230317 9068c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 9078c973ee2SSimon J. Gerraty o compat.c: CompatDeleteTarget skip .PHONY targets to be 9088c973ee2SSimon J. Gerraty consistent with JobDeleteTarget. 9098c973ee2SSimon J. Gerraty o job.c: fix memory leak in handling sysv :from=to modifiers 9108c973ee2SSimon J. Gerraty 9118c973ee2SSimon J. Gerraty2023-03-04 Simon J Gerraty <sjg@beast.crufty.net> 9128c973ee2SSimon J. Gerraty 9138c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230303 9148c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 9158c973ee2SSimon J. Gerraty o several updated unit-tests 9168c973ee2SSimon J. Gerraty 9178c973ee2SSimon J. Gerraty2023-02-22 Simon J Gerraty <sjg@beast.crufty.net> 9188c973ee2SSimon J. Gerraty 9198c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230222 9208c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 9218c973ee2SSimon J. Gerraty o unit tests for .MAKE.META.IGNORE_{FILTER,PATHS,PATTERNS} 9228c973ee2SSimon J. Gerraty 9238c973ee2SSimon J. Gerraty2023-02-20 Simon J Gerraty <sjg@beast.crufty.net> 9248c973ee2SSimon J. Gerraty 9258c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230218 9268c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 9278c973ee2SSimon J. Gerraty o var.c: fix parsing of unevaluated subexpressions with 9288c973ee2SSimon J. Gerraty unbalanced '{}' 9298c973ee2SSimon J. Gerraty 9308c973ee2SSimon J. Gerraty2023-02-17 Simon J Gerraty <sjg@beast.crufty.net> 9318c973ee2SSimon J. Gerraty 9328c973ee2SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230215 9338c973ee2SSimon J. Gerraty Merge with NetBSD make, pick up 9348c973ee2SSimon J. Gerraty o inline macros for some variable names 9358c973ee2SSimon J. Gerraty o cond.c: reduce complexity of evaluating expressions 9368c973ee2SSimon J. Gerraty 937dc1b8c9aSSimon J. Gerraty2023-02-08 Simon J Gerraty <sjg@beast.crufty.net> 938dc1b8c9aSSimon J. Gerraty 939dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230208 940dc1b8c9aSSimon J. Gerraty Merge with NetBSD make, pick up 941dc1b8c9aSSimon J. Gerraty o var.c: always use SCOPE_GLOBAL for :_ to avoid problems 942dc1b8c9aSSimon J. Gerraty when it has been used within conditional expressions 943dc1b8c9aSSimon J. Gerraty 944dc1b8c9aSSimon J. Gerraty2023-01-27 Simon J Gerraty <sjg@beast.crufty.net> 945dc1b8c9aSSimon J. Gerraty 946dc1b8c9aSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230127 947dc1b8c9aSSimon J. Gerraty 948dc1b8c9aSSimon J. Gerraty * install-sh: if making directories ensure umask is set 949dc1b8c9aSSimon J. Gerraty to match mode. 950dc1b8c9aSSimon J. Gerraty 951dc1b8c9aSSimon J. Gerraty * Makefile: use DIRMODE for directories and 952dc1b8c9aSSimon J. Gerraty NONBINMODE for man pages and mk files 953dc1b8c9aSSimon J. Gerraty 9544fde40d9SSimon J. Gerraty2023-01-26 Simon J Gerraty <sjg@beast.crufty.net> 9554fde40d9SSimon J. Gerraty 9564fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230126 9574fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 9584fde40d9SSimon J. Gerraty o variables like .newline and .MAKE.{GID,PID,PPID,UID} 9594fde40d9SSimon J. Gerraty should be read-only. 9604fde40d9SSimon J. Gerraty 9614fde40d9SSimon J. Gerraty2023-01-23 Simon J Gerraty <sjg@beast.crufty.net> 9624fde40d9SSimon J. Gerraty 9634fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230123 9644fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 9654fde40d9SSimon J. Gerraty o .[NO]READONLY: for control of read-only variables 9664fde40d9SSimon J. Gerraty o .SYSPATH: for controlling the path searched for makefiles 9674fde40d9SSimon J. Gerraty 9684fde40d9SSimon J. Gerraty2023-01-20 Simon J Gerraty <sjg@beast.crufty.net> 9694fde40d9SSimon J. Gerraty 9704fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230120 9714fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 9724fde40d9SSimon J. Gerraty o allow for white-space between command specifiers @+- 9734fde40d9SSimon J. Gerraty o add more details to warning 'Extra targets ignored' 9744fde40d9SSimon J. Gerraty 9754fde40d9SSimon J. Gerraty2023-01-12 Simon J Gerraty <sjg@beast.crufty.net> 9764fde40d9SSimon J. Gerraty 9774fde40d9SSimon J. Gerraty * machine.sh: leverage os.sh rather than duplicate 9784fde40d9SSimon J. Gerraty also dispence with the $OS.$MACHINE values - we have $HOST_TARGET 9794fde40d9SSimon J. Gerraty for that purpose for the past decade or so. 9804fde40d9SSimon J. Gerraty We invariably get MACHINE and MACHINE_ARCH at runtime anyway. 9814fde40d9SSimon J. Gerraty 9824fde40d9SSimon J. Gerraty2023-01-02 Simon J Gerraty <sjg@beast.crufty.net> 9834fde40d9SSimon J. Gerraty 9844fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230101 9854fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 9864fde40d9SSimon J. Gerraty o cleanup comments, inline some LazyBuf_ methods 9874fde40d9SSimon J. Gerraty o unit-tests/ add/improve comments in tests 9884fde40d9SSimon J. Gerraty o make.1: sync list of built-in variables with reality 9894fde40d9SSimon J. Gerraty sort list of built-in variables 9904fde40d9SSimon J. Gerraty reduce indentation of the long list of variable names 9914fde40d9SSimon J. Gerraty use consistent markup for boolean flags 9924fde40d9SSimon J. Gerraty move description of .MAKE.MODE below the .MAKE.META block 9934fde40d9SSimon J. Gerraty clarify in which case an expression may omit braces 9944fde40d9SSimon J. Gerraty 9954fde40d9SSimon J. Gerraty2022-11-08 Simon J Gerraty <sjg@beast.crufty.net> 9964fde40d9SSimon J. Gerraty 9974fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20221024 9984fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 9994fde40d9SSimon J. Gerraty o change return type of unlink_file back to int 10004fde40d9SSimon J. Gerraty 10014fde40d9SSimon J. Gerraty2022-10-07 Simon J Gerraty <sjg@beast.crufty.net> 10024fde40d9SSimon J. Gerraty 10034fde40d9SSimon J. Gerraty * Makefile: Darwin and Linux can handle MANTARGET=man 10044fde40d9SSimon J. Gerraty 10054fde40d9SSimon J. Gerraty2022-09-28 Simon J Gerraty <sjg@beast.crufty.net> 10064fde40d9SSimon J. Gerraty 10074fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220928 10084fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10094fde40d9SSimon J. Gerraty o fix more ignored returns from snprintf 10104fde40d9SSimon J. Gerraty o compile with higher warnings 10114fde40d9SSimon J. Gerraty 10124fde40d9SSimon J. Gerraty2022-09-26 Simon J Gerraty <sjg@beast.crufty.net> 10134fde40d9SSimon J. Gerraty 10144fde40d9SSimon J. Gerraty * main.c meta.c: do not ignore return from snprintf 10154fde40d9SSimon J. Gerraty 10164fde40d9SSimon J. Gerraty * meta.c strlcpy.c: we need prototype for strlcpy 10174fde40d9SSimon J. Gerraty 10184fde40d9SSimon J. Gerraty * sigcompat.c: fix unused function warnings 10194fde40d9SSimon J. Gerraty 10204fde40d9SSimon J. Gerraty2022-09-24 Simon J Gerraty <sjg@beast.crufty.net> 10214fde40d9SSimon J. Gerraty 10224fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220924 10234fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10244fde40d9SSimon J. Gerraty o fix bug in .break reset of conditional depth 10254fde40d9SSimon J. Gerraty o overhaul and simplify tracking of conditional depth 10264fde40d9SSimon J. Gerraty 10274fde40d9SSimon J. Gerraty2022-09-17 Simon J Gerraty <sjg@beast.crufty.net> 10284fde40d9SSimon J. Gerraty 10294fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220912 10304fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10314fde40d9SSimon J. Gerraty o man page updates 10324fde40d9SSimon J. Gerraty 10334fde40d9SSimon J. Gerraty2022-09-09 Simon J Gerraty <sjg@beast.crufty.net> 10344fde40d9SSimon J. Gerraty 10354fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220909 10364fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10374fde40d9SSimon J. Gerraty o update unit-tests to handle deprecation of egrep 10384fde40d9SSimon J. Gerraty o cond.c: add more details to error message for numeric comparison 10394fde40d9SSimon J. Gerraty 10404fde40d9SSimon J. Gerraty * configure.in: allow for deprecation of egrep 10414fde40d9SSimon J. Gerraty 10424fde40d9SSimon J. Gerraty * Makefile: Linux can handle MANTARGET=man 10434fde40d9SSimon J. Gerraty 10444fde40d9SSimon J. Gerraty2022-09-03 Simon J Gerraty <sjg@beast.crufty.net> 10454fde40d9SSimon J. Gerraty 10464fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220903 10474fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10484fde40d9SSimon J. Gerraty o job.c: fix handling of null bytes in output 10494fde40d9SSimon J. Gerraty 10504fde40d9SSimon J. Gerraty2022-09-02 Simon J Gerraty <sjg@beast.crufty.net> 10514fde40d9SSimon J. Gerraty 10524fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220902 10534fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10544fde40d9SSimon J. Gerraty o Allow .break to terminate a .for loop early 10554fde40d9SSimon J. Gerraty 10564fde40d9SSimon J. Gerraty2022-09-01 Simon J Gerraty <sjg@beast.crufty.net> 10574fde40d9SSimon J. Gerraty 10584fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220901 10594fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10604fde40d9SSimon J. Gerraty o var.c: fix out-of-bounds errors when parsing 10614fde40d9SSimon J. Gerraty 10624fde40d9SSimon J. Gerraty2022-08-24 Simon J Gerraty <sjg@beast.crufty.net> 10634fde40d9SSimon J. Gerraty 10644fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220824 10654fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10664fde40d9SSimon J. Gerraty o var.c: revert change to modifier parsing that breaks 10674fde40d9SSimon J. Gerraty shell variable references within ':@var@body@' 10684fde40d9SSimon J. Gerraty o adjust unit-tests 10694fde40d9SSimon J. Gerraty 10704fde40d9SSimon J. Gerraty2022-08-18 Simon J Gerraty <sjg@beast.crufty.net> 10714fde40d9SSimon J. Gerraty 10724fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220818 10734fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10744fde40d9SSimon J. Gerraty o fix exit status for '-q' (since 1994) 10754fde40d9SSimon J. Gerraty 10764fde40d9SSimon J. Gerraty2022-08-08 Simon J Gerraty <sjg@beast.crufty.net> 10774fde40d9SSimon J. Gerraty 10784fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220808 10794fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 10804fde40d9SSimon J. Gerraty o var.c: fix parsing of modifiers containing unbalanced subexpressions 10814fde40d9SSimon J. Gerraty extract parsing of ':D' and ':U' modifiers into separate function 10824fde40d9SSimon J. Gerraty 1083532d4fbfSSimon J. Gerraty2022-07-26 Simon J Gerraty <sjg@beast.crufty.net> 1084532d4fbfSSimon J. Gerraty 1085532d4fbfSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220726 1086532d4fbfSSimon J. Gerraty 1087532d4fbfSSimon J. Gerraty * Auto-create objdir for bmake/unit-tests if appropriate 1088532d4fbfSSimon J. Gerraty 1089954401e6SSimon J. Gerraty2022-07-24 Simon J Gerraty <sjg@beast.crufty.net> 1090954401e6SSimon J. Gerraty 1091954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220724 1092954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 1093954401e6SSimon J. Gerraty o make.1: describe variable assignment and evaluation more precisely 1094954401e6SSimon J. Gerraty o parse.c: fix out-of-bounds read when parsing an invalid line 1095954401e6SSimon J. Gerraty o var.c: simplify return type of IsShortVarnameValid 1096954401e6SSimon J. Gerraty 1097954401e6SSimon J. Gerraty2022-06-12 Simon J Gerraty <sjg@beast.crufty.net> 1098954401e6SSimon J. Gerraty 1099954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220612 1100954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 1101954401e6SSimon J. Gerraty o allow to randomize build order of targets 1102954401e6SSimon J. Gerraty .MAKE.MODE += randomize-targets can help uncover dependency bugs 1103954401e6SSimon J. Gerraty within a makefile. 1104954401e6SSimon J. Gerraty o compat.c: rename Compat_Run to Compat_MakeAll 1105954401e6SSimon J. Gerraty o make.c: inline MakeBuildParent 1106954401e6SSimon J. Gerraty inline make_abort, improve error details 1107954401e6SSimon J. Gerraty o parse.c: reorganize Parse_Error 1108954401e6SSimon J. Gerraty fix memory leak in wildcard targets and sources 1109954401e6SSimon J. Gerraty separate cases in HandleDependencyTargetMundane 1110954401e6SSimon J. Gerraty extract HandleSingleDependencyTargetMundane 1111954401e6SSimon J. Gerraty rename loadfile to LoadFile 1112954401e6SSimon J. Gerraty split IncludeFile into separate functions 1113954401e6SSimon J. Gerraty condense code for searching a file in the paths 1114954401e6SSimon J. Gerraty fix off-by-one error in buffer for .WAIT nodes 1115954401e6SSimon J. Gerraty o str.c: condense Str_Match 1116954401e6SSimon J. Gerraty make code for string matching syntactically more consistent 1117954401e6SSimon J. Gerraty 11182f2a5ecdSSimon J. Gerraty2022-04-18 Simon J Gerraty <sjg@beast.crufty.net> 11192f2a5ecdSSimon J. Gerraty 11202f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220418 11212f2a5ecdSSimon J. Gerraty Merge with NetBSD make, pick up 11222f2a5ecdSSimon J. Gerraty o ignore '.POSIX:' if not in first non-comment line 11232f2a5ecdSSimon J. Gerraty of Makefile as specified by POSIX. 11242f2a5ecdSSimon J. Gerraty add unit-tests for above. 11252f2a5ecdSSimon J. Gerraty o meta.c: make it easier to find usage of identifiers 11262f2a5ecdSSimon J. Gerraty o targ.c: add .USEBEFORE to Targ_PrintType 11272f2a5ecdSSimon J. Gerraty 11282f2a5ecdSSimon J. Gerraty2022-04-14 Simon J Gerraty <sjg@beast.crufty.net> 11292f2a5ecdSSimon J. Gerraty 11302f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220414 11312f2a5ecdSSimon J. Gerraty 11322f2a5ecdSSimon J. Gerraty * unit-tests/Makefile: simplify checks for shells with 11332f2a5ecdSSimon J. Gerraty BROKEN_TESTS, this helps with other Linux distros that 11342f2a5ecdSSimon J. Gerraty use dash. 11352f2a5ecdSSimon J. Gerraty 11361d3f2ddcSSimon J. Gerraty2022-03-30 Simon J Gerraty <sjg@beast.crufty.net> 11371d3f2ddcSSimon J. Gerraty 11381d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220330 11391d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 11401d3f2ddcSSimon J. Gerraty o var.c: fix spacing, and a typo in a test 11411d3f2ddcSSimon J. Gerraty 11421d3f2ddcSSimon J. Gerraty2022-03-26 Simon J Gerraty <sjg@beast.crufty.net> 11431d3f2ddcSSimon J. Gerraty 11441d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220326 11451d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 11461d3f2ddcSSimon J. Gerraty o parse.c: try to include 'posix.mk' the first time 11471d3f2ddcSSimon J. Gerraty .POSIX: is encountered, to allow for beter POSIX compliance. 11481d3f2ddcSSimon J. Gerraty o var.c: make debug logs more readable 11491d3f2ddcSSimon J. Gerraty prefer 'long long' over 'long' on 32-bit C99 platforms 11501d3f2ddcSSimon J. Gerraty fix crash on .undef of an environment variable 11511d3f2ddcSSimon J. Gerraty 11521d3f2ddcSSimon J. Gerraty2022-03-03 Simon J Gerraty <sjg@beast.crufty.net> 11531d3f2ddcSSimon J. Gerraty 11541d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220303 11551d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 11561d3f2ddcSSimon J. Gerraty o tell meta mode unit tests not to expect filemon 11571d3f2ddcSSimon J. Gerraty o cond.c: make debug logging for comparisons less technical 11581d3f2ddcSSimon J. Gerraty o lst.c: fix mem leak in Lst_Remove 11591d3f2ddcSSimon J. Gerraty o str.c: make code for string matching syntactically more consistent 11601d3f2ddcSSimon J. Gerraty o var.c: simplify ParseModifier_Match 11611d3f2ddcSSimon J. Gerraty 11621d3f2ddcSSimon J. Gerraty2022-02-14 Simon J Gerraty <sjg@beast.crufty.net> 11631d3f2ddcSSimon J. Gerraty 11641d3f2ddcSSimon J. Gerraty * unit-tests/Makefile: control MAKESYSPATH for deptgt-phony 11651d3f2ddcSSimon J. Gerraty 11661d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220214 11671d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 11681d3f2ddcSSimon J. Gerraty o cond.c: simplify control flow in CondParser_Comparison 11691d3f2ddcSSimon J. Gerraty o job.c: fix echoing of command with '-' in silent target in jobs mode 11701d3f2ddcSSimon J. Gerraty o main.c: prefix the warning about read-only .OBJDIR with a colon 11711d3f2ddcSSimon J. Gerraty o parse.c: remove redundant conditions 11721d3f2ddcSSimon J. Gerraty o var.c: simplify control flow in ModifyWord_SysVSubst 11731d3f2ddcSSimon J. Gerraty 1174a6f0e10bSSimon J. Gerraty2022-02-08 Simon J Gerraty <sjg@beast.crufty.net> 1175a6f0e10bSSimon J. Gerraty 1176a6f0e10bSSimon J. Gerraty * unit-tests/Makefile: disable opt-debug-x-trace on Linux if there 1177a6f0e10bSSimon J. Gerraty is any chance we have dash as .SHELL 1178a6f0e10bSSimon J. Gerraty 1179a6f0e10bSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220208 1180a6f0e10bSSimon J. Gerraty Merge with NetBSD make, pick up 1181a6f0e10bSSimon J. Gerraty o more unit tests 1182a6f0e10bSSimon J. Gerraty o meta.c: use a variable to hold command line to be filtered 1183a6f0e10bSSimon J. Gerraty to avoid any side effects from content of command line. 1184a6f0e10bSSimon J. Gerraty 11859f45a3c8SSimon J. Gerraty2022-02-04 Simon J Gerraty <sjg@beast.crufty.net> 11869f45a3c8SSimon J. Gerraty 11879f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220204 11889f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 11899f45a3c8SSimon J. Gerraty o use unsigned consistently for line numbers, avoid the need for %z 11909f45a3c8SSimon J. Gerraty o parse.c: do not step off end of input in Parse_IsVar 11919f45a3c8SSimon J. Gerraty when checking for target local variable assignments 11929f45a3c8SSimon J. Gerraty 11939f45a3c8SSimon J. Gerraty2022-02-02 Simon J Gerraty <sjg@beast.crufty.net> 11949f45a3c8SSimon J. Gerraty 11959f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220202 11969f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 11979f45a3c8SSimon J. Gerraty o remove redundant declaration of HashIter_Init 11989f45a3c8SSimon J. Gerraty o make DEBUG0 simpler 11999f45a3c8SSimon J. Gerraty 12009f45a3c8SSimon J. Gerraty2022-01-30 Simon J Gerraty <sjg@beast.crufty.net> 12019f45a3c8SSimon J. Gerraty 12029f45a3c8SSimon J. Gerraty * cast gn->lineno to avoid %z 12039f45a3c8SSimon J. Gerraty 12049f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220130 12059f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 12069f45a3c8SSimon J. Gerraty o more unit tests 12079f45a3c8SSimon J. Gerraty o make GNode lineno unsigned to please lint 12089f45a3c8SSimon J. Gerraty o print location of recursive variable references in commands 12099f45a3c8SSimon J. Gerraty o print "stack trace" (makefile includes) on fatal errors 12109f45a3c8SSimon J. Gerraty o make.1: refine documentation for target local assignments 12119f45a3c8SSimon J. Gerraty 12129f45a3c8SSimon J. Gerraty2022-01-28 Simon J Gerraty <sjg@beast.crufty.net> 12139f45a3c8SSimon J. Gerraty 12149f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220128 12159f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 12169f45a3c8SSimon J. Gerraty o inline functions called only once 12179f45a3c8SSimon J. Gerraty o for.c: clean up AddEscape for building the body of a .for loop 12189f45a3c8SSimon J. Gerraty o hash.c: merge duplicate code for finding an entry in a hash table 12199f45a3c8SSimon J. Gerraty replace HashEntry_KeyEquals with strncmp 12209f45a3c8SSimon J. Gerraty o make.1: document quirks of target local variable assignments. 12219f45a3c8SSimon J. Gerraty o parse.c: cleanup white-space 12229f45a3c8SSimon J. Gerraty 12239f45a3c8SSimon J. Gerraty2022-01-26 Simon J Gerraty <sjg@beast.crufty.net> 12249f45a3c8SSimon J. Gerraty 12259f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220126 12269f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 12279f45a3c8SSimon J. Gerraty o allow setting target local variables 12289f45a3c8SSimon J. Gerraty o more unit tests 12299f45a3c8SSimon J. Gerraty o add missing newline after "cannot continue" message 12309f45a3c8SSimon J. Gerraty o meta.c: clean up eat_dots 12319f45a3c8SSimon J. Gerraty o parse.c: fix filename in warning about duplicate script 12329f45a3c8SSimon J. Gerraty o var.c: when expanding nested variables, check simple things first 12339f45a3c8SSimon J. Gerraty 12349f45a3c8SSimon J. Gerraty2022-01-16 Simon J Gerraty <sjg@beast.crufty.net> 12359f45a3c8SSimon J. Gerraty 12369f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220116 12379f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 12389f45a3c8SSimon J. Gerraty o fix for unit-tests/varname-makeflags on non-BSD systems 12399f45a3c8SSimon J. Gerraty o use Var_Exists rather than Var_Value where appropriate 12409f45a3c8SSimon J. Gerraty o remove unnecessary functions for expanding variable names 12419f45a3c8SSimon J. Gerraty o cond.c: inline EvalBare 12429f45a3c8SSimon J. Gerraty o main.c: lint cleanup 12439f45a3c8SSimon J. Gerraty o parse.c: condense code in Parse_IsVar 12449f45a3c8SSimon J. Gerraty use islower for parsing directives (none have upper case) 12459f45a3c8SSimon J. Gerraty 12469f45a3c8SSimon J. Gerraty2022-01-12 Simon J Gerraty <sjg@beast.crufty.net> 12479f45a3c8SSimon J. Gerraty 12489f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220112 12499f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 12509f45a3c8SSimon J. Gerraty o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before 12519f45a3c8SSimon J. Gerraty comparion, rarely needed but useful when it is. 12529f45a3c8SSimon J. Gerraty 12539f45a3c8SSimon J. Gerraty2022-01-10 Simon J Gerraty <sjg@beast.crufty.net> 12549f45a3c8SSimon J. Gerraty 12559f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220110 12569f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 12579f45a3c8SSimon J. Gerraty o inline Buf_Clear 12589f45a3c8SSimon J. Gerraty o remove redundant braces 12599f45a3c8SSimon J. Gerraty o rename and inline Targ_Precious 12609f45a3c8SSimon J. Gerraty o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf 12619f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops 12629f45a3c8SSimon J. Gerraty fix reported line numbers of continuation lines 12639f45a3c8SSimon J. Gerraty add details about .for loop variables to stack traces 12649f45a3c8SSimon J. Gerraty o job.c: reduce code for initializing error handling in shell 12659f45a3c8SSimon J. Gerraty o main.c: in Cmd_Exec, return error message instead of format string 12669f45a3c8SSimon J. Gerraty have as few statements as possible between va_start and va_end 12679f45a3c8SSimon J. Gerraty add debug logging for capturing the output of external commands 12689f45a3c8SSimon J. Gerraty o make.c: use consistent variable names for varargs 12699f45a3c8SSimon J. Gerraty o make_malloc.c: remove duplicate code from bmake_strdup 12709f45a3c8SSimon J. Gerraty o parse.c: add missing printflike annotations 12719f45a3c8SSimon J. Gerraty remove redundant lines from stack traces 12729f45a3c8SSimon J. Gerraty fix stack traces in -dp mode 12739f45a3c8SSimon J. Gerraty reduce confusing code in ParseForLoop 12749f45a3c8SSimon J. Gerraty fix line number in debug log after returning from a file 12759f45a3c8SSimon J. Gerraty rename IFile and its fields to match their actual content 12769f45a3c8SSimon J. Gerraty clean up ParseDependencySources 12779f45a3c8SSimon J. Gerraty o var.c: shorten ApplyModifier_Assign 12789f45a3c8SSimon J. Gerraty rename is_shell_metachar, fix character conversion warning 12799f45a3c8SSimon J. Gerraty merge calls to ApplyModifier_Time 12809f45a3c8SSimon J. Gerraty merge duplicate code for modifiers 'gmtime' and 'localtime' 12819f45a3c8SSimon J. Gerraty 12829f45a3c8SSimon J. Gerraty2022-01-04 Simon J Gerraty <sjg@beast.crufty.net> 12839f45a3c8SSimon J. Gerraty 12849f45a3c8SSimon J. Gerraty * parse.c: loadfile restore extra byte in buffer. 12859f45a3c8SSimon J. Gerraty 12869f45a3c8SSimon J. Gerraty2022-01-01 Simon J Gerraty <sjg@beast.crufty.net> 12879f45a3c8SSimon J. Gerraty 12889f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220101 12899f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 12909f45a3c8SSimon J. Gerraty o more unit-tests 12919f45a3c8SSimon J. Gerraty o remove unnecessary words from command line options in CmdOpts 12929f45a3c8SSimon J. Gerraty o rename eunlink to unlink_file 12939f45a3c8SSimon J. Gerraty o cond.c: make ParseWord in condition parser simpler 12949f45a3c8SSimon J. Gerraty internally return false for irrelevant leaves in conditions 12959f45a3c8SSimon J. Gerraty replace table for function lookup in conditions with simple code 12969f45a3c8SSimon J. Gerraty merge duplicate types CondEvalResult and CondResult 12979f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops and .include directives 12989f45a3c8SSimon J. Gerraty o main.c: constify cached_realpath 12999f45a3c8SSimon J. Gerraty clean up Cmd_Exec 13009f45a3c8SSimon J. Gerraty o parse.c: sync API documentation 13019f45a3c8SSimon J. Gerraty fix error message when reading more than 1 GB from stdin 13029f45a3c8SSimon J. Gerraty clean up parsing of makefiles 13039f45a3c8SSimon J. Gerraty fix line number in error message about open conditionals 13049f45a3c8SSimon J. Gerraty unexport types VarAssignOp and VarAssign 13059f45a3c8SSimon J. Gerraty clean up function names 13069f45a3c8SSimon J. Gerraty remove redundant parameters in dependency parsing functions 13079f45a3c8SSimon J. Gerraty reduce scope of the list of wildcard target names 13089f45a3c8SSimon J. Gerraty extract OP_NOTARGET into separate function 13099f45a3c8SSimon J. Gerraty clean up variable names for parsing dependency lines 13109f45a3c8SSimon J. Gerraty make debug logging a bit more human-friendly 13119f45a3c8SSimon J. Gerraty o var.c: condense code in ApplyModifier_Assign 13129f45a3c8SSimon J. Gerraty 13139f45a3c8SSimon J. Gerraty2021-12-21 Simon J Gerraty <sjg@beast.crufty.net> 13149f45a3c8SSimon J. Gerraty 13159f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211221 13169f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 13179f45a3c8SSimon J. Gerraty o more unit-tests 13189f45a3c8SSimon J. Gerraty o style cleanup 13199f45a3c8SSimon J. Gerraty o in CLEANUP mode, free interned strings at the very end 13209f45a3c8SSimon J. Gerraty o fix memory leak for filenames in .for loops 13219f45a3c8SSimon J. Gerraty o buf.c: avoid memory leak 13229f45a3c8SSimon J. Gerraty o cond.c: condense CondParser_ComparisonOp 13239f45a3c8SSimon J. Gerraty o hash.c: change return type of HashTable_Set to void 13249f45a3c8SSimon J. Gerraty o job.c: change return type of Compat_RunCommand from int to bool 13259f45a3c8SSimon J. Gerraty o main.c: remove bmake_free 13269f45a3c8SSimon J. Gerraty o parse.c: condense repetetive code in ParseDirective 13279f45a3c8SSimon J. Gerraty remove dead code for handling traditional include directives 13289f45a3c8SSimon J. Gerraty clean up parsing of variable assignments 13299f45a3c8SSimon J. Gerraty remove unreachable code for parsing the dependency operator 13309f45a3c8SSimon J. Gerraty clean up loading of files 13319f45a3c8SSimon J. Gerraty fix memory leak in IncludeFile 13329f45a3c8SSimon J. Gerraty o var.c: fix memory leak when parsing a variable name 13339f45a3c8SSimon J. Gerraty fix memory leak from ${.SUFFIXES} 13349f45a3c8SSimon J. Gerraty reduce memory allocation in modifier ':?' and ':C' 13359f45a3c8SSimon J. Gerraty condense RegexReplace for the modifier ':C' and avoid strlen 13369f45a3c8SSimon J. Gerraty merge duplicate code for memory handling in Var_Parse 13379f45a3c8SSimon J. Gerraty distinguish between short-lived and environment variables 13389f45a3c8SSimon J. Gerraty rename VarFreeEnv to VarFreeShortLived 13399f45a3c8SSimon J. Gerraty 134012904384SSimon J. Gerraty2021-12-15 Simon J Gerraty <sjg@beast.crufty.net> 134112904384SSimon J. Gerraty 134212904384SSimon J. Gerraty * cond.c: fix mem leak in CondParser_Leaf 134312904384SSimon J. Gerraty 134412904384SSimon J. Gerraty2021-12-12 Simon J Gerraty <sjg@beast.crufty.net> 134512904384SSimon J. Gerraty 134612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211212 134712904384SSimon J. Gerraty Merge with NetBSD make, pick up 134812904384SSimon J. Gerraty o rename Parse_SetInput to Parse_PushInput 134912904384SSimon J. Gerraty o remove remove period from end of error messages and warnings 135012904384SSimon J. Gerraty to be more consistent 135112904384SSimon J. Gerraty o arch.c: use simpler memory management for parsing archive members 135212904384SSimon J. Gerraty o cond.c: rework and reduce recursion 135312904384SSimon J. Gerraty o for.c: rename some functions to better reflect purpose 135412904384SSimon J. Gerraty o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string. 135512904384SSimon J. Gerraty o var.c: in parse errors, mark whitespace more clearly 135612904384SSimon J. Gerraty inline ParseEmptyArg into CondParser_FuncCallEmpty 135712904384SSimon J. Gerraty minimize calls to LazyBuf_Get in ParseVarnameLong 135812904384SSimon J. Gerraty treat .SUFFIXES as a read-only variable 135912904384SSimon J. Gerraty 136012904384SSimon J. Gerraty2021-12-07 Simon J Gerraty <sjg@beast.crufty.net> 136112904384SSimon J. Gerraty 136212904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211207 136312904384SSimon J. Gerraty Merge with NetBSD make, pick up 136412904384SSimon J. Gerraty o inline HashIter_Init 136512904384SSimon J. Gerraty o parse.c: inline common subexpression in ParseRawLine 136612904384SSimon J. Gerraty o var.c: merge branches for modifiers ':D' and ':U' 136712904384SSimon J. Gerraty extract common code into Expr_Words 136812904384SSimon J. Gerraty extract common code into Expr_Str 136912904384SSimon J. Gerraty move low-level implementation details out of Var_Parse 137012904384SSimon J. Gerraty 137112904384SSimon J. Gerraty2021-12-06 Simon J Gerraty <sjg@beast.crufty.net> 137212904384SSimon J. Gerraty 137312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211206 137412904384SSimon J. Gerraty Merge with NetBSD make, pick up 137512904384SSimon J. Gerraty o add unit-tests/varmod-loop-delete 137612904384SSimon J. Gerraty o for.c: inline Str_Words - reduce memory allocation 137712904384SSimon J. Gerraty o parse.c: do not try to expand fixed variable names 137812904384SSimon J. Gerraty only allocate the name of an included file if necessary 137912904384SSimon J. Gerraty clean up ParseInclude 138012904384SSimon J. Gerraty o var.c: fix use-after-free in modifier ':@' 138112904384SSimon J. Gerraty save a memory allocation in each modifier ':O' and ':u' 138212904384SSimon J. Gerraty save a memory allocation in the modifier ':[...]' 138312904384SSimon J. Gerraty in UnexportVars, replace Str_Words with Substring_Words to 138412904384SSimon J. Gerraty reduce allocations and copying. 138512904384SSimon J. Gerraty 138612904384SSimon J. Gerraty2021-12-04 Simon J Gerraty <sjg@beast.crufty.net> 138712904384SSimon J. Gerraty 138812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211204 138912904384SSimon J. Gerraty Merge with NetBSD make, pick up 139012904384SSimon J. Gerraty o flesh out a number of tests 139112904384SSimon J. Gerraty o replace enums with bitfields, this simplifies a lot of code. 139212904384SSimon J. Gerraty o var.c: refactor ParseModifierPartSubst 139312904384SSimon J. Gerraty 139412904384SSimon J. Gerraty2021-10-24 Simon J Gerraty <sjg@beast.crufty.net> 139512904384SSimon J. Gerraty 139612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211024 139712904384SSimon J. Gerraty Merge with NetBSD make, pick up 139812904384SSimon J. Gerraty o Punt on write errors - ENOSPC etc. 139912904384SSimon J. Gerraty 140012904384SSimon J. Gerraty2021-10-22 Simon J Gerraty <sjg@beast.crufty.net> 140112904384SSimon J. Gerraty 140212904384SSimon J. Gerraty * configure.in: use_defshell, set both DEFSHELL_INDEX 140312904384SSimon J. Gerraty and defshell_path if appropriate. 140412904384SSimon J. Gerraty This makes it easier to use say the KSH specification with 140512904384SSimon J. Gerraty and alternate path for the shell. 140612904384SSimon J. Gerraty 140712904384SSimon J. Gerraty * configure.in compat.c: for SCO we need to force UseShell 140812904384SSimon J. Gerraty 140912904384SSimon J. Gerraty * configure.in: SCO /bin/sh is not usable, provide a list of 141012904384SSimon J. Gerraty alternatives for use as .SHELL. 141112904384SSimon J. Gerraty We still have to mark some tests as broken, plus more if we end up 141212904384SSimon J. Gerraty with ksh as .SHELL. 141312904384SSimon J. Gerraty Issue a warning about skipped tests. 141412904384SSimon J. Gerraty 141512904384SSimon J. Gerraty * boot-strap: leave TOOL_DIFF to configure 141612904384SSimon J. Gerraty 141712904384SSimon J. Gerraty * configure.in: on SCO native cc is not usable, 141812904384SSimon J. Gerraty gcc is to be found in /usr/gnu/bin 141912904384SSimon J. Gerraty and while ancient is at least able to compile bmake. 142012904384SSimon J. Gerraty Thus we add /usr/gnu/bin to PATH if it exists, and later 142112904384SSimon J. Gerraty check if $CC would have been found via $PATH. 142212904384SSimon J. Gerraty If not we set CC to the full path of $CC. 142312904384SSimon J. Gerraty Also gnu diff is known to support -u, so if it exists use it. 142412904384SSimon J. Gerraty 142512904384SSimon J. Gerraty * configure.in: move getopt to AC_REPLACE_FUNCS 142612904384SSimon J. Gerraty also add AC_C_INLINE - in an attempt to compile using 142712904384SSimon J. Gerraty native cc on SCO. 142812904384SSimon J. Gerraty 142912904384SSimon J. Gerraty * configure.in: check for stresep as well as strsep, since we 143012904384SSimon J. Gerraty define the later to the former if necessary, and if we have to 143112904384SSimon J. Gerraty provide stresep we also need to provide a prototype. 143212904384SSimon J. Gerraty 143312904384SSimon J. Gerraty * configure.in: we no longer need to worry about 143412904384SSimon J. Gerraty sys/cdefs.h providing __RCSID which simplifies things quite a bit. 143512904384SSimon J. Gerraty 143612904384SSimon J. Gerraty * make.h: make sure we have __RCSID 143712904384SSimon J. Gerraty 143812904384SSimon J. Gerraty * unit-tests/Makefile.config.in: add TOOL_DIFF so configure 143912904384SSimon J. Gerraty can control it. 144012904384SSimon J. Gerraty 144112904384SSimon J. Gerraty2021-10-20 Simon J Gerraty <sjg@beast.crufty.net> 144212904384SSimon J. Gerraty 144312904384SSimon J. Gerraty * VERSION: 20211020 144412904384SSimon J. Gerraty Merge with NetBSD make, pick up 144512904384SSimon J. Gerraty o confirm sync of unit-tests 144612904384SSimon J. Gerraty 144712904384SSimon J. Gerraty2021-10-18 Simon J Gerraty <sjg@beast.crufty.net> 144812904384SSimon J. Gerraty 144912904384SSimon J. Gerraty * configure.in: check if timezone Europe/Berlin is supported 145012904384SSimon J. Gerraty if not try UTC-1 145112904384SSimon J. Gerraty * configure.in: if .OBJDIR is $srcdir/obj we need to create a 145212904384SSimon J. Gerraty symlink unit-tests -> ../unit-tests/obj so that 145312904384SSimon J. Gerraty unit-tests/Makefile.config is put in the right place. 145412904384SSimon J. Gerraty * refine filtering of .OBJDIR in unit-tests 145512904384SSimon J. Gerraty 145612904384SSimon J. Gerraty2021-10-16 Simon J Gerraty <sjg@beast.crufty.net> 145712904384SSimon J. Gerraty 145812904384SSimon J. Gerraty * Fix unit-tests on Minix 3.2.0 145912904384SSimon J. Gerraty o job.c: do not punt if read of token pipe fails for EAGAIN. 146012904384SSimon J. Gerraty On Minix at least, we are not ready to read the childExitJob pipe 146112904384SSimon J. Gerraty when poll says we are. 146212904384SSimon J. Gerraty There should actually be no reason for this pipe to be 146312904384SSimon J. Gerraty non-blocking, but while that works fine on {Net,Free}BSD it 146412904384SSimon J. Gerraty breaks another test case on Minix. 146512904384SSimon J. Gerraty o unit-tests/Makefile: deal with variants of error messages 146612904384SSimon J. Gerraty and use of obj as .OBJDIR 146712904384SSimon J. Gerraty 146812904384SSimon J. Gerraty2021-10-14 Simon J Gerraty <sjg@beast.crufty.net> 146912904384SSimon J. Gerraty 147012904384SSimon J. Gerraty * configure.in: add sigaction to AC_REPLACE_FUNCS 147112904384SSimon J. Gerraty we also need to check for sigaddset etc just for the benefit of 147212904384SSimon J. Gerraty sigact.c 147312904384SSimon J. Gerraty 147412904384SSimon J. Gerraty * Add sigact.c as sigaction.c so this "just works". 147512904384SSimon J. Gerraty This should have been done back when bmake_signal started using 147612904384SSimon J. Gerraty sigaction (I only just noticed that sigact.c wasn't here ;-) 147712904384SSimon J. Gerraty Note: I no longer have access to any system where this would matter. 147812904384SSimon J. Gerraty 147912904384SSimon J. Gerraty2021-10-13 Simon J Gerraty <sjg@beast.crufty.net> 148012904384SSimon J. Gerraty 148112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211011 148212904384SSimon J. Gerraty 148312904384SSimon J. Gerraty * Makefile: cleanup a little 148412904384SSimon J. Gerraty 148512904384SSimon J. Gerraty * configure.in: check for sigsetmask 148612904384SSimon J. Gerraty 148712904384SSimon J. Gerraty2021-10-01 Simon J Gerraty <sjg@beast.crufty.net> 148812904384SSimon J. Gerraty 148912904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211001 149012904384SSimon J. Gerraty Merge with NetBSD make, pick up 149112904384SSimon J. Gerraty o reduce locations reducing text size 149212904384SSimon J. Gerraty o remove unnecessary const 149312904384SSimon J. Gerraty o cond.c: fix lint warning on i386 149412904384SSimon J. Gerraty do not allow unquoted 'left == right' after modifier ':?' 149512904384SSimon J. Gerraty o hash.c: fix build for DEBUG_HASH_LOOKUP 149612904384SSimon J. Gerraty o var.c: fix memory leak in error case of the ':?' modifier 149712904384SSimon J. Gerraty 149812904384SSimon J. Gerraty2021-09-11 Simon J Gerraty <sjg@beast.crufty.net> 149912904384SSimon J. Gerraty 150012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210911 150112904384SSimon J. Gerraty Merge with NetBSD make, pick up 150212904384SSimon J. Gerraty o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval 150312904384SSimon J. Gerraty 150412904384SSimon J. Gerraty2021-09-08 Simon J Gerraty <sjg@beast.crufty.net> 150512904384SSimon J. Gerraty 150612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210906 150712904384SSimon J. Gerraty Merge with NetBSD make, pick up 150812904384SSimon J. Gerraty o more unit tests 150912904384SSimon J. Gerraty o lint cleanup 151012904384SSimon J. Gerraty o rename some functions to better fit purpose 151112904384SSimon J. Gerraty o for.c: cleanup - remove unnecessary optimization 151212904384SSimon J. Gerraty fix embedded newlines 151312904384SSimon J. Gerraty o parse.c: correct case for CVS/RCS 151412904384SSimon J. Gerraty 151512904384SSimon J. Gerraty2021-08-11 Simon J Gerraty <sjg@beast.crufty.net> 151612904384SSimon J. Gerraty 151712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210808 151812904384SSimon J. Gerraty Merge with NetBSD make, pick up 151912904384SSimon J. Gerraty o var.c: remove redundant initialization in ApplyModifier_Order 152012904384SSimon J. Gerraty 152112904384SSimon J. Gerraty * mk/options.mk: issue warning for incorrect usage 152212904384SSimon J. Gerraty 152312904384SSimon J. Gerraty2021-08-03 Simon J Gerraty <sjg@beast.crufty.net> 152412904384SSimon J. Gerraty 152512904384SSimon J. Gerraty * var.c: use long for :On if we don't have a 64bit int type 152612904384SSimon J. Gerraty 152712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210803 152812904384SSimon J. Gerraty Merge with NetBSD make, pick up 152912904384SSimon J. Gerraty o rework varmod-order tests to avoid qsort instability 153012904384SSimon J. Gerraty o make.1: clarify :On entry 153112904384SSimon J. Gerraty 153212904384SSimon J. Gerraty2021-07-31 Simon J Gerraty <sjg@beast.crufty.net> 153312904384SSimon J. Gerraty 153412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210731 153512904384SSimon J. Gerraty Merge with NetBSD make, pick up 153612904384SSimon J. Gerraty o fix some lint issues 153712904384SSimon J. Gerraty o more unit tests 153812904384SSimon J. Gerraty o var.c: rework of ApplyModifier_Order 153912904384SSimon J. Gerraty 154012904384SSimon J. Gerraty2021-07-30 Simon J Gerraty <sjg@beast.crufty.net> 154112904384SSimon J. Gerraty 154212904384SSimon J. Gerraty * util.c: add strto*l if HAVE_STRTO*L not defined 154312904384SSimon J. Gerraty 154412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210730 154512904384SSimon J. Gerraty Merge with NetBSD make, pick up 154612904384SSimon J. Gerraty o var.c: add :On and :Orn for numeric sort 154712904384SSimon J. Gerraty disabled if no 64bit type available. 154812904384SSimon J. Gerraty o _strtol.h: to implement strto*l functions 154912904384SSimon J. Gerraty 155012904384SSimon J. Gerraty2021-07-04 Simon J Gerraty <sjg@beast.crufty.net> 155112904384SSimon J. Gerraty 155212904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210704 155312904384SSimon J. Gerraty Merge with NetBSD make, pick up 155412904384SSimon J. Gerraty o unit-tests: fix some tests to be more portable 155512904384SSimon J. Gerraty - job-output-null not all shells do the same number of write calls 155612904384SSimon J. Gerraty - objdir-writable if TMPDIR is set; /tmp may not be usable 155712904384SSimon J. Gerraty 155812904384SSimon J. Gerraty2021-07-01 Simon J Gerraty <sjg@beast.crufty.net> 155912904384SSimon J. Gerraty 156012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210701 156112904384SSimon J. Gerraty Merge with NetBSD make, pick up 156212904384SSimon J. Gerraty o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped; 156312904384SSimon J. Gerraty some tests just cannot work in some environments. 156412904384SSimon J. Gerraty o buf.c: simpler upper bound for length in Buf_AddInt 156512904384SSimon J. Gerraty o cond.c: fix grammar in error message for malformed conditional 156612904384SSimon J. Gerraty o for.c: prevent newline injection (from ${.newline}) in .for loops 156712904384SSimon J. Gerraty o var.c: use more practical data type in RegexReplace 156812904384SSimon J. Gerraty (avoid need for %zu) 156912904384SSimon J. Gerraty extract RegexReplace from ModifyWord_SubstRegex 157012904384SSimon J. Gerraty 1571b0c40a00SSimon J. Gerraty2021-06-21 Simon J Gerraty <sjg@beast.crufty.net> 1572b0c40a00SSimon J. Gerraty 1573b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210621 1574b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1575b0c40a00SSimon J. Gerraty o var.c: only report error for unmatched regex subexpression 1576b0c40a00SSimon J. Gerraty when linting (-dL) since we cannot tell when an unmatched 1577b0c40a00SSimon J. Gerraty subexpression is an expected result. 1578b0c40a00SSimon J. Gerraty o move unmatched regex subexpression tests to 1579b0c40a00SSimon J. Gerraty varmod-subst-regex.mk and enable strict (lint) mode 1580b0c40a00SSimon J. Gerraty 1581b0c40a00SSimon J. Gerraty2021-06-16 Simon J Gerraty <sjg@beast.crufty.net> 1582b0c40a00SSimon J. Gerraty 1583b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210616 1584b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1585b0c40a00SSimon J. Gerraty o more unit tests 1586b0c40a00SSimon J. Gerraty o cond.c: rename If_Eval to EvalBare 1587b0c40a00SSimon J. Gerraty improve function names for parsing conditions 1588b0c40a00SSimon J. Gerraty o job.c: fix error handling of targets that cannot be made 1589b0c40a00SSimon J. Gerraty o var.c: uncompress code in ApplyModifier_Unique 1590b0c40a00SSimon J. Gerraty 1591b0c40a00SSimon J. Gerraty2021-05-18 Simon J Gerraty <sjg@beast.crufty.net> 1592b0c40a00SSimon J. Gerraty 1593b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210518 1594b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1595b0c40a00SSimon J. Gerraty o fix unit-tests/opt-chdir to cope with /nonexistent existing. 1596b0c40a00SSimon J. Gerraty o job.c: Print -de error information when running multiple jobs 1597b0c40a00SSimon J. Gerraty 1598b0c40a00SSimon J. Gerraty2021-04-20 Simon J Gerraty <sjg@beast.crufty.net> 1599b0c40a00SSimon J. Gerraty 1600b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210420 1601b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1602b0c40a00SSimon J. Gerraty o use C99 bool type 1603b0c40a00SSimon J. Gerraty o convert VarEvalFlags back into an enum 1604b0c40a00SSimon J. Gerraty o cond.c: do not complain when skipping the condition 'no >= 10' 1605b0c40a00SSimon J. Gerraty o hash.c: avoid allocating memory for simple variable names 1606b0c40a00SSimon J. Gerraty o job.c: use distinct wording for writing to the shell commands file 1607b0c40a00SSimon J. Gerraty remove type name for the abort status in job handling 1608b0c40a00SSimon J. Gerraty rename PrintOutput to PrintFilteredOutput to avoid confusion 1609b0c40a00SSimon J. Gerraty o main.c: avoid double slash in name of temporary directory 1610b0c40a00SSimon J. Gerraty o var.c: use straight quotes for error 'Bad conditional expression' 1611b0c40a00SSimon J. Gerraty reduce memory allocations in the modifiers ':D' and ':U' 1612b0c40a00SSimon J. Gerraty rename members of ModifyWord_LoopArgs 1613b0c40a00SSimon J. Gerraty clean up pattern flags for the modifiers ':S' and ':C' 1614b0c40a00SSimon J. Gerraty reduce memory allocation and strlen calls in modifier ':from=to' 1615b0c40a00SSimon J. Gerraty in the ':Q' modifier, only allocate memory if necessary 1616b0c40a00SSimon J. Gerraty improve performance for LazyBuf 1617b0c40a00SSimon J. Gerraty remove redundant parameter from ParseVarnameLong 1618b0c40a00SSimon J. Gerraty migrate ParseModifierPart to use Substring 1619b0c40a00SSimon J. Gerraty avoid unnecessary calls to strlen when evaluating modifiers 1620b0c40a00SSimon J. Gerraty migrate ModifyWord functions to use Substring 1621b0c40a00SSimon J. Gerraty migrate handling of the modifier ':S,from,to,' to Substring 1622b0c40a00SSimon J. Gerraty reduce debug logging and memory allocation for ${:U...} 1623b0c40a00SSimon J. Gerraty reduce verbosity of the -dv debug logging for standard cases 1624b0c40a00SSimon J. Gerraty clean up debug logging for ':M' and ':N' 1625b0c40a00SSimon J. Gerraty disallow '$' in the variable name of the modifier ':@' 1626b0c40a00SSimon J. Gerraty simplify access to the name of an expression during evaluation 1627b0c40a00SSimon J. Gerraty 1628b0c40a00SSimon J. Gerraty2021-03-30 Simon J Gerraty <sjg@beast.crufty.net> 1629b0c40a00SSimon J. Gerraty 1630b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210330 1631b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1632b0c40a00SSimon J. Gerraty o replace enum bit-field with struct bit-field for VarEvalFlags 1633b0c40a00SSimon J. Gerraty o rename VARE_NONE to VARE_PARSE_ONLY 1634b0c40a00SSimon J. Gerraty o var.c: rename ApplyModifiersState to ModChain 1635b0c40a00SSimon J. Gerraty fix double varname expansion in the variable modifier '::=' 1636b0c40a00SSimon J. Gerraty change debug log for variable evaluation flags to lowercase 1637b0c40a00SSimon J. Gerraty 1638b0c40a00SSimon J. Gerraty2021-03-14 Simon J Gerraty <sjg@beast.crufty.net> 1639b0c40a00SSimon J. Gerraty 1640b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210314 1641b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1642b0c40a00SSimon J. Gerraty o var.c: avoid evaluating many modifiers in parse only mode 1643b0c40a00SSimon J. Gerraty in strict mode (-dL) many variable references are parsed twice, 1644b0c40a00SSimon J. Gerraty the first time just to report parse errors early, so we want to 1645b0c40a00SSimon J. Gerraty avoid side effects and wasted effort to the extent possible. 1646b0c40a00SSimon J. Gerraty 1647b0c40a00SSimon J. Gerraty2021-02-26 Simon J Gerraty <sjg@beast.crufty.net> 1648b0c40a00SSimon J. Gerraty 1649b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210226 1650b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 1651b0c40a00SSimon J. Gerraty o remove freestanding freeIt variables 1652b0c40a00SSimon J. Gerraty link via FStr 1653b0c40a00SSimon J. Gerraty o var.c: restructure code in ParseVarname to target human readers 1654b0c40a00SSimon J. Gerraty improve error message for; 1655b0c40a00SSimon J. Gerraty bad modifier in variable expression 1656b0c40a00SSimon J. Gerraty unclosed modifier 1657b0c40a00SSimon J. Gerraty unknown modifier 1658b0c40a00SSimon J. Gerraty remove redundant parameter of ApplySingleModifier 1659b0c40a00SSimon J. Gerraty explain non-obvious code around indirect variable modifiers 1660b0c40a00SSimon J. Gerraty quote ':S' in error message about missing delimiter 1661b0c40a00SSimon J. Gerraty extract ParseModifier_Match into separate function 1662b0c40a00SSimon J. Gerraty add context information to error message about ':range' modifier 1663b0c40a00SSimon J. Gerraty add quotes around variable name in an error message 1664b0c40a00SSimon J. Gerraty reorder code in ModifyWords 1665b0c40a00SSimon J. Gerraty use more common parameter order for VarSelectWords 1666b0c40a00SSimon J. Gerraty make ModifyWord_Subst a little easier to understand 1667b0c40a00SSimon J. Gerraty do not expand variable name from the command line twice 1668b0c40a00SSimon J. Gerraty extract ExistsInCmdline from Var_SetWithFlags 1669b0c40a00SSimon J. Gerraty save a hash map lookup when defining a cmdline variable 1670b0c40a00SSimon J. Gerraty clean up VarAdd, Var_Delete, Var_ReexportVars 1671b0c40a00SSimon J. Gerraty use bit-shift expressions for VarFlags constants 1672b0c40a00SSimon J. Gerraty rename constants for VarFlags 1673b0c40a00SSimon J. Gerraty rename ExprDefined constants for debug logging 1674b0c40a00SSimon J. Gerraty rename ExprStatus to ExprDefined 1675b0c40a00SSimon J. Gerraty split parameters for evaluating variable expressions 1676b0c40a00SSimon J. Gerraty reduce redundant code around ModifyWords 1677b0c40a00SSimon J. Gerraty print error about failed shell command before overwriting variable 1678b0c40a00SSimon J. Gerraty clean up ValidShortVarname, ParseVarnameShort 1679b0c40a00SSimon J. Gerraty rename VarExprStatus to ExprStatus 1680b0c40a00SSimon J. Gerraty add functions for assigning the value of an expression 1681b0c40a00SSimon J. Gerraty rename ApplyModifiersState_Define to Expr_Define 1682b0c40a00SSimon J. Gerraty condense the code for parsing :S and :C modifiers 1683b0c40a00SSimon J. Gerraty 1684dba7b0efSSimon J. Gerraty2021-02-06 Simon J Gerraty <sjg@beast.crufty.net> 1685dba7b0efSSimon J. Gerraty 1686dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210206 1687dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1688dba7b0efSSimon J. Gerraty o unit-tests: use private TMPDIR to avoid errors from other users 1689dba7b0efSSimon J. Gerraty 1690dba7b0efSSimon J. Gerraty2021-02-05 Simon J Gerraty <sjg@beast.crufty.net> 1691dba7b0efSSimon J. Gerraty 1692dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210205 1693dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1694dba7b0efSSimon J. Gerraty o avoid strdup in mkTempFile 1695dba7b0efSSimon J. Gerraty o always use vfork 1696dba7b0efSSimon J. Gerraty o rename context and ctxt to scope 1697dba7b0efSSimon J. Gerraty o rename some VAR constants to SCOPE 1698dba7b0efSSimon J. Gerraty o Var_ functions, move the scope to the front 1699dba7b0efSSimon J. Gerraty o use shortcut functions Global_Set and Global_Append 1700dba7b0efSSimon J. Gerraty o add shortcut Global_Delete for deleting a global variable 1701dba7b0efSSimon J. Gerraty o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete 1702dba7b0efSSimon J. Gerraty o compat.c: when exiting due to an error, print graph information 1703dba7b0efSSimon J. Gerraty o enum.c: remove overengineered Enum_ValueToString 1704dba7b0efSSimon J. Gerraty o make.c: remove unused INTERNAL flag 1705dba7b0efSSimon J. Gerraty remove unused return type of MakeBuildParent 1706dba7b0efSSimon J. Gerraty o parse.c: replace parse error "Need an operator" with better message 1707dba7b0efSSimon J. Gerraty o var.c: improve documentation about variable scopes 1708dba7b0efSSimon J. Gerraty rename Var_ValueDirect to GNode_ValueDirect 1709dba7b0efSSimon J. Gerraty rename old Var_SetWithFlags to Var_SetExpandWithFlags 1710dba7b0efSSimon J. Gerraty merge SetVar into Var_SetWithFlags 1711dba7b0efSSimon J. Gerraty split Var_Exists into plain Var_Exists and Var_ExistsExpand 1712dba7b0efSSimon J. Gerraty split Var_Append into Var_Append and Var_AppendExpand 1713dba7b0efSSimon J. Gerraty replace enum bit-set with bit-field 1714dba7b0efSSimon J. Gerraty o unit-tests/var-op-shell: use kill rather than kill -14 1715dba7b0efSSimon J. Gerraty which broke on darwin with recent update. 1716dba7b0efSSimon J. Gerraty 1717dba7b0efSSimon J. Gerraty2021-02-01 Simon J Gerraty <sjg@beast.crufty.net> 1718dba7b0efSSimon J. Gerraty 1719dba7b0efSSimon J. Gerraty * configure.in: check for sig_atomic_t and define it as 'int' 1720dba7b0efSSimon J. Gerraty if missing. 1721dba7b0efSSimon J. Gerraty 1722dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210201 1723dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1724dba7b0efSSimon J. Gerraty o use sig_atomic_t for caught_sigchld 1725dba7b0efSSimon J. Gerraty 1726dba7b0efSSimon J. Gerraty2021-01-30 Simon J Gerraty <sjg@beast.crufty.net> 1727dba7b0efSSimon J. Gerraty 1728dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210130 1729dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1730dba7b0efSSimon J. Gerraty o more unit tests 1731dba7b0efSSimon J. Gerraty o convert SearchPath to struct 1732dba7b0efSSimon J. Gerraty o split Buf_Destroy into Buf_Done and Buf_DoneData 1733dba7b0efSSimon J. Gerraty o for.c: split For_Eval into separate functions 1734dba7b0efSSimon J. Gerraty rename struct For to struct ForLoop 1735dba7b0efSSimon J. Gerraty o job.c: do not create empty shell files in jobs mode 1736dba7b0efSSimon J. Gerraty rename JobOpenTmpFile to JobWriteShellCommands 1737dba7b0efSSimon J. Gerraty reduce unnecessary calls to waitpid 1738dba7b0efSSimon J. Gerraty o parse.c: in -dp mode, print stack trace with each diagnostic 1739dba7b0efSSimon J. Gerraty 1740dba7b0efSSimon J. Gerraty2021-01-23 Simon J Gerraty <sjg@beast.crufty.net> 1741dba7b0efSSimon J. Gerraty 1742dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210123 1743dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1744dba7b0efSSimon J. Gerraty o rename Dir_Expand to SearchPath_Expand 1745dba7b0efSSimon J. Gerraty o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags 1746dba7b0efSSimon J. Gerraty o cond.c: fix debug output for comparison operators in conditionals 1747dba7b0efSSimon J. Gerraty o dir.c: split Dir_FindFile into separate functions 1748dba7b0efSSimon J. Gerraty 1749dba7b0efSSimon J. Gerraty2021-01-20 Simon J Gerraty <sjg@beast.crufty.net> 1750dba7b0efSSimon J. Gerraty 1751dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210120 1752dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 1753dba7b0efSSimon J. Gerraty o fix some more lint nits 1754dba7b0efSSimon J. Gerraty o refine some unit tests for portability 1755dba7b0efSSimon J. Gerraty o cond.c: rework parsing 1756dba7b0efSSimon J. Gerraty 175706b9b3e0SSimon J. Gerraty2021-01-10 Simon J Gerraty <sjg@beast.crufty.net> 175806b9b3e0SSimon J. Gerraty 175906b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210110 176006b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 176106b9b3e0SSimon J. Gerraty o fix lint warnings 176206b9b3e0SSimon J. Gerraty o consistently use boolean expressions in conditions 176306b9b3e0SSimon J. Gerraty 176406b9b3e0SSimon J. Gerraty2021-01-08 Simon J Gerraty <sjg@beast.crufty.net> 176506b9b3e0SSimon J. Gerraty 176606b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210108 176706b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 176806b9b3e0SSimon J. Gerraty o job.c: back to polling token pipe if we want a token 176906b9b3e0SSimon J. Gerraty o main.c: always print 'stopped in' on first call 177006b9b3e0SSimon J. Gerraty The execption is if we bail because of an abort token 177106b9b3e0SSimon J. Gerraty in which case just exit 6. 177206b9b3e0SSimon J. Gerraty 177306b9b3e0SSimon J. Gerraty2021-01-01 Simon J Gerraty <sjg@beast.crufty.net> 177406b9b3e0SSimon J. Gerraty 177506b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210101 177606b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 177706b9b3e0SSimon J. Gerraty o Happy New Year! 177806b9b3e0SSimon J. Gerraty o rename CmdOpts.lint to strict 177906b9b3e0SSimon J. Gerraty o exit 2 on technical errors 178006b9b3e0SSimon J. Gerraty o replace pointers in controlling conditions with booleans 178106b9b3e0SSimon J. Gerraty o replace global preserveUndefined with VARE_KEEP_UNDEF 178206b9b3e0SSimon J. Gerraty o compat.c: re-export variables from the actual make process 178306b9b3e0SSimon J. Gerraty if using vfork this is the effect anyway 178406b9b3e0SSimon J. Gerraty o cond.c: clean up VarParseResult constants 178506b9b3e0SSimon J. Gerraty o for.c: fix undefined behavior in SubstVarLong 178606b9b3e0SSimon J. Gerraty make control flow in SubstVarLong of .for loops more obvious 178706b9b3e0SSimon J. Gerraty clean up SubstVarShort in .for loops 178806b9b3e0SSimon J. Gerraty extract ForSubstBody from ForReadMore 178906b9b3e0SSimon J. Gerraty clean up ForReadMore 179006b9b3e0SSimon J. Gerraty simplify termination condition for .for loop 179106b9b3e0SSimon J. Gerraty add error handling for .for loop items 179206b9b3e0SSimon J. Gerraty job.c: re-export variables from the actual make process 179306b9b3e0SSimon J. Gerraty parse.c: remove mmap for loading files, only allow files < 1 GiB 179406b9b3e0SSimon J. Gerraty fix edge case in := with undefined in variable name 179506b9b3e0SSimon J. Gerraty skip variable expansion in ParseDependencyTargetWord 179606b9b3e0SSimon J. Gerraty var.c: split ExportVar into separate functions 179706b9b3e0SSimon J. Gerraty clean up code in extracted ExportVar functions 179806b9b3e0SSimon J. Gerraty remove dead code from ApplyModifiersIndirect 179906b9b3e0SSimon J. Gerraty split Var_Subst into easily understandable functions 180006b9b3e0SSimon J. Gerraty clean up VarParseResult constants 180106b9b3e0SSimon J. Gerraty 180206b9b3e0SSimon J. Gerraty2020-12-25 Simon J Gerraty <sjg@beast.crufty.net> 180306b9b3e0SSimon J. Gerraty 180406b9b3e0SSimon J. Gerraty * main.c: use .MAKE.DEPENDFILE as set by makefiles 180506b9b3e0SSimon J. Gerraty 180606b9b3e0SSimon J. Gerraty2020-12-22 Simon J Gerraty <sjg@beast.crufty.net> 180706b9b3e0SSimon J. Gerraty 180806b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201222 180906b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 181006b9b3e0SSimon J. Gerraty o make DEBUG macro return boolean 181106b9b3e0SSimon J. Gerraty o parse.c: fix assertion failure for files without trailing newline 181206b9b3e0SSimon J. Gerraty o var.c: allow .undef to undefine multiple variables at once 181306b9b3e0SSimon J. Gerraty remove excess newline from parse errors 181406b9b3e0SSimon J. Gerraty 181506b9b3e0SSimon J. Gerraty2020-12-21 Simon J Gerraty <sjg@beast.crufty.net> 181606b9b3e0SSimon J. Gerraty 181706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201221 181806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 181906b9b3e0SSimon J. Gerraty o some unit-test updates 182006b9b3e0SSimon J. Gerraty 182106b9b3e0SSimon J. Gerraty2020-12-20 Simon J Gerraty <sjg@beast.crufty.net> 182206b9b3e0SSimon J. Gerraty 182306b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201220 182406b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 182506b9b3e0SSimon J. Gerraty o more unit tests 182606b9b3e0SSimon J. Gerraty o return FStr from Var_Parse and Var_Value 182706b9b3e0SSimon J. Gerraty o spell nonexistent consistently 182806b9b3e0SSimon J. Gerraty o add str_basename to reduce duplicate code 182906b9b3e0SSimon J. Gerraty o compat.c: fix .ERROR_TARGET in compat -k mode 183006b9b3e0SSimon J. Gerraty extract InitSignals from Compat_Run 183106b9b3e0SSimon J. Gerraty extract UseShell from Compat_RunCommand 183206b9b3e0SSimon J. Gerraty o cond.c: error out if an '.endif' or '.else' contain extraneous text 183306b9b3e0SSimon J. Gerraty o for.c: rename ForIterate to ForReadMore 183406b9b3e0SSimon J. Gerraty o hash.c: clean up hash function for HashTable 183506b9b3e0SSimon J. Gerraty o lst.c: rename Vector.priv_cap to cap 183606b9b3e0SSimon J. Gerraty o main.c: remove constant parameter from MakeMode 183706b9b3e0SSimon J. Gerraty o make.c: use symbolic time for 0 in Make_Recheck 183806b9b3e0SSimon J. Gerraty extract MakeChildren from MakeStartJobs 183906b9b3e0SSimon J. Gerraty o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar 184006b9b3e0SSimon J. Gerraty fix error message for .info/.warning/.error without argument 184106b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 184206b9b3e0SSimon J. Gerraty extract ParseSkippedBranches, ParseForLoop from ParseReadLine 184306b9b3e0SSimon J. Gerraty rename mode constants for ParseGetLine to be more expressive 184406b9b3e0SSimon J. Gerraty reduce debugging details in Parse_SetInput 184506b9b3e0SSimon J. Gerraty fix line numbers in .for loops 184606b9b3e0SSimon J. Gerraty split ParseGetLine into separate functions 184706b9b3e0SSimon J. Gerraty fix garbled output for failed shell command 184806b9b3e0SSimon J. Gerraty var.c: remove redundant assignment in ApplyModifier_SysV 184906b9b3e0SSimon J. Gerraty error out on unknown variable modifiers at parse time 185006b9b3e0SSimon J. Gerraty remove wrong error message for indirect modifier in lint mode 185106b9b3e0SSimon J. Gerraty extract ApplySingleModifier from ApplyModifiers 185206b9b3e0SSimon J. Gerraty use FStr for memory management in Var_SetWithFlags 185306b9b3e0SSimon J. Gerraty extract SetVar from Var_SetWithFlags 185406b9b3e0SSimon J. Gerraty use FStr in VarNew 185506b9b3e0SSimon J. Gerraty extract string functions from ApplyModifier_To 185606b9b3e0SSimon J. Gerraty error out if .undef has not exactly 1 argument 185706b9b3e0SSimon J. Gerraty extract Var_DeleteVar from Var_Delete 185806b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 185906b9b3e0SSimon J. Gerraty clean up memory management for expanding variable expressions 186006b9b3e0SSimon J. Gerraty 186106b9b3e0SSimon J. Gerraty2020-12-12 Simon J Gerraty <sjg@beast.crufty.net> 186206b9b3e0SSimon J. Gerraty 186306b9b3e0SSimon J. Gerraty * avoid %zu 186406b9b3e0SSimon J. Gerraty 186506b9b3e0SSimon J. Gerraty * lst.c: avoid anonymous union 186606b9b3e0SSimon J. Gerraty 186706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201212 186806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 186906b9b3e0SSimon J. Gerraty o more unit tests 187006b9b3e0SSimon J. Gerraty o inline Targ_Ignore and Targ_Silent 187106b9b3e0SSimon J. Gerraty o split JobFlags into separate fields 187206b9b3e0SSimon J. Gerraty o remove const from function parameters (left overs from refactoring) 187306b9b3e0SSimon J. Gerraty o eliminate boolean argument of Var_Export 187406b9b3e0SSimon J. Gerraty o make API of Buf_Init simpler 187506b9b3e0SSimon J. Gerraty o rename ParseRunOptions to ParseCommandFlags 187606b9b3e0SSimon J. Gerraty o replace *line with line[0] 187706b9b3e0SSimon J. Gerraty o compat.c: fix wrong exit status for multiple failed main targets 187806b9b3e0SSimon J. Gerraty refactor Compat_Run to show the error condition more clearly 187906b9b3e0SSimon J. Gerraty don't make .END if the main targets already failed (-k mode) 188006b9b3e0SSimon J. Gerraty fix exit status in -k mode if a dependency fails 188106b9b3e0SSimon J. Gerraty o for.c: clean up Buf_AddEscaped in .for loops 188206b9b3e0SSimon J. Gerraty o job.c: extract ShellWriter_ErrOn from JobPrintCommand 188306b9b3e0SSimon J. Gerraty make Job_Touch simpler 188406b9b3e0SSimon J. Gerraty refactor JobFinish 188506b9b3e0SSimon J. Gerraty rename Shell.exitFlag to errFlag 188606b9b3e0SSimon J. Gerraty move Job.xtraced to ShellWriter 188706b9b3e0SSimon J. Gerraty make printing of shell commands independent from the job 188806b9b3e0SSimon J. Gerraty rename shell flags in struct Shell 188906b9b3e0SSimon J. Gerraty extract JobOpenTmpFile from JobStart 189006b9b3e0SSimon J. Gerraty rename RunFlags to CommandFlags 189106b9b3e0SSimon J. Gerraty split various Job.* into separate fields 189206b9b3e0SSimon J. Gerraty rename commandShell to shell 189306b9b3e0SSimon J. Gerraty extract InitShellNameAndPath from Shell_Init 189406b9b3e0SSimon J. Gerraty replace signal handling macros with local functions 189506b9b3e0SSimon J. Gerraty replace macro MESSAGE with local function 189606b9b3e0SSimon J. Gerraty parse.c: error out on null bytes in makefiles 189706b9b3e0SSimon J. Gerraty error out on misspelled directives 189806b9b3e0SSimon J. Gerraty rename IFile.nextbuf to readMore 189906b9b3e0SSimon J. Gerraty fix undefined behavior in ParseEOF 190006b9b3e0SSimon J. Gerraty str.c: remove redundant call to strlen in Str_Words 190106b9b3e0SSimon J. Gerraty var.c: error out on misspelled .unexport-env 190206b9b3e0SSimon J. Gerraty error out on misspelled .export directives 190306b9b3e0SSimon J. Gerraty extract ExportVars from Var_Export 190406b9b3e0SSimon J. Gerraty extract ExportVarsExpand from Var_Export 190506b9b3e0SSimon J. Gerraty eliminate boolean argument of Var_Export 190606b9b3e0SSimon J. Gerraty fix undefined behavior when exporting ${:U } 190706b9b3e0SSimon J. Gerraty rename Var_ExportVars to Var_ReexportVars 190806b9b3e0SSimon J. Gerraty rename Var_Export1 to ExportVar 190906b9b3e0SSimon J. Gerraty 191006b9b3e0SSimon J. Gerraty2020-12-06 Simon J Gerraty <sjg@beast.crufty.net> 191106b9b3e0SSimon J. Gerraty 191206b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201206 191306b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 191406b9b3e0SSimon J. Gerraty o more unit tests 191506b9b3e0SSimon J. Gerraty o inline macros for debug logging 191606b9b3e0SSimon J. Gerraty o use consistent variable names for list nodes 191706b9b3e0SSimon J. Gerraty o define constants for enum zero-values 191806b9b3e0SSimon J. Gerraty o dir.c: use fixed format for debug output of the directory cache 191906b9b3e0SSimon J. Gerraty remove Dir_InitDir 192006b9b3e0SSimon J. Gerraty o lst.c: inline Lst_Enqueue, Vector_Done 192106b9b3e0SSimon J. Gerraty o meta.c: remove unused parameter from meta_needed 192206b9b3e0SSimon J. Gerraty o parse.c: rename parse functions 192306b9b3e0SSimon J. Gerraty o suff.c: extract ExpandChildrenRegular from ExpandChildren 192406b9b3e0SSimon J. Gerraty o targ.c: don't concatenate identifiers in Targ_PrintType 192506b9b3e0SSimon J. Gerraty o var.c: remove comment decoration 192606b9b3e0SSimon J. Gerraty extract UnexportVars from Var_UnExport 192706b9b3e0SSimon J. Gerraty extract GetVarnamesToUnexport from Var_UnExport 192806b9b3e0SSimon J. Gerraty extract UnexportEnv from Var_UnExport 192906b9b3e0SSimon J. Gerraty extract UnexportVar from Var_UnExport 193006b9b3e0SSimon J. Gerraty move CleanEnv to UnexportVars 193106b9b3e0SSimon J. Gerraty replace pointer comparisons with enum 193206b9b3e0SSimon J. Gerraty add FStr to var.c to make memory handling simpler 193306b9b3e0SSimon J. Gerraty use FStr in Var_UnExport 193406b9b3e0SSimon J. Gerraty move type definitions in var.c to the top 193506b9b3e0SSimon J. Gerraty extract FreeEnvVar from Var_Parse 193606b9b3e0SSimon J. Gerraty extract ShuffleStrings from ApplyModifier_Order 193706b9b3e0SSimon J. Gerraty 193806b9b3e0SSimon J. Gerraty2020-11-30 Simon J Gerraty <sjg@beast.crufty.net> 193906b9b3e0SSimon J. Gerraty 194006b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201130 194106b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 194206b9b3e0SSimon J. Gerraty o add unit tests for META MODE 194306b9b3e0SSimon J. Gerraty o reduce memory allocation for dirSearchPath, GNode.parents, 194406b9b3e0SSimon J. Gerraty GNode.children, OpenDirs 194506b9b3e0SSimon J. Gerraty o reduce pointer indirection for GNode.cohorts and 194606b9b3e0SSimon J. Gerraty GNode.implicitParents 194706b9b3e0SSimon J. Gerraty o remove pointer indirection from GNode.commands 194806b9b3e0SSimon J. Gerraty o inline Lst_ForEachUntil in meta mode 194906b9b3e0SSimon J. Gerraty o dir.c: fix memory leak for lstat cache in -DCLEANUP mode 195006b9b3e0SSimon J. Gerraty clean up memory management for CachedDirs 195106b9b3e0SSimon J. Gerraty fix the reference count of dotLast going negative 195206b9b3e0SSimon J. Gerraty add debug logging for OpenDirs_Done 195306b9b3e0SSimon J. Gerraty extract CacheNewDir from Dir_AddDir 195406b9b3e0SSimon J. Gerraty add debug logging for reference counting of CachedDir 195506b9b3e0SSimon J. Gerraty rename some Dir functions to SearchPath 195606b9b3e0SSimon J. Gerraty o job.c: rename some global variables 195706b9b3e0SSimon J. Gerraty o main.c: reduce memory allocation in ReadBuiltinRules 195806b9b3e0SSimon J. Gerraty reduce memory allocation in CmdOpts.create, CmdOpts.variables, 195906b9b3e0SSimon J. Gerraty CmdOpts.makefiles 196006b9b3e0SSimon J. Gerraty Add .MAKE.UID and .MAKE.GID 196106b9b3e0SSimon J. Gerraty o make.c: reduce memory allocation for/in toBeMade, 196206b9b3e0SSimon J. Gerraty Make_ProcessWait, Make_ExpandUse 196306b9b3e0SSimon J. Gerraty o meta.c: reduce memory allocation in meta_oodate 196406b9b3e0SSimon J. Gerraty o parse.c: reduce memory allocations for parsing dependencies and 196506b9b3e0SSimon J. Gerraty targets 196606b9b3e0SSimon J. Gerraty o suff.c: reduce memory allocation in suffix handling 196706b9b3e0SSimon J. Gerraty 196806b9b3e0SSimon J. Gerraty2020-11-24 Simon J Gerraty <sjg@beast.crufty.net> 196906b9b3e0SSimon J. Gerraty 197006b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201124 197106b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 197206b9b3e0SSimon J. Gerraty o .MAKE.{UID,GID} represent uid and gid running make. 197306b9b3e0SSimon J. Gerraty o fix error handling for .BEGIN and .END dependency in -k mode 197406b9b3e0SSimon J. Gerraty o fix missing "Stop." after failed .END node in -k mode 197506b9b3e0SSimon J. Gerraty o use properly typed comparisons in boolean contexts 197606b9b3e0SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 197706b9b3e0SSimon J. Gerraty o add HashSet type 197806b9b3e0SSimon J. Gerraty o compat.c: split Compat_Make into smaller functions 197906b9b3e0SSimon J. Gerraty extract DebugFailedTarget from Compat_RunCommand 198006b9b3e0SSimon J. Gerraty o dir.c: refactor Dir_UpdateMTime 198106b9b3e0SSimon J. Gerraty migrate CachedDir.files from HashTable to HashSet 198206b9b3e0SSimon J. Gerraty o make.c: add high-level API for GNode.made 198306b9b3e0SSimon J. Gerraty 198406b9b3e0SSimon J. Gerraty2020-11-22 Simon J Gerraty <sjg@beast.crufty.net> 198506b9b3e0SSimon J. Gerraty 198606b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201122 198706b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 198806b9b3e0SSimon J. Gerraty o rename GNode.context to vars 198906b9b3e0SSimon J. Gerraty o suff.c: cleanup and refactor 199006b9b3e0SSimon J. Gerraty rename some functions and vars to better reflect usage 199106b9b3e0SSimon J. Gerraty add high-level API for CandidateSearcher 199206b9b3e0SSimon J. Gerraty o targ.c: add more debug logging for suffix handling 199306b9b3e0SSimon J. Gerraty o more unit tests 199406b9b3e0SSimon J. Gerraty o add debug logging for setting and resetting the main target 199506b9b3e0SSimon J. Gerraty 1996e2eeea75SSimon J. Gerraty2020-11-17 Simon J Gerraty <sjg@beast.crufty.net> 1997e2eeea75SSimon J. Gerraty 1998e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201117 1999e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 200006b9b3e0SSimon J. Gerraty o fix some unit-tests when .SHELL is dash 2001e2eeea75SSimon J. Gerraty o rename Targ_NewGN to GNode_New 2002e2eeea75SSimon J. Gerraty o make some GNode functions const 2003e2eeea75SSimon J. Gerraty o main.c: call Targ_Init before Var_Init 2004e2eeea75SSimon J. Gerraty cleanup PrintOnError, getTmpdir and ParseBoolean 2005e2eeea75SSimon J. Gerraty o var.c: fix error message of failed :!cmd! modifier 2006e2eeea75SSimon J. Gerraty 2007e2eeea75SSimon J. Gerraty2020-11-14 Simon J Gerraty <sjg@beast.crufty.net> 2008e2eeea75SSimon J. Gerraty 2009e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201114 2010e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 2011e2eeea75SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 2012e2eeea75SSimon J. Gerraty o clean up cached_stats 2013e2eeea75SSimon J. Gerraty o rename DEFAULT to defaultNode 2014e2eeea75SSimon J. Gerraty o remove redundant struct make_stat 2015e2eeea75SSimon J. Gerraty o cond.c: in lint mode, check for ".else <cond>" 2016e2eeea75SSimon J. Gerraty use bitset for IfState 2017e2eeea75SSimon J. Gerraty replace large switch with if-else in Cond_EvalLine 2018e2eeea75SSimon J. Gerraty o job.c: clean up JobExec, JobStart, JobDoOutput 2019e2eeea75SSimon J. Gerraty use stderr for error message about failed touch 2020e2eeea75SSimon J. Gerraty clean up Job_Touch 2021e2eeea75SSimon J. Gerraty replace macro DBPRINTF with JobPrintln 2022e2eeea75SSimon J. Gerraty rename JobState to JobStatus 2023e2eeea75SSimon J. Gerraty main.c: switch cache for realpath from GNode to HashTable 2024e2eeea75SSimon J. Gerraty clean up Fatal 2025e2eeea75SSimon J. Gerraty clean up InitDefSysIncPath 2026e2eeea75SSimon J. Gerraty use progname instead of hard-coded 'make' in warning 2027e2eeea75SSimon J. Gerraty rename Main_SetVarObjdir to SetVarObjdir 2028e2eeea75SSimon J. Gerraty make.1: document the -S option 2029e2eeea75SSimon J. Gerraty make.c: fix debug output for GNode details 2030e2eeea75SSimon J. Gerraty use symbolic names in debug output of GNodes 2031e2eeea75SSimon J. Gerraty 2032e2eeea75SSimon J. Gerraty2020-11-12 Simon J Gerraty <sjg@beast.crufty.net> 2033e2eeea75SSimon J. Gerraty 2034e2eeea75SSimon J. Gerraty * configure.in: fix --with-force-machine-arch 2035e2eeea75SSimon J. Gerraty 2036e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201112 2037e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 2038e2eeea75SSimon J. Gerraty o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable 2039e2eeea75SSimon J. Gerraty checks in InitObjdir. Explicit .OBJDIR target always allows 2040e2eeea75SSimon J. Gerraty read-only directory. 2041e2eeea75SSimon J. Gerraty o cond.c: clean up Cond_EvalLine 2042e2eeea75SSimon J. Gerraty 2043e2eeea75SSimon J. Gerraty2020-11-11 Simon J Gerraty <sjg@beast.crufty.net> 2044e2eeea75SSimon J. Gerraty 2045e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201111 2046e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 2047e2eeea75SSimon J. Gerraty o more unit-tests 2048e2eeea75SSimon J. Gerraty o style cleanup 2049e2eeea75SSimon J. Gerraty remove redundant parentheses from sizeof operator 2050e2eeea75SSimon J. Gerraty replace character literal 0 with '\0'. 2051e2eeea75SSimon J. Gerraty replace pointer literal 0 with NULL. 2052e2eeea75SSimon J. Gerraty remove redundant parentheses. 2053e2eeea75SSimon J. Gerraty replace (expr & mask) == 0 with !(expr & mask). 2054e2eeea75SSimon J. Gerraty use strict typing in conditions of the form !var 2055e2eeea75SSimon J. Gerraty o rename Make_OODate to GNode_IsOODate 2056e2eeea75SSimon J. Gerraty o rename Make_TimeStamp to GNode_UpdateYoungestChild 2057e2eeea75SSimon J. Gerraty o rename Var_Set_with_flags to Var_SetWithFlags 2058e2eeea75SSimon J. Gerraty o rename dieQuietly to shouldDieQuietly 2059e2eeea75SSimon J. Gerraty o buf.c: make API of Buf_Init simpler 2060e2eeea75SSimon J. Gerraty o compat.c: clean up Compat_Make, Compat_RunCommand, 2061e2eeea75SSimon J. Gerraty CompatDeleteTarget and CompatInterrupt 2062e2eeea75SSimon J. Gerraty o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|' 2063e2eeea75SSimon J. Gerraty clean up CondParser_Comparison 2064e2eeea75SSimon J. Gerraty o main.c: rename getBoolean and s2Boolean 2065e2eeea75SSimon J. Gerraty rename MAKEFILE_PREFERENCE for consistency 2066e2eeea75SSimon J. Gerraty o parse.c: replace strstr in ParseMaybeSubMake with optimized code 2067e2eeea75SSimon J. Gerraty o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR 2068e2eeea75SSimon J. Gerraty replace emptyString with allocated empty string 2069e2eeea75SSimon J. Gerraty error out on unclosed expressions after the colon 2070e2eeea75SSimon J. Gerraty 2071956e45f6SSimon J. Gerraty2020-11-01 Simon J Gerraty <sjg@beast.crufty.net> 2072956e45f6SSimon J. Gerraty 2073956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201101 2074956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2075956e45f6SSimon J. Gerraty o negate NoExecute to GNode_ShouldExecute 2076956e45f6SSimon J. Gerraty o job.c: rename JobMatchShell to FindShellByName 2077956e45f6SSimon J. Gerraty extract EscapeShellDblQuot from JobPrintCommand 2078956e45f6SSimon J. Gerraty extract ParseRunOptions from JobPrintCommand 2079956e45f6SSimon J. Gerraty o var.c: extract ApplyModifiersIndirect from ApplyModifiers 2080956e45f6SSimon J. Gerraty treat malformed :range, :ts and :[...] as errors 2081956e45f6SSimon J. Gerraty add tests for the variable modifiers :[words] and :range 2082956e45f6SSimon J. Gerraty 2083956e45f6SSimon J. Gerraty2020-10-31 Simon J Gerraty <sjg@beast.crufty.net> 2084956e45f6SSimon J. Gerraty 2085956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201031 2086956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2087956e45f6SSimon J. Gerraty o format #include directives consistently 2088956e45f6SSimon J. Gerraty o do not look up local variables like .TARGET anywhere else 2089956e45f6SSimon J. Gerraty o main.c: Main_SetObjdir is first called for curdir which may be 2090956e45f6SSimon J. Gerraty readonly 2091956e45f6SSimon J. Gerraty reduce the scope where recursive expressions are detected 2092956e45f6SSimon J. Gerraty remove redundant :tl from getBoolean 2093956e45f6SSimon J. Gerraty clean up mkTempFile 2094956e45f6SSimon J. Gerraty o meta.c: simplify memory allocation in meta_create and meta_oodate 2095956e45f6SSimon J. Gerraty o parse.c: extract loadedfile_mmap from loadfile 2096956e45f6SSimon J. Gerraty o trace.c: document possible undefined behavior with .CURDIR 2097956e45f6SSimon J. Gerraty o var.c: make parsing of the :gmtime and :localtime modifiers stricter 2098956e45f6SSimon J. Gerraty rename ismeta to is_shell_metachar 2099956e45f6SSimon J. Gerraty remove debug logging for the :Q variable modifier 2100956e45f6SSimon J. Gerraty rename VarIsDynamic to VarnameIsDynamic 2101956e45f6SSimon J. Gerraty use consistent parameter order in varname parsing functions 2102956e45f6SSimon J. Gerraty extract ParseVarnameLong from Var_Parse 2103956e45f6SSimon J. Gerraty extract ParseVarnameShort from Var_Parse 2104956e45f6SSimon J. Gerraty fix type of ParseModifierPart parameter delim 2105956e45f6SSimon J. Gerraty extract IsEscapedModifierPart from ParseModifierPart 2106956e45f6SSimon J. Gerraty clean up ModifyWords 2107956e45f6SSimon J. Gerraty add test for combining the :@ and :? variable modifiers 2108956e45f6SSimon J. Gerraty 2109956e45f6SSimon J. Gerraty2020-10-30 Simon J Gerraty <sjg@beast.crufty.net> 2110956e45f6SSimon J. Gerraty 2111956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201030 2112956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2113956e45f6SSimon J. Gerraty o change char * to void * in Var_Value 2114956e45f6SSimon J. Gerraty o make iterating over HashTable simpler 2115956e45f6SSimon J. Gerraty o rename VAR_CMD to VAR_CMDLINE 2116956e45f6SSimon J. Gerraty o cond.c: clean up is_separator 2117956e45f6SSimon J. Gerraty fix parse error in string literal in conditional 2118956e45f6SSimon J. Gerraty o main.c: do not use objdir that is not writable 2119956e45f6SSimon J. Gerraty in lint mode, exit with error status on errors 2120956e45f6SSimon J. Gerraty o parse.c: clean up StrContainsWord 2121956e45f6SSimon J. Gerraty fix out-of-bounds pointer in ParseTrackInput 2122956e45f6SSimon J. Gerraty o var.c: rename Str_SYSVMatch and its parameters 2123956e45f6SSimon J. Gerraty remove unsatisfiable conditions in Var_Set_with_flags 2124956e45f6SSimon J. Gerraty document where the variable name is expanded 2125956e45f6SSimon J. Gerraty fix documentation for VARP_SUB_ONE 2126956e45f6SSimon J. Gerraty rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME 2127956e45f6SSimon J. Gerraty document VAR_READONLY 2128956e45f6SSimon J. Gerraty prevent appending to read-only variables 2129956e45f6SSimon J. Gerraty extract MayExport from Var_Export1 2130956e45f6SSimon J. Gerraty remove redundant evaluations in VarFind 2131956e45f6SSimon J. Gerraty replace VarFindFlags with a simple Boolean 2132956e45f6SSimon J. Gerraty rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE 2133956e45f6SSimon J. Gerraty 2134956e45f6SSimon J. Gerraty2020-10-28 Simon J Gerraty <sjg@beast.crufty.net> 2135956e45f6SSimon J. Gerraty 2136956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201028 2137956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2138956e45f6SSimon J. Gerraty o rename defIncPath to defSysIncPath 2139956e45f6SSimon J. Gerraty o initialize all CmdOpts fields 2140956e45f6SSimon J. Gerraty o lst.c: inline Vector_Get 2141956e45f6SSimon J. Gerraty o main.c: refactor main extract 2142956e45f6SSimon J. Gerraty InitMaxJobs,InitObjdir,InitVarMake,InitRandom, 2143956e45f6SSimon J. Gerraty ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules, 2144956e45f6SSimon J. Gerraty InitDefIncPath,CmdOpts_Init,UnlimitFiles 2145956e45f6SSimon J. Gerraty o parse.c: merge curFile into includes 2146956e45f6SSimon J. Gerraty rename predecessor to order_pred 2147956e45f6SSimon J. Gerraty sort ParseSpecial alphabetically 2148956e45f6SSimon J. Gerraty remove unused, undocumented .NOEXPORT 2149956e45f6SSimon J. Gerraty rename ParseSpecial enum values consistently 2150956e45f6SSimon J. Gerraty rename some fields of struct IFile 2151956e45f6SSimon J. Gerraty 2152956e45f6SSimon J. Gerraty2020-10-26 Simon J Gerraty <sjg@beast.crufty.net> 2153956e45f6SSimon J. Gerraty 2154956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201026 2155956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2156956e45f6SSimon J. Gerraty o group the command line options and arguments into a struct 2157956e45f6SSimon J. Gerraty o rename GNode.cmgn to youngestChild 2158956e45f6SSimon J. Gerraty o rename hash functions to identify the type name 2159956e45f6SSimon J. Gerraty o negate OP_NOP and rename it to GNode_IsTarget 2160956e45f6SSimon J. Gerraty o add GNode_Path to access the path of a GNode 2161956e45f6SSimon J. Gerraty o remove macros MIN and MAX 2162956e45f6SSimon J. Gerraty o remove unused Lst_Find and Lst_FindFrom 2163956e45f6SSimon J. Gerraty o arch.c: and make Arch_FindLib simpler 2164956e45f6SSimon J. Gerraty clean up code layout 2165956e45f6SSimon J. Gerraty make Arch_ParseArchive simpler 2166956e45f6SSimon J. Gerraty o cond.c: inline CondFindStrMatch into FuncMake 2167956e45f6SSimon J. Gerraty o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath 2168956e45f6SSimon J. Gerraty omit trailing space in debug output for expanding file patterns 2169956e45f6SSimon J. Gerraty refactor DirMatchFiles 2170956e45f6SSimon J. Gerraty document that the SearchPath of Dir_FindFile may be NULL 2171956e45f6SSimon J. Gerraty remove UNCONST from Dir_Expand 2172956e45f6SSimon J. Gerraty inline DirFindName 2173956e45f6SSimon J. Gerraty o for.c: clean up code for handling .for loops 2174956e45f6SSimon J. Gerraty o hash.c: print hash in debug log with fixed width 2175956e45f6SSimon J. Gerraty clean up hash table functions 2176956e45f6SSimon J. Gerraty reduce amount of string hashing 2177956e45f6SSimon J. Gerraty o job.c: refactor JobDeleteTarget 2178956e45f6SSimon J. Gerraty use proper enum constants for aborting 2179956e45f6SSimon J. Gerraty convert result of JobStart from macros to enum 2180956e45f6SSimon J. Gerraty convert abort reason macros to enum 2181956e45f6SSimon J. Gerraty rework Job_CheckCommands to reduce indentation 2182956e45f6SSimon J. Gerraty rename Shell fields 2183956e45f6SSimon J. Gerraty add field names in declaration of DEFSHELL_CUSTOM 2184956e45f6SSimon J. Gerraty convert JobState and JobFlags to enum types 2185956e45f6SSimon J. Gerraty move handling of the "..." command to JobPrintCommands 2186956e45f6SSimon J. Gerraty o lst.c: clean up 2187956e45f6SSimon J. Gerraty refactor LstNodeNew 2188956e45f6SSimon J. Gerraty remove Lst_Open, Lst_Next, Lst_Close 2189956e45f6SSimon J. Gerraty remove code for circular lists from Lst_Next 2190956e45f6SSimon J. Gerraty o main.c: do not attempt to read .MAKE.DEPENFILE if set to 2191956e45f6SSimon J. Gerraty /dev/null or anything starting with "no" 2192956e45f6SSimon J. Gerraty convert macros for debug flags into enum 2193956e45f6SSimon J. Gerraty o make.c: inline Lst_Copy in Make_ExpandUse 2194956e45f6SSimon J. Gerraty o meta.c: inline Lst_Find in meta_oodate 2195956e45f6SSimon J. Gerraty make Lst_RemoveIf simpler in meta_oodate 2196956e45f6SSimon J. Gerraty o parse.c: convert error level for Parse_Error to an enum 2197956e45f6SSimon J. Gerraty o suff.c: properly terminate debug output with newline 2198956e45f6SSimon J. Gerraty add more details to DEBUG_SRC log 2199956e45f6SSimon J. Gerraty replace Dir_CopyDir with Dir_CopyDirSearchPath 2200956e45f6SSimon J. Gerraty don't modify GNode name while rebuilding the suffix graph 2201956e45f6SSimon J. Gerraty o var.c: reduce duplicate code in VarFind 2202956e45f6SSimon J. Gerraty 2203956e45f6SSimon J. Gerraty2020-10-22 Simon J Gerraty <sjg@beast.crufty.net> 2204956e45f6SSimon J. Gerraty 2205956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201022 2206956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2207956e45f6SSimon J. Gerraty o more refactoring and simplification to reduce code size 2208956e45f6SSimon J. Gerraty o var.c: extract CanonicalVarname from VarFind 2209956e45f6SSimon J. Gerraty o make.c: extract UpdateImplicitParentsVars from Make_Update 2210956e45f6SSimon J. Gerraty o main.c: extract PrintVar from doPrintVars 2211956e45f6SSimon J. Gerraty extract HandlePWD from main 2212956e45f6SSimon J. Gerraty o lst.c: inline simple Lst getters 2213956e45f6SSimon J. Gerraty remove unused Lst_ForEach 2214956e45f6SSimon J. Gerraty o job.c: move struct Shell from job.h to job.c 2215956e45f6SSimon J. Gerraty o more unit tests 2216956e45f6SSimon J. Gerraty 2217956e45f6SSimon J. Gerraty2020-10-19 Simon J Gerraty <sjg@beast.crufty.net> 2218956e45f6SSimon J. Gerraty 2219956e45f6SSimon J. Gerraty * configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT 2220956e45f6SSimon J. Gerraty 2221956e45f6SSimon J. Gerraty2020-10-18 Simon J Gerraty <sjg@beast.crufty.net> 2222956e45f6SSimon J. Gerraty 2223956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201018 2224956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2225956e45f6SSimon J. Gerraty o remove USE_IOVEC 2226956e45f6SSimon J. Gerraty o rename some Hash_* apis to Hash* 2227956e45f6SSimon J. Gerraty o replace execError with execDie 2228956e45f6SSimon J. Gerraty o rename Lst_Init to Lst_New 2229956e45f6SSimon J. Gerraty o add tags to enum types 2230956e45f6SSimon J. Gerraty o rename Stack to Vector 2231956e45f6SSimon J. Gerraty o parse.c: more refactoring 2232956e45f6SSimon J. Gerraty o unit-tests: make some tests use line buffered stdout 2233956e45f6SSimon J. Gerraty o unit-tests/Makefile: in meta mode do not make all tests depend on 2234956e45f6SSimon J. Gerraty Makefile, it isn't necessary. 2235956e45f6SSimon J. Gerraty 2236956e45f6SSimon J. Gerraty2020-10-10 Simon J Gerraty <sjg@beast.crufty.net> 2237956e45f6SSimon J. Gerraty 2238956e45f6SSimon J. Gerraty * main.c: check for CTL_HW being defined. 2239956e45f6SSimon J. Gerraty * unit-tests/Makefile: ensure export tests output are POSIX compliant 2240956e45f6SSimon J. Gerraty disable opt-debug-jobs test until it works on ubuntu 2241956e45f6SSimon J. Gerraty 2242956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201010 2243956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2244956e45f6SSimon J. Gerraty o dir.c: remove pathname limit for Dir_FindHereOrAbove 2245956e45f6SSimon J. Gerraty o hash.c: replace strcpy with memcpy in Hash_CreateEntry 2246956e45f6SSimon J. Gerraty o main.c: extract init_machine and init_machine_arch from main 2247956e45f6SSimon J. Gerraty allow to disable debug logging options 2248956e45f6SSimon J. Gerraty o parse.c: enable format string truncation warnings 2249956e45f6SSimon J. Gerraty extract parsing of sources from ParseDoDependency 2250956e45f6SSimon J. Gerraty split ParseDoSrc into smaller functions 2251956e45f6SSimon J. Gerraty hide implementation details from Parse_DoVar 2252956e45f6SSimon J. Gerraty clean up parsing of variable assignments 2253956e45f6SSimon J. Gerraty split Parse_DoVar into manageable pieces 2254956e45f6SSimon J. Gerraty don't modify the given line during Parse_DoVar 2255956e45f6SSimon J. Gerraty fix out-of-bounds memory access in Parse_DoVar 2256956e45f6SSimon J. Gerraty fix parsing of the :sh assignment modifier 2257956e45f6SSimon J. Gerraty o var.c: rework memory allocation for the name of variables 2258956e45f6SSimon J. Gerraty extract ApplyModifier_Literal into separate function 2259956e45f6SSimon J. Gerraty in lint mode, reject modifiers without delimiter 2260956e45f6SSimon J. Gerraty do not export variable names starting with '-' 2261956e45f6SSimon J. Gerraty o fix double-free bug in -DCLEANUP mode 2262956e45f6SSimon J. Gerraty o more cleanup to enable higher warnings level 2263956e45f6SSimon J. Gerraty o more unit tests 2264956e45f6SSimon J. Gerraty 2265956e45f6SSimon J. Gerraty2020-10-02 Simon J Gerraty <sjg@beast.crufty.net> 2266956e45f6SSimon J. Gerraty 2267956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201002 2268956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2269956e45f6SSimon J. Gerraty o dir.c: use hash table for looking up open directories by name 2270956e45f6SSimon J. Gerraty o main.c: clean up option handling 2271956e45f6SSimon J. Gerraty o parse.c: add missing const for Parse_AddIncludeDir 2272956e45f6SSimon J. Gerraty o var.c: ApplyModifier_To, update pp in each branch 2273956e45f6SSimon J. Gerraty o remove redundant function prototypes 2274956e45f6SSimon J. Gerraty o more unit tests 2275956e45f6SSimon J. Gerraty 2276956e45f6SSimon J. Gerraty2020-10-01 Simon J Gerraty <sjg@beast.crufty.net> 2277956e45f6SSimon J. Gerraty 2278956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201001 2279956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2280956e45f6SSimon J. Gerraty o compat.c: comment about "..." 2281956e45f6SSimon J. Gerraty 2282956e45f6SSimon J. Gerraty2020-09-30 Simon J Gerraty <sjg@beast.crufty.net> 2283956e45f6SSimon J. Gerraty 2284956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200930 2285956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2286956e45f6SSimon J. Gerraty o job.c: split Job.jobPipe into 2 separate fields 2287956e45f6SSimon J. Gerraty replace Lst_Open with direct iteration 2288956e45f6SSimon J. Gerraty o lst.c: remove redundant assertions 2289956e45f6SSimon J. Gerraty o targ.c: replace Lst_Open with direct iteration 2290956e45f6SSimon J. Gerraty o var.c: fix bug in evaluation of indirect variable modifiers 2291956e45f6SSimon J. Gerraty extract ApplyModifier_Quote into separate function 2292956e45f6SSimon J. Gerraty o make debug logging simpler 2293956e45f6SSimon J. Gerraty 2294956e45f6SSimon J. Gerraty2020-09-27 Simon J Gerraty <sjg@beast.crufty.net> 2295956e45f6SSimon J. Gerraty 2296956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200927 2297956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2298956e45f6SSimon J. Gerraty o parse.c: ensure parse errors result in 'stopped in' message. 2299956e45f6SSimon J. Gerraty o compat.c: make parameter of Compat_RunCommand const 2300956e45f6SSimon J. Gerraty o main.c: extract InitVarTarget from main 2301956e45f6SSimon J. Gerraty o parse.c: rename ParseFinishLine to FinishDependencyGroup 2302956e45f6SSimon J. Gerraty refactor ParseDoDependency 2303956e45f6SSimon J. Gerraty o var.c: Var_Subst no longer returns string result 2304956e45f6SSimon J. Gerraty rename Var_ParsePP back to Var_Parse 2305956e45f6SSimon J. Gerraty in lint mode, improve error handling for undefined variables 2306956e45f6SSimon J. Gerraty extract ParseVarname from Var_Parse 2307956e45f6SSimon J. Gerraty o rename Lst_ForEach to Lst_ForEachUntil 2308956e45f6SSimon J. Gerraty o inline Lst_ForEachUntil in several cases 2309956e45f6SSimon J. Gerraty o clean up API for finding and creating GNodes 2310956e45f6SSimon J. Gerraty o fix assertion failure in -j mode with .END node 2311956e45f6SSimon J. Gerraty o inline and remove LstNode_Prev and LstNode_Next 2312956e45f6SSimon J. Gerraty o use fine-grained type names for lists and their nodes 2313956e45f6SSimon J. Gerraty o more unit tests 2314956e45f6SSimon J. Gerraty 2315956e45f6SSimon J. Gerraty2020-09-11 Simon J Gerraty <sjg@beast.crufty.net> 2316956e45f6SSimon J. Gerraty 2317956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200911 2318956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 2319956e45f6SSimon J. Gerraty o cond.c: split EvalComparison into smaller functions 2320956e45f6SSimon J. Gerraty reorder parameters of condition parsing functions 2321956e45f6SSimon J. Gerraty reduce code size in CondParser_Eval 2322956e45f6SSimon J. Gerraty rename CondGetString to CondParser_String 2323956e45f6SSimon J. Gerraty add CondLexer_SkipWhitespace 2324956e45f6SSimon J. Gerraty group the condition parsing state into a struct 2325956e45f6SSimon J. Gerraty in CondGetString, replace repeated Buf_Add with Buf_AddStr 2326956e45f6SSimon J. Gerraty o migrate Var_Parse to Var_ParsePP 2327956e45f6SSimon J. Gerraty o add wrappers around ctype.h functions 2328956e45f6SSimon J. Gerraty o lst.c: use a stack instead of a list for the nested include path 2329956e45f6SSimon J. Gerraty o more unit tests 2330956e45f6SSimon J. Gerraty 2331956e45f6SSimon J. Gerraty2020-09-04 Simon J Gerraty <sjg@beast.crufty.net> 2332956e45f6SSimon J. Gerraty 2333956e45f6SSimon J. Gerraty * make-bootstrap.sh.in: adjust object list 2334956e45f6SSimon J. Gerraty 23352c3632d1SSimon J. Gerraty2020-09-02 Simon J Gerraty <sjg@beast.crufty.net> 23362c3632d1SSimon J. Gerraty 23372c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200902 23382c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 23392c3632d1SSimon J. Gerraty o use make_stat to ensure no confusion over valid fields 23402c3632d1SSimon J. Gerraty returned by cached_stat 23412c3632d1SSimon J. Gerraty o var.c: make VarQuote const-correct 23422c3632d1SSimon J. Gerraty o add unit tests for .for 23432c3632d1SSimon J. Gerraty 23442c3632d1SSimon J. Gerraty2020-09-01 Simon J Gerraty <sjg@beast.crufty.net> 23452c3632d1SSimon J. Gerraty 23462c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200901 23472c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 23482c3632d1SSimon J. Gerraty o rename Hash_Table fields 23492c3632d1SSimon J. Gerraty o make data types in Dir_HasWildcards more precise 23502c3632d1SSimon J. Gerraty 23512c3632d1SSimon J. Gerraty2020-08-31 Simon J Gerraty <sjg@beast.crufty.net> 23522c3632d1SSimon J. Gerraty 23532c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200831 23542c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 23552c3632d1SSimon J. Gerraty o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds 23562c3632d1SSimon J. Gerraty o lst.c: Lst_Open renable assert that list isn't open 23572c3632d1SSimon J. Gerraty o unit test for .TARGET dependent flags 23582c3632d1SSimon J. Gerraty o var.c: fix aliasing bug in VarUniq 23592c3632d1SSimon J. Gerraty o more unit tests for :u 23602c3632d1SSimon J. Gerraty 23612c3632d1SSimon J. Gerraty2020-08-30 Simon J Gerraty <sjg@beast.crufty.net> 23622c3632d1SSimon J. Gerraty 23632c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200830 23642c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 23652c3632d1SSimon J. Gerraty o allow for strict type checking for Boolean 23662c3632d1SSimon J. Gerraty o Var_Parse never returns NULL 23672c3632d1SSimon J. Gerraty o Var_Subst never returns NULL 23682c3632d1SSimon J. Gerraty o Lst_Find now takes boolean match function 23692c3632d1SSimon J. Gerraty o rename Lst_Memeber to Lst_FindDatum 23702c3632d1SSimon J. Gerraty o rename LstNode functions to match their type 23712c3632d1SSimon J. Gerraty o rename GNode.iParents to implicitParents 23722c3632d1SSimon J. Gerraty o fix assertion failure for .SUFFIXES in archives 23732c3632d1SSimon J. Gerraty o compat.c: clean up documentation for CompatInterrupt and Compat_Run 23742c3632d1SSimon J. Gerraty remove unreachable code from CompatRunCommand 23752c3632d1SSimon J. Gerraty o main.c: simplify getBoolean 23762c3632d1SSimon J. Gerraty o stc.c: replace brk_string with simpler Str_Words 23772c3632d1SSimon J. Gerraty o suff.c: add debug macros 23782c3632d1SSimon J. Gerraty 23792c3632d1SSimon J. Gerraty2020-08-28 Simon J Gerraty <sjg@beast.crufty.net> 23802c3632d1SSimon J. Gerraty 23812c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200828 23822c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 23832c3632d1SSimon J. Gerraty o lst.c: inline LstIsValid and LstNodeIsValid 23842c3632d1SSimon J. Gerraty o remove trailing S from Lst function names after migration complete 23852c3632d1SSimon J. Gerraty o more comment cleanup/clarification 23862c3632d1SSimon J. Gerraty o suff.c: clean up suffix handling 23872c3632d1SSimon J. Gerraty o more unit tests 23882c3632d1SSimon J. Gerraty 23892c3632d1SSimon J. Gerraty2020-08-26 Simon J Gerraty <sjg@beast.crufty.net> 23902c3632d1SSimon J. Gerraty 23912c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200826 23922c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 23932c3632d1SSimon J. Gerraty o enum.c: distinguish between bitsets containing flags and 23942c3632d1SSimon J. Gerraty ordinary enums 23952c3632d1SSimon J. Gerraty o var.c: fix error message for ::!= modifier with shell error 23962c3632d1SSimon J. Gerraty o fix bugs in -DCLEANUP mode 23972c3632d1SSimon J. Gerraty 23982c3632d1SSimon J. Gerraty2020-08-24 Simon J Gerraty <sjg@beast.crufty.net> 23992c3632d1SSimon J. Gerraty 24002c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200824 24012c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24022c3632d1SSimon J. Gerraty o in debug mode, print GNode details in symbols 24032c3632d1SSimon J. Gerraty 24042c3632d1SSimon J. Gerraty2020-08-23 Simon J Gerraty <sjg@beast.crufty.net> 24052c3632d1SSimon J. Gerraty 24062c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200823 24072c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24082c3632d1SSimon J. Gerraty o lst.c: more asserts, 24092c3632d1SSimon J. Gerraty make args to Lst_Find match others. 24102c3632d1SSimon J. Gerraty o var.c: pass flags to VarAdd 24112c3632d1SSimon J. Gerraty o arch.c: use Buffer 24122c3632d1SSimon J. Gerraty o str.c: brk_string return size_t for nwords 24132c3632d1SSimon J. Gerraty o more unit tests 24142c3632d1SSimon J. Gerraty 24152c3632d1SSimon J. Gerraty2020-08-22 Simon J Gerraty <sjg@beast.crufty.net> 24162c3632d1SSimon J. Gerraty 24172c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 24182c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24192c3632d1SSimon J. Gerraty o var.c: support for read-only variables eg .SHELL 24202c3632d1SSimon J. Gerraty being the shell used to run scripts. 24212c3632d1SSimon J. Gerraty o lst.c: more simplification 24222c3632d1SSimon J. Gerraty o more documentation and style cleanup 24232c3632d1SSimon J. Gerraty o more unit tests 24242c3632d1SSimon J. Gerraty o ensure unit-test/Makefile is run by TEST_MAKE 24252c3632d1SSimon J. Gerraty o reduce duplication of header inclusion 24262c3632d1SSimon J. Gerraty 24272c3632d1SSimon J. Gerraty2020-08-21 Simon J Gerraty <sjg@beast.crufty.net> 24282c3632d1SSimon J. Gerraty 24292c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200821 24302c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24312c3632d1SSimon J. Gerraty o lst.c: revert invalid assertion - but document it 24322c3632d1SSimon J. Gerraty o dir.c: split Dir_Init into two functions 24332c3632d1SSimon J. Gerraty 24342c3632d1SSimon J. Gerraty2020-08-20 Simon J Gerraty <sjg@beast.crufty.net> 24352c3632d1SSimon J. Gerraty 24362c3632d1SSimon J. Gerraty * lst.c: needs inttypes.h on Linux 24372c3632d1SSimon J. Gerraty 24382c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200820 24392c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24402c3632d1SSimon J. Gerraty o make.1: clarify some passages 24412c3632d1SSimon J. Gerraty o var.c: more cleanup, clarify comments 24422c3632d1SSimon J. Gerraty o make_malloc.c: remove unreachable code 24432c3632d1SSimon J. Gerraty o cond.c: make CondGetString easier to debug 24442c3632d1SSimon J. Gerraty o simplify list usage 24452c3632d1SSimon J. Gerraty o unit-tests: more 24462c3632d1SSimon J. Gerraty 24472c3632d1SSimon J. Gerraty2020-08-16 Simon J Gerraty <sjg@beast.crufty.net> 24482c3632d1SSimon J. Gerraty 24492c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200816 24502c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24512c3632d1SSimon J. Gerraty o refactor unit-tests to be more fine grained 24522c3632d1SSimon J. Gerraty not all tests moved yet 24532c3632d1SSimon J. Gerraty 24542c3632d1SSimon J. Gerraty2020-08-14 Simon J Gerraty <sjg@beast.crufty.net> 24552c3632d1SSimon J. Gerraty 24562c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200814 24572c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24582c3632d1SSimon J. Gerraty o more str_concat variants 24592c3632d1SSimon J. Gerraty o more enums for flags 24602c3632d1SSimon J. Gerraty o var.c: cleanup for higher warnings level 24612c3632d1SSimon J. Gerraty 24622c3632d1SSimon J. Gerraty2020-08-10 Simon J Gerraty <sjg@beast.crufty.net> 24632c3632d1SSimon J. Gerraty 24642c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200810 24652c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24662c3632d1SSimon J. Gerraty o more unit tests 24672c3632d1SSimon J. Gerraty o general comment and style cleanup 24682c3632d1SSimon J. Gerraty 24692c3632d1SSimon J. Gerraty2020-08-08 Simon J Gerraty <sjg@beast.crufty.net> 24702c3632d1SSimon J. Gerraty 24712c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200808 24722c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24732c3632d1SSimon J. Gerraty o enum.[ch]: streamline, enums for use in flags and debug output 24742c3632d1SSimon J. Gerraty o cond.c: cleanup 24752c3632d1SSimon J. Gerraty o var.c: reduce duplicate code for modifiers 24762c3632d1SSimon J. Gerraty debug logging for Var_Parse 24772c3632d1SSimon J. Gerraty more detailed debug output 24782c3632d1SSimon J. Gerraty o more unit tests 24792c3632d1SSimon J. Gerraty 24802c3632d1SSimon J. Gerraty2020-08-06 Simon J Gerraty <sjg@beast.crufty.net> 24812c3632d1SSimon J. Gerraty 24822c3632d1SSimon J. Gerraty * unit-tests/Makefile: -r for recursive and include Makefile.inc 24832c3632d1SSimon J. Gerraty so I can run tests in meta mode 24842c3632d1SSimon J. Gerraty supress extra noise if in meta mode 24852c3632d1SSimon J. Gerraty 24862c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200806 24872c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24882c3632d1SSimon J. Gerraty o parse.c: remove VARE_WANTRES for LINT 24892c3632d1SSimon J. Gerraty we just want to check parsing (for now). 24902c3632d1SSimon J. Gerraty 24912c3632d1SSimon J. Gerraty2020-08-05 Simon J Gerraty <sjg@beast.crufty.net> 24922c3632d1SSimon J. Gerraty 24932c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200805 24942c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 24952c3632d1SSimon J. Gerraty o make.1: Rework the description of dependence operators 24962c3632d1SSimon J. Gerraty 24972c3632d1SSimon J. Gerraty2020-08-03 Simon J Gerraty <sjg@beast.crufty.net> 24982c3632d1SSimon J. Gerraty 24992c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200803 25002c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25012c3632d1SSimon J. Gerraty o revert some C99 usage, for max portability 25022c3632d1SSimon J. Gerraty o unit-tests/lint 25032c3632d1SSimon J. Gerraty 25042c3632d1SSimon J. Gerraty2020-08-02 Simon J Gerraty <sjg@beast.crufty.net> 25052c3632d1SSimon J. Gerraty 25062c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200802 25072c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25082c3632d1SSimon J. Gerraty o more unit tests 25092c3632d1SSimon J. Gerraty 25102c3632d1SSimon J. Gerraty2020-08-01 Simon J Gerraty <sjg@beast.crufty.net> 25112c3632d1SSimon J. Gerraty 25122c3632d1SSimon J. Gerraty * Remove NetBSD specific plumbing from unit-tests/Makefile 25132c3632d1SSimon J. Gerraty 25142c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200801 25152c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25162c3632d1SSimon J. Gerraty o make Var_Value return const 25172c3632d1SSimon J. Gerraty o size_t for buf sizes 25182c3632d1SSimon J. Gerraty o optimize some buffer operations - avoid strlen 25192c3632d1SSimon J. Gerraty 25202c3632d1SSimon J. Gerraty2020-07-31 Simon J Gerraty <sjg@beast.crufty.net> 25212c3632d1SSimon J. Gerraty 25222c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200731 25232c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25242c3632d1SSimon J. Gerraty o var.c: fix undefinded behavior for incomplete :t modifier 25252c3632d1SSimon J. Gerraty fixes unit-test/moderrs on Ubuntu 25262c3632d1SSimon J. Gerraty o parse.c: When parsing variable assignments other than := 25272c3632d1SSimon J. Gerraty if DEBUG(LINT) test substition of value, so we get a file and 25282c3632d1SSimon J. Gerraty line number in the resulting error. 25292c3632d1SSimon J. Gerraty o dir.c: fix parsing of nested braces in dependency lines 25302c3632d1SSimon J. Gerraty add unit-tests 25312c3632d1SSimon J. Gerraty 25322c3632d1SSimon J. Gerraty2020-07-30 Simon J Gerraty <sjg@beast.crufty.net> 25332c3632d1SSimon J. Gerraty 25342c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200730 25352c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25362c3632d1SSimon J. Gerraty o var.c: minor cleanup 25372c3632d1SSimon J. Gerraty o unit-tests: more tests to improve code coverage 25382c3632d1SSimon J. Gerraty 25392c3632d1SSimon J. Gerraty2020-07-28 Simon J Gerraty <sjg@beast.crufty.net> 25402c3632d1SSimon J. Gerraty 25412c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200728 25422c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25432c3632d1SSimon J. Gerraty o var.c: more optimizations 25442c3632d1SSimon J. Gerraty 25452c3632d1SSimon J. Gerraty2020-07-26 Simon J Gerraty <sjg@beast.crufty.net> 25462c3632d1SSimon J. Gerraty 25472c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200726 25482c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25492c3632d1SSimon J. Gerraty o collapse lsd.lib into lst.c - reduce code size and allow inlining 25502c3632d1SSimon J. Gerraty o lots of function comment updates 25512c3632d1SSimon J. Gerraty o var.c: more optimizations 25522c3632d1SSimon J. Gerraty o make return of Var_Parse const 25532c3632d1SSimon J. Gerraty 25542c3632d1SSimon J. Gerraty2020-07-20 Simon J Gerraty <sjg@beast.crufty.net> 25552c3632d1SSimon J. Gerraty 25562c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200720 25572c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25582c3632d1SSimon J. Gerraty o DEBUG_HASH report stats at end and tone down the noise 25592c3632d1SSimon J. Gerraty o var.c: each flag type gets its own prefix. 25602c3632d1SSimon J. Gerraty move SysV string matching to var.c 25612c3632d1SSimon J. Gerraty make ampersand in ${VAR:from=to&} an ordinary character 25622c3632d1SSimon J. Gerraty cleanup and simplify implementation of modifiers 25632c3632d1SSimon J. Gerraty o make.1: move documentation for assignment modifiers 25642c3632d1SSimon J. Gerraty 25652c3632d1SSimon J. Gerraty2020-07-18 Simon J Gerraty <sjg@beast.crufty.net> 25662c3632d1SSimon J. Gerraty 25672c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200718 25682c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 25692c3632d1SSimon J. Gerraty o DEBUG_HASH to see how well the hash tables are working 25702c3632d1SSimon J. Gerraty 25712c3632d1SSimon J. Gerraty2020-07-11 Simon J Gerraty <sjg@beast.crufty.net> 25722c3632d1SSimon J. Gerraty 25732c3632d1SSimon J. Gerraty * bsd.after-import.mk: make sure we update unit-tests/Makefile 25742c3632d1SSimon J. Gerraty 25753841c287SSimon J. Gerraty2020-07-10 Simon J Gerraty <sjg@beast.crufty.net> 25763841c287SSimon J. Gerraty 25773841c287SSimon J. Gerraty * configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC 25783841c287SSimon J. Gerraty 25793841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200710 25803841c287SSimon J. Gerraty Merge with NetBSD make, pick up 25813841c287SSimon J. Gerraty o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall 25823841c287SSimon J. Gerraty o meta.c: target flagged .META is out-of-date if meta file missing 25833841c287SSimon J. Gerraty 25843841c287SSimon J. Gerraty2020-07-09 Simon J Gerraty <sjg@beast.crufty.net> 25853841c287SSimon J. Gerraty 25863841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200709 25873841c287SSimon J. Gerraty Merge with NetBSD make, pick up 25883841c287SSimon J. Gerraty o cond.c: fix for compare_expression when doEval=0 25893841c287SSimon J. Gerraty o unit-tests/Makefile: rework 25903841c287SSimon J. Gerraty o filemon/filemon_dev.c: ensure filemon fd is closed on exec. 25913841c287SSimon J. Gerraty 25923841c287SSimon J. Gerraty2020-07-04 Simon J Gerraty <sjg@beast.crufty.net> 25933841c287SSimon J. Gerraty 25943841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200704 25953841c287SSimon J. Gerraty Merge with NetBSD make, pick up 25963841c287SSimon J. Gerraty (most of this by rillig@) 25973841c287SSimon J. Gerraty o lots of style and white-space cleanup 25983841c287SSimon J. Gerraty o lots more unit tests for variable modifiers 25993841c287SSimon J. Gerraty o simplified description of some functions 26003841c287SSimon J. Gerraty o str.c: refactor Str_Match 26013841c287SSimon J. Gerraty o var.c: debugging output for :@ 26023841c287SSimon J. Gerraty constify VarModify parameter 26033841c287SSimon J. Gerraty fix :hash modifier on 16-bit platforms 26043841c287SSimon J. Gerraty remove unnecessary forward declarations 26053841c287SSimon J. Gerraty refactor ApplyModifier_SysV to have less indentation 26063841c287SSimon J. Gerraty simplify code for :E and :R 26073841c287SSimon J. Gerraty clean up code for :H and :T 26083841c287SSimon J. Gerraty refactor ApplyModifiers 26093841c287SSimon J. Gerraty 26103841c287SSimon J. Gerraty * var.c: we need stdint.h on some platforms to get uint32_t 26113841c287SSimon J. Gerraty * unit-test/Makefile: we need to supress the specific error 26123841c287SSimon J. Gerraty for RE substitution error in modmisc, since it varies accross 26133841c287SSimon J. Gerraty different OS. 26143841c287SSimon J. Gerraty 26153841c287SSimon J. Gerraty2020-07-02 Simon J Gerraty <sjg@beast.crufty.net> 26163841c287SSimon J. Gerraty 26173841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200702 26183841c287SSimon J. Gerraty Merge with NetBSD make, pick up 26193841c287SSimon J. Gerraty o var.c: more improvements to avoiding unnecessary evaluation 26203841c287SSimon J. Gerraty use enums for flags 26213841c287SSimon J. Gerraty o remove flags arg to Var_Set which outside of var.c is always 0 26223841c287SSimon J. Gerraty 26233841c287SSimon J. Gerraty2020-07-01 Simon J Gerraty <sjg@beast.crufty.net> 26243841c287SSimon J. Gerraty 26253841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200701 26263841c287SSimon J. Gerraty Merge with NetBSD make, pick up 26273841c287SSimon J. Gerraty o var.c: with change to cond.c; ensure that nested variables 26283841c287SSimon J. Gerraty within a variable name are expanded. 26293841c287SSimon J. Gerraty o unit-tests/varmisc.mk: test for nested varname 26303841c287SSimon J. Gerraty 26313841c287SSimon J. Gerraty2020-06-29 Simon J Gerraty <sjg@beast.crufty.net> 26323841c287SSimon J. Gerraty 26333841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200629 26343841c287SSimon J. Gerraty Merge with NetBSD make, pick up 26353841c287SSimon J. Gerraty o cond.c: do not eval unnecessary terms of conditionals. 26363841c287SSimon J. Gerraty 26373841c287SSimon J. Gerraty2020-06-25 Simon J Gerraty <sjg@beast.crufty.net> 26383841c287SSimon J. Gerraty 26393841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200625 26403841c287SSimon J. Gerraty Merge with NetBSD make, pick up 26413841c287SSimon J. Gerraty o meta.c: report error if lseek in filemon_read fails 26423841c287SSimon J. Gerraty 26433841c287SSimon J. Gerraty2020-06-22 Simon J Gerraty <sjg@beast.crufty.net> 26443841c287SSimon J. Gerraty 26453841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200622 26463841c287SSimon J. Gerraty Merge with NetBSD make, pick up 26473841c287SSimon J. Gerraty o dieQuietly: ignore OP_SUBMAKE as too aggressive 26483841c287SSimon J. Gerraty 26493841c287SSimon J. Gerraty2020-06-19 Simon J Gerraty <sjg@beast.crufty.net> 26503841c287SSimon J. Gerraty 26513841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200619 26523841c287SSimon J. Gerraty Merge with NetBSD make, pick up 26533841c287SSimon J. Gerraty o str.c: performance improvement for Str_Match for multiple '*' 26543841c287SSimon J. Gerraty o dieQuietly: supress the failure output from make 26553841c287SSimon J. Gerraty when failing node is a sub-make or a sibling failed. 26563841c287SSimon J. Gerraty This cuts down greatly on unhelpful noise at the end of 26573841c287SSimon J. Gerraty build log. Disabled by -dj or .MAKE.DIE_QUIETLY=no 26583841c287SSimon J. Gerraty 26593841c287SSimon J. Gerraty2020-06-10 Simon J Gerraty <sjg@beast.crufty.net> 26603841c287SSimon J. Gerraty 26613841c287SSimon J. Gerraty * FILES: add LICENSE to appease some packagers. 26623841c287SSimon J. Gerraty This is an attempt to fairly represent the license on almost 26633841c287SSimon J. Gerraty 200 files, which are almost all BSD-3-Clause 26643841c287SSimon J. Gerraty The few exceptions being more liberal. 26653841c287SSimon J. Gerraty 26663841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200610 26673841c287SSimon J. Gerraty Merge with NetBSD make, pick up 26683841c287SSimon J. Gerraty o unit test for :Or 26693841c287SSimon J. Gerraty 2670ef0b2538SSimon J. Gerraty2020-06-06 Simon J Gerraty <sjg@beast.crufty.net> 2671ef0b2538SSimon J. Gerraty 2672ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200606 2673ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 2674ef0b2538SSimon J. Gerraty o make.1: cleanup 2675ef0b2538SSimon J. Gerraty 2676ef0b2538SSimon J. Gerraty * Makefile: fix depends for main.o which broke MAKE_VERSION 2677ef0b2538SSimon J. Gerraty 2678ef0b2538SSimon J. Gerraty2020-06-05 Simon J Gerraty <sjg@beast.crufty.net> 2679ef0b2538SSimon J. Gerraty 2680ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200605 2681ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 2682ef0b2538SSimon J. Gerraty o dir.c: cached_stats - don't confuse stat and lstat results. 2683ef0b2538SSimon J. Gerraty o var.c: add :Or for reverse sort. 2684ef0b2538SSimon J. Gerraty 2685ef0b2538SSimon J. Gerraty2020-05-24 Simon J Gerraty <sjg@beast.crufty.net> 2686ef0b2538SSimon J. Gerraty 2687ef0b2538SSimon J. Gerraty * configure.in: add AC_PROG_CC_C99 for mipspro compiler 2688ef0b2538SSimon J. Gerraty also if --with-filemon= specifies path to filemon.h 2689ef0b2538SSimon J. Gerraty set use_filemon=dev 2690ef0b2538SSimon J. Gerraty * dirname.c: remove include of namespace.h 2691ef0b2538SSimon J. Gerraty 269249caa483SSimon J. Gerraty2020-05-17 Simon J Gerraty <sjg@beast.crufty.net> 269349caa483SSimon J. Gerraty 269449caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200517 269549caa483SSimon J. Gerraty Merge with NetBSD make, pick up 269649caa483SSimon J. Gerraty o modified dollar tests to avoid shell dependencies 269749caa483SSimon J. Gerraty o new tests for .INCLUDEFROM 269849caa483SSimon J. Gerraty 269949caa483SSimon J. Gerraty2020-05-16 Simon J Gerraty <sjg@beast.crufty.net> 270049caa483SSimon J. Gerraty 270149caa483SSimon J. Gerraty * unit-tests/dollar.mk: tweak '1 dollar literal' test 270249caa483SSimon J. Gerraty to not depend so much on shell behavior 270349caa483SSimon J. Gerraty 270449caa483SSimon J. Gerraty2020-05-10 Simon J Gerraty <sjg@beast.crufty.net> 270549caa483SSimon J. Gerraty 270649caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200510 270749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 270849caa483SSimon J. Gerraty o unit test for dollar handling 270949caa483SSimon J. Gerraty 271049caa483SSimon J. Gerraty2020-05-06 Simon J Gerraty <sjg@beast.crufty.net> 271149caa483SSimon J. Gerraty 271249caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200506 271349caa483SSimon J. Gerraty Merge with NetBSD make, pick up 271449caa483SSimon J. Gerraty o str.c: empty string does not match % pattern 271549caa483SSimon J. Gerraty plus unit-test changes 271649caa483SSimon J. Gerraty 271749caa483SSimon J. Gerraty2020-05-04 Simon J Gerraty <sjg@beast.crufty.net> 271849caa483SSimon J. Gerraty 271949caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200504 272049caa483SSimon J. Gerraty May the 4th be with you 272149caa483SSimon J. Gerraty Merge with NetBSD make, pick up 272249caa483SSimon J. Gerraty o var.c: import handling of old sysV style modifier using '%' 272349caa483SSimon J. Gerraty o str.c: refactor brk_string 272449caa483SSimon J. Gerraty o unit-tests: add test case for lazy conditions 272549caa483SSimon J. Gerraty 272649caa483SSimon J. Gerraty2020-04-18 Simon J Gerraty <sjg@beast.crufty.net> 272749caa483SSimon J. Gerraty 272849caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200418 272949caa483SSimon J. Gerraty 2730548bfc56SSimon J. Gerraty * configure.in: use_makefile=no for Cygwin et al. 273149caa483SSimon J. Gerraty case insensitive filesystems just don't work if both 273249caa483SSimon J. Gerraty makefile and Makefile exist. 2733548bfc56SSimon J. Gerraty NOTE: bmake does not support Cygwin and likely never will, 273449caa483SSimon J. Gerraty but if brave souls want to try it - help them out. 273549caa483SSimon J. Gerraty 273649caa483SSimon J. Gerraty2020-04-02 Simon J Gerraty <sjg@beast.crufty.net> 273749caa483SSimon J. Gerraty 273849caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200402 273949caa483SSimon J. Gerraty Merge with NetBSD make, pick up 274049caa483SSimon J. Gerraty o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD 274149caa483SSimon J. Gerraty a blank command is perfectly valid. 274249caa483SSimon J. Gerraty 274349caa483SSimon J. Gerraty2020-03-30 Simon J Gerraty <sjg@beast.crufty.net> 274449caa483SSimon J. Gerraty 274549caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200330 274649caa483SSimon J. Gerraty Merge with NetBSD make, pick up 274749caa483SSimon J. Gerraty o make.h: extern debug_file 274849caa483SSimon J. Gerraty 274949caa483SSimon J. Gerraty2020-03-18 Simon J Gerraty <sjg@beast.crufty.net> 275049caa483SSimon J. Gerraty 275149caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200318 275249caa483SSimon J. Gerraty Merge with NetBSD make, pick up 275349caa483SSimon J. Gerraty o meta.c: meta_oodate, check for corrupted meta file 275449caa483SSimon J. Gerraty earlier and more often. 275549caa483SSimon J. Gerraty 275649caa483SSimon J. Gerraty2020-02-20 Simon J Gerraty <sjg@beast.crufty.net> 275749caa483SSimon J. Gerraty 275849caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200220 275949caa483SSimon J. Gerraty 276049caa483SSimon J. Gerraty2020-02-19 Simon J Gerraty <sjg@beast.crufty.net> 276149caa483SSimon J. Gerraty 276249caa483SSimon J. Gerraty * boot-strap: unset MAKEFLAGS 276349caa483SSimon J. Gerraty 276449caa483SSimon J. Gerraty2020-02-12 Simon J Gerraty <sjg@beast.crufty.net> 276549caa483SSimon J. Gerraty 276649caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200212 276749caa483SSimon J. Gerraty * meta.c: meta_compat_parent check for USE_FILEMON 276849caa483SSimon J. Gerraty patch from Soeren Tempel 276949caa483SSimon J. Gerraty 277049caa483SSimon J. Gerraty2020-02-05 Simon J Gerraty <sjg@beast.crufty.net> 277149caa483SSimon J. Gerraty 277249caa483SSimon J. Gerraty * VERSION: 20200205 277349caa483SSimon J. Gerraty Merge with NetBSD make, pick up 277449caa483SSimon J. Gerraty o meta.c: fix compat mode, need to call meta_job_output() 277549caa483SSimon J. Gerraty o job.c: extra fds for meta mode not needed if using filemon_dev 277649caa483SSimon J. Gerraty 277749caa483SSimon J. Gerraty2020-01-22 Simon J Gerraty <sjg@beast.crufty.net> 277849caa483SSimon J. Gerraty 277949caa483SSimon J. Gerraty * VERSION: 20200122 278049caa483SSimon J. Gerraty Merge with NetBSD make, pick up 278149caa483SSimon J. Gerraty o meta.c: avoid passing NULL to filemon_*() when meta_needed() 278249caa483SSimon J. Gerraty returns FALSE. 278349caa483SSimon J. Gerraty 278449caa483SSimon J. Gerraty2020-01-21 Simon J Gerraty <sjg@beast.crufty.net> 278549caa483SSimon J. Gerraty 278649caa483SSimon J. Gerraty * VERSION: 20200121 278749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 278849caa483SSimon J. Gerraty o filemon/filemon_{dev,ktrace}.c: allow selection of 278949caa483SSimon J. Gerraty filemon implementation. filemon_dev.c uses the kernel module 279049caa483SSimon J. Gerraty while filemon_ktrace.c leverages the fktrace api available in 279149caa483SSimon J. Gerraty NetBSD. filemon_ktrace.c can hopefully form the basis for 279249caa483SSimon J. Gerraty adding support for other tracing mechanisms such as strace on 279349caa483SSimon J. Gerraty Linux. 279449caa483SSimon J. Gerraty o meta.c: when target is out-of-date per normal make rules 279549caa483SSimon J. Gerraty record value of .OODATE in meta file. 279649caa483SSimon J. Gerraty 279749caa483SSimon J. Gerraty2019-09-26 Simon J Gerraty <sjg@beast.crufty.net> 279849caa483SSimon J. Gerraty 279949caa483SSimon J. Gerraty * VERSION: 20190926 280049caa483SSimon J. Gerraty Merge with NetBSD make, pick up 280149caa483SSimon J. Gerraty o parse.c: don't pass NULL to realpath(3) 280249caa483SSimon J. Gerraty some versions cannot handle it. 280349caa483SSimon J. Gerraty 280449caa483SSimon J. Gerraty2019-04-09 Simon J Gerraty <sjg@beast.crufty.net> 280549caa483SSimon J. Gerraty 280649caa483SSimon J. Gerraty * VERSION: 20190409 280749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 280849caa483SSimon J. Gerraty o parse.c: ParseDoDependency: free paths rather than assert 280949caa483SSimon J. Gerraty 281049caa483SSimon J. Gerraty2018-12-22 Simon J Gerraty <sjg@beast.crufty.net> 281149caa483SSimon J. Gerraty 281249caa483SSimon J. Gerraty * VERSION: 20181222 281349caa483SSimon J. Gerraty 281449caa483SSimon J. Gerraty * configure.in: add --without-makefile to avoid generating 281549caa483SSimon J. Gerraty makefile and make-bootstrap.sh 281649caa483SSimon J. Gerraty 281749caa483SSimon J. Gerraty * include Makefile.inc if it exists 281849caa483SSimon J. Gerraty 281949caa483SSimon J. Gerraty * Use Makefile and Makefile.config.in in unit-tests 282049caa483SSimon J. Gerraty so we can use just: make obj && make && make test 282149caa483SSimon J. Gerraty when bmake is already available. 282249caa483SSimon J. Gerraty We add --without-makefile to CONFIGURE_ARGS in this case. 282349caa483SSimon J. Gerraty 282449caa483SSimon J. Gerraty * tweak bsd.after-import.mk (captures Makefile.config etc 282549caa483SSimon J. Gerraty after import to FreeBSD for example) to cope with all the above. 282649caa483SSimon J. Gerraty 2827dfd669abSSimon J. Gerraty2018-12-21 Simon J Gerraty <sjg@beast.crufty.net> 2828dfd669abSSimon J. Gerraty 2829dfd669abSSimon J. Gerraty * VERSION: 20181221 2830dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2831dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .PARSEDIR 2832dfd669abSSimon J. Gerraty and apply if relative, and then use .PARSEFILE 2833dfd669abSSimon J. Gerraty for consistent result. 2834dfd669abSSimon J. Gerraty 2835dfd669abSSimon J. Gerraty2018-12-20 Simon J Gerraty <sjg@beast.crufty.net> 2836dfd669abSSimon J. Gerraty 2837dfd669abSSimon J. Gerraty * VERSION: 20181220 2838dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2839dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR 2840dfd669abSSimon J. Gerraty is relative 2841dfd669abSSimon J. Gerraty o var.c: avoid SEGFAULT in .unexport-env 2842dfd669abSSimon J. Gerraty when MAKELEVEL is not set 2843dfd669abSSimon J. Gerraty 2844dfd669abSSimon J. Gerraty2018-12-16 Simon J Gerraty <sjg@beast.crufty.net> 2845dfd669abSSimon J. Gerraty 2846dfd669abSSimon J. Gerraty * VERSION: 20181216 2847dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 2848dfd669abSSimon J. Gerraty o fix for unit-tests/varquote.mk on Debian 2849dfd669abSSimon J. Gerraty 28502eae894cSSimon J. Gerraty2018-09-21 Simon J. Gerraty <sjg@bad.crufty.net> 28512eae894cSSimon J. Gerraty 28522eae894cSSimon J. Gerraty * VERSION: 20180919 28532eae894cSSimon J. Gerraty Merge with NetBSD make, pick up 28542eae894cSSimon J. Gerraty o var.c: add :q 28552eae894cSSimon J. Gerraty o dir.c: cleanup caching of stats 28562eae894cSSimon J. Gerraty 28572eae894cSSimon J. Gerraty2018-09-21 Simon J Gerraty <sjg@beast.crufty.net> 28582eae894cSSimon J. Gerraty 28592eae894cSSimon J. Gerraty * Makefile.config.in: use += where it makes sense. 28602eae894cSSimon J. Gerraty 2861494f7191SSimon J. Gerraty2018-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2862494f7191SSimon J. Gerraty 2863494f7191SSimon J. Gerraty * VERSION: 20180512 2864494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2865494f7191SSimon J. Gerraty o job.c: skip polling job token pipe 2866494f7191SSimon J. Gerraty 2867494f7191SSimon J. Gerraty2018-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 2868494f7191SSimon J. Gerraty 2869494f7191SSimon J. Gerraty * VERSION: 20180405 2870494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 2871494f7191SSimon J. Gerraty o parse.c: be more cautious about detecting depenency line 2872494f7191SSimon J. Gerraty rather than sysV style include. 2873494f7191SSimon J. Gerraty 287450d2e745SSimon J. Gerraty2018-02-22 Simon J. Gerraty <sjg@bad.crufty.net> 287550d2e745SSimon J. Gerraty 287650d2e745SSimon J. Gerraty * VERSION: 20180222 287750d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 287850d2e745SSimon J. Gerraty o parse.c: avoid calling sysconf for every call to loadfile 287950d2e745SSimon J. Gerraty 288050d2e745SSimon J. Gerraty2018-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 288150d2e745SSimon J. Gerraty 288250d2e745SSimon J. Gerraty * VERSION: 20180218 288350d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 288450d2e745SSimon J. Gerraty o var.c: Var_Set handle NULL value anytime. 288550d2e745SSimon J. Gerraty 288650d2e745SSimon J. Gerraty2018-02-12 Simon J. Gerraty <sjg@bad.crufty.net> 288750d2e745SSimon J. Gerraty 288850d2e745SSimon J. Gerraty * VERSION: 20180212 288950d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 289050d2e745SSimon J. Gerraty o parse.c: do not treat .info as warning with -W 289150d2e745SSimon J. Gerraty 289250d2e745SSimon J. Gerraty2017-12-07 Simon J. Gerraty <sjg@bad.crufty.net> 289350d2e745SSimon J. Gerraty 289450d2e745SSimon J. Gerraty * VERSION: 20171207 289550d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 289650d2e745SSimon J. Gerraty o var.c: Var_Append use Var_Set if var not previously set 289750d2e745SSimon J. Gerraty so that VAR_CMD is handled correctly. 289850d2e745SSimon J. Gerraty Add a suitable unit-test. 289950d2e745SSimon J. Gerraty 290050d2e745SSimon J. Gerraty2017-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 290150d2e745SSimon J. Gerraty 290250d2e745SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20171126 290350d2e745SSimon J. Gerraty 290450d2e745SSimon J. Gerraty * aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__ 290550d2e745SSimon J. Gerraty since AC_TRY_COMPILE puts input inside main() 290650d2e745SSimon J. Gerraty which upsets modern compilers. 290750d2e745SSimon J. Gerraty 290850d2e745SSimon J. Gerraty2017-11-18 Simon J. Gerraty <sjg@bad.crufty.net> 290950d2e745SSimon J. Gerraty 291050d2e745SSimon J. Gerraty * VERSION: 20171118 291150d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 291250d2e745SSimon J. Gerraty o var.c: do not append to variable set on command line 291350d2e745SSimon J. Gerraty add unit-test to catch this. 291450d2e745SSimon J. Gerraty 2915e22fef7dSSimon J. Gerraty2017-10-28 Simon J. Gerraty <sjg@bad.crufty.net> 2916e22fef7dSSimon J. Gerraty 2917e22fef7dSSimon J. Gerraty * VERSION: 20171028 2918e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2919e22fef7dSSimon J. Gerraty o main.c: ignore empty MAKEOBJDIR 2920e22fef7dSSimon J. Gerraty 2921e22fef7dSSimon J. Gerraty * Makefile.config.in: 2922e22fef7dSSimon J. Gerraty make @prefix@ @machine*@ and @default_sys_path@ defaults. 2923e22fef7dSSimon J. Gerraty 2924e22fef7dSSimon J. Gerraty2017-10-05 Simon J. Gerraty <sjg@bad.crufty.net> 2925e22fef7dSSimon J. Gerraty 2926e22fef7dSSimon J. Gerraty * VERSION: 20171005 2927e22fef7dSSimon J. Gerraty 2928e22fef7dSSimon J. Gerraty * unit-tests/dotwait.mk: redirect stderr through pipe for more 2929e22fef7dSSimon J. Gerraty consistent result on some platforms. 2930e22fef7dSSimon J. Gerraty 2931e22fef7dSSimon J. Gerraty2017-08-13 Simon J. Gerraty <sjg@bad.crufty.net> 2932e22fef7dSSimon J. Gerraty 2933e22fef7dSSimon J. Gerraty * machine.sh: entry for AIX 2934e22fef7dSSimon J. Gerraty 2935e22fef7dSSimon J. Gerraty2017-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 2936e22fef7dSSimon J. Gerraty 2937e22fef7dSSimon J. Gerraty * VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION 2938e22fef7dSSimon J. Gerraty to a file that can be included by configure as well as make. 2939e22fef7dSSimon J. Gerraty This allows configure to set set _MAKE_VERSION in make-bootstrap.sh 2940e22fef7dSSimon J. Gerraty 2941e22fef7dSSimon J. Gerraty2017-08-10 Simon J. Gerraty <sjg@bad.crufty.net> 2942e22fef7dSSimon J. Gerraty 2943e22fef7dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170810 2944e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 2945e22fef7dSSimon J. Gerraty o meta.c: if target is in subdir we only need subdir name in 2946e22fef7dSSimon J. Gerraty meta_name. 2947e22fef7dSSimon J. Gerraty 2948c7019bf7SSimon J. Gerraty2017-07-20 Simon J. Gerraty <sjg@bad.crufty.net> 2949c7019bf7SSimon J. Gerraty 2950c7019bf7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170720 2951c7019bf7SSimon J. Gerraty Merge with NetBSD make, pick up 2952c7019bf7SSimon J. Gerraty o compat.c: pass SIGINT etc onto child and wait for it to exit 2953c7019bf7SSimon J. Gerraty before we self-terminate. 2954c7019bf7SSimon J. Gerraty 29558695518cSSimon J. Gerraty2017-07-11 Simon J. Gerraty <sjg@bad.crufty.net> 29568695518cSSimon J. Gerraty 29578695518cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170711 29588695518cSSimon J. Gerraty forgot to update after merge on 20170708 ;-) 29598695518cSSimon J. Gerraty o main.c: refactor to reduce size of main function. 29608695518cSSimon J. Gerraty add -v option to always fully expand values. 29618695518cSSimon J. Gerraty o meta.c: ensure command output in meta file has ending newline 29628695518cSSimon J. Gerraty even when filemon not being used. 29638695518cSSimon J. Gerraty When matching ${.MAKE.META.IGNORE_PATTERNS} do not use 29648695518cSSimon J. Gerraty pathname via ':L' since any ':' in pathname breaks that. 29658695518cSSimon J. Gerraty Instead set a '${.p.}' to pathname in the target context and 29668695518cSSimon J. Gerraty use that. 29678695518cSSimon J. Gerraty 2968cac6fd11SSimon J. Gerraty2017-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 2969cac6fd11SSimon J. Gerraty 2970cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170510 2971cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2972cac6fd11SSimon J. Gerraty o main.c: Main_SetObjdir: ensure buf2 is in scope 2973cac6fd11SSimon J. Gerraty 2974cac6fd11SSimon J. Gerraty2017-05-08 Simon J. Gerraty <sjg@bad.crufty.net> 2975cac6fd11SSimon J. Gerraty 2976cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170505 2977cac6fd11SSimon J. Gerraty see mk/ChangeLog 2978cac6fd11SSimon J. Gerraty 2979cac6fd11SSimon J. Gerraty2017-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 2980cac6fd11SSimon J. Gerraty 2981cac6fd11SSimon J. Gerraty * parse.c: not everyone has stdint.h 2982cac6fd11SSimon J. Gerraty 2983cac6fd11SSimon J. Gerraty2017-05-01 Simon J. Gerraty <sjg@bad.crufty.net> 2984cac6fd11SSimon J. Gerraty 2985cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170501 2986cac6fd11SSimon J. Gerraty see mk/ChangeLog 2987cac6fd11SSimon J. Gerraty 2988cac6fd11SSimon J. Gerraty2017-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 2989cac6fd11SSimon J. Gerraty 2990cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170421 2991cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2992cac6fd11SSimon J. Gerraty o str.c: Str_Match: fix closure tests for [^] and add unit-test. 2993cac6fd11SSimon J. Gerraty 2994e1cee40dSSimon J. Gerraty2017-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 2995e1cee40dSSimon J. Gerraty 2996e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170420 2997e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2998e1cee40dSSimon J. Gerraty o main.c: only use -C arg "as is" if it contains no 2999e1cee40dSSimon J. Gerraty relative component. 3000e1cee40dSSimon J. Gerraty 3001e1cee40dSSimon J. Gerraty2017-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 3002e1cee40dSSimon J. Gerraty 3003e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170418 3004e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 3005e1cee40dSSimon J. Gerraty o main.c: fix Main_SetObjdir() for relative paths (eg obj). 3006e1cee40dSSimon J. Gerraty 3007e1cee40dSSimon J. Gerraty2017-04-17 Simon J. Gerraty <sjg@bad.crufty.net> 3008e1cee40dSSimon J. Gerraty 3009e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170417 3010e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 3011e1cee40dSSimon J. Gerraty o fixes a number of coverity complaints 3012e1cee40dSSimon J. Gerraty - check return value of fseek, fcntl 3013e1cee40dSSimon J. Gerraty - plug memory leak in Dir_FindFile, Var_LoopExpand, 3014e1cee40dSSimon J. Gerraty JobPrintCommand, ParseTraditionalInclude 3015e1cee40dSSimon J. Gerraty - use bmake_malloc() where NULL is not tollerated 3016e1cee40dSSimon J. Gerraty - use MAKE_ATTR_UNUSED rather that kludges like 3017e1cee40dSSimon J. Gerraty return(unused ? 0 : 0) 3018e1cee40dSSimon J. Gerraty - use purge_cached_realpaths() rather than abuse cached_realpath() 3019e1cee40dSSimon J. Gerraty 3020b46b9039SSimon J. Gerraty2017-04-13 Simon J. Gerraty <sjg@bad.crufty.net> 3021b46b9039SSimon J. Gerraty 3022b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170413 3023b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 3024b46b9039SSimon J. Gerraty o main.c: when setting .OBJDIR ignore '$' in paths. 3025b46b9039SSimon J. Gerraty 3026b46b9039SSimon J. Gerraty * job.c: use MALLOC_OPTIONS to set malloc_options. 3027b46b9039SSimon J. Gerraty 3028b46b9039SSimon J. Gerraty2017-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 3029b46b9039SSimon J. Gerraty 3030b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170411 3031b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 3032b46b9039SSimon J. Gerraty o str.c: Str_Match: allow [^a-z] to behave as expected. 3033b46b9039SSimon J. Gerraty 3034b46b9039SSimon J. Gerraty2017-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 3035b46b9039SSimon J. Gerraty 3036b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170326 3037b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 3038b46b9039SSimon J. Gerraty o main.c: purge relative paths from realpath cache when .OBJDIR 3039b46b9039SSimon J. Gerraty is changed. 3040b46b9039SSimon J. Gerraty 3041b46b9039SSimon J. Gerraty2017-03-11 Simon J. Gerraty <sjg@bad.crufty.net> 3042b46b9039SSimon J. Gerraty 3043b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170311 3044b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 3045b46b9039SSimon J. Gerraty o main.c: only use -C arg "as is" if it starts with '/'. 3046b46b9039SSimon J. Gerraty 30471ce939a7SSimon J. Gerraty2017-03-01 Simon J. Gerraty <sjg@bad.crufty.net> 30481ce939a7SSimon J. Gerraty 30491ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170301 30501ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 3051b46b9039SSimon J. Gerraty o main.c: use -C arg "as is" rather than getcwd() 30521ce939a7SSimon J. Gerraty if they identify the same directory. 30531ce939a7SSimon J. Gerraty o parse.c: ensure loadfile buffer is \n terminated in non-mmap case 30541ce939a7SSimon J. Gerraty 30551ce939a7SSimon J. Gerraty2017-02-01 Simon J. Gerraty <sjg@bad.crufty.net> 30561ce939a7SSimon J. Gerraty 30571ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170201 30581ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 30591ce939a7SSimon J. Gerraty o var.c: allow :_=var and avoid use of special context. 30601ce939a7SSimon J. Gerraty 30611ce939a7SSimon J. Gerraty2017-01-30 Simon J. Gerraty <sjg@bad.crufty.net> 30621ce939a7SSimon J. Gerraty 30631ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170130 30641ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 30651ce939a7SSimon J. Gerraty o var.c: add :range and :_ 30661ce939a7SSimon J. Gerraty o main.c: partially initialize Dir_* before MainParseArgs() 30671ce939a7SSimon J. Gerraty can be called. 30681ce939a7SSimon J. Gerraty If -V, skip Main_ExportMAKEFLAGS() 30691ce939a7SSimon J. Gerraty 30701ce939a7SSimon J. Gerraty2017-01-14 Simon J. Gerraty <sjg@bad.crufty.net> 30711ce939a7SSimon J. Gerraty 30721ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170114 30731ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 30741ce939a7SSimon J. Gerraty o var.c: allow specifying the utc value used by :{gm,local}time 30751ce939a7SSimon J. Gerraty 307645447996SSimon J. Gerraty2016-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 307745447996SSimon J. Gerraty 307845447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161212 307945447996SSimon J. Gerraty Merge with NetBSD make, pick up 308045447996SSimon J. Gerraty o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too. 308145447996SSimon J. Gerraty 308245447996SSimon J. Gerraty2016-12-09 Simon J. Gerraty <sjg@bad.crufty.net> 308345447996SSimon J. Gerraty 308445447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161209 308545447996SSimon J. Gerraty Merge with NetBSD make, pick up 308645447996SSimon J. Gerraty o main.c: cleanup setting of .OBJDIR 308745447996SSimon J. Gerraty o parse.c: avoid coredump from (var)=val 308845447996SSimon J. Gerraty 308945447996SSimon J. Gerraty2016-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 309045447996SSimon J. Gerraty 309145447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161126 309245447996SSimon J. Gerraty Merge with NetBSD make, pick up 309345447996SSimon J. Gerraty o make.c: Make_OODate: report src node name if path not set 309445447996SSimon J. Gerraty 309545447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 309645447996SSimon J. Gerraty 309745447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160926 309845447996SSimon J. Gerraty Merge with NetBSD make, pick up 309945447996SSimon J. Gerraty o support for .DELETE_ON_ERROR: (remove targets that fail) 310045447996SSimon J. Gerraty 310145447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 310245447996SSimon J. Gerraty 310345447996SSimon J. Gerraty * Makefile MAN: tweak .Dt to match ${PROG} 310445447996SSimon J. Gerraty 310595e3ed2cSSimon J. Gerraty2016-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 310695e3ed2cSSimon J. Gerraty 310795e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160818 310895e3ed2cSSimon J. Gerraty its a neater number; pick up whitespace fixes to man page. 310995e3ed2cSSimon J. Gerraty 311095e3ed2cSSimon J. Gerraty2016-08-17 Simon J. Gerraty <sjg@bad.crufty.net> 311195e3ed2cSSimon J. Gerraty 311295e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160817 311395e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 311495e3ed2cSSimon J. Gerraty o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore() 311595e3ed2cSSimon J. Gerraty so we can call it before adding entries to missingFiles. 311695e3ed2cSSimon J. Gerraty Thus we do not track files we have been told to ignore. 311795e3ed2cSSimon J. Gerraty 311895e3ed2cSSimon J. Gerraty2016-08-15 Simon J. Gerraty <sjg@bad.crufty.net> 311995e3ed2cSSimon J. Gerraty 312095e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160815 312195e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 312295e3ed2cSSimon J. Gerraty o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to 312395e3ed2cSSimon J. Gerraty pathnames, and skip if the expansion is empty. 312495e3ed2cSSimon J. Gerraty Useful for dirdeps.mk when checking DIRDEPS_CACHE. 312595e3ed2cSSimon J. Gerraty 312695e3ed2cSSimon J. Gerraty2016-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 312795e3ed2cSSimon J. Gerraty 312895e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160812 312995e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 313095e3ed2cSSimon J. Gerraty o meta.c: remove all missingFiles entries that match a deleted 313195e3ed2cSSimon J. Gerraty dir. 313295e3ed2cSSimon J. Gerraty o main.c: set .ERROR_CMD if possible. 313395e3ed2cSSimon J. Gerraty 313439ac7ef4SSimon J. Gerraty2016-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 313539ac7ef4SSimon J. Gerraty 313639ac7ef4SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160606 313739ac7ef4SSimon J. Gerraty Merge with NetBSD make, pick up 313839ac7ef4SSimon J. Gerraty o dir.c: extend mtimes cache to others via cached_stat() 313939ac7ef4SSimon J. Gerraty 3140b778b302SSimon J. Gerraty2016-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 3141b778b302SSimon J. Gerraty 3142b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160604 3143b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 3144b778b302SSimon J. Gerraty o meta.c: missing filemon data is only relevant if we read a 3145b778b302SSimon J. Gerraty meta file. 3146b778b302SSimon J. Gerraty Also do not return oodate for a missing metafile if gn->path 3147b778b302SSimon J. Gerraty points to .CURDIR 3148b778b302SSimon J. Gerraty 3149b778b302SSimon J. Gerraty2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 3150b778b302SSimon J. Gerraty 3151b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160602 3152b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 3153b778b302SSimon J. Gerraty o cached_realpath(): avoid hitting filesystem more than necessary. 3154b778b302SSimon J. Gerraty o meta.c: refactor need_meta decision, add knobs for 3155b778b302SSimon J. Gerraty missing meta file and filemon data wrt out-of-datedness. 3156b778b302SSimon J. Gerraty 3157b778b302SSimon J. Gerraty2016-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 3158b778b302SSimon J. Gerraty 3159b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160528 3160b778b302SSimon J. Gerraty 3161b778b302SSimon J. Gerraty * boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION 3162b778b302SSimon J. Gerraty 3163e48f47ddSSimon J. Gerraty2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 3164e48f47ddSSimon J. Gerraty 3165e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160512 3166e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 3167e48f47ddSSimon J. Gerraty o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS 3168e48f47ddSSimon J. Gerraty this is useful for gcov builds. 3169e48f47ddSSimon J. Gerraty o propagate errors from filemon(4). 3170e48f47ddSSimon J. Gerraty 3171e48f47ddSSimon J. Gerraty2016-05-09 Simon J. Gerraty <sjg@bad.crufty.net> 3172e48f47ddSSimon J. Gerraty 3173e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160509 3174e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 3175e48f47ddSSimon J. Gerraty o remove use of non-standard types u_int etc. 3176e48f47ddSSimon J. Gerraty o meta.c: apply realpath() before matching against metaIgnorePaths 3177e48f47ddSSimon J. Gerraty 3178e48f47ddSSimon J. Gerraty2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net> 3179e48f47ddSSimon J. Gerraty 3180e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160404 3181e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 3182e48f47ddSSimon J. Gerraty o allow makefile to set .MAKE.JOBS 3183e48f47ddSSimon J. Gerraty 3184e48f47ddSSimon J. Gerraty * Makefile (PROG_NAME): use ${_MAKE_VERSION} 3185e48f47ddSSimon J. Gerraty 31863bebe729SSimon J. Gerraty2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net> 31873bebe729SSimon J. Gerraty 31883bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160315 31893bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 31903bebe729SSimon J. Gerraty o fix handling of archive members 31913bebe729SSimon J. Gerraty 31923bebe729SSimon J. Gerraty2016-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 31933bebe729SSimon J. Gerraty 31943bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): rename variable to avoid interference 31953bebe729SSimon J. Gerraty with checks for ${MAKE_VERSION} 31963bebe729SSimon J. Gerraty 31973bebe729SSimon J. Gerraty2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net> 31983bebe729SSimon J. Gerraty 31993bebe729SSimon J. Gerraty * Makefile (MAKE_VERSION): 20160310 32003bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 32013bebe729SSimon J. Gerraty o meta.c: treat missing Read file same as Write, incase we Delete it. 32023bebe729SSimon J. Gerraty 3203be19d90bSSimon J. Gerraty2016-03-07 Simon J. Gerraty <sjg@bad.crufty.net> 3204be19d90bSSimon J. Gerraty 3205be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160307 3206be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 3207be19d90bSSimon J. Gerraty o var.c: fix :ts\nnn to be octal by default. 3208be19d90bSSimon J. Gerraty o meta.c: meta_finish() to cleanup memory. 3209be19d90bSSimon J. Gerraty 3210be19d90bSSimon J. Gerraty2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 3211be19d90bSSimon J. Gerraty 3212be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160226 3213be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 3214be19d90bSSimon J. Gerraty o meta.c: allow meta file for makeDepend if makefiles want it. 3215be19d90bSSimon J. Gerraty 3216be19d90bSSimon J. Gerraty2016-02-19 Simon J. Gerraty <sjg@bad.crufty.net> 3217be19d90bSSimon J. Gerraty 3218be19d90bSSimon J. Gerraty * var.c: default .MAKE.SAVE_DOLLARS to FALSE 3219be19d90bSSimon J. Gerraty for backwards compatability. 3220be19d90bSSimon J. Gerraty 3221be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160220 3222be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 3223be19d90bSSimon J. Gerraty o var.c: add knob to control handling of '$$' in := 3224be19d90bSSimon J. Gerraty 3225be19d90bSSimon J. Gerraty2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 3226be19d90bSSimon J. Gerraty 3227be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160218 3228be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 3229be19d90bSSimon J. Gerraty o var.c: add .export-literal allows us to fix sys.clean-env.mk 3230be19d90bSSimon J. Gerraty post the changes to Var_Subst. 3231be19d90bSSimon J. Gerraty Var_Subst now takes flags, and does not consume '$$' in := 3232be19d90bSSimon J. Gerraty 3233be19d90bSSimon J. Gerraty2016-02-17 Simon J. Gerraty <sjg@bad.crufty.net> 3234be19d90bSSimon J. Gerraty 3235be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160217 3236be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 3237be19d90bSSimon J. Gerraty o var.c: preserve '$$' in := 3238be19d90bSSimon J. Gerraty o parse.c: add .dinclude for handling included 3239be19d90bSSimon J. Gerraty makefile like .depend 3240be19d90bSSimon J. Gerraty 32416e050540SSimon J. Gerraty2015-12-20 Simon J. Gerraty <sjg@bad.crufty.net> 32426e050540SSimon J. Gerraty 32436e050540SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151220 32446e050540SSimon J. Gerraty Merge with NetBSD make, pick up 32456e050540SSimon J. Gerraty o suff.c: re-initialize suffNull when clearing suffixes. 32466e050540SSimon J. Gerraty 3247ac3446e9SSimon J. Gerraty2015-12-01 Simon J. Gerraty <sjg@bad.crufty.net> 3248ac3446e9SSimon J. Gerraty 3249ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151201 3250ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 3251ac3446e9SSimon J. Gerraty o cond.c: CondCvtArg: avoid access beyond end of empty buffer. 3252ac3446e9SSimon J. Gerraty o meta.c: meta_oodate: use lstat(2) for checking link target 3253ac3446e9SSimon J. Gerraty in case it is a symlink. 3254ac3446e9SSimon J. Gerraty o var.c: avoid calling brk_string and Var_Export1 with empty 3255ac3446e9SSimon J. Gerraty strings. 3256ac3446e9SSimon J. Gerraty 3257ac3446e9SSimon J. Gerraty2015-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 3258ac3446e9SSimon J. Gerraty 3259ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151126 3260ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 3261ac3446e9SSimon J. Gerraty o parse.c: ParseTrackInput don't access beyond 3262ac3446e9SSimon J. Gerraty end of old value. 3263ac3446e9SSimon J. Gerraty 3264ac3446e9SSimon J. Gerraty2015-10-22 Simon J. Gerraty <sjg@bad.crufty.net> 3265ac3446e9SSimon J. Gerraty 3266ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151022 3267ac3446e9SSimon J. Gerraty 3268ac3446e9SSimon J. Gerraty * Add support for BSD/OS which lacks inttypes.h 3269ac3446e9SSimon J. Gerraty and really needs sys/param.h for sys/sysctl.h 3270ac3446e9SSimon J. Gerraty also 'type' is not a shell builtin. 3271ac3446e9SSimon J. Gerraty 3272ac3446e9SSimon J. Gerraty * var.c: eliminate uint32_t and need for inttypes.h 3273ac3446e9SSimon J. Gerraty 3274ac3446e9SSimon J. Gerraty * main.c: PrintOnError flush stdout before run .ERROR 3275ac3446e9SSimon J. Gerraty 3276ac3446e9SSimon J. Gerraty * parse.c: cope with _SC_PAGESIZE not being defined. 3277ac3446e9SSimon J. Gerraty 3278ac3446e9SSimon J. Gerraty 32794c620fe5SSimon J. Gerraty2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net> 32804c620fe5SSimon J. Gerraty 32814c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151020 32824c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 32834c620fe5SSimon J. Gerraty o var.c: fix uninitialized var 32844c620fe5SSimon J. Gerraty 32854c620fe5SSimon J. Gerraty2015-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 32864c620fe5SSimon J. Gerraty 32874c620fe5SSimon J. Gerraty * var.c: the conditional expressions used with ':?' can be 32884c620fe5SSimon J. Gerraty expensive, if already discarding do not evaluate or expand 32894c620fe5SSimon J. Gerraty anything. 32904c620fe5SSimon J. Gerraty 32914c620fe5SSimon J. Gerraty2015-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 32924c620fe5SSimon J. Gerraty 32934c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151010 32944c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 32954c620fe5SSimon J. Gerraty o Add Boolean wantit flag to Var_Subst and Var_Parse 32964c620fe5SSimon J. Gerraty when FALSE we know we are discarding the result and can 32974c620fe5SSimon J. Gerraty skip operations like Cmd_Exec. 32984c620fe5SSimon J. Gerraty 32994c620fe5SSimon J. Gerraty2015-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 33004c620fe5SSimon J. Gerraty 33014c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151009 33024c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 33034c620fe5SSimon J. Gerraty o var.c: don't check for NULL before free() 33044c620fe5SSimon J. Gerraty o meta.c: meta_oodate, do not hard code ignore of makeDependfile 33054c620fe5SSimon J. Gerraty 33064c620fe5SSimon J. Gerraty2015-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 33074c620fe5SSimon J. Gerraty 33084c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150910 33094c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 33104c620fe5SSimon J. Gerraty o main.c: with -w print Enter/Leaving messages for objdir too 33114c620fe5SSimon J. Gerraty if necessary. 33124c620fe5SSimon J. Gerraty o centralize shell metachar handling 33134c620fe5SSimon J. Gerraty 33144c620fe5SSimon J. Gerraty * FILES: add metachar.[ch] 33154c620fe5SSimon J. Gerraty 3316128a4105SSimon J. Gerraty2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 3317128a4105SSimon J. Gerraty 3318128a4105SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150606 3319128a4105SSimon J. Gerraty Merge with NetBSD make, pick up 3320128a4105SSimon J. Gerraty o make.1: document .OBJDIR target 3321128a4105SSimon J. Gerraty 332228a6bc81SSimon J. Gerraty2015-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 332328a6bc81SSimon J. Gerraty 332428a6bc81SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150505 332528a6bc81SSimon J. Gerraty Merge with NetBSD make, pick up 332628a6bc81SSimon J. Gerraty o cond.c: be strict about lhs of comparison when evaluating .if 332728a6bc81SSimon J. Gerraty but less so when called from variable expansion. 332828a6bc81SSimon J. Gerraty o unit-tests/cond2.mk: test various error conditions 332928a6bc81SSimon J. Gerraty 333028a6bc81SSimon J. Gerraty2015-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 333128a6bc81SSimon J. Gerraty 333228a6bc81SSimon J. Gerraty * machine.sh (MACHINE): Add Bitrig 333328a6bc81SSimon J. Gerraty patch from joerg@netbsd.org 333428a6bc81SSimon J. Gerraty 3335db29cad8SSimon J. Gerraty2015-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 3336db29cad8SSimon J. Gerraty 3337db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150418 3338db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3339db29cad8SSimon J. Gerraty o job.c: use memmove() rather than memcpy() 3340db29cad8SSimon J. Gerraty 3341db29cad8SSimon J. Gerraty * unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL 3342db29cad8SSimon J. Gerraty case, so skip it. 3343db29cad8SSimon J. Gerraty 3344db29cad8SSimon J. Gerraty2015-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 3345db29cad8SSimon J. Gerraty 3346db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150411 3347db29cad8SSimon J. Gerraty bump version - only mk/ changes. 3348db29cad8SSimon J. Gerraty 3349db29cad8SSimon J. Gerraty2015-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 3350db29cad8SSimon J. Gerraty 3351db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150410 3352db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3353db29cad8SSimon J. Gerraty o document different handling of '-' in jobs mode vs compat 3354db29cad8SSimon J. Gerraty o fix jobs mode so that '-' only applies to whole job 3355db29cad8SSimon J. Gerraty when shell lacks hasErrCtl 3356db29cad8SSimon J. Gerraty o meta.c: use separate vars to track lcwd and latestdir (read) 3357db29cad8SSimon J. Gerraty per process 3358db29cad8SSimon J. Gerraty 3359db29cad8SSimon J. Gerraty2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 3360db29cad8SSimon J. Gerraty 3361db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150401 3362db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3363db29cad8SSimon J. Gerraty o meta.c: close meta file in child 3364db29cad8SSimon J. Gerraty 3365db29cad8SSimon J. Gerraty * Makefile: use BINDIR.bmake if set. 3366db29cad8SSimon J. Gerraty Same for MANDIR and SHAREDIR 3367db29cad8SSimon J. Gerraty Handy for testing release candidates 3368db29cad8SSimon J. Gerraty in various environments. 3369db29cad8SSimon J. Gerraty 3370db29cad8SSimon J. Gerraty2015-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 3371db29cad8SSimon J. Gerraty 3372db29cad8SSimon J. Gerraty * move initialization of savederr to block where it is used 3373db29cad8SSimon J. Gerraty to avoid spurious warning from gcc5 3374db29cad8SSimon J. Gerraty 3375db29cad8SSimon J. Gerraty2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 3376db29cad8SSimon J. Gerraty 3377db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141111 3378db29cad8SSimon J. Gerraty just a cooler number 3379db29cad8SSimon J. Gerraty 3380db29cad8SSimon J. Gerraty2014-11-05 Simon J. Gerraty <sjg@bad.crufty.net> 3381db29cad8SSimon J. Gerraty 3382db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141105 3383db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3384db29cad8SSimon J. Gerraty o revert major overhaul of suffix handling 3385db29cad8SSimon J. Gerraty and POSIX compliance - too much breakage 3386db29cad8SSimon J. Gerraty and impossible to make backwards compatible. 3387db29cad8SSimon J. Gerraty o we still have the new unit test structure which is ok. 3388db29cad8SSimon J. Gerraty o meta.c ensure "-- filemon" is at start of line. 3389db29cad8SSimon J. Gerraty 3390db29cad8SSimon J. Gerraty2014-09-17 Simon J. Gerraty <sjg@bad.crufty.net> 3391db29cad8SSimon J. Gerraty 3392db29cad8SSimon J. Gerraty * configure.in: test that result of getconf PATH_MAX is numeric 3393db29cad8SSimon J. Gerraty and discard if not. Apparently needed for Hurd. 3394db29cad8SSimon J. Gerraty 3395db29cad8SSimon J. Gerraty2014-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 3396db29cad8SSimon J. Gerraty 3397db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140830 3398db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 3399db29cad8SSimon J. Gerraty o major overhaul of suffix handling 3400db29cad8SSimon J. Gerraty o improved POSIX compliance 3401db29cad8SSimon J. Gerraty o overhauled unit-tests 3402db29cad8SSimon J. Gerraty 34035bcb7424SSimon J. Gerraty2014-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 34045bcb7424SSimon J. Gerraty 34055bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140620 34065bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 3407db29cad8SSimon J. Gerraty o var.c return varNoError rather than var_Error for ::= modifiers. 34085bcb7424SSimon J. Gerraty 34095bcb7424SSimon J. Gerraty2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net> 34105bcb7424SSimon J. Gerraty 34115bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140522 34125bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 34135bcb7424SSimon J. Gerraty o var.c detect some parse errors. 34145bcb7424SSimon J. Gerraty 34155bcb7424SSimon J. Gerraty2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 34165bcb7424SSimon J. Gerraty 34175bcb7424SSimon J. Gerraty * Fix spelling errors - patch from Pedro Giffuni 34185bcb7424SSimon J. Gerraty 34195bcb7424SSimon J. Gerraty2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 34205bcb7424SSimon J. Gerraty 34215bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140214 34225bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 34235bcb7424SSimon J. Gerraty o .INCLUDEFROM* 34245bcb7424SSimon J. Gerraty o use Var_Value to get MAKEOBJDIR[PREFIX] 34255bcb7424SSimon J. Gerraty o reduced realloc'ign in brk_string. 34265bcb7424SSimon J. Gerraty * configure.in: add a check for compiler supporting __func__ 34275bcb7424SSimon J. Gerraty 34280dede8b0SSimon J. Gerraty2014-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 34290dede8b0SSimon J. Gerraty 34300dede8b0SSimon J. Gerraty * boot-strap: ignore mksrc=none 34310dede8b0SSimon J. Gerraty 34320dede8b0SSimon J. Gerraty2014-01-02 Simon J. Gerraty <sjg@bad.crufty.net> 34330dede8b0SSimon J. Gerraty 34340dede8b0SSimon J. Gerraty * Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk 34350dede8b0SSimon J. Gerraty 34360dede8b0SSimon J. Gerraty2014-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 34370dede8b0SSimon J. Gerraty 34380dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140101 34390dede8b0SSimon J. Gerraty * configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024) 34400dede8b0SSimon J. Gerraty * Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max 34410dede8b0SSimon J. Gerraty * make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for 34420dede8b0SSimon J. Gerraty Hurd) 34430dede8b0SSimon J. Gerraty * configure.in: Add AC_PREREQ and check for 34440dede8b0SSimon J. Gerraty sysctl; patch from Andrew Shadura andrewsh at debian.org 34450dede8b0SSimon J. Gerraty 34460dede8b0SSimon J. Gerraty2013-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 34470dede8b0SSimon J. Gerraty 34480dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131010 34490dede8b0SSimon J. Gerraty * lose the const from arg to systcl to avoid problems on older BSDs. 34500dede8b0SSimon J. Gerraty 34510dede8b0SSimon J. Gerraty2013-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 34520dede8b0SSimon J. Gerraty 34530dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131001 34540dede8b0SSimon J. Gerraty Merge with NetBSD make, pick up 34550dede8b0SSimon J. Gerraty o main.c: for NATIVE build sysctl to get MACHINE_ARCH from 34560dede8b0SSimon J. Gerraty hw.machine_arch if necessary. 34570dede8b0SSimon J. Gerraty o meta.c: meta_oodate - need to look at src of Link and target 34580dede8b0SSimon J. Gerraty of Move as well. 34590dede8b0SSimon J. Gerraty * main.c: check that CTL_HW and HW_MACHINE_ARCH exist. 34600dede8b0SSimon J. Gerraty provide __arraycount() if needed. 34610dede8b0SSimon J. Gerraty 34621bbe5942SSimon J. Gerraty2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net> 34631bbe5942SSimon J. Gerraty 34641bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130904 34651bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 34661bbe5942SSimon J. Gerraty o Add VAR_INTERNAL context, so that internal setting of 34671bbe5942SSimon J. Gerraty MAKEFILE does not override value set by makefiles. 34681bbe5942SSimon J. Gerraty 34691bbe5942SSimon J. Gerraty2013-09-02 Simon J. Gerraty <sjg@bad.crufty.net> 34701bbe5942SSimon J. Gerraty 34711bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130902 34721bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 34731bbe5942SSimon J. Gerraty o CompatRunCommand: only apply shellErrFlag when errCheck is true 34741bbe5942SSimon J. Gerraty 34751bbe5942SSimon J. Gerraty2013-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 34761bbe5942SSimon J. Gerraty 34771bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130828 34781bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 34791bbe5942SSimon J. Gerraty o Fix VAR :sh = syntax from Will Andrews at freebsd.org 34801bbe5942SSimon J. Gerraty o Call Job_SetPrefix() from Job_Init() so makefiles have 34811bbe5942SSimon J. Gerraty opportunity to set .MAKE.JOB.PREFIX 34821bbe5942SSimon J. Gerraty 348351ee2c1cSSimon J. Gerraty2013-07-30 Simon J. Gerraty <sjg@bad.crufty.net> 348451ee2c1cSSimon J. Gerraty 348551ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130730 348651ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 348751ee2c1cSSimon J. Gerraty o Allow suppression of --- job -- tokens by setting 348851ee2c1cSSimon J. Gerraty .MAKE.JOB.PREFIX empty. 348951ee2c1cSSimon J. Gerraty 349051ee2c1cSSimon J. Gerraty2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net> 349151ee2c1cSSimon J. Gerraty 349251ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130716 349351ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 34945bcb7424SSimon J. Gerraty o number of gmake compatibility tweaks 349551ee2c1cSSimon J. Gerraty -w for gmake style entering/leaving messages 349651ee2c1cSSimon J. Gerraty if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc. 349751ee2c1cSSimon J. Gerraty handle MAKEFLAGS containing only letters. 349851ee2c1cSSimon J. Gerraty o when overriding a GLOBAL variable on the command line, 349951ee2c1cSSimon J. Gerraty delete it from GLOBAL context so -V doesn't show the wrong 350051ee2c1cSSimon J. Gerraty value. 350151ee2c1cSSimon J. Gerraty 350251ee2c1cSSimon J. Gerraty2013-07-06 Simon J. Gerraty <sjg@bad.crufty.net> 350351ee2c1cSSimon J. Gerraty 350451ee2c1cSSimon J. Gerraty * configure.in: We don't need MAKE_LEVEL_SAFE anymore. 350551ee2c1cSSimon J. Gerraty 350651ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130706 350751ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 350851ee2c1cSSimon J. Gerraty o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is 350951ee2c1cSSimon J. Gerraty true so that CompatRunCommand() can use it, to ensure 351051ee2c1cSSimon J. Gerraty consistent behavior with jobs mode. 351151ee2c1cSSimon J. Gerraty o use MAKE_LEVEL_ENV to define the variable to propagate 351251ee2c1cSSimon J. Gerraty .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake). 351351ee2c1cSSimon J. Gerraty o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of 351451ee2c1cSSimon J. Gerraty paths to ignore. 351551ee2c1cSSimon J. Gerraty 351674d2e02bSSimon J. Gerraty2013-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 351774d2e02bSSimon J. Gerraty 351874d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130604 351974d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 352074d2e02bSSimon J. Gerraty o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's 352174d2e02bSSimon J. Gerraty to avoid leaking descriptors. 352274d2e02bSSimon J. Gerraty 352374d2e02bSSimon J. Gerraty2013-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 352474d2e02bSSimon J. Gerraty 352574d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130528 352674d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 352774d2e02bSSimon J. Gerraty o var.c: cleanup some left-overs in VarHash() 352874d2e02bSSimon J. Gerraty 352952d86256SSimon J. Gerraty2013-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 353052d86256SSimon J. Gerraty 353152d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130520 353252d86256SSimon J. Gerraty generate manifest from component FILES rather than have to 353352d86256SSimon J. Gerraty update FILES when mk/FILES changes. 353452d86256SSimon J. Gerraty 353552d86256SSimon J. Gerraty2013-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 353652d86256SSimon J. Gerraty 353752d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130518 353852d86256SSimon J. Gerraty Merge with NetBSD make, pick up 353952d86256SSimon J. Gerraty o suff.c: don't skip all processsing for .PHONY targets 354052d86256SSimon J. Gerraty else wildcard srcs do not get expanded. 354152d86256SSimon J. Gerraty o var.c: expand name of variable to delete if necessary. 354252d86256SSimon J. Gerraty 35431748de26SSimon J. Gerraty2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 35441748de26SSimon J. Gerraty 35451748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130330 35461748de26SSimon J. Gerraty Merge with NetBSD make, pick up 35471748de26SSimon J. Gerraty o meta.c: refine the handling of .OODATE in commands. 35481748de26SSimon J. Gerraty Rather than suppress command comparison for the entire script 35491748de26SSimon J. Gerraty as though .NOMETA_CMP had been used, only suppress it for the 35501748de26SSimon J. Gerraty one command line. 35511748de26SSimon J. Gerraty This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 35521748de26SSimon J. Gerraty suppress comparison of a command without otherwise affecting it. 35531748de26SSimon J. Gerraty o make.1: document that 35541748de26SSimon J. Gerraty 35551748de26SSimon J. Gerraty2013-03-22 Simon J. Gerraty <sjg@bad.crufty.net> 35561748de26SSimon J. Gerraty 35571748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130321 35581748de26SSimon J. Gerraty yes, not quite right but its a cooler number. 35591748de26SSimon J. Gerraty Merge with NetBSD make, pick up 35601748de26SSimon J. Gerraty o parse.c: fix ParseGmakeExport to be portable 35611748de26SSimon J. Gerraty and add a unit-test. 35621748de26SSimon J. Gerraty * meta.c: call meta_init() before makefiles are read and if built 35631748de26SSimon J. Gerraty with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON 35641748de26SSimon J. Gerraty this let's makefiles test for support. 35651748de26SSimon J. Gerraty Call meta_mode_init() to process .MAKE.MODE. 35661748de26SSimon J. Gerraty 35671748de26SSimon J. Gerraty2013-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 35681748de26SSimon J. Gerraty 35691748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130305 35701748de26SSimon J. Gerraty Merge with NetBSD make, pick up 35711748de26SSimon J. Gerraty o run .STALE: target when a dependency from .depend is missing. 35721748de26SSimon J. Gerraty o job.c: add Job_RunTarget() for the above and .BEGIN 35731748de26SSimon J. Gerraty 35741748de26SSimon J. Gerraty2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 35751748de26SSimon J. Gerraty 35761748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130303 35771748de26SSimon J. Gerraty Merge with NetBSD make, pick up 35781748de26SSimon J. Gerraty o main.c: set .MAKE.OS to utsname.sysname 35791748de26SSimon J. Gerraty o job.c: more checks for read and poll errors 35801748de26SSimon J. Gerraty o var.c: lose VarChangeCase() saves 4% time 35811748de26SSimon J. Gerraty 35821748de26SSimon J. Gerraty2013-03-02 Simon J. Gerraty <sjg@bad.crufty.net> 35831748de26SSimon J. Gerraty 35841748de26SSimon J. Gerraty * boot-strap: remove MAKEOBJDIRPREFIX from environment since we 35851748de26SSimon J. Gerraty want to use MAKEOBJDIR 35861748de26SSimon J. Gerraty 35873cbdda60SSimon J. Gerraty2013-01-27 Simon J. Gerraty <sjg@bad.crufty.net> 35883cbdda60SSimon J. Gerraty 35893cbdda60SSimon J. Gerraty * Merge with NetBSD make, pick up 35903cbdda60SSimon J. Gerraty o make.1: more info on how shell commands are handled. 35913cbdda60SSimon J. Gerraty o job.c,main.c: detect write errors to job pipes. 35923cbdda60SSimon J. Gerraty 35933cbdda60SSimon J. Gerraty2013-01-25 Simon J. Gerraty <sjg@bad.crufty.net> 35943cbdda60SSimon J. Gerraty 35953cbdda60SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130123 35963cbdda60SSimon J. Gerraty Merge with NetBSD make, pick up 35973cbdda60SSimon J. Gerraty o meta.c: if script uses .OODATE and meta_oodate() decides 35983cbdda60SSimon J. Gerraty rebuild is needed, .OODATE will be empty - set it to .ALLSRC. 35993cbdda60SSimon J. Gerraty o var.c: in debug output indicate which variabale modifiers 36003cbdda60SSimon J. Gerraty apply to. 36013cbdda60SSimon J. Gerraty o remove Check_Cwd logic the makefiles have been fixed. 36023cbdda60SSimon J. Gerraty 36033cbdda60SSimon J. Gerraty2012-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 36043cbdda60SSimon J. Gerraty 36053cbdda60SSimon J. Gerraty * makefile.in: add a simple makefile for folk who insist on 36063cbdda60SSimon J. Gerraty ./configure; make; make install 36073cbdda60SSimon J. Gerraty it just runs boot-strap 36083cbdda60SSimon J. Gerraty * include mk/* to accommodate the above 36093cbdda60SSimon J. Gerraty * boot-strap: re-work to accommodate the above 36103cbdda60SSimon J. Gerraty mksrc defaults to $Mydir/mk 36113cbdda60SSimon J. Gerraty allow op={configure,build,install,clean,all} 36123cbdda60SSimon J. Gerraty add options to facilitate install 36133cbdda60SSimon J. Gerraty * Makefile.config.in: just the bits set by configure 36143cbdda60SSimon J. Gerraty * Makefile: bump version to 20121212 36153cbdda60SSimon J. Gerraty abandon Makefile.in (NetBSD Makefile) 36163cbdda60SSimon J. Gerraty leverage mk/* instead 36173cbdda60SSimon J. Gerraty * configure.in: ensure srcdir is absolute 36183cbdda60SSimon J. Gerraty 361959a02420SSimon J. Gerraty2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 362059a02420SSimon J. Gerraty 362159a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121111 362259a02420SSimon J. Gerraty fix generation of bmake.cat1 362359a02420SSimon J. Gerraty 362459a02420SSimon J. Gerraty2012-11-09 Simon J. Gerraty <sjg@bad.crufty.net> 362559a02420SSimon J. Gerraty 362659a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121109 362759a02420SSimon J. Gerraty Merge with NetBSD make, pick up 362859a02420SSimon J. Gerraty o make.c: MakeBuildChild: return 0 so search continues if a 362959a02420SSimon J. Gerraty .ORDER dependency is detected. 363059a02420SSimon J. Gerraty o unit-tests/order: test the above 363159a02420SSimon J. Gerraty 363259a02420SSimon J. Gerraty2012-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 363359a02420SSimon J. Gerraty 363459a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121102 363559a02420SSimon J. Gerraty Merge with NetBSD make, pick up 363659a02420SSimon J. Gerraty o cond.c: allow cond_state[] to grow. 363759a02420SSimon J. Gerraty In meta mode with a very large tree, we can hit the limit 363859a02420SSimon J. Gerraty while processing dirdeps. 363959a02420SSimon J. Gerraty 364059a02420SSimon J. Gerraty2012-10-25 Simon J. Gerraty <sjg@bad.crufty.net> 364159a02420SSimon J. Gerraty 364259a02420SSimon J. Gerraty * Makefile.in: we need to use ${srcdir} not ${.CURDIR} 364359a02420SSimon J. Gerraty 364493036677SSimon J. Gerraty2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 364593036677SSimon J. Gerraty 364693036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121010 364793036677SSimon J. Gerraty o protect syntax that only bmake parses correctly. 364893036677SSimon J. Gerraty o remove auto setting of FORCE_MACHINE, use configure's 364993036677SSimon J. Gerraty --with-force-machine=whatever if that is desired. 365093036677SSimon J. Gerraty 365193036677SSimon J. Gerraty2012-10-08 Simon J. Gerraty <sjg@bad.crufty.net> 365293036677SSimon J. Gerraty 365393036677SSimon J. Gerraty * Makefile.in: do not lose history from make.1 when generating bmake.1 365493036677SSimon J. Gerraty 365593036677SSimon J. Gerraty2012-10-07 Simon J. Gerraty <sjg@bad.crufty.net> 365693036677SSimon J. Gerraty 365793036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121007 365893036677SSimon J. Gerraty Merge with NetBSD make, pick up 365993036677SSimon J. Gerraty o compat.c: ignore empty commands - same as jobs mode. 366093036677SSimon J. Gerraty o make.1: document meta chars that cause use of shell 366193036677SSimon J. Gerraty 366293036677SSimon J. Gerraty2012-09-11 Simon J. Gerraty <sjg@bad.crufty.net> 366393036677SSimon J. Gerraty 366493036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): bump version to 20120911 366593036677SSimon J. Gerraty * bsd.after-import.mk: include Makefile.inc early and allow it to 366693036677SSimon J. Gerraty override PROG 366793036677SSimon J. Gerraty 36683955d011SMarcel Moolenaar2012-08-31 Simon J. Gerraty <sjg@bad.crufty.net> 36693955d011SMarcel Moolenaar 36703955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120831 36713955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36723955d011SMarcel Moolenaar o cast sizeof() to int for comparison 36733955d011SMarcel Moolenaar o minor make.1 tweak 36743955d011SMarcel Moolenaar 36753955d011SMarcel Moolenaar2012-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 36763955d011SMarcel Moolenaar 36773955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120830 36783955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36793955d011SMarcel Moolenaar o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V 36803955d011SMarcel Moolenaar o debug flag -dV causes -V to show raw value regardless. 36813955d011SMarcel Moolenaar 36823955d011SMarcel Moolenaar2012-07-05 Simon J. Gerraty <sjg@bad.crufty.net> 36833955d011SMarcel Moolenaar 36843955d011SMarcel Moolenaar * bsd.after-import.mk (after-import): ensure unit-tests/Makefile 36853955d011SMarcel Moolenaar gets SRCTOP set. 36863955d011SMarcel Moolenaar 36873955d011SMarcel Moolenaar2012-07-04 Simon J. Gerraty <sjg@bad.crufty.net> 36883955d011SMarcel Moolenaar 36893955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120704 36903955d011SMarcel Moolenaar Merge with NetBSD make, pick up 36913955d011SMarcel Moolenaar o Job_ParseShell should call Shell_Init if it has been 36923955d011SMarcel Moolenaar previously called. 36933955d011SMarcel Moolenaar * Makefile.in: set USE_META based on configure result. 36943955d011SMarcel Moolenaar also .PARSEDIR is safer indicator of bmake. 36953955d011SMarcel Moolenaar 36963955d011SMarcel Moolenaar2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net> 36973955d011SMarcel Moolenaar 36983955d011SMarcel Moolenaar * Makefile.in: bump version to 20120626 36993955d011SMarcel Moolenaar ensure CPPFLAGS is in CFLAGS 37003955d011SMarcel Moolenaar * meta.c: avoid nested externs 37013955d011SMarcel Moolenaar * bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target 37023955d011SMarcel Moolenaar 37033955d011SMarcel Moolenaar2012-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 37043955d011SMarcel Moolenaar 37053955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120620 37063955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37073955d011SMarcel Moolenaar o make_malloc.c: avoid including make_malloc.h again 37083955d011SMarcel Moolenaar 37093955d011SMarcel Moolenaar * Makefile.in: avoid bmake only syntax or protect with 37103955d011SMarcel Moolenaar .if defined(.MAKE.LEVEL) 37113955d011SMarcel Moolenaar * bsd.after-import.mk: replace .-include with .sinclude 37123955d011SMarcel Moolenaar ensure? SRCTOP gets a value 37133955d011SMarcel Moolenaar * configure.in: look for filemon.h in /usr/include/dev/filemon first. 37143955d011SMarcel Moolenaar 37153955d011SMarcel Moolenaar2012-06-19 Simon J. Gerraty <sjg@bad.crufty.net> 37163955d011SMarcel Moolenaar 37173955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120612 37183955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37193955d011SMarcel Moolenaar o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler 37203955d011SMarcel Moolenaar for greater portability. 37213955d011SMarcel Moolenaar o unit-tests/forloop: check that .for works as expected wrt 37223955d011SMarcel Moolenaar number of times and with "quoted strings". 37233955d011SMarcel Moolenaar 37243955d011SMarcel Moolenaar2012-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 37253955d011SMarcel Moolenaar 37263955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120606 37273955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37283955d011SMarcel Moolenaar o compat.c: use kill(2) rather than raise(3). 37293955d011SMarcel Moolenaar * configure.in: look for sys/dev/filemon 37303955d011SMarcel Moolenaar * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile 37313955d011SMarcel Moolenaar and pass BOOTSTRAP_XTRAS to boot-strap. 37323955d011SMarcel Moolenaar 37333955d011SMarcel Moolenaar2012-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 37343955d011SMarcel Moolenaar 37353955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120604 37363955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37373955d011SMarcel Moolenaar o util.c and var.c share same var for tracking if environ 37383955d011SMarcel Moolenaar has been reallocated. 37393955d011SMarcel Moolenaar o util.c provide getenv with setenv. 37403955d011SMarcel Moolenaar * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL 37413955d011SMarcel Moolenaar when the shell actively strips .MAKE.* from the environment. 37423955d011SMarcel Moolenaar We still refer to the variable always as .MAKE.LEVEL 37433955d011SMarcel Moolenaar * util.c fix bug in findenv() was finding prefix of name. 37443955d011SMarcel Moolenaar * compat.c: re-raising SIGINT etc after running .INTERRUPT 37453955d011SMarcel Moolenaar results in more reliable termination of all activity on many 37463955d011SMarcel Moolenaar platforms. 37473955d011SMarcel Moolenaar 37483955d011SMarcel Moolenaar2012-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 37493955d011SMarcel Moolenaar 37503955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120602 37513955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37523955d011SMarcel Moolenaar o for.c: handle quoted items in .for list 37533955d011SMarcel Moolenaar 37543955d011SMarcel Moolenaar2012-05-30 Simon J. Gerraty <sjg@bad.crufty.net> 37553955d011SMarcel Moolenaar 37563955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120530 37573955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37583955d011SMarcel Moolenaar o compat.c: ignore empty command. 37593955d011SMarcel Moolenaar 37603955d011SMarcel Moolenaar2012-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 37613955d011SMarcel Moolenaar 37623955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120524 37633955d011SMarcel Moolenaar * FILES: add bsd.after-import.mk: 37643955d011SMarcel Moolenaar A simple means of integrating bmake into a BSD build system. 37653955d011SMarcel Moolenaar 37663955d011SMarcel Moolenaar2012-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 37673955d011SMarcel Moolenaar 37683955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120520 37693955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37703955d011SMarcel Moolenaar o increased limit for nested conditionals. 37713955d011SMarcel Moolenaar 37723955d011SMarcel Moolenaar2012-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 37733955d011SMarcel Moolenaar 37743955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120518 37753955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37763955d011SMarcel Moolenaar o use _exit(2) in signal hanlder 37773955d011SMarcel Moolenaar o Don't use the [dir] cache when building nodes that might have 37783955d011SMarcel Moolenaar changed since the last exec. 37793955d011SMarcel Moolenaar o Avoid nested extern declaration warnings. 37803955d011SMarcel Moolenaar 37813955d011SMarcel Moolenaar2012-04-27 Simon J. Gerraty <sjg@bad.crufty.net> 37823955d011SMarcel Moolenaar 37833955d011SMarcel Moolenaar * meta.c (fgetLine): avoid %z - not portable. 37843955d011SMarcel Moolenaar * parse.c: Since we moved include of sys/mman.h 37853955d011SMarcel Moolenaar and def's of MAP_COPY etc. we got dups from a merge. 37863955d011SMarcel Moolenaar 37873955d011SMarcel Moolenaar2012-04-24 Simon J. Gerraty <sjg@bad.crufty.net> 37883955d011SMarcel Moolenaar 37893955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 37903955d011SMarcel Moolenaar Merge with NetBSD make, pick up 37913955d011SMarcel Moolenaar o restore duplicate supression in .MAKE.MAKEFILES 37923955d011SMarcel Moolenaar runtime saving can be significant. 37933955d011SMarcel Moolenaar o Var_Subst() uses Buf_DestroyCompact() to reduce memory 37943955d011SMarcel Moolenaar consumption up to 20%. 37953955d011SMarcel Moolenaar 37963955d011SMarcel Moolenaar2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 37973955d011SMarcel Moolenaar 37983955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 37993955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38003955d011SMarcel Moolenaar o remove duplicate supression in .MAKE.MAKEFILES 38013955d011SMarcel Moolenaar o improved dir cache behavior 38023955d011SMarcel Moolenaar o gmake'ish export command 38033955d011SMarcel Moolenaar 38043955d011SMarcel Moolenaar2012-03-25 Simon J. Gerraty <sjg@bad.crufty.net> 38053955d011SMarcel Moolenaar 38063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120325 38073955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38083955d011SMarcel Moolenaar o fix parsing of :[#] in conditionals. 38093955d011SMarcel Moolenaar 38103955d011SMarcel Moolenaar2012-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 38113955d011SMarcel Moolenaar 38123955d011SMarcel Moolenaar * Makefile.in: replace use of .Nx in bmake.1 with NetBSD 38133955d011SMarcel Moolenaar since some systems cannot cope with .Nx <version> 38143955d011SMarcel Moolenaar 38153955d011SMarcel Moolenaar2011-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 38163955d011SMarcel Moolenaar 38173955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111111 38183955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38193955d011SMarcel Moolenaar o debug output for .PARSEDIR and .PARSEFILE 38203955d011SMarcel Moolenaar 38213955d011SMarcel Moolenaar2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 38223955d011SMarcel Moolenaar 38233955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111010 38243955d011SMarcel Moolenaar 38253955d011SMarcel Moolenaar2011-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 38263955d011SMarcel Moolenaar 38273955d011SMarcel Moolenaar * boot-strap: check for an expected file in the dirs we look for. 38283955d011SMarcel Moolenaar * make-bootstrap.sh: pass on LDSTATIC 38293955d011SMarcel Moolenaar 38303955d011SMarcel Moolenaar2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 38313955d011SMarcel Moolenaar 38323955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111001 38333955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38343955d011SMarcel Moolenaar o ensure .PREFIX is set for .PHONY 38353955d011SMarcel Moolenaar and .TARGET set for .PHONY run via .END 38363955d011SMarcel Moolenaar o __dead used consistently 38373955d011SMarcel Moolenaar 38383955d011SMarcel Moolenaar2011-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 38393955d011SMarcel Moolenaar 38403955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-) 38413955d011SMarcel Moolenaar 38423955d011SMarcel Moolenaar2011-09-05 Simon J. Gerraty <sjg@bad.crufty.net> 38433955d011SMarcel Moolenaar 38443955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110905 38453955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38463955d011SMarcel Moolenaar o meta_oodate: ignore makeDependfile 38473955d011SMarcel Moolenaar 38483955d011SMarcel Moolenaar2011-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 38493955d011SMarcel Moolenaar 38503955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110828 38513955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38523955d011SMarcel Moolenaar o silent=yes in .MAKE.MODE causes meta mode to mark targets 38533955d011SMarcel Moolenaar as SILENT if a .meta file is created 38543955d011SMarcel Moolenaar 38553955d011SMarcel Moolenaar2011-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 38563955d011SMarcel Moolenaar 38573955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110818 38583955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38593955d011SMarcel Moolenaar o in meta mode, if target flagged .META a missing .meta file 38603955d011SMarcel Moolenaar means target is out-of-date 38613955d011SMarcel Moolenaar o fixes for gcc 4.5 warnings 38623955d011SMarcel Moolenaar o simplify job printing code 38633955d011SMarcel Moolenaar 38643955d011SMarcel Moolenaar2011-08-09 Simon J. Gerraty <sjg@bad.crufty.net> 38653955d011SMarcel Moolenaar 38663955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110808 38673955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38683955d011SMarcel Moolenaar o do not touch OP_SPECIAL targets when doing make -t 38693955d011SMarcel Moolenaar 38703955d011SMarcel Moolenaar2011-06-22 Simon J. Gerraty <sjg@bad.crufty.net> 38713955d011SMarcel Moolenaar 38723955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110622 38733955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38743955d011SMarcel Moolenaar o meta_oodate detect corrupted .meta file and declare oodate. 38753955d011SMarcel Moolenaar * configure.in: add check for setsid 38763955d011SMarcel Moolenaar 38773955d011SMarcel Moolenaar2011-06-07 Simon J. Gerraty <sjg@bad.crufty.net> 38783955d011SMarcel Moolenaar 38793955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 38803955d011SMarcel Moolenaar o unit-tests/modts now works on MirBSD 38813955d011SMarcel Moolenaar 38823955d011SMarcel Moolenaar2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 38833955d011SMarcel Moolenaar 38843955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110606 38853955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38863955d011SMarcel Moolenaar o ApplyModifiers: when we parse a variable which is not 38873955d011SMarcel Moolenaar the entire modifier string, or not followed by ':', do not 38883955d011SMarcel Moolenaar consider it as containing modifiers. 38893955d011SMarcel Moolenaar o loadfile: ensure newline at end of mapped file. 38903955d011SMarcel Moolenaar 38913955d011SMarcel Moolenaar2011-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 38923955d011SMarcel Moolenaar 38933955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110505 38943955d011SMarcel Moolenaar Merge with NetBSD make, pick up 38953955d011SMarcel Moolenaar o .MAKE.META.BAILIWICK - list of prefixes which define the scope 38963955d011SMarcel Moolenaar of make's control. In meta mode, any generated file within 38973955d011SMarcel Moolenaar said bailiwick, which is found to be missing, causes current 38983955d011SMarcel Moolenaar target to be out-of-date. 38993955d011SMarcel Moolenaar 39003955d011SMarcel Moolenaar2011-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 39013955d011SMarcel Moolenaar 39023955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110411 39033955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39043955d011SMarcel Moolenaar o when long modifiers fail to match, check sysV style. 39053955d011SMarcel Moolenaar - add a test case 39063955d011SMarcel Moolenaar 39073955d011SMarcel Moolenaar2011-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 39083955d011SMarcel Moolenaar 39093955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110410 39103955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39113955d011SMarcel Moolenaar o :hash - cheap 32bit hash of value 39123955d011SMarcel Moolenaar o :localtime, :gmtime - use value as format string for strftime. 39133955d011SMarcel Moolenaar 39143955d011SMarcel Moolenaar2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 39153955d011SMarcel Moolenaar 39163955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110330 39173955d011SMarcel Moolenaar mostly because its a cooler version. 39183955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39193955d011SMarcel Moolenaar o NetBSD tags for meta.[ch] 39203955d011SMarcel Moolenaar o job.c call meta_job_finish() after meta_job_error(). 39213955d011SMarcel Moolenaar o meta_job_error() should call meta_job_finish() to ensure 39223955d011SMarcel Moolenaar .meta file is closed, and safe to copy - if .ERROR target wants. 39233955d011SMarcel Moolenaar meta_job_finish() is safe to call repeatedly. 39243955d011SMarcel Moolenaar 39253955d011SMarcel Moolenaar2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net> 39263955d011SMarcel Moolenaar 39273955d011SMarcel Moolenaar * unit-tests/modts: use printf if it is a builtin, 39283955d011SMarcel Moolenaar to save us from MirBSD 39293955d011SMarcel Moolenaar 39303955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110329 39313955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39323955d011SMarcel Moolenaar o fix for use after free() in CondDoExists(). 39333955d011SMarcel Moolenaar o meta_oodate() report extra commands and return earlier. 39343955d011SMarcel Moolenaar 39353955d011SMarcel Moolenaar2011-03-27 Simon J. Gerraty <sjg@bad.crufty.net> 39363955d011SMarcel Moolenaar 39373955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110327 39383955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39393955d011SMarcel Moolenaar o meta.c, if .MAKE.MODE contains curdirOk=yes 39403955d011SMarcel Moolenaar allow creating .meta files in .CURDIR 39413955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): aparently at least on linux distro 39423955d011SMarcel Moolenaar formats the output of 'type' differently - so eat any "()" 39433955d011SMarcel Moolenaar 39443955d011SMarcel Moolenaar2011-03-06 Simon J. Gerraty <sjg@bad.crufty.net> 39453955d011SMarcel Moolenaar 39463955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110306 39473955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39483955d011SMarcel Moolenaar o meta.c, only do getcwd() once 39493955d011SMarcel Moolenaar 39503955d011SMarcel Moolenaar2011-03-05 Simon J. Gerraty <sjg@bad.crufty.net> 39513955d011SMarcel Moolenaar 39523955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110305 39533955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39543955d011SMarcel Moolenaar o correct sysV substitution handling of empty lhs and variable 39553955d011SMarcel Moolenaar o correct exists() check for dir with trailing / 39563955d011SMarcel Moolenaar o correct handling of modifiers for non-existant variables 39573955d011SMarcel Moolenaar during evaluation of conditionals. 39583955d011SMarcel Moolenaar o ensure MAP_FILE is defined. 39593955d011SMarcel Moolenaar o meta.c use curdir[] now exported by main.c 39603955d011SMarcel Moolenaar 39613955d011SMarcel Moolenaar2011-02-25 Simon J. Gerraty <sjg@bad.crufty.net> 39623955d011SMarcel Moolenaar 39633955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110225 39643955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39653955d011SMarcel Moolenaar o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after 39663955d011SMarcel Moolenaar makefiles have been read. 39673955d011SMarcel Moolenaar o fix example of :? modifier in man page. 39683955d011SMarcel Moolenaar 39693955d011SMarcel Moolenaar2011-02-13 Simon J. Gerraty <sjg@bad.crufty.net> 39703955d011SMarcel Moolenaar 39713955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110214 39723955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39733955d011SMarcel Moolenaar o meta.c handle realpath() failing when generating meta file 39743955d011SMarcel Moolenaar name. 39753955d011SMarcel Moolenaar 39763955d011SMarcel Moolenaar * sigcompat.c: convert to ansi so we can use higher warning levels. 39773955d011SMarcel Moolenaar 39783955d011SMarcel Moolenaar 39793955d011SMarcel Moolenaar2011-02-07 Simon J. Gerraty <sjg@bad.crufty.net> 39803955d011SMarcel Moolenaar 39813955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110207 39823955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39833955d011SMarcel Moolenaar o fix for bug in meta mode. 39843955d011SMarcel Moolenaar 39853955d011SMarcel Moolenaar2011-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 39863955d011SMarcel Moolenaar 39873955d011SMarcel Moolenaar * parse.c: SunOS 5.8 at least does not have MAP_FILE 39883955d011SMarcel Moolenaar 39893955d011SMarcel Moolenaar2011-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 39903955d011SMarcel Moolenaar 39913955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110101 39923955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39933955d011SMarcel Moolenaar o use mmap(2) if available, for reading makefiles 39943955d011SMarcel Moolenaar 39953955d011SMarcel Moolenaar2010-12-15 Simon J. Gerraty <sjg@bad.crufty.net> 39963955d011SMarcel Moolenaar 39973955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101215 39983955d011SMarcel Moolenaar Merge with NetBSD make, pick up 39993955d011SMarcel Moolenaar o ensure meta_job_error() does not report a previous .meta file 40003955d011SMarcel Moolenaar as being culprit. 40013955d011SMarcel Moolenaar 40023955d011SMarcel Moolenaar2010-12-10 Simon J. Gerraty <sjg@bad.crufty.net> 40033955d011SMarcel Moolenaar 40043955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101210 40053955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40063955d011SMarcel Moolenaar o meta_oodate: track cwd per process, and only consider target 40073955d011SMarcel Moolenaar out-of-date if missing file is outside make's CWD. 40083955d011SMarcel Moolenaar Ignore files in /tmp/ etc. 40093955d011SMarcel Moolenaar o to ensure unit-tests results match, need to control LC_ALL 40103955d011SMarcel Moolenaar as well as LANG. 40113955d011SMarcel Moolenaar o fix for parsing bug in var.c 40123955d011SMarcel Moolenaar 40133955d011SMarcel Moolenaar2010-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 40143955d011SMarcel Moolenaar 40153955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101126 40163955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40173955d011SMarcel Moolenaar o if stale dependency is an IMPSRC, search via .PATH 40183955d011SMarcel Moolenaar o meta_oodate: if a referenced file is missing, target is 40193955d011SMarcel Moolenaar out-of-date. 40203955d011SMarcel Moolenaar o meta_oodate: if a target uses .OODATE in its commands, 40213955d011SMarcel Moolenaar it (.OODATE) needs to be recomputed. 40223955d011SMarcel Moolenaar o keep a pointer to youngest child node, rather than just its 40233955d011SMarcel Moolenaar mtime. 40243955d011SMarcel Moolenaar 40253955d011SMarcel Moolenaar2010-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 40263955d011SMarcel Moolenaar 40273955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101101 40283955d011SMarcel Moolenaar 40293955d011SMarcel Moolenaar2010-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 40303955d011SMarcel Moolenaar 40313955d011SMarcel Moolenaar * machine.sh: like os.sh, 40323955d011SMarcel Moolenaar allow for uname -p producing useless drivel 40333955d011SMarcel Moolenaar 40343955d011SMarcel Moolenaar2010-09-13 Simon J. Gerraty <sjg@bad.crufty.net> 40353955d011SMarcel Moolenaar 40363955d011SMarcel Moolenaar * boot-strap: document configure knobs for meta and filemon. 40373955d011SMarcel Moolenaar 40383955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100911 40393955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40403955d011SMarcel Moolenaar o meta.c - meta mode 40413955d011SMarcel Moolenaar 40423955d011SMarcel Moolenaar * make-bootstrap.sh.in: handle meta.c 40433955d011SMarcel Moolenaar * configure.in: add knobs for use_meta and filemon_h 40443955d011SMarcel Moolenaar also, look for dirname, str[e]sep and strlcpy 40453955d011SMarcel Moolenaar * util.c: add simple err[x] and warn[x] 40463955d011SMarcel Moolenaar 40473955d011SMarcel Moolenaar2010-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 40483955d011SMarcel Moolenaar 40493955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): set this to ensure tests use 40503955d011SMarcel Moolenaar the same version of diff that configure tested 40513955d011SMarcel Moolenaar 40523955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100808 40533955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40543955d011SMarcel Moolenaar o in jobs mode, when we discover we cannot make something, 40553955d011SMarcel Moolenaar call PrintOnError before exit. 40563955d011SMarcel Moolenaar 40573955d011SMarcel Moolenaar2010-08-06 Simon J. Gerraty <sjg@bad.crufty.net> 40583955d011SMarcel Moolenaar 40593955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100806 40603955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40613955d011SMarcel Moolenaar o formatting fixes for ignored errors 40623955d011SMarcel Moolenaar o ensure jobs are cleaned up regardless of where wait() was called. 40633955d011SMarcel Moolenaar 40643955d011SMarcel Moolenaar2010-06-28 Simon J. Gerraty <sjg@bad.crufty.net> 40653955d011SMarcel Moolenaar 40663955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100618 40673955d011SMarcel Moolenaar * os.sh (MACHINE_ARCH): watch out for drivel from uname -p 40683955d011SMarcel Moolenaar 40693955d011SMarcel Moolenaar2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net> 40703955d011SMarcel Moolenaar 40713955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100616 40723955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40733955d011SMarcel Moolenaar o man page update 40743955d011SMarcel Moolenaar o call PrintOnError from JobFinish when we detect an error we 40753955d011SMarcel Moolenaar are not ignoring. 40763955d011SMarcel Moolenaar 40773955d011SMarcel Moolenaar2010-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 40783955d011SMarcel Moolenaar 40793955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100606 40803955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40813955d011SMarcel Moolenaar o man page update 40823955d011SMarcel Moolenaar 40833955d011SMarcel Moolenaar2010-06-05 Simon J. Gerraty <sjg@bad.crufty.net> 40843955d011SMarcel Moolenaar 40853955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100605 40863955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40873955d011SMarcel Moolenaar o use bmake_signal() which is a wrapper around sigaction() 40883955d011SMarcel Moolenaar in place of signal() 40893955d011SMarcel Moolenaar o add .export-env to allow exporting variables to environment 40903955d011SMarcel Moolenaar without tracking (so no re-export when the internal value is 40913955d011SMarcel Moolenaar changed). 40923955d011SMarcel Moolenaar 40933955d011SMarcel Moolenaar2010-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 40943955d011SMarcel Moolenaar 40953955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100524 40963955d011SMarcel Moolenaar Merge with NetBSD make, pick up 40973955d011SMarcel Moolenaar o fix for .info et al being greedy. 40983955d011SMarcel Moolenaar 40993955d011SMarcel Moolenaar2010-05-23 Simon J. Gerraty <sjg@bad.crufty.net> 41003955d011SMarcel Moolenaar 41013955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100520 41023955d011SMarcel Moolenaar Merge with NetBSD make, pick up 41033955d011SMarcel Moolenaar o back to using realpath on argv[0] 41043955d011SMarcel Moolenaar but only if contains '/' and does not start with '/'. 41053955d011SMarcel Moolenaar 41063955d011SMarcel Moolenaar2010-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 41073955d011SMarcel Moolenaar 41083955d011SMarcel Moolenaar * boot-strap: use absolute path for bmake when running tests. 41093955d011SMarcel Moolenaar 41103955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100510 41113955d011SMarcel Moolenaar Merge with NetBSD make, pick up 41123955d011SMarcel Moolenaar o revert use of realpath on argv[0] 41133955d011SMarcel Moolenaar too many corner cases. 41143955d011SMarcel Moolenaar o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target. 41153955d011SMarcel Moolenaar 41163955d011SMarcel Moolenaar2010-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 41173955d011SMarcel Moolenaar 41183955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100505 41193955d011SMarcel Moolenaar Merge with NetBSD make, pick up 41203955d011SMarcel Moolenaar o fix for missed SIGCHLD when compiled with SunPRO 41213955d011SMarcel Moolenaar actually for bmake, defining FORCE_POSIX_SIGNALS would have 41223955d011SMarcel Moolenaar done the job. 41233955d011SMarcel Moolenaar 41243955d011SMarcel Moolenaar2010-04-30 Simon J. Gerraty <sjg@bad.crufty.net> 41253955d011SMarcel Moolenaar 41263955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100430 41273955d011SMarcel Moolenaar Merge with NetBSD make, pick up 41283955d011SMarcel Moolenaar o fflush stdout before writing to stdout 41293955d011SMarcel Moolenaar 41303955d011SMarcel Moolenaar2010-04-23 Simon J. Gerraty <sjg@bad.crufty.net> 41313955d011SMarcel Moolenaar 41323955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100423 41333955d011SMarcel Moolenaar Merge with NetBSD make, pick up 41343955d011SMarcel Moolenaar o updated unit tests for Haiku (this time for sure). 41353955d011SMarcel Moolenaar * boot-strap: based on patch from joerg 41363955d011SMarcel Moolenaar honor --with-default-sys-path better. 41373955d011SMarcel Moolenaar * boot-strap: remove mention of --with-prefix-sys-path 41383955d011SMarcel Moolenaar 41393955d011SMarcel Moolenaar2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net> 41403955d011SMarcel Moolenaar 41413955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100422 41423955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 41433955d011SMarcel Moolenaar o fix for vfork() on Darwin. 41443955d011SMarcel Moolenaar o fix for bogus $TMPDIR. 41453955d011SMarcel Moolenaar o set .MAKE.MODE=compat for -B 41463955d011SMarcel Moolenaar o set .MAKE.JOBS=max_jobs for -j max_jobs 41473955d011SMarcel Moolenaar o allow unit-tests to run without any *.mk 41483955d011SMarcel Moolenaar o unit-tests/modmisc be more conservative in dirs presumed to exist. 41493955d011SMarcel Moolenaar * boot-strap: ignore /usr/share/mk except on NetBSD. 41503955d011SMarcel Moolenaar * unit-tests/Makefile.in: set LANG=C when running unit-tests to 41513955d011SMarcel Moolenaar ensure sort(1) behaves as expected. 41523955d011SMarcel Moolenaar 41533955d011SMarcel Moolenaar2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 41543955d011SMarcel Moolenaar 41553955d011SMarcel Moolenaar * boot-strap: add FindHereOrAbove so we can use -m .../mk 41563955d011SMarcel Moolenaar 41573955d011SMarcel Moolenaar2010-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 41583955d011SMarcel Moolenaar 41593955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100420 41603955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 41613955d011SMarcel Moolenaar o fix for variable realpath() behavior. 41623955d011SMarcel Moolenaar we have to stat(2) the result to be sure. 41633955d011SMarcel Moolenaar o fix for .export (all) when nested vars use :sh 41643955d011SMarcel Moolenaar 41653955d011SMarcel Moolenaar2010-04-14 Simon J. Gerraty <sjg@bad.crufty.net> 41663955d011SMarcel Moolenaar 41673955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100414 41683955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 41693955d011SMarcel Moolenaar o use realpath to resolve argv[0] (for .MAKE) if needed. 41703955d011SMarcel Moolenaar o add realpath from libc. 41713955d011SMarcel Moolenaar o add :tA to resolve variable via realpath(3) if possible. 41723955d011SMarcel Moolenaar 41733955d011SMarcel Moolenaar2010-04-08 Simon J. Gerraty <sjg@bad.crufty.net> 41743955d011SMarcel Moolenaar 41753955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100408 41763955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 41773955d011SMarcel Moolenaar o unit tests for .ERROR, .error 41783955d011SMarcel Moolenaar o fix for .ERROR to ensure it cannot be default target. 41793955d011SMarcel Moolenaar 41803955d011SMarcel Moolenaar2010-04-06 Simon J. Gerraty <sjg@bad.crufty.net> 41813955d011SMarcel Moolenaar 41823955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100406 41833955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 41843955d011SMarcel Moolenaar o fix for compat mode "Error code" going to debug_file. 41853955d011SMarcel Moolenaar o fix for .ALLSRC being populated twice. 41863955d011SMarcel Moolenaar o support for .info, .warning and .error directives 41873955d011SMarcel Moolenaar o .MAKE.MODE to control make's operational mode 41883955d011SMarcel Moolenaar o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile 41893955d011SMarcel Moolenaar name(s). 41903955d011SMarcel Moolenaar o .MAKE.DEPENDFILE to control the name of the depend file 41913955d011SMarcel Moolenaar o .ERROR target - run on failure. 41923955d011SMarcel Moolenaar 41933955d011SMarcel Moolenaar2010-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 41943955d011SMarcel Moolenaar 41953955d011SMarcel Moolenaar * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile 41963955d011SMarcel Moolenaar 41973955d011SMarcel Moolenaar * os.sh,arch.c: patch for Haiku from joerg at netbsd 41983955d011SMarcel Moolenaar 41993955d011SMarcel Moolenaar2010-03-17 Simon J. Gerraty <sjg@bad.crufty.net> 42003955d011SMarcel Moolenaar 42013955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100222 42023955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 42033955d011SMarcel Moolenaar o better error msg for .for with mutiple inter vars 42043955d011SMarcel Moolenaar 42053955d011SMarcel Moolenaar * boot-strap: 42063955d011SMarcel Moolenaar o use make-bootstrap.sh from joerg at netbsd 42073955d011SMarcel Moolenaar to avoid the need for a native make when bootstrapping. 42083955d011SMarcel Moolenaar o add "" everywhere ;-) 42093955d011SMarcel Moolenaar o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1 42103955d011SMarcel Moolenaar otherwise the pre-formated version. 42113955d011SMarcel Moolenaar 42123955d011SMarcel Moolenaar2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net> 42133955d011SMarcel Moolenaar 42143955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100102 42153955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42163955d011SMarcel Moolenaar o fix for -m .../ 42173955d011SMarcel Moolenaar 42183955d011SMarcel Moolenaar2009-11-18 Simon J. Gerraty <sjg@void.crufty.net> 42193955d011SMarcel Moolenaar 42203955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20091118 42213955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42223955d011SMarcel Moolenaar o .unexport 42233955d011SMarcel Moolenaar o report lines that start with '.' and should have ':' 42243955d011SMarcel Moolenaar (catch typo's of .el*if). 42253955d011SMarcel Moolenaar 42263955d011SMarcel Moolenaar2009-10-30 Simon J. Gerraty <sjg@void.crufty.net> 42273955d011SMarcel Moolenaar 42283955d011SMarcel Moolenaar * configure.in: Ensure that srcdir and mksrc are absolute paths. 42293955d011SMarcel Moolenaar 42303955d011SMarcel Moolenaar2009-10-09 Simon J. Gerraty <sjg@void.crufty.net> 42313955d011SMarcel Moolenaar 42323955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): fix version to 20091007 42333955d011SMarcel Moolenaar 42343955d011SMarcel Moolenaar2009-10-07 Simon J. Gerraty <sjg@void.crufty.net> 42353955d011SMarcel Moolenaar 42363955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 200910007 42373955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42383955d011SMarcel Moolenaar o fix for parsing of :S;...;...; applied to .for loop iterator 42393955d011SMarcel Moolenaar appearing in a dependency line. 42403955d011SMarcel Moolenaar 42413955d011SMarcel Moolenaar2009-09-09 Simon J. Gerraty <sjg@void.crufty.net> 42423955d011SMarcel Moolenaar 42433955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090909 42443955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42453955d011SMarcel Moolenaar o fix for -C, .CURDIR and .OBJDIR 42463955d011SMarcel Moolenaar * boot-strap: 42473955d011SMarcel Moolenaar o allow share_dir to be set independent of prefix. 42483955d011SMarcel Moolenaar o select default share_dir better when prefix ends in $HOST_TARGET 42493955d011SMarcel Moolenaar o if FORCE_BSD_MK etc were set, include them in the suggested 42503955d011SMarcel Moolenaar install-mk command. 42513955d011SMarcel Moolenaar 42523955d011SMarcel Moolenaar2009-09-08 Simon J. Gerraty <sjg@void.crufty.net> 42533955d011SMarcel Moolenaar 42543955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090908 42553955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42563955d011SMarcel Moolenaar o .MAKE.LEVEL for recursion tracking 42573955d011SMarcel Moolenaar o fix for :M scanning \: 42583955d011SMarcel Moolenaar 42593955d011SMarcel Moolenaar2009-09-03 Simon J. Gerraty <sjg@void.crufty.net> 42603955d011SMarcel Moolenaar 42613955d011SMarcel Moolenaar * configure.in: Don't -D__EXTENSIONS__ if 42623955d011SMarcel Moolenaar AC_USE_SYSTEM_EXTENSIONS says "no". 42633955d011SMarcel Moolenaar 42643955d011SMarcel Moolenaar2009-08-26 Simon J. Gerraty <sjg@void.crufty.net> 42653955d011SMarcel Moolenaar 42663955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090826 42673955d011SMarcel Moolenaar Simplify MAKE_VERSION to just the bare date. 42683955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42693955d011SMarcel Moolenaar o -C directory support. 42703955d011SMarcel Moolenaar o support for SIGINFO 42713955d011SMarcel Moolenaar o use $TMPDIR for temp files. 42723955d011SMarcel Moolenaar o child of vfork should be careful about modifying parent's state. 42733955d011SMarcel Moolenaar 42743955d011SMarcel Moolenaar 42753955d011SMarcel Moolenaar2009-03-26 Simon J. Gerraty <sjg@void.crufty.net> 42763955d011SMarcel Moolenaar 42773955d011SMarcel Moolenaar * Appy some patches for MiNT from David Brownlee 42783955d011SMarcel Moolenaar 42793955d011SMarcel Moolenaar2009-02-26 Simon J. Gerraty <sjg@void.crufty.net> 42803955d011SMarcel Moolenaar 42813955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090222 42823955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42833955d011SMarcel Moolenaar o Possible null pointer de-ref in Var_Set. 42843955d011SMarcel Moolenaar 42853955d011SMarcel Moolenaar2009-02-08 Simon J. Gerraty <sjg@void.crufty.net> 42863955d011SMarcel Moolenaar 42873955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090204 42883955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 42893955d011SMarcel Moolenaar o bmake_malloc et al moved to their own .c 42903955d011SMarcel Moolenaar o Count both () and {} when looking for the end of a :M pattern 42913955d011SMarcel Moolenaar o Change 'Buffer' so that it is the actual struct, not a pointer to it. 42923955d011SMarcel Moolenaar o strlist.c - functions for processing extendable arrays of pointers to strings. 42933955d011SMarcel Moolenaar o ClientData replaced with void *, so const void * can be used. 42943955d011SMarcel Moolenaar o New debug flag C for DEBUG_CWD 42953955d011SMarcel Moolenaar 42963955d011SMarcel Moolenaar2008-11-11 Simon J. Gerraty <sjg@void.crufty.net> 42973955d011SMarcel Moolenaar 42983955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081111 42993955d011SMarcel Moolenaar Apply patch from Joerg Sonnenberge to 43003955d011SMarcel Moolenaar configure.in: 43013955d011SMarcel Moolenaar o remove some redundant checks 43023955d011SMarcel Moolenaar o check for emlloc etc only in libutil and require the whole family. 43033955d011SMarcel Moolenaar util.c: 43043955d011SMarcel Moolenaar o remove [v]asprintf which is no longer used. 43053955d011SMarcel Moolenaar 43063955d011SMarcel Moolenaar2008-11-04 Simon J. Gerraty <sjg@void.crufty.net> 43073955d011SMarcel Moolenaar 43083955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081101 43093955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43103955d011SMarcel Moolenaar o util.c: avoid use of putenv() - christos 43113955d011SMarcel Moolenaar 43123955d011SMarcel Moolenaar2008-10-30 Simon J. Gerraty <sjg@void.crufty.net> 43133955d011SMarcel Moolenaar 43143955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081030 43153955d011SMarcel Moolenaar pick up man page tweaks. 43163955d011SMarcel Moolenaar 43173955d011SMarcel Moolenaar2008-10-29 Simon J. Gerraty <sjg@void.crufty.net> 43183955d011SMarcel Moolenaar 43193955d011SMarcel Moolenaar * Makefile.in: move processing of LIBOBJS to after is definition! 43203955d011SMarcel Moolenaar thus we'll have getenv.c in SRCS only if needed. 43213955d011SMarcel Moolenaar 43223955d011SMarcel Moolenaar * make.1: add examples of how to use :? 43233955d011SMarcel Moolenaar 43243955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081029 43253955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43263955d011SMarcel Moolenaar o fix for .END processing with -j 43273955d011SMarcel Moolenaar o segfault from Parse_Error when no makefile is open 43283955d011SMarcel Moolenaar o handle numeric expressions in any variable expansion 43293955d011SMarcel Moolenaar o debug output now defaults to stderr, -dF to change it - apb 43303955d011SMarcel Moolenaar o make now uses bmake_malloc etc so that it can build natively 43313955d011SMarcel Moolenaar on A/UX - wasn't an issue for bmake, but we want to keep in sync. 43323955d011SMarcel Moolenaar 43333955d011SMarcel Moolenaar2008-09-27 Simon J. Gerraty <sjg@void.crufty.net> 43343955d011SMarcel Moolenaar 43353955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080808 43363955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43373955d011SMarcel Moolenaar o fix for PR/38840: Pierre Pronchery: make crashes while parsing 43383955d011SMarcel Moolenaar long lines in Makefiles 43393955d011SMarcel Moolenaar o optimizations for VarQuote by joerg 43403955d011SMarcel Moolenaar o fix for PR/38756: dominik: make dumps core on invalid makefile 43413955d011SMarcel Moolenaar 43423955d011SMarcel Moolenaar2008-05-15 Simon J. Gerraty <sjg@void.crufty.net> 43433955d011SMarcel Moolenaar 43443955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080515 43453955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43463955d011SMarcel Moolenaar o fix skip setting vars in VAR_GLOBAL context, to handle 43473955d011SMarcel Moolenaar cases where VAR_CMD is used for other than command line vars. 43483955d011SMarcel Moolenaar 43493955d011SMarcel Moolenaar2008-05-14 Simon J. Gerraty <sjg@void.crufty.net> 43503955d011SMarcel Moolenaar 43513955d011SMarcel Moolenaar * boot-strap (make_version): we may need to look in 43523955d011SMarcel Moolenaar $prefix/share/mk for sys.mk 43533955d011SMarcel Moolenaar 43543955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080514 43553955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43563955d011SMarcel Moolenaar o skip setting vars in VAR_GLOBAL context, when already set in 43573955d011SMarcel Moolenaar VAR_CMD which takes precedence. 43583955d011SMarcel Moolenaar 43593955d011SMarcel Moolenaar2008-03-30 Simon J. Gerraty <sjg@void.crufty.net> 43603955d011SMarcel Moolenaar 43613955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080330 43623955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43633955d011SMarcel Moolenaar o fix for ?= when LHS contains variable reference. 43643955d011SMarcel Moolenaar 43653955d011SMarcel Moolenaar2008-02-15 Simon J. Gerraty <sjg@void.crufty.net> 43663955d011SMarcel Moolenaar 43673955d011SMarcel Moolenaar * merge some patches from NetBSD pkgsrc. 43683955d011SMarcel Moolenaar 43693955d011SMarcel Moolenaar * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of 43703955d011SMarcel Moolenaar the MAKSYSPATH used during bootstrap. 43713955d011SMarcel Moolenaar 43723955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080215 43733955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43743955d011SMarcel Moolenaar o warn if non-space chars follow 'empty' in a conditional. 43753955d011SMarcel Moolenaar 43763955d011SMarcel Moolenaar2008-01-18 Simon J. Gerraty <sjg@void.crufty.net> 43773955d011SMarcel Moolenaar 43783955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080118 43793955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43803955d011SMarcel Moolenaar o consider dependencies read from .depend as optional - dsl 43813955d011SMarcel Moolenaar o remember when buffer for reading makefile grows - dsl 43823955d011SMarcel Moolenaar o add -dl (aka LOUD) - David O'Brien 43833955d011SMarcel Moolenaar 43843955d011SMarcel Moolenaar2007-10-22 Simon J. Gerraty <sjg@void.crufty.net> 43853955d011SMarcel Moolenaar 43863955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071022 43873955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 43883955d011SMarcel Moolenaar o Allow .PATH<suffix> to be used for .include "" 43893955d011SMarcel Moolenaar 43903955d011SMarcel Moolenaar * boot-strap: source default settings from .bmake-boot-strap.rc 43913955d011SMarcel Moolenaar 43923955d011SMarcel Moolenaar2007-10-16 Simon J. Gerraty <sjg@void.crufty.net> 43933955d011SMarcel Moolenaar 43943955d011SMarcel Moolenaar * Makefile.in: fix maninstall on various systems 43953955d011SMarcel Moolenaar provided that our man.mk is used. 43963955d011SMarcel Moolenaar For non-BSD systems we install the preformatted page 43973955d011SMarcel Moolenaar into $MANDIR/cat1 43983955d011SMarcel Moolenaar 43993955d011SMarcel Moolenaar2007-10-15 Simon J. Gerraty <sjg@void.crufty.net> 44003955d011SMarcel Moolenaar 44013955d011SMarcel Moolenaar * boot-strap: make bmake.1 too, so maninstall works. 44023955d011SMarcel Moolenaar 44033955d011SMarcel Moolenaar2007-10-14 Simon J. Gerraty <sjg@void.crufty.net> 44043955d011SMarcel Moolenaar 44053955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071014 44063955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44073955d011SMarcel Moolenaar o revamped handling of defshell - configure no longer needs to 44083955d011SMarcel Moolenaar know the content of the shells array - apb 44093955d011SMarcel Moolenaar o stop Var_Subst modifying its input - apb 44103955d011SMarcel Moolenaar o avoid calling ParseTrackInput too often - dsl 44113955d011SMarcel Moolenaar 44123955d011SMarcel Moolenaar2007-10-11 Simon J. Gerraty <sjg@void.crufty.net> 44133955d011SMarcel Moolenaar 44143955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071011 44153955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44163955d011SMarcel Moolenaar o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path. 44173955d011SMarcel Moolenaar 44183955d011SMarcel Moolenaar * sigcompat.c: some tweaks for HP-UX 11.x based on 44193955d011SMarcel Moolenaar patch from Tobias Nygren 44203955d011SMarcel Moolenaar 44213955d011SMarcel Moolenaar * configure.in: update handling of --with-defshell to match 44223955d011SMarcel Moolenaar new make behavior. --with-defshell=/usr/xpg4/bin/sh 44233955d011SMarcel Moolenaar will now do what one might hope - provided the chosen shell 44243955d011SMarcel Moolenaar behaves enough like sh. 44253955d011SMarcel Moolenaar 44263955d011SMarcel Moolenaar2007-10-08 Simon J. Gerraty <sjg@void.crufty.net> 44273955d011SMarcel Moolenaar 44283955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20071008 44293955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44303955d011SMarcel Moolenaar o .MAKE.JOB.PREFIX - control the token output before jobs - sjg 44313955d011SMarcel Moolenaar o .export/.MAKE.EXPORTED - export of variables - sjg 44323955d011SMarcel Moolenaar o .MAKE.MAKEFILES - track all makefiles read - sjg 44333955d011SMarcel Moolenaar o performance improvements - dsl 44343955d011SMarcel Moolenaar o revamp parallel job scheduling - dsl 44353955d011SMarcel Moolenaar 44363955d011SMarcel Moolenaar2006-07-28 Simon J. Gerraty <sjg@void.crufty.net> 44373955d011SMarcel Moolenaar 44383955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060728 44393955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44403955d011SMarcel Moolenaar o extra debug info during variable and cond processing - sjg 44413955d011SMarcel Moolenaar o shell definition now covers newline - rillig 44423955d011SMarcel Moolenaar o minor mem leak in PrintOnError - sjg 44433955d011SMarcel Moolenaar 44443955d011SMarcel Moolenaar2006-05-11 Simon J. Gerraty <sjg@void.crufty.net> 44453955d011SMarcel Moolenaar 44463955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060511 44473955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44483955d011SMarcel Moolenaar o more memory leaks - coverity 44493955d011SMarcel Moolenaar o possible overflow in ArchFindMember - coverity 44503955d011SMarcel Moolenaar o extract variable modifier code out of Var_Parse() 44513955d011SMarcel Moolenaar so it can be called recursively - sjg 44523955d011SMarcel Moolenaar o unit-tests/moderrs - sjg 44533955d011SMarcel Moolenaar 44543955d011SMarcel Moolenaar2006-04-12 Simon J. Gerraty <sjg@void.crufty.net> 44553955d011SMarcel Moolenaar 44563955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060412 44573955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44583955d011SMarcel Moolenaar o fixes for some memory leaks - coverity 44593955d011SMarcel Moolenaar o only read first sys.mk etc when searching sysIncPath - sjg 44603955d011SMarcel Moolenaar 44613955d011SMarcel Moolenaar * main.c (ReadMakefile): remove hack for __INTERIX that prevented 44623955d011SMarcel Moolenaar setting ${MAKEFILE} - OBATA Akio 44633955d011SMarcel Moolenaar 44643955d011SMarcel Moolenaar2006-03-18 Simon J. Gerraty <sjg@void.crufty.net> 44653955d011SMarcel Moolenaar 44663955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060318 44673955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44683955d011SMarcel Moolenaar o cleanup of job.c to remove remote handling, distcc is more 44693955d011SMarcel Moolenaar useful and this code was likely bit-rotting - dsl 44703955d011SMarcel Moolenaar o fix for :P modifier - sjg 44713955d011SMarcel Moolenaar * boot-strap: set default prefix to something reasonable 44723955d011SMarcel Moolenaar (for me anyway). 44733955d011SMarcel Moolenaar 44743955d011SMarcel Moolenaar2006-03-01 Simon J. Gerraty <sjg@void.crufty.net> 44753955d011SMarcel Moolenaar 44763955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060301 44773955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44783955d011SMarcel Moolenaar o make .WAIT apply recursively, document and test case - apb 44793955d011SMarcel Moolenaar o allow variable modifiers in a variable appear anywhere in 44803955d011SMarcel Moolenaar modifier list, document and test case - sjg 44813955d011SMarcel Moolenaar 44823955d011SMarcel Moolenaar2006-02-22 Simon J. Gerraty <sjg@void.crufty.net> 44833955d011SMarcel Moolenaar 44843955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060222 44853955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 44863955d011SMarcel Moolenaar o improved job token handling - dsl 44873955d011SMarcel Moolenaar o SIG_DFL the correct signal before exec - dsl 44883955d011SMarcel Moolenaar o more debug info during parsing - dsl 44893955d011SMarcel Moolenaar o allow variable modifiers to be specified via variable - sjg 44903955d011SMarcel Moolenaar * boot-strap: explain why we died if no mksrc 44913955d011SMarcel Moolenaar 44923955d011SMarcel Moolenaar2005-11-05 Simon J. Gerraty <sjg@void.crufty.net> 44933955d011SMarcel Moolenaar 44943955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051105 44953955d011SMarcel Moolenaar * configure.in: always set default_sys_path 44963955d011SMarcel Moolenaar default is ${prefix}/share/mk 44973955d011SMarcel Moolenaar - remove prefix_sys_path, anyone wanting more than above 44983955d011SMarcel Moolenaar needs to set it manually. 44993955d011SMarcel Moolenaar 45003955d011SMarcel Moolenaar2005-11-04 Simon J. Gerraty <sjg@void.crufty.net> 45013955d011SMarcel Moolenaar 45023955d011SMarcel Moolenaar * boot-strap: make this a bit easier for pkgsrc folk. 45033955d011SMarcel Moolenaar bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to 45043955d011SMarcel Moolenaar 'mips' while pkgsrc wants 'mipseb' or 'mipsel' 45053955d011SMarcel Moolenaar 45063955d011SMarcel Moolenaar2005-11-02 Simon J. Gerraty <sjg@void.crufty.net> 45073955d011SMarcel Moolenaar 45083955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051102 45093955d011SMarcel Moolenaar * job.c (JobFinish): fix likely ancient merge lossage 45103955d011SMarcel Moolenaar fix from Todd Vierling. 45113955d011SMarcel Moolenaar * boot-strap (srcdir): allow setting mksrc=none 45123955d011SMarcel Moolenaar 45133955d011SMarcel Moolenaar2005-10-31 Simon J. Gerraty <sjg@void.crufty.net> 45143955d011SMarcel Moolenaar 45153955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051031 45163955d011SMarcel Moolenaar * ranlib.h: skip on OSF too. 45173955d011SMarcel Moolenaar (NetBSD PR 31864) 45183955d011SMarcel Moolenaar 45193955d011SMarcel Moolenaar2005-10-10 Simon J. Gerraty <sjg@void.crufty.net> 45203955d011SMarcel Moolenaar 45213955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051002 45223955d011SMarcel Moolenaar fix a silly typo 45233955d011SMarcel Moolenaar 45243955d011SMarcel Moolenaar2005-10-09 Simon J. Gerraty <sjg@void.crufty.net> 45253955d011SMarcel Moolenaar 45263955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051001 45273955d011SMarcel Moolenaar support for UnixWare and some other systems, 45283955d011SMarcel Moolenaar based on patches from pkgsrc/bootstrap 45293955d011SMarcel Moolenaar 45303955d011SMarcel Moolenaar2005-09-03 Simon J. Gerraty <sjg@void.crufty.net> 45313955d011SMarcel Moolenaar 45323955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050901 45333955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 45343955d011SMarcel Moolenaar o possible parse error causing us to wander off. 45353955d011SMarcel Moolenaar 45363955d011SMarcel Moolenaar2005-06-06 Simon J. Gerraty <sjg@void.crufty.net> 45373955d011SMarcel Moolenaar 45383955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050606 45393955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 45403955d011SMarcel Moolenaar o :0x modifier for randomizing a list 45413955d011SMarcel Moolenaar o fixes for a number of -Wuninitialized issues. 45423955d011SMarcel Moolenaar 45433955d011SMarcel Moolenaar2005-05-30 Simon J. Gerraty <sjg@void.crufty.net> 45443955d011SMarcel Moolenaar 45453955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050530 45463955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 45473955d011SMarcel Moolenaar o Handle dependencies for .BEGIN, .END and .INTERRUPT 45483955d011SMarcel Moolenaar 45493955d011SMarcel Moolenaar * README: was seriously out of date. 45503955d011SMarcel Moolenaar 45513955d011SMarcel Moolenaar2005-03-22 Simon J. Gerraty <sjg@void.crufty.net> 45523955d011SMarcel Moolenaar 45533955d011SMarcel Moolenaar * Important to use .MAKE rather than MAKE. 45543955d011SMarcel Moolenaar 45553955d011SMarcel Moolenaar2005-03-15 Simon J. Gerraty <sjg@void.crufty.net> 45563955d011SMarcel Moolenaar 45573955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050315 45583955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 45593955d011SMarcel Moolenaar o don't mistake .elsefoo for .else 45603955d011SMarcel Moolenaar o use suffix-specific search path correctly 45613955d011SMarcel Moolenaar o bunch of style nits 45623955d011SMarcel Moolenaar 45633955d011SMarcel Moolenaar2004-05-11 Simon J. Gerraty <sjg@void.crufty.net> 45643955d011SMarcel Moolenaar 45653955d011SMarcel Moolenaar * boot-strap: 45663955d011SMarcel Moolenaar o ensure that args to --src and --with-mksrc 45673955d011SMarcel Moolenaar are resolved before giving them to configure. 45683955d011SMarcel Moolenaar o add -o "objdir" so that builder can control it, 45693955d011SMarcel Moolenaar default is $OS as determined by os.sh 45703955d011SMarcel Moolenaar o add -q to suppress all the install instructions. 45713955d011SMarcel Moolenaar 45723955d011SMarcel Moolenaar2004-05-08 Simon J. Gerraty <sjg@void.crufty.net> 45733955d011SMarcel Moolenaar 45743955d011SMarcel Moolenaar * Remove __IDSTRING() 45753955d011SMarcel Moolenaar 45763955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040508 45773955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 45783955d011SMarcel Moolenaar o posix fixes 45793955d011SMarcel Moolenaar - remove '-e' from compat mode 45803955d011SMarcel Moolenaar - add support for '+' command-line prefix. 45813955d011SMarcel Moolenaar o fix for handling '--' on command-line. 45823955d011SMarcel Moolenaar o fix include in lst.lib/lstInt.h to simplify '-I's 45833955d011SMarcel Moolenaar o we also picked up replacement of MAKE_BOOTSTRAP 45843955d011SMarcel Moolenaar with !MAKE_NATIVE which is a noop, but possibly confusing. 45853955d011SMarcel Moolenaar 45863955d011SMarcel Moolenaar2004-04-14 Simon J. Gerraty <sjg@void.crufty.net> 45873955d011SMarcel Moolenaar 45883955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040414 45893955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 45903955d011SMarcel Moolenaar o allow quoted strings on lhs of conditionals 45913955d011SMarcel Moolenaar o issue warning when extra .else is seen 45923955d011SMarcel Moolenaar o print line numer when errors encountered during parsing from 45933955d011SMarcel Moolenaar string. 45943955d011SMarcel Moolenaar 45953955d011SMarcel Moolenaar2004-02-20 Simon J. Gerraty <sjg@void.crufty.net> 45963955d011SMarcel Moolenaar 45973955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040220 45983955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 45993955d011SMarcel Moolenaar o fix for old :M parsing bug. 46003955d011SMarcel Moolenaar o re-jigged unit-tests 46013955d011SMarcel Moolenaar 46023955d011SMarcel Moolenaar2004-02-15 Simon J. Gerraty <sjg@void.crufty.net> 46033955d011SMarcel Moolenaar 46043955d011SMarcel Moolenaar * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,} 46053955d011SMarcel Moolenaar so that './bmake -f Makefile test' works. 46063955d011SMarcel Moolenaar 46073955d011SMarcel Moolenaar2004-02-14 Simon J. Gerraty <sjg@void.crufty.net> 46083955d011SMarcel Moolenaar 46093955d011SMarcel Moolenaar * Makefile.in: (BMAKE_VERSION): bump to 20040214 46103955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 46113955d011SMarcel Moolenaar o search upwards for *.mk 46123955d011SMarcel Moolenaar o fix for double free of var substitution buffers 46133955d011SMarcel Moolenaar o use of getopt replaced with custom code, since the usage 46143955d011SMarcel Moolenaar (re-scanning) isn't posix compatible. 46153955d011SMarcel Moolenaar 46163955d011SMarcel Moolenaar2004-02-12 Simon J. Gerraty <sjg@void.crufty.net> 46173955d011SMarcel Moolenaar 46183955d011SMarcel Moolenaar * arch.c: don't include ranlib.h on ELF systems 46193955d011SMarcel Moolenaar (thanks to Chuck Cranor <chuck@ece.cmu.edu>). 46203955d011SMarcel Moolenaar 46213955d011SMarcel Moolenaar2004-01-18 Simon J. Gerraty <sjg@void.crufty.net> 46223955d011SMarcel Moolenaar 46233955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040118 46243955d011SMarcel Moolenaar 46253955d011SMarcel Moolenaar * boot-strap (while): export vars we assign to on cmdline 46263955d011SMarcel Moolenaar * unit-test/Makefile.in: ternary is .PHONY 46273955d011SMarcel Moolenaar 46283955d011SMarcel Moolenaar2004-01-08 Simon J. Gerraty <sjg@void.crufty.net> 46293955d011SMarcel Moolenaar 46303955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040108 46313955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 46323955d011SMarcel Moolenaar o fix for ternary modifier 46333955d011SMarcel Moolenaar 46343955d011SMarcel Moolenaar2004-01-06 Simon J. Gerraty <sjg@void.crufty.net> 46353955d011SMarcel Moolenaar 46363955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040105 46373955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 46383955d011SMarcel Moolenaar o fix for cond.c to handle compound expressions better 46393955d011SMarcel Moolenaar o variable expansion within sysV style replacements 46403955d011SMarcel Moolenaar 46413955d011SMarcel Moolenaar2003-12-22 Simon J. Gerraty <sjg@void.crufty.net> 46423955d011SMarcel Moolenaar 46433955d011SMarcel Moolenaar * Make portable snprintf safer - output to /dev/null first to 46443955d011SMarcel Moolenaar check space needed. 46453955d011SMarcel Moolenaar 46463955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20031222 46473955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 46483955d011SMarcel Moolenaar o -dg3 to show input graph when things go wrong. 46493955d011SMarcel Moolenaar o explicitly look for makefiles in objdir if not found in curdir so 46503955d011SMarcel Moolenaar that errors in .depend etc will be reported accurarely. 46513955d011SMarcel Moolenaar o avoid use of -e in shell scripts in jobs mode, use '|| exit $?' 46523955d011SMarcel Moolenaar instead as it more accurately reflects the expected behavior and 46533955d011SMarcel Moolenaar is more consistently implemented. 46543955d011SMarcel Moolenaar o avoid use of asprintf. 46553955d011SMarcel Moolenaar 46563955d011SMarcel Moolenaar2003-09-28 Simon J. Gerraty <sjg@void.crufty.net> 46573955d011SMarcel Moolenaar 46583955d011SMarcel Moolenaar * util.c: Add asprintf and vasprintf. 46593955d011SMarcel Moolenaar 46603955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030928 46613955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 46623955d011SMarcel Moolenaar :[] modifier - allows picking words from a variable. 46633955d011SMarcel Moolenaar :tW modifier - allows treating value as one big word. 46643955d011SMarcel Moolenaar W flag for :C and :S - allows treating value as one big word. 46653955d011SMarcel Moolenaar 46663955d011SMarcel Moolenaar2003-09-12 Simon J. Gerraty <sjg@void.crufty.net> 46673955d011SMarcel Moolenaar 46683955d011SMarcel Moolenaar * Merge with NetBSD make 46693955d011SMarcel Moolenaar pick up -de flag to enable printing failed command. 46703955d011SMarcel Moolenaar don't skip 1st two dir entries (normally . and ..) since 46713955d011SMarcel Moolenaar coda does not have them. 46723955d011SMarcel Moolenaar 46733955d011SMarcel Moolenaar2003-09-09 Simon J. Gerraty <sjg@void.crufty.net> 46743955d011SMarcel Moolenaar 46753955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030909 46763955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 46773955d011SMarcel Moolenaar - changes for -V '${VAR}' to print fully expanded value 46783955d011SMarcel Moolenaar cf. -V VAR 46793955d011SMarcel Moolenaar - CompatRunCommand now prints the command that failed. 46803955d011SMarcel Moolenaar - several files got updated 3 clause Berkeley license. 46813955d011SMarcel Moolenaar 46823955d011SMarcel Moolenaar2003-08-02 Simon J. Gerraty <sjg@void.crufty.net> 46833955d011SMarcel Moolenaar 46843955d011SMarcel Moolenaar * boot-strap: Allow setting configure args on command line. 46853955d011SMarcel Moolenaar 46863955d011SMarcel Moolenaar2003-07-31 Simon J. Gerraty <sjg@void.crufty.net> 46873955d011SMarcel Moolenaar 46883955d011SMarcel Moolenaar * configure.in: add --with-defshell to allow sh or ksh 46893955d011SMarcel Moolenaar to be selected as default shell. 46903955d011SMarcel Moolenaar 46913955d011SMarcel Moolenaar * Makefile.in: bump version to 20030731 46923955d011SMarcel Moolenaar 46933955d011SMarcel Moolenaar * Merge with NetBSD make 46943955d011SMarcel Moolenaar Pick up .SHELL spec for ksh and associate man page changes. 46953955d011SMarcel Moolenaar Also compat mode now uses the same shell specs. 46963955d011SMarcel Moolenaar 46973955d011SMarcel Moolenaar2003-07-29 Simon J. Gerraty <sjg@void.crufty.net> 46983955d011SMarcel Moolenaar 46993955d011SMarcel Moolenaar * var.c (Var_Parse): ensure delim is initialized. 47003955d011SMarcel Moolenaar 47013955d011SMarcel Moolenaar * unit-tests/Makefile.in: use single quotes to avoid problems from 47023955d011SMarcel Moolenaar some shells. 47033955d011SMarcel Moolenaar 47043955d011SMarcel Moolenaar * makefile.boot.in: 47053955d011SMarcel Moolenaar Run the unit-tests as part of the bootstrap procedure. 47063955d011SMarcel Moolenaar 47073955d011SMarcel Moolenaar2003-07-28 Simon J. Gerraty <sjg@void.crufty.net> 47083955d011SMarcel Moolenaar 47093955d011SMarcel Moolenaar * unit-tests/Makefile.in: always force complaints from 47103955d011SMarcel Moolenaar ${TEST_MAKE} to be from 'make'. 47113955d011SMarcel Moolenaar 47123955d011SMarcel Moolenaar * configure.in: add check for 'diff -u' 47133955d011SMarcel Moolenaar also fix some old autoconf'isms 47143955d011SMarcel Moolenaar 47153955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030728. 47163955d011SMarcel Moolenaar if using GCC add -Wno-cast-qual to CFLAGS for var.o 47173955d011SMarcel Moolenaar 47183955d011SMarcel Moolenaar * Merge with NetBSD make 47193955d011SMarcel Moolenaar Pick up fix for :ts parsing error in some cases. 47203955d011SMarcel Moolenaar Pick unit-tests. 47213955d011SMarcel Moolenaar 47223955d011SMarcel Moolenaar2003-07-23 Simon J. Gerraty <sjg@void.crufty.net> 47233955d011SMarcel Moolenaar 47243955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030723. 47253955d011SMarcel Moolenaar 47263955d011SMarcel Moolenaar * var.c (Var_Parse): fix bug in :ts modifier, after const 47273955d011SMarcel Moolenaar correctness fixes, must pass nstr to VarModify. 47283955d011SMarcel Moolenaar 47293955d011SMarcel Moolenaar2003-07-14 Simon J. Gerraty <sjg@void.crufty.net> 47303955d011SMarcel Moolenaar 47313955d011SMarcel Moolenaar * Makefile.in: BMAKE_VERSION switch to a date based version. 47323955d011SMarcel Moolenaar We'll generally use the date of last import from NetBSD. 47333955d011SMarcel Moolenaar 47343955d011SMarcel Moolenaar * Merge with NetBSD make 47353955d011SMarcel Moolenaar Pick up fixes for const-correctness, now passes WARNS=3 on 47363955d011SMarcel Moolenaar NetBSD. 47373955d011SMarcel Moolenaar Pick up :ts modifier, allows controlling the separator used 47383955d011SMarcel Moolenaar between words in variable expansion. 47393955d011SMarcel Moolenaar 47403955d011SMarcel Moolenaar2003-07-11 Simon J. Gerraty <sjg@void.crufty.net> 47413955d011SMarcel Moolenaar 47423955d011SMarcel Moolenaar * FILES: include boot-strap and os.sh 47433955d011SMarcel Moolenaar 47443955d011SMarcel Moolenaar * Makefile.in: only set WARNS if we are NetBSD, the effect on 47453955d011SMarcel Moolenaar FreeBSD is known to be bad. 47463955d011SMarcel Moolenaar 47473955d011SMarcel Moolenaar * makefile.boot.in (bootstrap): make this the default target. 47483955d011SMarcel Moolenaar 47493955d011SMarcel Moolenaar * Makefile.in: bump version to 3.1.19 47503955d011SMarcel Moolenaar 47513955d011SMarcel Moolenaar * machine.sh: avoid A-Z with tr as it is bound to lose. 47523955d011SMarcel Moolenaar 47533955d011SMarcel Moolenaar2003-07-10 Simon J. Gerraty <sjg@void.crufty.net> 47543955d011SMarcel Moolenaar 47553955d011SMarcel Moolenaar * Merge with NetBSD make 47563955d011SMarcel Moolenaar Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo 47573955d011SMarcel Moolenaar Plus some doc fixes. 47583955d011SMarcel Moolenaar 47593955d011SMarcel Moolenaar2003-04-27 Simon J. Gerraty <sjg@void.crufty.net> 47603955d011SMarcel Moolenaar 47613955d011SMarcel Moolenaar * Merge with NetBSD make 47623955d011SMarcel Moolenaar Pick up fix for PR/1523 - don't count a library as built, if there 47633955d011SMarcel Moolenaar is no way to build it 47643955d011SMarcel Moolenaar 47653955d011SMarcel Moolenaar * Bump version to 3.1.18 47663955d011SMarcel Moolenaar 47673955d011SMarcel Moolenaar2003-03-23 Simon J. Gerraty <sjg@void.crufty.net> 47683955d011SMarcel Moolenaar 47693955d011SMarcel Moolenaar * Merge with NetBSD make 47703955d011SMarcel Moolenaar Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT 47713955d011SMarcel Moolenaar appears in src list. 47723955d011SMarcel Moolenaar 47733955d011SMarcel Moolenaar2003-03-21 Simon J. Gerraty <sjg@void.crufty.net> 47743955d011SMarcel Moolenaar 47753955d011SMarcel Moolenaar * Merge with NetBSD make (mmm 10th anniversary!) 47763955d011SMarcel Moolenaar pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828) 47773955d011SMarcel Moolenaar pick up -X which tells us to not export VAR=val via setenv if 47783955d011SMarcel Moolenaar we are already doing so via MAKEFLAGS. This saves valuable env 47793955d011SMarcel Moolenaar space on systems like Darwin. 47803955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.17 47813955d011SMarcel Moolenaar 47823955d011SMarcel Moolenaar * parse.c: pix up fix for suffix rules 47833955d011SMarcel Moolenaar 47843955d011SMarcel Moolenaar2003-03-06 Simon J. Gerraty <sjg@void.crufty.net> 47853955d011SMarcel Moolenaar 47863955d011SMarcel Moolenaar * Merge with NetBSD make. 47873955d011SMarcel Moolenaar pick up fix for propagating -B via MAKEFLAGS. 47883955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.16 47893955d011SMarcel Moolenaar 47903955d011SMarcel Moolenaar * Apply some patches from pkgsrc-bootstrap/bmake 47913955d011SMarcel Moolenaar Originally by Grant Beattie <grant@netbsd.org> 47923955d011SMarcel Moolenaar I may have missed some - since they are based on bmake-3.1.12 47933955d011SMarcel Moolenaar 47943955d011SMarcel Moolenaar2002-12-03 Simon J. Gerraty <sjg@void.crufty.net> 47953955d011SMarcel Moolenaar 47963955d011SMarcel Moolenaar * makefile.boot.in (bmake): update install targets for those that 47973955d011SMarcel Moolenaar use them, also clear MAKEFLAGS when invoking bmake.boot to avoid 47983955d011SMarcel Moolenaar havoc from gmake -w. Thanks to Harlan Stenn <hstenn@cisco.com>. 47993955d011SMarcel Moolenaar 48003955d011SMarcel Moolenaar * bmake.cat1: update the pre-formatted man page! 48013955d011SMarcel Moolenaar 48023955d011SMarcel Moolenaar2002-11-30 Simon J. Gerraty <sjg@void.crufty.net> 48033955d011SMarcel Moolenaar 48043955d011SMarcel Moolenaar * Merge with NetBSD make. 48053955d011SMarcel Moolenaar pick up fix for premature free of pointer used in call 48063955d011SMarcel Moolenaar to Dir_InitCur(). 48073955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.15 48083955d011SMarcel Moolenaar 48093955d011SMarcel Moolenaar2002-11-26 Simon J. Gerraty <sjg@void.crufty.net> 48103955d011SMarcel Moolenaar 48113955d011SMarcel Moolenaar * configure.in: determine suitable value for MKSRC. 48123955d011SMarcel Moolenaar override using --with-mksrc=PATH. 48133955d011SMarcel Moolenaar 48143955d011SMarcel Moolenaar * machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems. 48153955d011SMarcel Moolenaar configs(8) will use 'sun4' as an alias for 'sparc'. 48163955d011SMarcel Moolenaar 48173955d011SMarcel Moolenaar2002-11-25 Simon J. Gerraty <sjg@void.crufty.net> 48183955d011SMarcel Moolenaar 48193955d011SMarcel Moolenaar * Merge with NetBSD make. 48203955d011SMarcel Moolenaar pick up ${.PATH} 48213955d011SMarcel Moolenaar pick up fix for finding ../cat.c via .PATH when .CURDIR=.. 48223955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.14 48233955d011SMarcel Moolenaar add configure checks for killpg and sys/socket.h 48243955d011SMarcel Moolenaar 48253955d011SMarcel Moolenaar2002-09-16 Simon J. Gerraty <sjg@void.crufty.net> 48263955d011SMarcel Moolenaar 48273955d011SMarcel Moolenaar * tag bmake-3-1-13 48283955d011SMarcel Moolenaar 48293955d011SMarcel Moolenaar * makefile.boot.in (bmake): use install-mk 48303955d011SMarcel Moolenaar Also setup ./mk before trying to invoke bmake.boot incase we 48313955d011SMarcel Moolenaar needed install-mk to create a sys.mk for us. 48323955d011SMarcel Moolenaar 48333955d011SMarcel Moolenaar * configure.in: If we need to add -I${srcdir}/missing, make it an 48343955d011SMarcel Moolenaar absolute path so that it works for lst.lib too. 48353955d011SMarcel Moolenaar 48363955d011SMarcel Moolenaar * make.h: always include sys/cdefs.h since we provide one if the 48373955d011SMarcel Moolenaar host does not. 48383955d011SMarcel Moolenaar 48393955d011SMarcel Moolenaar * Makefile.in (install-mk): 48403955d011SMarcel Moolenaar use MKSRC/install-mk which will do the right thing. 48413955d011SMarcel Moolenaar use uname -p for ARCH if possible. 48423955d011SMarcel Moolenaar since install-mk will setup links bsd.prog.mk -> prog.mk if 48433955d011SMarcel Moolenaar needed, just .include bsd.prog.mk 48443955d011SMarcel Moolenaar 48453955d011SMarcel Moolenaar * Merge with NetBSD make (NetBSD-1.6) 48463955d011SMarcel Moolenaar Code is ansi-C only now. 48473955d011SMarcel Moolenaar Bug in handling of dotLast is fixed. 48483955d011SMarcel Moolenaar Can now assign .OBJDIR and make will reset its notions of life. 48493955d011SMarcel Moolenaar New modifiers :tu :tl for toUpper and toLower. 48503955d011SMarcel Moolenaar 48513955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001 Simon J. Gerraty <sjg@zen.crufty.net> 48523955d011SMarcel Moolenaar 48533955d011SMarcel Moolenaar * Merge with NetBSD make 48543955d011SMarcel Moolenaar pick up fix for .END failure in compat mode. 48553955d011SMarcel Moolenaar pick up fix for extra va_end() in ParseVErrorInternal. 48563955d011SMarcel Moolenaar 48573955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001 Simon J. Gerraty <sjg@zen.crufty.net> 48583955d011SMarcel Moolenaar 48593955d011SMarcel Moolenaar * configure.in: for systems that have sys/cdefs.h check if it is 48603955d011SMarcel Moolenaar compatible. If not, include the one under missing, but tell it to 48613955d011SMarcel Moolenaar include the native one too - necessary on Linux. 48623955d011SMarcel Moolenaar 48633955d011SMarcel Moolenaar * missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use 48643955d011SMarcel Moolenaar include_next (for gcc) to get the native sys/cdefs.h 48653955d011SMarcel Moolenaar 48663955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 48673955d011SMarcel Moolenaar 48683955d011SMarcel Moolenaar * job.c (JobFinish): Fix an earlier merge bug that resulted in 48693955d011SMarcel Moolenaar leaking descriptors when using -jN. 48703955d011SMarcel Moolenaar 48713955d011SMarcel Moolenaar * job.c (JobPrintCommand): See if "curdir" exists before 48723955d011SMarcel Moolenaar attempting to chdir(). Doing the chdir directly in make (when in 48733955d011SMarcel Moolenaar compat mode) fails silently, so let the -jN version do the same. 48743955d011SMarcel Moolenaar This can happen when building kernels in an object tree and 48753955d011SMarcel Moolenaar playing clever games to reset .CURDIR. 48763955d011SMarcel Moolenaar 48773955d011SMarcel Moolenaar * Merged with NetBSD make 48783955d011SMarcel Moolenaar pick up .USEBEFORE 48793955d011SMarcel Moolenaar 48803955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 48813955d011SMarcel Moolenaar 48823955d011SMarcel Moolenaar * makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work. 48833955d011SMarcel Moolenaar 48843955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 48853955d011SMarcel Moolenaar 48863955d011SMarcel Moolenaar * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell 48873955d011SMarcel Moolenaar us not to export the iterator variable when using VAR_CMD context. 48883955d011SMarcel Moolenaar 48893955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 48903955d011SMarcel Moolenaar 48913955d011SMarcel Moolenaar * job.c (Job_CatchChildren): don't call Job_CatchOutput() here, 48923955d011SMarcel Moolenaar its the wrong "fix". 48933955d011SMarcel Moolenaar 48943955d011SMarcel MoolenaarSat Jun 9 00:11:24 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 48953955d011SMarcel Moolenaar 48963955d011SMarcel Moolenaar * Redesigned export of VAR_CMD's via MAKEFLAGS. 48973955d011SMarcel Moolenaar We now simply append the variable names to .MAKEOVERRIDES, and 48983955d011SMarcel Moolenaar handle duplicate suppression and quoting in ExportMAKEFLAGS using: 48993955d011SMarcel Moolenaar ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@} 49003955d011SMarcel Moolenaar Apart from fixing quoting bugs in previous version, this allows us 49013955d011SMarcel Moolenaar to export vars to the environment by simply doing: 49023955d011SMarcel Moolenaar .MAKEOVERRIDES+= PATH 49033955d011SMarcel Moolenaar Merged again with NetBSD make, but the above is the only change. 49043955d011SMarcel Moolenaar 49053955d011SMarcel Moolenaar * configure.in: added 49063955d011SMarcel Moolenaar --disable-pwd-override disable $PWD overriding getcwd() 49073955d011SMarcel Moolenaar --disable-check-make-chdir disable make trying to guess 49083955d011SMarcel Moolenaar when it should automatically cd ${.CURDIR} 49093955d011SMarcel Moolenaar 49103955d011SMarcel Moolenaar * Merge with NetBSD make, changes include: 49113955d011SMarcel Moolenaar parse.c (ParseDoDependency): Spot that the syntax error is 49123955d011SMarcel Moolenaar caused by an unresolved cvs/rcs conflict and say so. 49133955d011SMarcel Moolenaar var.c: most of Var* functions now take a ctxt as 1st arg. 49143955d011SMarcel Moolenaar now does variable substituion on rhs of sysv style modifiers. 49153955d011SMarcel Moolenaar 49163955d011SMarcel Moolenaar * var.c (Var_Set): exporting of command line variables (VAR_CMD) 49173955d011SMarcel Moolenaar is now done here. We append the name='value' to .MAKEOVERRIDES 49183955d011SMarcel Moolenaar rather than directly into MAKEFLAGS as this allows a Makefile to 49193955d011SMarcel Moolenaar use .MAKEOVERRIDES= to disable this behaviour. GNU make uses a 49203955d011SMarcel Moolenaar very similar mechanism. Note that in adding name='value' to 49213955d011SMarcel Moolenaar .MAKEOVERRIDES we do the moral equivalent of: 49223955d011SMarcel Moolenaar .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val' 49233955d011SMarcel Moolenaar 49243955d011SMarcel MoolenaarFri Jun 1 14:08:02 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 49253955d011SMarcel Moolenaar 49263955d011SMarcel Moolenaar * make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H 49273955d011SMarcel Moolenaar 49283955d011SMarcel Moolenaar * Merged with NetBSD make 49293955d011SMarcel Moolenaar make -dx can now be used to run commands via sh -x 49303955d011SMarcel Moolenaar better error messages on exec failures. 49313955d011SMarcel Moolenaar 49323955d011SMarcel MoolenaarThu May 31 01:44:54 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 49333955d011SMarcel Moolenaar 49343955d011SMarcel Moolenaar * Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that 49353955d011SMarcel Moolenaar MAKE_VERSION gets updated. Also don't use ?= for MAKE_VERSION, 49363955d011SMarcel Moolenaar MACHINE etc otherwise they propagate from the previous bmake. 49373955d011SMarcel Moolenaar 49383955d011SMarcel Moolenaar * configure.in (machine): allow --with-machine=generic to make 49393955d011SMarcel Moolenaar configure use machine.sh to set MACHINE. 49403955d011SMarcel Moolenaar 49413955d011SMarcel Moolenaar * job.c (JobInterrupt): convert to using WAIT_T and friends. 49423955d011SMarcel Moolenaar 49433955d011SMarcel Moolenaar * Makefile.in: mention in bmake.1 that we use autoconf. 49443955d011SMarcel Moolenaar 49453955d011SMarcel Moolenaar * make.1: mention MAKE_PRINT_VAR_ON_ERROR. 49463955d011SMarcel Moolenaar 49473955d011SMarcel MoolenaarWed May 30 23:17:18 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 49483955d011SMarcel Moolenaar 49493955d011SMarcel Moolenaar * main.c (ReadMakefile): don't set MAKEFILE if reading ".depend" 49503955d011SMarcel Moolenaar as that rather defeats the usefulness of ${MAKEFILE}. 49513955d011SMarcel Moolenaar 49523955d011SMarcel Moolenaar * main.c (MainParseArgs): append command line variable assignments 49533955d011SMarcel Moolenaar to MAKEFLAGS so that they get propagated to child make's. 49543955d011SMarcel Moolenaar Apparently this is required POSIX behaviour? Its useful anyway. 49553955d011SMarcel Moolenaar 49563955d011SMarcel MoolenaarTue May 29 02:20:07 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 49573955d011SMarcel Moolenaar 49583955d011SMarcel Moolenaar * compat.c (CompatRunCommand): don't use perror() since stdio may 49593955d011SMarcel Moolenaar cause problems in child of vfork(). 49603955d011SMarcel Moolenaar 49613955d011SMarcel Moolenaar * compat.c, main.c: Call PrintOnError() when we are going to bail. 49623955d011SMarcel Moolenaar This routine prints out the .curdir where we stopped and will also 49633955d011SMarcel Moolenaar display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}. 49643955d011SMarcel Moolenaar 49653955d011SMarcel Moolenaar * main.c: add ${.newline} to hold a "\n" - sometimes handy in 49663955d011SMarcel Moolenaar :@ expansion. 49673955d011SMarcel Moolenaar 49683955d011SMarcel Moolenaar * var.c: VarLoopExpand: ignore addSpace if a \n is present. 49693955d011SMarcel Moolenaar 49703955d011SMarcel Moolenaar * Added RCSid's for the files we've touched. 49713955d011SMarcel Moolenaar 49723955d011SMarcel MoolenaarThu May 24 15:41:37 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 49733955d011SMarcel Moolenaar 49743955d011SMarcel Moolenaar * configure.in: Thanks to some clues from mdb@juniper.net, 49753955d011SMarcel Moolenaar added autoconf magic to control setting of MACHINE, MACHINE_ARCH 49763955d011SMarcel Moolenaar as well as what ends up in _PATH_DEFSYSPATH. We now have: 49773955d011SMarcel Moolenaar 49783955d011SMarcel Moolenaar --with-machine=MACHINE explicitly set MACHINE 49793955d011SMarcel Moolenaar --with-force-machine=MACHINE set FORCE_MACHINE 49803955d011SMarcel Moolenaar --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH 49813955d011SMarcel Moolenaar --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 49823955d011SMarcel Moolenaar --with-prefix-sys-path=PATH:DIR:LIST prefix _PATH_PREFIX_SYSPATH 49833955d011SMarcel Moolenaar --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX 49843955d011SMarcel Moolenaar 49853955d011SMarcel Moolenaar If _PATH_OBJDIRPREFIX is set to "no" we won't define it. 49863955d011SMarcel Moolenaar 49873955d011SMarcel Moolenaar * makefile: added a pathetically simple makefile to drive 49883955d011SMarcel Moolenaar bootstrapping. Running configure by hand is more useful. 49893955d011SMarcel Moolenaar 49903955d011SMarcel Moolenaar * Makefile.in: added MAKE_VERSION, and reworked things to be less 49913955d011SMarcel Moolenaar dependent on NetBSD bsd.*.mk 49923955d011SMarcel Moolenaar 49933955d011SMarcel Moolenaar * pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining 49943955d011SMarcel Moolenaar _PATH_OBJDIRPREFIX for those that don't want a default. 49953955d011SMarcel Moolenaar construct _PATH_DEFSYSPATH from the info we get from configure. 49963955d011SMarcel Moolenaar 49973955d011SMarcel Moolenaar * main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION} 49983955d011SMarcel Moolenaar if MAKE_VERSION is defined. 49993955d011SMarcel Moolenaar 50003955d011SMarcel Moolenaar * compat.c: when we bail, print out the .CURDIR we were in. 50013955d011SMarcel Moolenaar 50023955d011SMarcel MoolenaarSat May 12 00:34:12 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 50033955d011SMarcel Moolenaar 50043955d011SMarcel Moolenaar * Merged with NetBSD make 50053955d011SMarcel Moolenaar 50063955d011SMarcel Moolenaar * var.c: fixed a bug in the handling of the modifier :P 50073955d011SMarcel Moolenaar if the node as found but the path was null, we segfault trying to 50083955d011SMarcel Moolenaar duplicate it. 50093955d011SMarcel Moolenaar 50103955d011SMarcel MoolenaarMon Mar 5 16:20:33 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 50113955d011SMarcel Moolenaar 50123955d011SMarcel Moolenaar * Merged with NetBSD make 50133955d011SMarcel Moolenaar 50143955d011SMarcel Moolenaar * make.c: Make_OODate's test for a library out of date was using 50153955d011SMarcel Moolenaar cmtime where it should have used mtime (my bug). 50163955d011SMarcel Moolenaar 50173955d011SMarcel Moolenaar * compat.c: Use perror() to tell us what really went wrong when we 50183955d011SMarcel Moolenaar cannot exec a command. 50193955d011SMarcel Moolenaar 50203955d011SMarcel MoolenaarFri Dec 15 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 50213955d011SMarcel Moolenaar 50223955d011SMarcel Moolenaar * Merged with NetBSD make 50233955d011SMarcel Moolenaar 50243955d011SMarcel MoolenaarSat Jun 10 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 50253955d011SMarcel Moolenaar 50263955d011SMarcel Moolenaar * Merged with NetBSD make 50273955d011SMarcel Moolenaar 50283955d011SMarcel MoolenaarThu Jun 1 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 50293955d011SMarcel Moolenaar 50303955d011SMarcel Moolenaar * Merged with NetBSD make 50313955d011SMarcel Moolenaar 50323955d011SMarcel MoolenaarTue May 30 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 50333955d011SMarcel Moolenaar 50343955d011SMarcel Moolenaar * Merged with NetBSD make 50353955d011SMarcel Moolenaar 50363955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 50373955d011SMarcel Moolenaar 50383955d011SMarcel Moolenaar * util.c: don't provide signal() since we use sigcompat.c 50393955d011SMarcel Moolenaar 50403955d011SMarcel Moolenaar * Makefile.in: added a build target. 50413955d011SMarcel Moolenaar 50423955d011SMarcel Moolenaar * var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :! 50433955d011SMarcel Moolenaar These allow some quite clever magic. 50443955d011SMarcel Moolenaar 50453955d011SMarcel Moolenaar * main.c (main): added support for getenv(MAKESYSPATH). 50463955d011SMarcel Moolenaar 50473955d011SMarcel MoolenaarMon Apr 2 16:25:13 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 50483955d011SMarcel Moolenaar 50493955d011SMarcel Moolenaar * Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set. 50503955d011SMarcel Moolenaar This avoids objdir having a different value depending on how a 50513955d011SMarcel Moolenaar directory was reached (via command line, or subdir.mk). 50523955d011SMarcel Moolenaar 50533955d011SMarcel Moolenaar * If FORCE_MACHINE is defined, ignore getenv("MACHINE"). 50543955d011SMarcel Moolenaar 50553955d011SMarcel MoolenaarMon Apr 2 23:15:31 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 50563955d011SMarcel Moolenaar 50573955d011SMarcel Moolenaar * Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if 50583955d011SMarcel Moolenaar MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not. 50593955d011SMarcel Moolenaar I've been testing this in NetBSD's make for some weeks. 50603955d011SMarcel Moolenaar 50613955d011SMarcel Moolenaar * Turn Makefile into Makefile.in and make it useful. 50623955d011SMarcel Moolenaar 50633955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 50643955d011SMarcel Moolenaar 50653955d011SMarcel Moolenaar * Imported NetBSD's -current make(1) and resolve conflicts. 50663955d011SMarcel Moolenaar 50673955d011SMarcel Moolenaar * Applied autoconf patches from bmake v2 50683955d011SMarcel Moolenaar 50693955d011SMarcel Moolenaar * Imported clean code base from NetBSD-1.0 5070