1*4fde40d9SSimon J. Gerraty2023-01-26 Simon J Gerraty <sjg@beast.crufty.net> 2*4fde40d9SSimon J. Gerraty 3*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230126 4*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 5*4fde40d9SSimon J. Gerraty o variables like .newline and .MAKE.{GID,PID,PPID,UID} 6*4fde40d9SSimon J. Gerraty should be read-only. 7*4fde40d9SSimon J. Gerraty 8*4fde40d9SSimon J. Gerraty2023-01-23 Simon J Gerraty <sjg@beast.crufty.net> 9*4fde40d9SSimon J. Gerraty 10*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230123 11*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 12*4fde40d9SSimon J. Gerraty o .[NO]READONLY: for control of read-only variables 13*4fde40d9SSimon J. Gerraty o .SYSPATH: for controlling the path searched for makefiles 14*4fde40d9SSimon J. Gerraty 15*4fde40d9SSimon J. Gerraty2023-01-20 Simon J Gerraty <sjg@beast.crufty.net> 16*4fde40d9SSimon J. Gerraty 17*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230120 18*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 19*4fde40d9SSimon J. Gerraty o allow for white-space between command specifiers @+- 20*4fde40d9SSimon J. Gerraty o add more details to warning 'Extra targets ignored' 21*4fde40d9SSimon J. Gerraty 22*4fde40d9SSimon J. Gerraty2023-01-12 Simon J Gerraty <sjg@beast.crufty.net> 23*4fde40d9SSimon J. Gerraty 24*4fde40d9SSimon J. Gerraty * machine.sh: leverage os.sh rather than duplicate 25*4fde40d9SSimon J. Gerraty also dispence with the $OS.$MACHINE values - we have $HOST_TARGET 26*4fde40d9SSimon J. Gerraty for that purpose for the past decade or so. 27*4fde40d9SSimon J. Gerraty We invariably get MACHINE and MACHINE_ARCH at runtime anyway. 28*4fde40d9SSimon J. Gerraty 29*4fde40d9SSimon J. Gerraty2023-01-02 Simon J Gerraty <sjg@beast.crufty.net> 30*4fde40d9SSimon J. Gerraty 31*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20230101 32*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 33*4fde40d9SSimon J. Gerraty o cleanup comments, inline some LazyBuf_ methods 34*4fde40d9SSimon J. Gerraty o unit-tests/ add/improve comments in tests 35*4fde40d9SSimon J. Gerraty o make.1: sync list of built-in variables with reality 36*4fde40d9SSimon J. Gerraty sort list of built-in variables 37*4fde40d9SSimon J. Gerraty reduce indentation of the long list of variable names 38*4fde40d9SSimon J. Gerraty use consistent markup for boolean flags 39*4fde40d9SSimon J. Gerraty move description of .MAKE.MODE below the .MAKE.META block 40*4fde40d9SSimon J. Gerraty clarify in which case an expression may omit braces 41*4fde40d9SSimon J. Gerraty 42*4fde40d9SSimon J. Gerraty2022-11-08 Simon J Gerraty <sjg@beast.crufty.net> 43*4fde40d9SSimon J. Gerraty 44*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20221024 45*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 46*4fde40d9SSimon J. Gerraty o change return type of unlink_file back to int 47*4fde40d9SSimon J. Gerraty 48*4fde40d9SSimon J. Gerraty2022-10-07 Simon J Gerraty <sjg@beast.crufty.net> 49*4fde40d9SSimon J. Gerraty 50*4fde40d9SSimon J. Gerraty * Makefile: Darwin and Linux can handle MANTARGET=man 51*4fde40d9SSimon J. Gerraty 52*4fde40d9SSimon J. Gerraty2022-09-28 Simon J Gerraty <sjg@beast.crufty.net> 53*4fde40d9SSimon J. Gerraty 54*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220928 55*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 56*4fde40d9SSimon J. Gerraty o fix more ignored returns from snprintf 57*4fde40d9SSimon J. Gerraty o compile with higher warnings 58*4fde40d9SSimon J. Gerraty 59*4fde40d9SSimon J. Gerraty2022-09-26 Simon J Gerraty <sjg@beast.crufty.net> 60*4fde40d9SSimon J. Gerraty 61*4fde40d9SSimon J. Gerraty * main.c meta.c: do not ignore return from snprintf 62*4fde40d9SSimon J. Gerraty 63*4fde40d9SSimon J. Gerraty * meta.c strlcpy.c: we need prototype for strlcpy 64*4fde40d9SSimon J. Gerraty 65*4fde40d9SSimon J. Gerraty * sigcompat.c: fix unused function warnings 66*4fde40d9SSimon J. Gerraty 67*4fde40d9SSimon J. Gerraty2022-09-24 Simon J Gerraty <sjg@beast.crufty.net> 68*4fde40d9SSimon J. Gerraty 69*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220924 70*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 71*4fde40d9SSimon J. Gerraty o fix bug in .break reset of conditional depth 72*4fde40d9SSimon J. Gerraty o overhaul and simplify tracking of conditional depth 73*4fde40d9SSimon J. Gerraty 74*4fde40d9SSimon J. Gerraty2022-09-17 Simon J Gerraty <sjg@beast.crufty.net> 75*4fde40d9SSimon J. Gerraty 76*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220912 77*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 78*4fde40d9SSimon J. Gerraty o man page updates 79*4fde40d9SSimon J. Gerraty 80*4fde40d9SSimon J. Gerraty2022-09-09 Simon J Gerraty <sjg@beast.crufty.net> 81*4fde40d9SSimon J. Gerraty 82*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220909 83*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 84*4fde40d9SSimon J. Gerraty o update unit-tests to handle deprecation of egrep 85*4fde40d9SSimon J. Gerraty o cond.c: add more details to error message for numeric comparison 86*4fde40d9SSimon J. Gerraty 87*4fde40d9SSimon J. Gerraty * configure.in: allow for deprecation of egrep 88*4fde40d9SSimon J. Gerraty 89*4fde40d9SSimon J. Gerraty * Makefile: Linux can handle MANTARGET=man 90*4fde40d9SSimon J. Gerraty 91*4fde40d9SSimon J. Gerraty2022-09-03 Simon J Gerraty <sjg@beast.crufty.net> 92*4fde40d9SSimon J. Gerraty 93*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220903 94*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 95*4fde40d9SSimon J. Gerraty o job.c: fix handling of null bytes in output 96*4fde40d9SSimon J. Gerraty 97*4fde40d9SSimon J. Gerraty2022-09-02 Simon J Gerraty <sjg@beast.crufty.net> 98*4fde40d9SSimon J. Gerraty 99*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220902 100*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 101*4fde40d9SSimon J. Gerraty o Allow .break to terminate a .for loop early 102*4fde40d9SSimon J. Gerraty 103*4fde40d9SSimon J. Gerraty2022-09-01 Simon J Gerraty <sjg@beast.crufty.net> 104*4fde40d9SSimon J. Gerraty 105*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220901 106*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 107*4fde40d9SSimon J. Gerraty o var.c: fix out-of-bounds errors when parsing 108*4fde40d9SSimon J. Gerraty 109*4fde40d9SSimon J. Gerraty2022-08-24 Simon J Gerraty <sjg@beast.crufty.net> 110*4fde40d9SSimon J. Gerraty 111*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220824 112*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 113*4fde40d9SSimon J. Gerraty o var.c: revert change to modifier parsing that breaks 114*4fde40d9SSimon J. Gerraty shell variable references within ':@var@body@' 115*4fde40d9SSimon J. Gerraty o adjust unit-tests 116*4fde40d9SSimon J. Gerraty 117*4fde40d9SSimon J. Gerraty2022-08-18 Simon J Gerraty <sjg@beast.crufty.net> 118*4fde40d9SSimon J. Gerraty 119*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220818 120*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 121*4fde40d9SSimon J. Gerraty o fix exit status for '-q' (since 1994) 122*4fde40d9SSimon J. Gerraty 123*4fde40d9SSimon J. Gerraty2022-08-08 Simon J Gerraty <sjg@beast.crufty.net> 124*4fde40d9SSimon J. Gerraty 125*4fde40d9SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220808 126*4fde40d9SSimon J. Gerraty Merge with NetBSD make, pick up 127*4fde40d9SSimon J. Gerraty o var.c: fix parsing of modifiers containing unbalanced subexpressions 128*4fde40d9SSimon J. Gerraty extract parsing of ':D' and ':U' modifiers into separate function 129*4fde40d9SSimon J. Gerraty 130532d4fbfSSimon J. Gerraty2022-07-26 Simon J Gerraty <sjg@beast.crufty.net> 131532d4fbfSSimon J. Gerraty 132532d4fbfSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220726 133532d4fbfSSimon J. Gerraty 134532d4fbfSSimon J. Gerraty * Auto-create objdir for bmake/unit-tests if appropriate 135532d4fbfSSimon J. Gerraty 136954401e6SSimon J. Gerraty2022-07-24 Simon J Gerraty <sjg@beast.crufty.net> 137954401e6SSimon J. Gerraty 138954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220724 139954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 140954401e6SSimon J. Gerraty o make.1: describe variable assignment and evaluation more precisely 141954401e6SSimon J. Gerraty o parse.c: fix out-of-bounds read when parsing an invalid line 142954401e6SSimon J. Gerraty o var.c: simplify return type of IsShortVarnameValid 143954401e6SSimon J. Gerraty 144954401e6SSimon J. Gerraty2022-06-12 Simon J Gerraty <sjg@beast.crufty.net> 145954401e6SSimon J. Gerraty 146954401e6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220612 147954401e6SSimon J. Gerraty Merge with NetBSD make, pick up 148954401e6SSimon J. Gerraty o allow to randomize build order of targets 149954401e6SSimon J. Gerraty .MAKE.MODE += randomize-targets can help uncover dependency bugs 150954401e6SSimon J. Gerraty within a makefile. 151954401e6SSimon J. Gerraty o compat.c: rename Compat_Run to Compat_MakeAll 152954401e6SSimon J. Gerraty o make.c: inline MakeBuildParent 153954401e6SSimon J. Gerraty inline make_abort, improve error details 154954401e6SSimon J. Gerraty o parse.c: reorganize Parse_Error 155954401e6SSimon J. Gerraty fix memory leak in wildcard targets and sources 156954401e6SSimon J. Gerraty separate cases in HandleDependencyTargetMundane 157954401e6SSimon J. Gerraty extract HandleSingleDependencyTargetMundane 158954401e6SSimon J. Gerraty rename loadfile to LoadFile 159954401e6SSimon J. Gerraty split IncludeFile into separate functions 160954401e6SSimon J. Gerraty condense code for searching a file in the paths 161954401e6SSimon J. Gerraty fix off-by-one error in buffer for .WAIT nodes 162954401e6SSimon J. Gerraty o str.c: condense Str_Match 163954401e6SSimon J. Gerraty make code for string matching syntactically more consistent 164954401e6SSimon J. Gerraty 1652f2a5ecdSSimon J. Gerraty2022-04-18 Simon J Gerraty <sjg@beast.crufty.net> 1662f2a5ecdSSimon J. Gerraty 1672f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220418 1682f2a5ecdSSimon J. Gerraty Merge with NetBSD make, pick up 1692f2a5ecdSSimon J. Gerraty o ignore '.POSIX:' if not in first non-comment line 1702f2a5ecdSSimon J. Gerraty of Makefile as specified by POSIX. 1712f2a5ecdSSimon J. Gerraty add unit-tests for above. 1722f2a5ecdSSimon J. Gerraty o meta.c: make it easier to find usage of identifiers 1732f2a5ecdSSimon J. Gerraty o targ.c: add .USEBEFORE to Targ_PrintType 1742f2a5ecdSSimon J. Gerraty 1752f2a5ecdSSimon J. Gerraty2022-04-14 Simon J Gerraty <sjg@beast.crufty.net> 1762f2a5ecdSSimon J. Gerraty 1772f2a5ecdSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220414 1782f2a5ecdSSimon J. Gerraty 1792f2a5ecdSSimon J. Gerraty * unit-tests/Makefile: simplify checks for shells with 1802f2a5ecdSSimon J. Gerraty BROKEN_TESTS, this helps with other Linux distros that 1812f2a5ecdSSimon J. Gerraty use dash. 1822f2a5ecdSSimon J. Gerraty 1831d3f2ddcSSimon J. Gerraty2022-03-30 Simon J Gerraty <sjg@beast.crufty.net> 1841d3f2ddcSSimon J. Gerraty 1851d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220330 1861d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 1871d3f2ddcSSimon J. Gerraty o var.c: fix spacing, and a typo in a test 1881d3f2ddcSSimon J. Gerraty 1891d3f2ddcSSimon J. Gerraty2022-03-26 Simon J Gerraty <sjg@beast.crufty.net> 1901d3f2ddcSSimon J. Gerraty 1911d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220326 1921d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 1931d3f2ddcSSimon J. Gerraty o parse.c: try to include 'posix.mk' the first time 1941d3f2ddcSSimon J. Gerraty .POSIX: is encountered, to allow for beter POSIX compliance. 1951d3f2ddcSSimon J. Gerraty o var.c: make debug logs more readable 1961d3f2ddcSSimon J. Gerraty prefer 'long long' over 'long' on 32-bit C99 platforms 1971d3f2ddcSSimon J. Gerraty fix crash on .undef of an environment variable 1981d3f2ddcSSimon J. Gerraty 1991d3f2ddcSSimon J. Gerraty2022-03-03 Simon J Gerraty <sjg@beast.crufty.net> 2001d3f2ddcSSimon J. Gerraty 2011d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220303 2021d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 2031d3f2ddcSSimon J. Gerraty o tell meta mode unit tests not to expect filemon 2041d3f2ddcSSimon J. Gerraty o cond.c: make debug logging for comparisons less technical 2051d3f2ddcSSimon J. Gerraty o lst.c: fix mem leak in Lst_Remove 2061d3f2ddcSSimon J. Gerraty o str.c: make code for string matching syntactically more consistent 2071d3f2ddcSSimon J. Gerraty o var.c: simplify ParseModifier_Match 2081d3f2ddcSSimon J. Gerraty 2091d3f2ddcSSimon J. Gerraty2022-02-14 Simon J Gerraty <sjg@beast.crufty.net> 2101d3f2ddcSSimon J. Gerraty 2111d3f2ddcSSimon J. Gerraty * unit-tests/Makefile: control MAKESYSPATH for deptgt-phony 2121d3f2ddcSSimon J. Gerraty 2131d3f2ddcSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220214 2141d3f2ddcSSimon J. Gerraty Merge with NetBSD make, pick up 2151d3f2ddcSSimon J. Gerraty o cond.c: simplify control flow in CondParser_Comparison 2161d3f2ddcSSimon J. Gerraty o job.c: fix echoing of command with '-' in silent target in jobs mode 2171d3f2ddcSSimon J. Gerraty o main.c: prefix the warning about read-only .OBJDIR with a colon 2181d3f2ddcSSimon J. Gerraty o parse.c: remove redundant conditions 2191d3f2ddcSSimon J. Gerraty o var.c: simplify control flow in ModifyWord_SysVSubst 2201d3f2ddcSSimon J. Gerraty 221a6f0e10bSSimon J. Gerraty2022-02-08 Simon J Gerraty <sjg@beast.crufty.net> 222a6f0e10bSSimon J. Gerraty 223a6f0e10bSSimon J. Gerraty * unit-tests/Makefile: disable opt-debug-x-trace on Linux if there 224a6f0e10bSSimon J. Gerraty is any chance we have dash as .SHELL 225a6f0e10bSSimon J. Gerraty 226a6f0e10bSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220208 227a6f0e10bSSimon J. Gerraty Merge with NetBSD make, pick up 228a6f0e10bSSimon J. Gerraty o more unit tests 229a6f0e10bSSimon J. Gerraty o meta.c: use a variable to hold command line to be filtered 230a6f0e10bSSimon J. Gerraty to avoid any side effects from content of command line. 231a6f0e10bSSimon J. Gerraty 2329f45a3c8SSimon J. Gerraty2022-02-04 Simon J Gerraty <sjg@beast.crufty.net> 2339f45a3c8SSimon J. Gerraty 2349f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220204 2359f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 2369f45a3c8SSimon J. Gerraty o use unsigned consistently for line numbers, avoid the need for %z 2379f45a3c8SSimon J. Gerraty o parse.c: do not step off end of input in Parse_IsVar 2389f45a3c8SSimon J. Gerraty when checking for target local variable assignments 2399f45a3c8SSimon J. Gerraty 2409f45a3c8SSimon J. Gerraty2022-02-02 Simon J Gerraty <sjg@beast.crufty.net> 2419f45a3c8SSimon J. Gerraty 2429f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220202 2439f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 2449f45a3c8SSimon J. Gerraty o remove redundant declaration of HashIter_Init 2459f45a3c8SSimon J. Gerraty o make DEBUG0 simpler 2469f45a3c8SSimon J. Gerraty 2479f45a3c8SSimon J. Gerraty2022-01-30 Simon J Gerraty <sjg@beast.crufty.net> 2489f45a3c8SSimon J. Gerraty 2499f45a3c8SSimon J. Gerraty * cast gn->lineno to avoid %z 2509f45a3c8SSimon J. Gerraty 2519f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220130 2529f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 2539f45a3c8SSimon J. Gerraty o more unit tests 2549f45a3c8SSimon J. Gerraty o make GNode lineno unsigned to please lint 2559f45a3c8SSimon J. Gerraty o print location of recursive variable references in commands 2569f45a3c8SSimon J. Gerraty o print "stack trace" (makefile includes) on fatal errors 2579f45a3c8SSimon J. Gerraty o make.1: refine documentation for target local assignments 2589f45a3c8SSimon J. Gerraty 2599f45a3c8SSimon J. Gerraty2022-01-28 Simon J Gerraty <sjg@beast.crufty.net> 2609f45a3c8SSimon J. Gerraty 2619f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220128 2629f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 2639f45a3c8SSimon J. Gerraty o inline functions called only once 2649f45a3c8SSimon J. Gerraty o for.c: clean up AddEscape for building the body of a .for loop 2659f45a3c8SSimon J. Gerraty o hash.c: merge duplicate code for finding an entry in a hash table 2669f45a3c8SSimon J. Gerraty replace HashEntry_KeyEquals with strncmp 2679f45a3c8SSimon J. Gerraty o make.1: document quirks of target local variable assignments. 2689f45a3c8SSimon J. Gerraty o parse.c: cleanup white-space 2699f45a3c8SSimon J. Gerraty 2709f45a3c8SSimon J. Gerraty2022-01-26 Simon J Gerraty <sjg@beast.crufty.net> 2719f45a3c8SSimon J. Gerraty 2729f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220126 2739f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 2749f45a3c8SSimon J. Gerraty o allow setting target local variables 2759f45a3c8SSimon J. Gerraty o more unit tests 2769f45a3c8SSimon J. Gerraty o add missing newline after "cannot continue" message 2779f45a3c8SSimon J. Gerraty o meta.c: clean up eat_dots 2789f45a3c8SSimon J. Gerraty o parse.c: fix filename in warning about duplicate script 2799f45a3c8SSimon J. Gerraty o var.c: when expanding nested variables, check simple things first 2809f45a3c8SSimon J. Gerraty 2819f45a3c8SSimon J. Gerraty2022-01-16 Simon J Gerraty <sjg@beast.crufty.net> 2829f45a3c8SSimon J. Gerraty 2839f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220116 2849f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 2859f45a3c8SSimon J. Gerraty o fix for unit-tests/varname-makeflags on non-BSD systems 2869f45a3c8SSimon J. Gerraty o use Var_Exists rather than Var_Value where appropriate 2879f45a3c8SSimon J. Gerraty o remove unnecessary functions for expanding variable names 2889f45a3c8SSimon J. Gerraty o cond.c: inline EvalBare 2899f45a3c8SSimon J. Gerraty o main.c: lint cleanup 2909f45a3c8SSimon J. Gerraty o parse.c: condense code in Parse_IsVar 2919f45a3c8SSimon J. Gerraty use islower for parsing directives (none have upper case) 2929f45a3c8SSimon J. Gerraty 2939f45a3c8SSimon J. Gerraty2022-01-12 Simon J Gerraty <sjg@beast.crufty.net> 2949f45a3c8SSimon J. Gerraty 2959f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220112 2969f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 2979f45a3c8SSimon J. Gerraty o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before 2989f45a3c8SSimon J. Gerraty comparion, rarely needed but useful when it is. 2999f45a3c8SSimon J. Gerraty 3009f45a3c8SSimon J. Gerraty2022-01-10 Simon J Gerraty <sjg@beast.crufty.net> 3019f45a3c8SSimon J. Gerraty 3029f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220110 3039f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 3049f45a3c8SSimon J. Gerraty o inline Buf_Clear 3059f45a3c8SSimon J. Gerraty o remove redundant braces 3069f45a3c8SSimon J. Gerraty o rename and inline Targ_Precious 3079f45a3c8SSimon J. Gerraty o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf 3089f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops 3099f45a3c8SSimon J. Gerraty fix reported line numbers of continuation lines 3109f45a3c8SSimon J. Gerraty add details about .for loop variables to stack traces 3119f45a3c8SSimon J. Gerraty o job.c: reduce code for initializing error handling in shell 3129f45a3c8SSimon J. Gerraty o main.c: in Cmd_Exec, return error message instead of format string 3139f45a3c8SSimon J. Gerraty have as few statements as possible between va_start and va_end 3149f45a3c8SSimon J. Gerraty add debug logging for capturing the output of external commands 3159f45a3c8SSimon J. Gerraty o make.c: use consistent variable names for varargs 3169f45a3c8SSimon J. Gerraty o make_malloc.c: remove duplicate code from bmake_strdup 3179f45a3c8SSimon J. Gerraty o parse.c: add missing printflike annotations 3189f45a3c8SSimon J. Gerraty remove redundant lines from stack traces 3199f45a3c8SSimon J. Gerraty fix stack traces in -dp mode 3209f45a3c8SSimon J. Gerraty reduce confusing code in ParseForLoop 3219f45a3c8SSimon J. Gerraty fix line number in debug log after returning from a file 3229f45a3c8SSimon J. Gerraty rename IFile and its fields to match their actual content 3239f45a3c8SSimon J. Gerraty clean up ParseDependencySources 3249f45a3c8SSimon J. Gerraty o var.c: shorten ApplyModifier_Assign 3259f45a3c8SSimon J. Gerraty rename is_shell_metachar, fix character conversion warning 3269f45a3c8SSimon J. Gerraty merge calls to ApplyModifier_Time 3279f45a3c8SSimon J. Gerraty merge duplicate code for modifiers 'gmtime' and 'localtime' 3289f45a3c8SSimon J. Gerraty 3299f45a3c8SSimon J. Gerraty2022-01-04 Simon J Gerraty <sjg@beast.crufty.net> 3309f45a3c8SSimon J. Gerraty 3319f45a3c8SSimon J. Gerraty * parse.c: loadfile restore extra byte in buffer. 3329f45a3c8SSimon J. Gerraty 3339f45a3c8SSimon J. Gerraty2022-01-01 Simon J Gerraty <sjg@beast.crufty.net> 3349f45a3c8SSimon J. Gerraty 3359f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20220101 3369f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 3379f45a3c8SSimon J. Gerraty o more unit-tests 3389f45a3c8SSimon J. Gerraty o remove unnecessary words from command line options in CmdOpts 3399f45a3c8SSimon J. Gerraty o rename eunlink to unlink_file 3409f45a3c8SSimon J. Gerraty o cond.c: make ParseWord in condition parser simpler 3419f45a3c8SSimon J. Gerraty internally return false for irrelevant leaves in conditions 3429f45a3c8SSimon J. Gerraty replace table for function lookup in conditions with simple code 3439f45a3c8SSimon J. Gerraty merge duplicate types CondEvalResult and CondResult 3449f45a3c8SSimon J. Gerraty o for.c: clean up handling of .for loops and .include directives 3459f45a3c8SSimon J. Gerraty o main.c: constify cached_realpath 3469f45a3c8SSimon J. Gerraty clean up Cmd_Exec 3479f45a3c8SSimon J. Gerraty o parse.c: sync API documentation 3489f45a3c8SSimon J. Gerraty fix error message when reading more than 1 GB from stdin 3499f45a3c8SSimon J. Gerraty clean up parsing of makefiles 3509f45a3c8SSimon J. Gerraty fix line number in error message about open conditionals 3519f45a3c8SSimon J. Gerraty unexport types VarAssignOp and VarAssign 3529f45a3c8SSimon J. Gerraty clean up function names 3539f45a3c8SSimon J. Gerraty remove redundant parameters in dependency parsing functions 3549f45a3c8SSimon J. Gerraty reduce scope of the list of wildcard target names 3559f45a3c8SSimon J. Gerraty extract OP_NOTARGET into separate function 3569f45a3c8SSimon J. Gerraty clean up variable names for parsing dependency lines 3579f45a3c8SSimon J. Gerraty make debug logging a bit more human-friendly 3589f45a3c8SSimon J. Gerraty o var.c: condense code in ApplyModifier_Assign 3599f45a3c8SSimon J. Gerraty 3609f45a3c8SSimon J. Gerraty2021-12-21 Simon J Gerraty <sjg@beast.crufty.net> 3619f45a3c8SSimon J. Gerraty 3629f45a3c8SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211221 3639f45a3c8SSimon J. Gerraty Merge with NetBSD make, pick up 3649f45a3c8SSimon J. Gerraty o more unit-tests 3659f45a3c8SSimon J. Gerraty o style cleanup 3669f45a3c8SSimon J. Gerraty o in CLEANUP mode, free interned strings at the very end 3679f45a3c8SSimon J. Gerraty o fix memory leak for filenames in .for loops 3689f45a3c8SSimon J. Gerraty o buf.c: avoid memory leak 3699f45a3c8SSimon J. Gerraty o cond.c: condense CondParser_ComparisonOp 3709f45a3c8SSimon J. Gerraty o hash.c: change return type of HashTable_Set to void 3719f45a3c8SSimon J. Gerraty o job.c: change return type of Compat_RunCommand from int to bool 3729f45a3c8SSimon J. Gerraty o main.c: remove bmake_free 3739f45a3c8SSimon J. Gerraty o parse.c: condense repetetive code in ParseDirective 3749f45a3c8SSimon J. Gerraty remove dead code for handling traditional include directives 3759f45a3c8SSimon J. Gerraty clean up parsing of variable assignments 3769f45a3c8SSimon J. Gerraty remove unreachable code for parsing the dependency operator 3779f45a3c8SSimon J. Gerraty clean up loading of files 3789f45a3c8SSimon J. Gerraty fix memory leak in IncludeFile 3799f45a3c8SSimon J. Gerraty o var.c: fix memory leak when parsing a variable name 3809f45a3c8SSimon J. Gerraty fix memory leak from ${.SUFFIXES} 3819f45a3c8SSimon J. Gerraty reduce memory allocation in modifier ':?' and ':C' 3829f45a3c8SSimon J. Gerraty condense RegexReplace for the modifier ':C' and avoid strlen 3839f45a3c8SSimon J. Gerraty merge duplicate code for memory handling in Var_Parse 3849f45a3c8SSimon J. Gerraty distinguish between short-lived and environment variables 3859f45a3c8SSimon J. Gerraty rename VarFreeEnv to VarFreeShortLived 3869f45a3c8SSimon J. Gerraty 38712904384SSimon J. Gerraty2021-12-15 Simon J Gerraty <sjg@beast.crufty.net> 38812904384SSimon J. Gerraty 38912904384SSimon J. Gerraty * cond.c: fix mem leak in CondParser_Leaf 39012904384SSimon J. Gerraty 39112904384SSimon J. Gerraty2021-12-12 Simon J Gerraty <sjg@beast.crufty.net> 39212904384SSimon J. Gerraty 39312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211212 39412904384SSimon J. Gerraty Merge with NetBSD make, pick up 39512904384SSimon J. Gerraty o rename Parse_SetInput to Parse_PushInput 39612904384SSimon J. Gerraty o remove remove period from end of error messages and warnings 39712904384SSimon J. Gerraty to be more consistent 39812904384SSimon J. Gerraty o arch.c: use simpler memory management for parsing archive members 39912904384SSimon J. Gerraty o cond.c: rework and reduce recursion 40012904384SSimon J. Gerraty o for.c: rename some functions to better reflect purpose 40112904384SSimon J. Gerraty o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string. 40212904384SSimon J. Gerraty o var.c: in parse errors, mark whitespace more clearly 40312904384SSimon J. Gerraty inline ParseEmptyArg into CondParser_FuncCallEmpty 40412904384SSimon J. Gerraty minimize calls to LazyBuf_Get in ParseVarnameLong 40512904384SSimon J. Gerraty treat .SUFFIXES as a read-only variable 40612904384SSimon J. Gerraty 40712904384SSimon J. Gerraty2021-12-07 Simon J Gerraty <sjg@beast.crufty.net> 40812904384SSimon J. Gerraty 40912904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211207 41012904384SSimon J. Gerraty Merge with NetBSD make, pick up 41112904384SSimon J. Gerraty o inline HashIter_Init 41212904384SSimon J. Gerraty o parse.c: inline common subexpression in ParseRawLine 41312904384SSimon J. Gerraty o var.c: merge branches for modifiers ':D' and ':U' 41412904384SSimon J. Gerraty extract common code into Expr_Words 41512904384SSimon J. Gerraty extract common code into Expr_Str 41612904384SSimon J. Gerraty move low-level implementation details out of Var_Parse 41712904384SSimon J. Gerraty 41812904384SSimon J. Gerraty2021-12-06 Simon J Gerraty <sjg@beast.crufty.net> 41912904384SSimon J. Gerraty 42012904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211206 42112904384SSimon J. Gerraty Merge with NetBSD make, pick up 42212904384SSimon J. Gerraty o add unit-tests/varmod-loop-delete 42312904384SSimon J. Gerraty o for.c: inline Str_Words - reduce memory allocation 42412904384SSimon J. Gerraty o parse.c: do not try to expand fixed variable names 42512904384SSimon J. Gerraty only allocate the name of an included file if necessary 42612904384SSimon J. Gerraty clean up ParseInclude 42712904384SSimon J. Gerraty o var.c: fix use-after-free in modifier ':@' 42812904384SSimon J. Gerraty save a memory allocation in each modifier ':O' and ':u' 42912904384SSimon J. Gerraty save a memory allocation in the modifier ':[...]' 43012904384SSimon J. Gerraty in UnexportVars, replace Str_Words with Substring_Words to 43112904384SSimon J. Gerraty reduce allocations and copying. 43212904384SSimon J. Gerraty 43312904384SSimon J. Gerraty2021-12-04 Simon J Gerraty <sjg@beast.crufty.net> 43412904384SSimon J. Gerraty 43512904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211204 43612904384SSimon J. Gerraty Merge with NetBSD make, pick up 43712904384SSimon J. Gerraty o flesh out a number of tests 43812904384SSimon J. Gerraty o replace enums with bitfields, this simplifies a lot of code. 43912904384SSimon J. Gerraty o var.c: refactor ParseModifierPartSubst 44012904384SSimon J. Gerraty 44112904384SSimon J. Gerraty2021-10-24 Simon J Gerraty <sjg@beast.crufty.net> 44212904384SSimon J. Gerraty 44312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211024 44412904384SSimon J. Gerraty Merge with NetBSD make, pick up 44512904384SSimon J. Gerraty o Punt on write errors - ENOSPC etc. 44612904384SSimon J. Gerraty 44712904384SSimon J. Gerraty2021-10-22 Simon J Gerraty <sjg@beast.crufty.net> 44812904384SSimon J. Gerraty 44912904384SSimon J. Gerraty * configure.in: use_defshell, set both DEFSHELL_INDEX 45012904384SSimon J. Gerraty and defshell_path if appropriate. 45112904384SSimon J. Gerraty This makes it easier to use say the KSH specification with 45212904384SSimon J. Gerraty and alternate path for the shell. 45312904384SSimon J. Gerraty 45412904384SSimon J. Gerraty * configure.in compat.c: for SCO we need to force UseShell 45512904384SSimon J. Gerraty 45612904384SSimon J. Gerraty * configure.in: SCO /bin/sh is not usable, provide a list of 45712904384SSimon J. Gerraty alternatives for use as .SHELL. 45812904384SSimon J. Gerraty We still have to mark some tests as broken, plus more if we end up 45912904384SSimon J. Gerraty with ksh as .SHELL. 46012904384SSimon J. Gerraty Issue a warning about skipped tests. 46112904384SSimon J. Gerraty 46212904384SSimon J. Gerraty * boot-strap: leave TOOL_DIFF to configure 46312904384SSimon J. Gerraty 46412904384SSimon J. Gerraty * configure.in: on SCO native cc is not usable, 46512904384SSimon J. Gerraty gcc is to be found in /usr/gnu/bin 46612904384SSimon J. Gerraty and while ancient is at least able to compile bmake. 46712904384SSimon J. Gerraty Thus we add /usr/gnu/bin to PATH if it exists, and later 46812904384SSimon J. Gerraty check if $CC would have been found via $PATH. 46912904384SSimon J. Gerraty If not we set CC to the full path of $CC. 47012904384SSimon J. Gerraty Also gnu diff is known to support -u, so if it exists use it. 47112904384SSimon J. Gerraty 47212904384SSimon J. Gerraty * configure.in: move getopt to AC_REPLACE_FUNCS 47312904384SSimon J. Gerraty also add AC_C_INLINE - in an attempt to compile using 47412904384SSimon J. Gerraty native cc on SCO. 47512904384SSimon J. Gerraty 47612904384SSimon J. Gerraty * configure.in: check for stresep as well as strsep, since we 47712904384SSimon J. Gerraty define the later to the former if necessary, and if we have to 47812904384SSimon J. Gerraty provide stresep we also need to provide a prototype. 47912904384SSimon J. Gerraty 48012904384SSimon J. Gerraty * configure.in: we no longer need to worry about 48112904384SSimon J. Gerraty sys/cdefs.h providing __RCSID which simplifies things quite a bit. 48212904384SSimon J. Gerraty 48312904384SSimon J. Gerraty * make.h: make sure we have __RCSID 48412904384SSimon J. Gerraty 48512904384SSimon J. Gerraty * unit-tests/Makefile.config.in: add TOOL_DIFF so configure 48612904384SSimon J. Gerraty can control it. 48712904384SSimon J. Gerraty 48812904384SSimon J. Gerraty2021-10-20 Simon J Gerraty <sjg@beast.crufty.net> 48912904384SSimon J. Gerraty 49012904384SSimon J. Gerraty * VERSION: 20211020 49112904384SSimon J. Gerraty Merge with NetBSD make, pick up 49212904384SSimon J. Gerraty o confirm sync of unit-tests 49312904384SSimon J. Gerraty 49412904384SSimon J. Gerraty2021-10-18 Simon J Gerraty <sjg@beast.crufty.net> 49512904384SSimon J. Gerraty 49612904384SSimon J. Gerraty * configure.in: check if timezone Europe/Berlin is supported 49712904384SSimon J. Gerraty if not try UTC-1 49812904384SSimon J. Gerraty * configure.in: if .OBJDIR is $srcdir/obj we need to create a 49912904384SSimon J. Gerraty symlink unit-tests -> ../unit-tests/obj so that 50012904384SSimon J. Gerraty unit-tests/Makefile.config is put in the right place. 50112904384SSimon J. Gerraty * refine filtering of .OBJDIR in unit-tests 50212904384SSimon J. Gerraty 50312904384SSimon J. Gerraty2021-10-16 Simon J Gerraty <sjg@beast.crufty.net> 50412904384SSimon J. Gerraty 50512904384SSimon J. Gerraty * Fix unit-tests on Minix 3.2.0 50612904384SSimon J. Gerraty o job.c: do not punt if read of token pipe fails for EAGAIN. 50712904384SSimon J. Gerraty On Minix at least, we are not ready to read the childExitJob pipe 50812904384SSimon J. Gerraty when poll says we are. 50912904384SSimon J. Gerraty There should actually be no reason for this pipe to be 51012904384SSimon J. Gerraty non-blocking, but while that works fine on {Net,Free}BSD it 51112904384SSimon J. Gerraty breaks another test case on Minix. 51212904384SSimon J. Gerraty o unit-tests/Makefile: deal with variants of error messages 51312904384SSimon J. Gerraty and use of obj as .OBJDIR 51412904384SSimon J. Gerraty 51512904384SSimon J. Gerraty2021-10-14 Simon J Gerraty <sjg@beast.crufty.net> 51612904384SSimon J. Gerraty 51712904384SSimon J. Gerraty * configure.in: add sigaction to AC_REPLACE_FUNCS 51812904384SSimon J. Gerraty we also need to check for sigaddset etc just for the benefit of 51912904384SSimon J. Gerraty sigact.c 52012904384SSimon J. Gerraty 52112904384SSimon J. Gerraty * Add sigact.c as sigaction.c so this "just works". 52212904384SSimon J. Gerraty This should have been done back when bmake_signal started using 52312904384SSimon J. Gerraty sigaction (I only just noticed that sigact.c wasn't here ;-) 52412904384SSimon J. Gerraty Note: I no longer have access to any system where this would matter. 52512904384SSimon J. Gerraty 52612904384SSimon J. Gerraty2021-10-13 Simon J Gerraty <sjg@beast.crufty.net> 52712904384SSimon J. Gerraty 52812904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211011 52912904384SSimon J. Gerraty 53012904384SSimon J. Gerraty * Makefile: cleanup a little 53112904384SSimon J. Gerraty 53212904384SSimon J. Gerraty * configure.in: check for sigsetmask 53312904384SSimon J. Gerraty 53412904384SSimon J. Gerraty2021-10-01 Simon J Gerraty <sjg@beast.crufty.net> 53512904384SSimon J. Gerraty 53612904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20211001 53712904384SSimon J. Gerraty Merge with NetBSD make, pick up 53812904384SSimon J. Gerraty o reduce locations reducing text size 53912904384SSimon J. Gerraty o remove unnecessary const 54012904384SSimon J. Gerraty o cond.c: fix lint warning on i386 54112904384SSimon J. Gerraty do not allow unquoted 'left == right' after modifier ':?' 54212904384SSimon J. Gerraty o hash.c: fix build for DEBUG_HASH_LOOKUP 54312904384SSimon J. Gerraty o var.c: fix memory leak in error case of the ':?' modifier 54412904384SSimon J. Gerraty 54512904384SSimon J. Gerraty2021-09-11 Simon J Gerraty <sjg@beast.crufty.net> 54612904384SSimon J. Gerraty 54712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210911 54812904384SSimon J. Gerraty Merge with NetBSD make, pick up 54912904384SSimon J. Gerraty o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval 55012904384SSimon J. Gerraty 55112904384SSimon J. Gerraty2021-09-08 Simon J Gerraty <sjg@beast.crufty.net> 55212904384SSimon J. Gerraty 55312904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210906 55412904384SSimon J. Gerraty Merge with NetBSD make, pick up 55512904384SSimon J. Gerraty o more unit tests 55612904384SSimon J. Gerraty o lint cleanup 55712904384SSimon J. Gerraty o rename some functions to better fit purpose 55812904384SSimon J. Gerraty o for.c: cleanup - remove unnecessary optimization 55912904384SSimon J. Gerraty fix embedded newlines 56012904384SSimon J. Gerraty o parse.c: correct case for CVS/RCS 56112904384SSimon J. Gerraty 56212904384SSimon J. Gerraty2021-08-11 Simon J Gerraty <sjg@beast.crufty.net> 56312904384SSimon J. Gerraty 56412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210808 56512904384SSimon J. Gerraty Merge with NetBSD make, pick up 56612904384SSimon J. Gerraty o var.c: remove redundant initialization in ApplyModifier_Order 56712904384SSimon J. Gerraty 56812904384SSimon J. Gerraty * mk/options.mk: issue warning for incorrect usage 56912904384SSimon J. Gerraty 57012904384SSimon J. Gerraty2021-08-03 Simon J Gerraty <sjg@beast.crufty.net> 57112904384SSimon J. Gerraty 57212904384SSimon J. Gerraty * var.c: use long for :On if we don't have a 64bit int type 57312904384SSimon J. Gerraty 57412904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210803 57512904384SSimon J. Gerraty Merge with NetBSD make, pick up 57612904384SSimon J. Gerraty o rework varmod-order tests to avoid qsort instability 57712904384SSimon J. Gerraty o make.1: clarify :On entry 57812904384SSimon J. Gerraty 57912904384SSimon J. Gerraty2021-07-31 Simon J Gerraty <sjg@beast.crufty.net> 58012904384SSimon J. Gerraty 58112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210731 58212904384SSimon J. Gerraty Merge with NetBSD make, pick up 58312904384SSimon J. Gerraty o fix some lint issues 58412904384SSimon J. Gerraty o more unit tests 58512904384SSimon J. Gerraty o var.c: rework of ApplyModifier_Order 58612904384SSimon J. Gerraty 58712904384SSimon J. Gerraty2021-07-30 Simon J Gerraty <sjg@beast.crufty.net> 58812904384SSimon J. Gerraty 58912904384SSimon J. Gerraty * util.c: add strto*l if HAVE_STRTO*L not defined 59012904384SSimon J. Gerraty 59112904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210730 59212904384SSimon J. Gerraty Merge with NetBSD make, pick up 59312904384SSimon J. Gerraty o var.c: add :On and :Orn for numeric sort 59412904384SSimon J. Gerraty disabled if no 64bit type available. 59512904384SSimon J. Gerraty o _strtol.h: to implement strto*l functions 59612904384SSimon J. Gerraty 59712904384SSimon J. Gerraty2021-07-04 Simon J Gerraty <sjg@beast.crufty.net> 59812904384SSimon J. Gerraty 59912904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210704 60012904384SSimon J. Gerraty Merge with NetBSD make, pick up 60112904384SSimon J. Gerraty o unit-tests: fix some tests to be more portable 60212904384SSimon J. Gerraty - job-output-null not all shells do the same number of write calls 60312904384SSimon J. Gerraty - objdir-writable if TMPDIR is set; /tmp may not be usable 60412904384SSimon J. Gerraty 60512904384SSimon J. Gerraty2021-07-01 Simon J Gerraty <sjg@beast.crufty.net> 60612904384SSimon J. Gerraty 60712904384SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210701 60812904384SSimon J. Gerraty Merge with NetBSD make, pick up 60912904384SSimon J. Gerraty o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped; 61012904384SSimon J. Gerraty some tests just cannot work in some environments. 61112904384SSimon J. Gerraty o buf.c: simpler upper bound for length in Buf_AddInt 61212904384SSimon J. Gerraty o cond.c: fix grammar in error message for malformed conditional 61312904384SSimon J. Gerraty o for.c: prevent newline injection (from ${.newline}) in .for loops 61412904384SSimon J. Gerraty o var.c: use more practical data type in RegexReplace 61512904384SSimon J. Gerraty (avoid need for %zu) 61612904384SSimon J. Gerraty extract RegexReplace from ModifyWord_SubstRegex 61712904384SSimon J. Gerraty 618b0c40a00SSimon J. Gerraty2021-06-21 Simon J Gerraty <sjg@beast.crufty.net> 619b0c40a00SSimon J. Gerraty 620b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210621 621b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 622b0c40a00SSimon J. Gerraty o var.c: only report error for unmatched regex subexpression 623b0c40a00SSimon J. Gerraty when linting (-dL) since we cannot tell when an unmatched 624b0c40a00SSimon J. Gerraty subexpression is an expected result. 625b0c40a00SSimon J. Gerraty o move unmatched regex subexpression tests to 626b0c40a00SSimon J. Gerraty varmod-subst-regex.mk and enable strict (lint) mode 627b0c40a00SSimon J. Gerraty 628b0c40a00SSimon J. Gerraty2021-06-16 Simon J Gerraty <sjg@beast.crufty.net> 629b0c40a00SSimon J. Gerraty 630b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210616 631b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 632b0c40a00SSimon J. Gerraty o more unit tests 633b0c40a00SSimon J. Gerraty o cond.c: rename If_Eval to EvalBare 634b0c40a00SSimon J. Gerraty improve function names for parsing conditions 635b0c40a00SSimon J. Gerraty o job.c: fix error handling of targets that cannot be made 636b0c40a00SSimon J. Gerraty o var.c: uncompress code in ApplyModifier_Unique 637b0c40a00SSimon J. Gerraty 638b0c40a00SSimon J. Gerraty2021-05-18 Simon J Gerraty <sjg@beast.crufty.net> 639b0c40a00SSimon J. Gerraty 640b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210518 641b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 642b0c40a00SSimon J. Gerraty o fix unit-tests/opt-chdir to cope with /nonexistent existing. 643b0c40a00SSimon J. Gerraty o job.c: Print -de error information when running multiple jobs 644b0c40a00SSimon J. Gerraty 645b0c40a00SSimon J. Gerraty2021-04-20 Simon J Gerraty <sjg@beast.crufty.net> 646b0c40a00SSimon J. Gerraty 647b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210420 648b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 649b0c40a00SSimon J. Gerraty o use C99 bool type 650b0c40a00SSimon J. Gerraty o convert VarEvalFlags back into an enum 651b0c40a00SSimon J. Gerraty o cond.c: do not complain when skipping the condition 'no >= 10' 652b0c40a00SSimon J. Gerraty o hash.c: avoid allocating memory for simple variable names 653b0c40a00SSimon J. Gerraty o job.c: use distinct wording for writing to the shell commands file 654b0c40a00SSimon J. Gerraty remove type name for the abort status in job handling 655b0c40a00SSimon J. Gerraty rename PrintOutput to PrintFilteredOutput to avoid confusion 656b0c40a00SSimon J. Gerraty o main.c: avoid double slash in name of temporary directory 657b0c40a00SSimon J. Gerraty o var.c: use straight quotes for error 'Bad conditional expression' 658b0c40a00SSimon J. Gerraty reduce memory allocations in the modifiers ':D' and ':U' 659b0c40a00SSimon J. Gerraty rename members of ModifyWord_LoopArgs 660b0c40a00SSimon J. Gerraty clean up pattern flags for the modifiers ':S' and ':C' 661b0c40a00SSimon J. Gerraty reduce memory allocation and strlen calls in modifier ':from=to' 662b0c40a00SSimon J. Gerraty in the ':Q' modifier, only allocate memory if necessary 663b0c40a00SSimon J. Gerraty improve performance for LazyBuf 664b0c40a00SSimon J. Gerraty remove redundant parameter from ParseVarnameLong 665b0c40a00SSimon J. Gerraty migrate ParseModifierPart to use Substring 666b0c40a00SSimon J. Gerraty avoid unnecessary calls to strlen when evaluating modifiers 667b0c40a00SSimon J. Gerraty migrate ModifyWord functions to use Substring 668b0c40a00SSimon J. Gerraty migrate handling of the modifier ':S,from,to,' to Substring 669b0c40a00SSimon J. Gerraty reduce debug logging and memory allocation for ${:U...} 670b0c40a00SSimon J. Gerraty reduce verbosity of the -dv debug logging for standard cases 671b0c40a00SSimon J. Gerraty clean up debug logging for ':M' and ':N' 672b0c40a00SSimon J. Gerraty disallow '$' in the variable name of the modifier ':@' 673b0c40a00SSimon J. Gerraty simplify access to the name of an expression during evaluation 674b0c40a00SSimon J. Gerraty 675b0c40a00SSimon J. Gerraty2021-03-30 Simon J Gerraty <sjg@beast.crufty.net> 676b0c40a00SSimon J. Gerraty 677b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210330 678b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 679b0c40a00SSimon J. Gerraty o replace enum bit-field with struct bit-field for VarEvalFlags 680b0c40a00SSimon J. Gerraty o rename VARE_NONE to VARE_PARSE_ONLY 681b0c40a00SSimon J. Gerraty o var.c: rename ApplyModifiersState to ModChain 682b0c40a00SSimon J. Gerraty fix double varname expansion in the variable modifier '::=' 683b0c40a00SSimon J. Gerraty change debug log for variable evaluation flags to lowercase 684b0c40a00SSimon J. Gerraty 685b0c40a00SSimon J. Gerraty2021-03-14 Simon J Gerraty <sjg@beast.crufty.net> 686b0c40a00SSimon J. Gerraty 687b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210314 688b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 689b0c40a00SSimon J. Gerraty o var.c: avoid evaluating many modifiers in parse only mode 690b0c40a00SSimon J. Gerraty in strict mode (-dL) many variable references are parsed twice, 691b0c40a00SSimon J. Gerraty the first time just to report parse errors early, so we want to 692b0c40a00SSimon J. Gerraty avoid side effects and wasted effort to the extent possible. 693b0c40a00SSimon J. Gerraty 694b0c40a00SSimon J. Gerraty2021-02-26 Simon J Gerraty <sjg@beast.crufty.net> 695b0c40a00SSimon J. Gerraty 696b0c40a00SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210226 697b0c40a00SSimon J. Gerraty Merge with NetBSD make, pick up 698b0c40a00SSimon J. Gerraty o remove freestanding freeIt variables 699b0c40a00SSimon J. Gerraty link via FStr 700b0c40a00SSimon J. Gerraty o var.c: restructure code in ParseVarname to target human readers 701b0c40a00SSimon J. Gerraty improve error message for; 702b0c40a00SSimon J. Gerraty bad modifier in variable expression 703b0c40a00SSimon J. Gerraty unclosed modifier 704b0c40a00SSimon J. Gerraty unknown modifier 705b0c40a00SSimon J. Gerraty remove redundant parameter of ApplySingleModifier 706b0c40a00SSimon J. Gerraty explain non-obvious code around indirect variable modifiers 707b0c40a00SSimon J. Gerraty quote ':S' in error message about missing delimiter 708b0c40a00SSimon J. Gerraty extract ParseModifier_Match into separate function 709b0c40a00SSimon J. Gerraty add context information to error message about ':range' modifier 710b0c40a00SSimon J. Gerraty add quotes around variable name in an error message 711b0c40a00SSimon J. Gerraty reorder code in ModifyWords 712b0c40a00SSimon J. Gerraty use more common parameter order for VarSelectWords 713b0c40a00SSimon J. Gerraty make ModifyWord_Subst a little easier to understand 714b0c40a00SSimon J. Gerraty do not expand variable name from the command line twice 715b0c40a00SSimon J. Gerraty extract ExistsInCmdline from Var_SetWithFlags 716b0c40a00SSimon J. Gerraty save a hash map lookup when defining a cmdline variable 717b0c40a00SSimon J. Gerraty clean up VarAdd, Var_Delete, Var_ReexportVars 718b0c40a00SSimon J. Gerraty use bit-shift expressions for VarFlags constants 719b0c40a00SSimon J. Gerraty rename constants for VarFlags 720b0c40a00SSimon J. Gerraty rename ExprDefined constants for debug logging 721b0c40a00SSimon J. Gerraty rename ExprStatus to ExprDefined 722b0c40a00SSimon J. Gerraty split parameters for evaluating variable expressions 723b0c40a00SSimon J. Gerraty reduce redundant code around ModifyWords 724b0c40a00SSimon J. Gerraty print error about failed shell command before overwriting variable 725b0c40a00SSimon J. Gerraty clean up ValidShortVarname, ParseVarnameShort 726b0c40a00SSimon J. Gerraty rename VarExprStatus to ExprStatus 727b0c40a00SSimon J. Gerraty add functions for assigning the value of an expression 728b0c40a00SSimon J. Gerraty rename ApplyModifiersState_Define to Expr_Define 729b0c40a00SSimon J. Gerraty condense the code for parsing :S and :C modifiers 730b0c40a00SSimon J. Gerraty 731dba7b0efSSimon J. Gerraty2021-02-06 Simon J Gerraty <sjg@beast.crufty.net> 732dba7b0efSSimon J. Gerraty 733dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210206 734dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 735dba7b0efSSimon J. Gerraty o unit-tests: use private TMPDIR to avoid errors from other users 736dba7b0efSSimon J. Gerraty 737dba7b0efSSimon J. Gerraty2021-02-05 Simon J Gerraty <sjg@beast.crufty.net> 738dba7b0efSSimon J. Gerraty 739dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210205 740dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 741dba7b0efSSimon J. Gerraty o avoid strdup in mkTempFile 742dba7b0efSSimon J. Gerraty o always use vfork 743dba7b0efSSimon J. Gerraty o rename context and ctxt to scope 744dba7b0efSSimon J. Gerraty o rename some VAR constants to SCOPE 745dba7b0efSSimon J. Gerraty o Var_ functions, move the scope to the front 746dba7b0efSSimon J. Gerraty o use shortcut functions Global_Set and Global_Append 747dba7b0efSSimon J. Gerraty o add shortcut Global_Delete for deleting a global variable 748dba7b0efSSimon J. Gerraty o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete 749dba7b0efSSimon J. Gerraty o compat.c: when exiting due to an error, print graph information 750dba7b0efSSimon J. Gerraty o enum.c: remove overengineered Enum_ValueToString 751dba7b0efSSimon J. Gerraty o make.c: remove unused INTERNAL flag 752dba7b0efSSimon J. Gerraty remove unused return type of MakeBuildParent 753dba7b0efSSimon J. Gerraty o parse.c: replace parse error "Need an operator" with better message 754dba7b0efSSimon J. Gerraty o var.c: improve documentation about variable scopes 755dba7b0efSSimon J. Gerraty rename Var_ValueDirect to GNode_ValueDirect 756dba7b0efSSimon J. Gerraty rename old Var_SetWithFlags to Var_SetExpandWithFlags 757dba7b0efSSimon J. Gerraty merge SetVar into Var_SetWithFlags 758dba7b0efSSimon J. Gerraty split Var_Exists into plain Var_Exists and Var_ExistsExpand 759dba7b0efSSimon J. Gerraty split Var_Append into Var_Append and Var_AppendExpand 760dba7b0efSSimon J. Gerraty replace enum bit-set with bit-field 761dba7b0efSSimon J. Gerraty o unit-tests/var-op-shell: use kill rather than kill -14 762dba7b0efSSimon J. Gerraty which broke on darwin with recent update. 763dba7b0efSSimon J. Gerraty 764dba7b0efSSimon J. Gerraty2021-02-01 Simon J Gerraty <sjg@beast.crufty.net> 765dba7b0efSSimon J. Gerraty 766dba7b0efSSimon J. Gerraty * configure.in: check for sig_atomic_t and define it as 'int' 767dba7b0efSSimon J. Gerraty if missing. 768dba7b0efSSimon J. Gerraty 769dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210201 770dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 771dba7b0efSSimon J. Gerraty o use sig_atomic_t for caught_sigchld 772dba7b0efSSimon J. Gerraty 773dba7b0efSSimon J. Gerraty2021-01-30 Simon J Gerraty <sjg@beast.crufty.net> 774dba7b0efSSimon J. Gerraty 775dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210130 776dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 777dba7b0efSSimon J. Gerraty o more unit tests 778dba7b0efSSimon J. Gerraty o convert SearchPath to struct 779dba7b0efSSimon J. Gerraty o split Buf_Destroy into Buf_Done and Buf_DoneData 780dba7b0efSSimon J. Gerraty o for.c: split For_Eval into separate functions 781dba7b0efSSimon J. Gerraty rename struct For to struct ForLoop 782dba7b0efSSimon J. Gerraty o job.c: do not create empty shell files in jobs mode 783dba7b0efSSimon J. Gerraty rename JobOpenTmpFile to JobWriteShellCommands 784dba7b0efSSimon J. Gerraty reduce unnecessary calls to waitpid 785dba7b0efSSimon J. Gerraty o parse.c: in -dp mode, print stack trace with each diagnostic 786dba7b0efSSimon J. Gerraty 787dba7b0efSSimon J. Gerraty2021-01-23 Simon J Gerraty <sjg@beast.crufty.net> 788dba7b0efSSimon J. Gerraty 789dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210123 790dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 791dba7b0efSSimon J. Gerraty o rename Dir_Expand to SearchPath_Expand 792dba7b0efSSimon J. Gerraty o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags 793dba7b0efSSimon J. Gerraty o cond.c: fix debug output for comparison operators in conditionals 794dba7b0efSSimon J. Gerraty o dir.c: split Dir_FindFile into separate functions 795dba7b0efSSimon J. Gerraty 796dba7b0efSSimon J. Gerraty2021-01-20 Simon J Gerraty <sjg@beast.crufty.net> 797dba7b0efSSimon J. Gerraty 798dba7b0efSSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210120 799dba7b0efSSimon J. Gerraty Merge with NetBSD make, pick up 800dba7b0efSSimon J. Gerraty o fix some more lint nits 801dba7b0efSSimon J. Gerraty o refine some unit tests for portability 802dba7b0efSSimon J. Gerraty o cond.c: rework parsing 803dba7b0efSSimon J. Gerraty 80406b9b3e0SSimon J. Gerraty2021-01-10 Simon J Gerraty <sjg@beast.crufty.net> 80506b9b3e0SSimon J. Gerraty 80606b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210110 80706b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 80806b9b3e0SSimon J. Gerraty o fix lint warnings 80906b9b3e0SSimon J. Gerraty o consistently use boolean expressions in conditions 81006b9b3e0SSimon J. Gerraty 81106b9b3e0SSimon J. Gerraty2021-01-08 Simon J Gerraty <sjg@beast.crufty.net> 81206b9b3e0SSimon J. Gerraty 81306b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210108 81406b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 81506b9b3e0SSimon J. Gerraty o job.c: back to polling token pipe if we want a token 81606b9b3e0SSimon J. Gerraty o main.c: always print 'stopped in' on first call 81706b9b3e0SSimon J. Gerraty The execption is if we bail because of an abort token 81806b9b3e0SSimon J. Gerraty in which case just exit 6. 81906b9b3e0SSimon J. Gerraty 82006b9b3e0SSimon J. Gerraty2021-01-01 Simon J Gerraty <sjg@beast.crufty.net> 82106b9b3e0SSimon J. Gerraty 82206b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20210101 82306b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 82406b9b3e0SSimon J. Gerraty o Happy New Year! 82506b9b3e0SSimon J. Gerraty o rename CmdOpts.lint to strict 82606b9b3e0SSimon J. Gerraty o exit 2 on technical errors 82706b9b3e0SSimon J. Gerraty o replace pointers in controlling conditions with booleans 82806b9b3e0SSimon J. Gerraty o replace global preserveUndefined with VARE_KEEP_UNDEF 82906b9b3e0SSimon J. Gerraty o compat.c: re-export variables from the actual make process 83006b9b3e0SSimon J. Gerraty if using vfork this is the effect anyway 83106b9b3e0SSimon J. Gerraty o cond.c: clean up VarParseResult constants 83206b9b3e0SSimon J. Gerraty o for.c: fix undefined behavior in SubstVarLong 83306b9b3e0SSimon J. Gerraty make control flow in SubstVarLong of .for loops more obvious 83406b9b3e0SSimon J. Gerraty clean up SubstVarShort in .for loops 83506b9b3e0SSimon J. Gerraty extract ForSubstBody from ForReadMore 83606b9b3e0SSimon J. Gerraty clean up ForReadMore 83706b9b3e0SSimon J. Gerraty simplify termination condition for .for loop 83806b9b3e0SSimon J. Gerraty add error handling for .for loop items 83906b9b3e0SSimon J. Gerraty job.c: re-export variables from the actual make process 84006b9b3e0SSimon J. Gerraty parse.c: remove mmap for loading files, only allow files < 1 GiB 84106b9b3e0SSimon J. Gerraty fix edge case in := with undefined in variable name 84206b9b3e0SSimon J. Gerraty skip variable expansion in ParseDependencyTargetWord 84306b9b3e0SSimon J. Gerraty var.c: split ExportVar into separate functions 84406b9b3e0SSimon J. Gerraty clean up code in extracted ExportVar functions 84506b9b3e0SSimon J. Gerraty remove dead code from ApplyModifiersIndirect 84606b9b3e0SSimon J. Gerraty split Var_Subst into easily understandable functions 84706b9b3e0SSimon J. Gerraty clean up VarParseResult constants 84806b9b3e0SSimon J. Gerraty 84906b9b3e0SSimon J. Gerraty2020-12-25 Simon J Gerraty <sjg@beast.crufty.net> 85006b9b3e0SSimon J. Gerraty 85106b9b3e0SSimon J. Gerraty * main.c: use .MAKE.DEPENDFILE as set by makefiles 85206b9b3e0SSimon J. Gerraty 85306b9b3e0SSimon J. Gerraty2020-12-22 Simon J Gerraty <sjg@beast.crufty.net> 85406b9b3e0SSimon J. Gerraty 85506b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201222 85606b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 85706b9b3e0SSimon J. Gerraty o make DEBUG macro return boolean 85806b9b3e0SSimon J. Gerraty o parse.c: fix assertion failure for files without trailing newline 85906b9b3e0SSimon J. Gerraty o var.c: allow .undef to undefine multiple variables at once 86006b9b3e0SSimon J. Gerraty remove excess newline from parse errors 86106b9b3e0SSimon J. Gerraty 86206b9b3e0SSimon J. Gerraty2020-12-21 Simon J Gerraty <sjg@beast.crufty.net> 86306b9b3e0SSimon J. Gerraty 86406b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201221 86506b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 86606b9b3e0SSimon J. Gerraty o some unit-test updates 86706b9b3e0SSimon J. Gerraty 86806b9b3e0SSimon J. Gerraty2020-12-20 Simon J Gerraty <sjg@beast.crufty.net> 86906b9b3e0SSimon J. Gerraty 87006b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201220 87106b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 87206b9b3e0SSimon J. Gerraty o more unit tests 87306b9b3e0SSimon J. Gerraty o return FStr from Var_Parse and Var_Value 87406b9b3e0SSimon J. Gerraty o spell nonexistent consistently 87506b9b3e0SSimon J. Gerraty o add str_basename to reduce duplicate code 87606b9b3e0SSimon J. Gerraty o compat.c: fix .ERROR_TARGET in compat -k mode 87706b9b3e0SSimon J. Gerraty extract InitSignals from Compat_Run 87806b9b3e0SSimon J. Gerraty extract UseShell from Compat_RunCommand 87906b9b3e0SSimon J. Gerraty o cond.c: error out if an '.endif' or '.else' contain extraneous text 88006b9b3e0SSimon J. Gerraty o for.c: rename ForIterate to ForReadMore 88106b9b3e0SSimon J. Gerraty o hash.c: clean up hash function for HashTable 88206b9b3e0SSimon J. Gerraty o lst.c: rename Vector.priv_cap to cap 88306b9b3e0SSimon J. Gerraty o main.c: remove constant parameter from MakeMode 88406b9b3e0SSimon J. Gerraty o make.c: use symbolic time for 0 in Make_Recheck 88506b9b3e0SSimon J. Gerraty extract MakeChildren from MakeStartJobs 88606b9b3e0SSimon J. Gerraty o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar 88706b9b3e0SSimon J. Gerraty fix error message for .info/.warning/.error without argument 88806b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 88906b9b3e0SSimon J. Gerraty extract ParseSkippedBranches, ParseForLoop from ParseReadLine 89006b9b3e0SSimon J. Gerraty rename mode constants for ParseGetLine to be more expressive 89106b9b3e0SSimon J. Gerraty reduce debugging details in Parse_SetInput 89206b9b3e0SSimon J. Gerraty fix line numbers in .for loops 89306b9b3e0SSimon J. Gerraty split ParseGetLine into separate functions 89406b9b3e0SSimon J. Gerraty fix garbled output for failed shell command 89506b9b3e0SSimon J. Gerraty var.c: remove redundant assignment in ApplyModifier_SysV 89606b9b3e0SSimon J. Gerraty error out on unknown variable modifiers at parse time 89706b9b3e0SSimon J. Gerraty remove wrong error message for indirect modifier in lint mode 89806b9b3e0SSimon J. Gerraty extract ApplySingleModifier from ApplyModifiers 89906b9b3e0SSimon J. Gerraty use FStr for memory management in Var_SetWithFlags 90006b9b3e0SSimon J. Gerraty extract SetVar from Var_SetWithFlags 90106b9b3e0SSimon J. Gerraty use FStr in VarNew 90206b9b3e0SSimon J. Gerraty extract string functions from ApplyModifier_To 90306b9b3e0SSimon J. Gerraty error out if .undef has not exactly 1 argument 90406b9b3e0SSimon J. Gerraty extract Var_DeleteVar from Var_Delete 90506b9b3e0SSimon J. Gerraty extract Var_Undef from ParseDirective 90606b9b3e0SSimon J. Gerraty clean up memory management for expanding variable expressions 90706b9b3e0SSimon J. Gerraty 90806b9b3e0SSimon J. Gerraty2020-12-12 Simon J Gerraty <sjg@beast.crufty.net> 90906b9b3e0SSimon J. Gerraty 91006b9b3e0SSimon J. Gerraty * avoid %zu 91106b9b3e0SSimon J. Gerraty 91206b9b3e0SSimon J. Gerraty * lst.c: avoid anonymous union 91306b9b3e0SSimon J. Gerraty 91406b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201212 91506b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 91606b9b3e0SSimon J. Gerraty o more unit tests 91706b9b3e0SSimon J. Gerraty o inline Targ_Ignore and Targ_Silent 91806b9b3e0SSimon J. Gerraty o split JobFlags into separate fields 91906b9b3e0SSimon J. Gerraty o remove const from function parameters (left overs from refactoring) 92006b9b3e0SSimon J. Gerraty o eliminate boolean argument of Var_Export 92106b9b3e0SSimon J. Gerraty o make API of Buf_Init simpler 92206b9b3e0SSimon J. Gerraty o rename ParseRunOptions to ParseCommandFlags 92306b9b3e0SSimon J. Gerraty o replace *line with line[0] 92406b9b3e0SSimon J. Gerraty o compat.c: fix wrong exit status for multiple failed main targets 92506b9b3e0SSimon J. Gerraty refactor Compat_Run to show the error condition more clearly 92606b9b3e0SSimon J. Gerraty don't make .END if the main targets already failed (-k mode) 92706b9b3e0SSimon J. Gerraty fix exit status in -k mode if a dependency fails 92806b9b3e0SSimon J. Gerraty o for.c: clean up Buf_AddEscaped in .for loops 92906b9b3e0SSimon J. Gerraty o job.c: extract ShellWriter_ErrOn from JobPrintCommand 93006b9b3e0SSimon J. Gerraty make Job_Touch simpler 93106b9b3e0SSimon J. Gerraty refactor JobFinish 93206b9b3e0SSimon J. Gerraty rename Shell.exitFlag to errFlag 93306b9b3e0SSimon J. Gerraty move Job.xtraced to ShellWriter 93406b9b3e0SSimon J. Gerraty make printing of shell commands independent from the job 93506b9b3e0SSimon J. Gerraty rename shell flags in struct Shell 93606b9b3e0SSimon J. Gerraty extract JobOpenTmpFile from JobStart 93706b9b3e0SSimon J. Gerraty rename RunFlags to CommandFlags 93806b9b3e0SSimon J. Gerraty split various Job.* into separate fields 93906b9b3e0SSimon J. Gerraty rename commandShell to shell 94006b9b3e0SSimon J. Gerraty extract InitShellNameAndPath from Shell_Init 94106b9b3e0SSimon J. Gerraty replace signal handling macros with local functions 94206b9b3e0SSimon J. Gerraty replace macro MESSAGE with local function 94306b9b3e0SSimon J. Gerraty parse.c: error out on null bytes in makefiles 94406b9b3e0SSimon J. Gerraty error out on misspelled directives 94506b9b3e0SSimon J. Gerraty rename IFile.nextbuf to readMore 94606b9b3e0SSimon J. Gerraty fix undefined behavior in ParseEOF 94706b9b3e0SSimon J. Gerraty str.c: remove redundant call to strlen in Str_Words 94806b9b3e0SSimon J. Gerraty var.c: error out on misspelled .unexport-env 94906b9b3e0SSimon J. Gerraty error out on misspelled .export directives 95006b9b3e0SSimon J. Gerraty extract ExportVars from Var_Export 95106b9b3e0SSimon J. Gerraty extract ExportVarsExpand from Var_Export 95206b9b3e0SSimon J. Gerraty eliminate boolean argument of Var_Export 95306b9b3e0SSimon J. Gerraty fix undefined behavior when exporting ${:U } 95406b9b3e0SSimon J. Gerraty rename Var_ExportVars to Var_ReexportVars 95506b9b3e0SSimon J. Gerraty rename Var_Export1 to ExportVar 95606b9b3e0SSimon J. Gerraty 95706b9b3e0SSimon J. Gerraty2020-12-06 Simon J Gerraty <sjg@beast.crufty.net> 95806b9b3e0SSimon J. Gerraty 95906b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201206 96006b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 96106b9b3e0SSimon J. Gerraty o more unit tests 96206b9b3e0SSimon J. Gerraty o inline macros for debug logging 96306b9b3e0SSimon J. Gerraty o use consistent variable names for list nodes 96406b9b3e0SSimon J. Gerraty o define constants for enum zero-values 96506b9b3e0SSimon J. Gerraty o dir.c: use fixed format for debug output of the directory cache 96606b9b3e0SSimon J. Gerraty remove Dir_InitDir 96706b9b3e0SSimon J. Gerraty o lst.c: inline Lst_Enqueue, Vector_Done 96806b9b3e0SSimon J. Gerraty o meta.c: remove unused parameter from meta_needed 96906b9b3e0SSimon J. Gerraty o parse.c: rename parse functions 97006b9b3e0SSimon J. Gerraty o suff.c: extract ExpandChildrenRegular from ExpandChildren 97106b9b3e0SSimon J. Gerraty o targ.c: don't concatenate identifiers in Targ_PrintType 97206b9b3e0SSimon J. Gerraty o var.c: remove comment decoration 97306b9b3e0SSimon J. Gerraty extract UnexportVars from Var_UnExport 97406b9b3e0SSimon J. Gerraty extract GetVarnamesToUnexport from Var_UnExport 97506b9b3e0SSimon J. Gerraty extract UnexportEnv from Var_UnExport 97606b9b3e0SSimon J. Gerraty extract UnexportVar from Var_UnExport 97706b9b3e0SSimon J. Gerraty move CleanEnv to UnexportVars 97806b9b3e0SSimon J. Gerraty replace pointer comparisons with enum 97906b9b3e0SSimon J. Gerraty add FStr to var.c to make memory handling simpler 98006b9b3e0SSimon J. Gerraty use FStr in Var_UnExport 98106b9b3e0SSimon J. Gerraty move type definitions in var.c to the top 98206b9b3e0SSimon J. Gerraty extract FreeEnvVar from Var_Parse 98306b9b3e0SSimon J. Gerraty extract ShuffleStrings from ApplyModifier_Order 98406b9b3e0SSimon J. Gerraty 98506b9b3e0SSimon J. Gerraty2020-11-30 Simon J Gerraty <sjg@beast.crufty.net> 98606b9b3e0SSimon J. Gerraty 98706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201130 98806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 98906b9b3e0SSimon J. Gerraty o add unit tests for META MODE 99006b9b3e0SSimon J. Gerraty o reduce memory allocation for dirSearchPath, GNode.parents, 99106b9b3e0SSimon J. Gerraty GNode.children, OpenDirs 99206b9b3e0SSimon J. Gerraty o reduce pointer indirection for GNode.cohorts and 99306b9b3e0SSimon J. Gerraty GNode.implicitParents 99406b9b3e0SSimon J. Gerraty o remove pointer indirection from GNode.commands 99506b9b3e0SSimon J. Gerraty o inline Lst_ForEachUntil in meta mode 99606b9b3e0SSimon J. Gerraty o dir.c: fix memory leak for lstat cache in -DCLEANUP mode 99706b9b3e0SSimon J. Gerraty clean up memory management for CachedDirs 99806b9b3e0SSimon J. Gerraty fix the reference count of dotLast going negative 99906b9b3e0SSimon J. Gerraty add debug logging for OpenDirs_Done 100006b9b3e0SSimon J. Gerraty extract CacheNewDir from Dir_AddDir 100106b9b3e0SSimon J. Gerraty add debug logging for reference counting of CachedDir 100206b9b3e0SSimon J. Gerraty rename some Dir functions to SearchPath 100306b9b3e0SSimon J. Gerraty o job.c: rename some global variables 100406b9b3e0SSimon J. Gerraty o main.c: reduce memory allocation in ReadBuiltinRules 100506b9b3e0SSimon J. Gerraty reduce memory allocation in CmdOpts.create, CmdOpts.variables, 100606b9b3e0SSimon J. Gerraty CmdOpts.makefiles 100706b9b3e0SSimon J. Gerraty Add .MAKE.UID and .MAKE.GID 100806b9b3e0SSimon J. Gerraty o make.c: reduce memory allocation for/in toBeMade, 100906b9b3e0SSimon J. Gerraty Make_ProcessWait, Make_ExpandUse 101006b9b3e0SSimon J. Gerraty o meta.c: reduce memory allocation in meta_oodate 101106b9b3e0SSimon J. Gerraty o parse.c: reduce memory allocations for parsing dependencies and 101206b9b3e0SSimon J. Gerraty targets 101306b9b3e0SSimon J. Gerraty o suff.c: reduce memory allocation in suffix handling 101406b9b3e0SSimon J. Gerraty 101506b9b3e0SSimon J. Gerraty2020-11-24 Simon J Gerraty <sjg@beast.crufty.net> 101606b9b3e0SSimon J. Gerraty 101706b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201124 101806b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 101906b9b3e0SSimon J. Gerraty o .MAKE.{UID,GID} represent uid and gid running make. 102006b9b3e0SSimon J. Gerraty o fix error handling for .BEGIN and .END dependency in -k mode 102106b9b3e0SSimon J. Gerraty o fix missing "Stop." after failed .END node in -k mode 102206b9b3e0SSimon J. Gerraty o use properly typed comparisons in boolean contexts 102306b9b3e0SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 102406b9b3e0SSimon J. Gerraty o add HashSet type 102506b9b3e0SSimon J. Gerraty o compat.c: split Compat_Make into smaller functions 102606b9b3e0SSimon J. Gerraty extract DebugFailedTarget from Compat_RunCommand 102706b9b3e0SSimon J. Gerraty o dir.c: refactor Dir_UpdateMTime 102806b9b3e0SSimon J. Gerraty migrate CachedDir.files from HashTable to HashSet 102906b9b3e0SSimon J. Gerraty o make.c: add high-level API for GNode.made 103006b9b3e0SSimon J. Gerraty 103106b9b3e0SSimon J. Gerraty2020-11-22 Simon J Gerraty <sjg@beast.crufty.net> 103206b9b3e0SSimon J. Gerraty 103306b9b3e0SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201122 103406b9b3e0SSimon J. Gerraty Merge with NetBSD make, pick up 103506b9b3e0SSimon J. Gerraty o rename GNode.context to vars 103606b9b3e0SSimon J. Gerraty o suff.c: cleanup and refactor 103706b9b3e0SSimon J. Gerraty rename some functions and vars to better reflect usage 103806b9b3e0SSimon J. Gerraty add high-level API for CandidateSearcher 103906b9b3e0SSimon J. Gerraty o targ.c: add more debug logging for suffix handling 104006b9b3e0SSimon J. Gerraty o more unit tests 104106b9b3e0SSimon J. Gerraty o add debug logging for setting and resetting the main target 104206b9b3e0SSimon J. Gerraty 1043e2eeea75SSimon J. Gerraty2020-11-17 Simon J Gerraty <sjg@beast.crufty.net> 1044e2eeea75SSimon J. Gerraty 1045e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201117 1046e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 104706b9b3e0SSimon J. Gerraty o fix some unit-tests when .SHELL is dash 1048e2eeea75SSimon J. Gerraty o rename Targ_NewGN to GNode_New 1049e2eeea75SSimon J. Gerraty o make some GNode functions const 1050e2eeea75SSimon J. Gerraty o main.c: call Targ_Init before Var_Init 1051e2eeea75SSimon J. Gerraty cleanup PrintOnError, getTmpdir and ParseBoolean 1052e2eeea75SSimon J. Gerraty o var.c: fix error message of failed :!cmd! modifier 1053e2eeea75SSimon J. Gerraty 1054e2eeea75SSimon J. Gerraty2020-11-14 Simon J Gerraty <sjg@beast.crufty.net> 1055e2eeea75SSimon J. Gerraty 1056e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201114 1057e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1058e2eeea75SSimon J. Gerraty o replace a few HashTable_CreateEntry with HashTable_Set 1059e2eeea75SSimon J. Gerraty o clean up cached_stats 1060e2eeea75SSimon J. Gerraty o rename DEFAULT to defaultNode 1061e2eeea75SSimon J. Gerraty o remove redundant struct make_stat 1062e2eeea75SSimon J. Gerraty o cond.c: in lint mode, check for ".else <cond>" 1063e2eeea75SSimon J. Gerraty use bitset for IfState 1064e2eeea75SSimon J. Gerraty replace large switch with if-else in Cond_EvalLine 1065e2eeea75SSimon J. Gerraty o job.c: clean up JobExec, JobStart, JobDoOutput 1066e2eeea75SSimon J. Gerraty use stderr for error message about failed touch 1067e2eeea75SSimon J. Gerraty clean up Job_Touch 1068e2eeea75SSimon J. Gerraty replace macro DBPRINTF with JobPrintln 1069e2eeea75SSimon J. Gerraty rename JobState to JobStatus 1070e2eeea75SSimon J. Gerraty main.c: switch cache for realpath from GNode to HashTable 1071e2eeea75SSimon J. Gerraty clean up Fatal 1072e2eeea75SSimon J. Gerraty clean up InitDefSysIncPath 1073e2eeea75SSimon J. Gerraty use progname instead of hard-coded 'make' in warning 1074e2eeea75SSimon J. Gerraty rename Main_SetVarObjdir to SetVarObjdir 1075e2eeea75SSimon J. Gerraty make.1: document the -S option 1076e2eeea75SSimon J. Gerraty make.c: fix debug output for GNode details 1077e2eeea75SSimon J. Gerraty use symbolic names in debug output of GNodes 1078e2eeea75SSimon J. Gerraty 1079e2eeea75SSimon J. Gerraty2020-11-12 Simon J Gerraty <sjg@beast.crufty.net> 1080e2eeea75SSimon J. Gerraty 1081e2eeea75SSimon J. Gerraty * configure.in: fix --with-force-machine-arch 1082e2eeea75SSimon J. Gerraty 1083e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201112 1084e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1085e2eeea75SSimon J. Gerraty o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable 1086e2eeea75SSimon J. Gerraty checks in InitObjdir. Explicit .OBJDIR target always allows 1087e2eeea75SSimon J. Gerraty read-only directory. 1088e2eeea75SSimon J. Gerraty o cond.c: clean up Cond_EvalLine 1089e2eeea75SSimon J. Gerraty 1090e2eeea75SSimon J. Gerraty2020-11-11 Simon J Gerraty <sjg@beast.crufty.net> 1091e2eeea75SSimon J. Gerraty 1092e2eeea75SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201111 1093e2eeea75SSimon J. Gerraty Merge with NetBSD make, pick up 1094e2eeea75SSimon J. Gerraty o more unit-tests 1095e2eeea75SSimon J. Gerraty o style cleanup 1096e2eeea75SSimon J. Gerraty remove redundant parentheses from sizeof operator 1097e2eeea75SSimon J. Gerraty replace character literal 0 with '\0'. 1098e2eeea75SSimon J. Gerraty replace pointer literal 0 with NULL. 1099e2eeea75SSimon J. Gerraty remove redundant parentheses. 1100e2eeea75SSimon J. Gerraty replace (expr & mask) == 0 with !(expr & mask). 1101e2eeea75SSimon J. Gerraty use strict typing in conditions of the form !var 1102e2eeea75SSimon J. Gerraty o rename Make_OODate to GNode_IsOODate 1103e2eeea75SSimon J. Gerraty o rename Make_TimeStamp to GNode_UpdateYoungestChild 1104e2eeea75SSimon J. Gerraty o rename Var_Set_with_flags to Var_SetWithFlags 1105e2eeea75SSimon J. Gerraty o rename dieQuietly to shouldDieQuietly 1106e2eeea75SSimon J. Gerraty o buf.c: make API of Buf_Init simpler 1107e2eeea75SSimon J. Gerraty o compat.c: clean up Compat_Make, Compat_RunCommand, 1108e2eeea75SSimon J. Gerraty CompatDeleteTarget and CompatInterrupt 1109e2eeea75SSimon J. Gerraty o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|' 1110e2eeea75SSimon J. Gerraty clean up CondParser_Comparison 1111e2eeea75SSimon J. Gerraty o main.c: rename getBoolean and s2Boolean 1112e2eeea75SSimon J. Gerraty rename MAKEFILE_PREFERENCE for consistency 1113e2eeea75SSimon J. Gerraty o parse.c: replace strstr in ParseMaybeSubMake with optimized code 1114e2eeea75SSimon J. Gerraty o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR 1115e2eeea75SSimon J. Gerraty replace emptyString with allocated empty string 1116e2eeea75SSimon J. Gerraty error out on unclosed expressions after the colon 1117e2eeea75SSimon J. Gerraty 1118956e45f6SSimon J. Gerraty2020-11-01 Simon J Gerraty <sjg@beast.crufty.net> 1119956e45f6SSimon J. Gerraty 1120956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201101 1121956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1122956e45f6SSimon J. Gerraty o negate NoExecute to GNode_ShouldExecute 1123956e45f6SSimon J. Gerraty o job.c: rename JobMatchShell to FindShellByName 1124956e45f6SSimon J. Gerraty extract EscapeShellDblQuot from JobPrintCommand 1125956e45f6SSimon J. Gerraty extract ParseRunOptions from JobPrintCommand 1126956e45f6SSimon J. Gerraty o var.c: extract ApplyModifiersIndirect from ApplyModifiers 1127956e45f6SSimon J. Gerraty treat malformed :range, :ts and :[...] as errors 1128956e45f6SSimon J. Gerraty add tests for the variable modifiers :[words] and :range 1129956e45f6SSimon J. Gerraty 1130956e45f6SSimon J. Gerraty2020-10-31 Simon J Gerraty <sjg@beast.crufty.net> 1131956e45f6SSimon J. Gerraty 1132956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201031 1133956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1134956e45f6SSimon J. Gerraty o format #include directives consistently 1135956e45f6SSimon J. Gerraty o do not look up local variables like .TARGET anywhere else 1136956e45f6SSimon J. Gerraty o main.c: Main_SetObjdir is first called for curdir which may be 1137956e45f6SSimon J. Gerraty readonly 1138956e45f6SSimon J. Gerraty reduce the scope where recursive expressions are detected 1139956e45f6SSimon J. Gerraty remove redundant :tl from getBoolean 1140956e45f6SSimon J. Gerraty clean up mkTempFile 1141956e45f6SSimon J. Gerraty o meta.c: simplify memory allocation in meta_create and meta_oodate 1142956e45f6SSimon J. Gerraty o parse.c: extract loadedfile_mmap from loadfile 1143956e45f6SSimon J. Gerraty o trace.c: document possible undefined behavior with .CURDIR 1144956e45f6SSimon J. Gerraty o var.c: make parsing of the :gmtime and :localtime modifiers stricter 1145956e45f6SSimon J. Gerraty rename ismeta to is_shell_metachar 1146956e45f6SSimon J. Gerraty remove debug logging for the :Q variable modifier 1147956e45f6SSimon J. Gerraty rename VarIsDynamic to VarnameIsDynamic 1148956e45f6SSimon J. Gerraty use consistent parameter order in varname parsing functions 1149956e45f6SSimon J. Gerraty extract ParseVarnameLong from Var_Parse 1150956e45f6SSimon J. Gerraty extract ParseVarnameShort from Var_Parse 1151956e45f6SSimon J. Gerraty fix type of ParseModifierPart parameter delim 1152956e45f6SSimon J. Gerraty extract IsEscapedModifierPart from ParseModifierPart 1153956e45f6SSimon J. Gerraty clean up ModifyWords 1154956e45f6SSimon J. Gerraty add test for combining the :@ and :? variable modifiers 1155956e45f6SSimon J. Gerraty 1156956e45f6SSimon J. Gerraty2020-10-30 Simon J Gerraty <sjg@beast.crufty.net> 1157956e45f6SSimon J. Gerraty 1158956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201030 1159956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1160956e45f6SSimon J. Gerraty o change char * to void * in Var_Value 1161956e45f6SSimon J. Gerraty o make iterating over HashTable simpler 1162956e45f6SSimon J. Gerraty o rename VAR_CMD to VAR_CMDLINE 1163956e45f6SSimon J. Gerraty o cond.c: clean up is_separator 1164956e45f6SSimon J. Gerraty fix parse error in string literal in conditional 1165956e45f6SSimon J. Gerraty o main.c: do not use objdir that is not writable 1166956e45f6SSimon J. Gerraty in lint mode, exit with error status on errors 1167956e45f6SSimon J. Gerraty o parse.c: clean up StrContainsWord 1168956e45f6SSimon J. Gerraty fix out-of-bounds pointer in ParseTrackInput 1169956e45f6SSimon J. Gerraty o var.c: rename Str_SYSVMatch and its parameters 1170956e45f6SSimon J. Gerraty remove unsatisfiable conditions in Var_Set_with_flags 1171956e45f6SSimon J. Gerraty document where the variable name is expanded 1172956e45f6SSimon J. Gerraty fix documentation for VARP_SUB_ONE 1173956e45f6SSimon J. Gerraty rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME 1174956e45f6SSimon J. Gerraty document VAR_READONLY 1175956e45f6SSimon J. Gerraty prevent appending to read-only variables 1176956e45f6SSimon J. Gerraty extract MayExport from Var_Export1 1177956e45f6SSimon J. Gerraty remove redundant evaluations in VarFind 1178956e45f6SSimon J. Gerraty replace VarFindFlags with a simple Boolean 1179956e45f6SSimon J. Gerraty rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE 1180956e45f6SSimon J. Gerraty 1181956e45f6SSimon J. Gerraty2020-10-28 Simon J Gerraty <sjg@beast.crufty.net> 1182956e45f6SSimon J. Gerraty 1183956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201028 1184956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1185956e45f6SSimon J. Gerraty o rename defIncPath to defSysIncPath 1186956e45f6SSimon J. Gerraty o initialize all CmdOpts fields 1187956e45f6SSimon J. Gerraty o lst.c: inline Vector_Get 1188956e45f6SSimon J. Gerraty o main.c: refactor main extract 1189956e45f6SSimon J. Gerraty InitMaxJobs,InitObjdir,InitVarMake,InitRandom, 1190956e45f6SSimon J. Gerraty ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules, 1191956e45f6SSimon J. Gerraty InitDefIncPath,CmdOpts_Init,UnlimitFiles 1192956e45f6SSimon J. Gerraty o parse.c: merge curFile into includes 1193956e45f6SSimon J. Gerraty rename predecessor to order_pred 1194956e45f6SSimon J. Gerraty sort ParseSpecial alphabetically 1195956e45f6SSimon J. Gerraty remove unused, undocumented .NOEXPORT 1196956e45f6SSimon J. Gerraty rename ParseSpecial enum values consistently 1197956e45f6SSimon J. Gerraty rename some fields of struct IFile 1198956e45f6SSimon J. Gerraty 1199956e45f6SSimon J. Gerraty2020-10-26 Simon J Gerraty <sjg@beast.crufty.net> 1200956e45f6SSimon J. Gerraty 1201956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201026 1202956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1203956e45f6SSimon J. Gerraty o group the command line options and arguments into a struct 1204956e45f6SSimon J. Gerraty o rename GNode.cmgn to youngestChild 1205956e45f6SSimon J. Gerraty o rename hash functions to identify the type name 1206956e45f6SSimon J. Gerraty o negate OP_NOP and rename it to GNode_IsTarget 1207956e45f6SSimon J. Gerraty o add GNode_Path to access the path of a GNode 1208956e45f6SSimon J. Gerraty o remove macros MIN and MAX 1209956e45f6SSimon J. Gerraty o remove unused Lst_Find and Lst_FindFrom 1210956e45f6SSimon J. Gerraty o arch.c: and make Arch_FindLib simpler 1211956e45f6SSimon J. Gerraty clean up code layout 1212956e45f6SSimon J. Gerraty make Arch_ParseArchive simpler 1213956e45f6SSimon J. Gerraty o cond.c: inline CondFindStrMatch into FuncMake 1214956e45f6SSimon J. Gerraty o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath 1215956e45f6SSimon J. Gerraty omit trailing space in debug output for expanding file patterns 1216956e45f6SSimon J. Gerraty refactor DirMatchFiles 1217956e45f6SSimon J. Gerraty document that the SearchPath of Dir_FindFile may be NULL 1218956e45f6SSimon J. Gerraty remove UNCONST from Dir_Expand 1219956e45f6SSimon J. Gerraty inline DirFindName 1220956e45f6SSimon J. Gerraty o for.c: clean up code for handling .for loops 1221956e45f6SSimon J. Gerraty o hash.c: print hash in debug log with fixed width 1222956e45f6SSimon J. Gerraty clean up hash table functions 1223956e45f6SSimon J. Gerraty reduce amount of string hashing 1224956e45f6SSimon J. Gerraty o job.c: refactor JobDeleteTarget 1225956e45f6SSimon J. Gerraty use proper enum constants for aborting 1226956e45f6SSimon J. Gerraty convert result of JobStart from macros to enum 1227956e45f6SSimon J. Gerraty convert abort reason macros to enum 1228956e45f6SSimon J. Gerraty rework Job_CheckCommands to reduce indentation 1229956e45f6SSimon J. Gerraty rename Shell fields 1230956e45f6SSimon J. Gerraty add field names in declaration of DEFSHELL_CUSTOM 1231956e45f6SSimon J. Gerraty convert JobState and JobFlags to enum types 1232956e45f6SSimon J. Gerraty move handling of the "..." command to JobPrintCommands 1233956e45f6SSimon J. Gerraty o lst.c: clean up 1234956e45f6SSimon J. Gerraty refactor LstNodeNew 1235956e45f6SSimon J. Gerraty remove Lst_Open, Lst_Next, Lst_Close 1236956e45f6SSimon J. Gerraty remove code for circular lists from Lst_Next 1237956e45f6SSimon J. Gerraty o main.c: do not attempt to read .MAKE.DEPENFILE if set to 1238956e45f6SSimon J. Gerraty /dev/null or anything starting with "no" 1239956e45f6SSimon J. Gerraty convert macros for debug flags into enum 1240956e45f6SSimon J. Gerraty o make.c: inline Lst_Copy in Make_ExpandUse 1241956e45f6SSimon J. Gerraty o meta.c: inline Lst_Find in meta_oodate 1242956e45f6SSimon J. Gerraty make Lst_RemoveIf simpler in meta_oodate 1243956e45f6SSimon J. Gerraty o parse.c: convert error level for Parse_Error to an enum 1244956e45f6SSimon J. Gerraty o suff.c: properly terminate debug output with newline 1245956e45f6SSimon J. Gerraty add more details to DEBUG_SRC log 1246956e45f6SSimon J. Gerraty replace Dir_CopyDir with Dir_CopyDirSearchPath 1247956e45f6SSimon J. Gerraty don't modify GNode name while rebuilding the suffix graph 1248956e45f6SSimon J. Gerraty o var.c: reduce duplicate code in VarFind 1249956e45f6SSimon J. Gerraty 1250956e45f6SSimon J. Gerraty2020-10-22 Simon J Gerraty <sjg@beast.crufty.net> 1251956e45f6SSimon J. Gerraty 1252956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201022 1253956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1254956e45f6SSimon J. Gerraty o more refactoring and simplification to reduce code size 1255956e45f6SSimon J. Gerraty o var.c: extract CanonicalVarname from VarFind 1256956e45f6SSimon J. Gerraty o make.c: extract UpdateImplicitParentsVars from Make_Update 1257956e45f6SSimon J. Gerraty o main.c: extract PrintVar from doPrintVars 1258956e45f6SSimon J. Gerraty extract HandlePWD from main 1259956e45f6SSimon J. Gerraty o lst.c: inline simple Lst getters 1260956e45f6SSimon J. Gerraty remove unused Lst_ForEach 1261956e45f6SSimon J. Gerraty o job.c: move struct Shell from job.h to job.c 1262956e45f6SSimon J. Gerraty o more unit tests 1263956e45f6SSimon J. Gerraty 1264956e45f6SSimon J. Gerraty2020-10-19 Simon J Gerraty <sjg@beast.crufty.net> 1265956e45f6SSimon J. Gerraty 1266956e45f6SSimon J. Gerraty * configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT 1267956e45f6SSimon J. Gerraty 1268956e45f6SSimon J. Gerraty2020-10-18 Simon J Gerraty <sjg@beast.crufty.net> 1269956e45f6SSimon J. Gerraty 1270956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201018 1271956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1272956e45f6SSimon J. Gerraty o remove USE_IOVEC 1273956e45f6SSimon J. Gerraty o rename some Hash_* apis to Hash* 1274956e45f6SSimon J. Gerraty o replace execError with execDie 1275956e45f6SSimon J. Gerraty o rename Lst_Init to Lst_New 1276956e45f6SSimon J. Gerraty o add tags to enum types 1277956e45f6SSimon J. Gerraty o rename Stack to Vector 1278956e45f6SSimon J. Gerraty o parse.c: more refactoring 1279956e45f6SSimon J. Gerraty o unit-tests: make some tests use line buffered stdout 1280956e45f6SSimon J. Gerraty o unit-tests/Makefile: in meta mode do not make all tests depend on 1281956e45f6SSimon J. Gerraty Makefile, it isn't necessary. 1282956e45f6SSimon J. Gerraty 1283956e45f6SSimon J. Gerraty2020-10-10 Simon J Gerraty <sjg@beast.crufty.net> 1284956e45f6SSimon J. Gerraty 1285956e45f6SSimon J. Gerraty * main.c: check for CTL_HW being defined. 1286956e45f6SSimon J. Gerraty * unit-tests/Makefile: ensure export tests output are POSIX compliant 1287956e45f6SSimon J. Gerraty disable opt-debug-jobs test until it works on ubuntu 1288956e45f6SSimon J. Gerraty 1289956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201010 1290956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1291956e45f6SSimon J. Gerraty o dir.c: remove pathname limit for Dir_FindHereOrAbove 1292956e45f6SSimon J. Gerraty o hash.c: replace strcpy with memcpy in Hash_CreateEntry 1293956e45f6SSimon J. Gerraty o main.c: extract init_machine and init_machine_arch from main 1294956e45f6SSimon J. Gerraty allow to disable debug logging options 1295956e45f6SSimon J. Gerraty o parse.c: enable format string truncation warnings 1296956e45f6SSimon J. Gerraty extract parsing of sources from ParseDoDependency 1297956e45f6SSimon J. Gerraty split ParseDoSrc into smaller functions 1298956e45f6SSimon J. Gerraty hide implementation details from Parse_DoVar 1299956e45f6SSimon J. Gerraty clean up parsing of variable assignments 1300956e45f6SSimon J. Gerraty split Parse_DoVar into manageable pieces 1301956e45f6SSimon J. Gerraty don't modify the given line during Parse_DoVar 1302956e45f6SSimon J. Gerraty fix out-of-bounds memory access in Parse_DoVar 1303956e45f6SSimon J. Gerraty fix parsing of the :sh assignment modifier 1304956e45f6SSimon J. Gerraty o var.c: rework memory allocation for the name of variables 1305956e45f6SSimon J. Gerraty extract ApplyModifier_Literal into separate function 1306956e45f6SSimon J. Gerraty in lint mode, reject modifiers without delimiter 1307956e45f6SSimon J. Gerraty do not export variable names starting with '-' 1308956e45f6SSimon J. Gerraty o fix double-free bug in -DCLEANUP mode 1309956e45f6SSimon J. Gerraty o more cleanup to enable higher warnings level 1310956e45f6SSimon J. Gerraty o more unit tests 1311956e45f6SSimon J. Gerraty 1312956e45f6SSimon J. Gerraty2020-10-02 Simon J Gerraty <sjg@beast.crufty.net> 1313956e45f6SSimon J. Gerraty 1314956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201002 1315956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1316956e45f6SSimon J. Gerraty o dir.c: use hash table for looking up open directories by name 1317956e45f6SSimon J. Gerraty o main.c: clean up option handling 1318956e45f6SSimon J. Gerraty o parse.c: add missing const for Parse_AddIncludeDir 1319956e45f6SSimon J. Gerraty o var.c: ApplyModifier_To, update pp in each branch 1320956e45f6SSimon J. Gerraty o remove redundant function prototypes 1321956e45f6SSimon J. Gerraty o more unit tests 1322956e45f6SSimon J. Gerraty 1323956e45f6SSimon J. Gerraty2020-10-01 Simon J Gerraty <sjg@beast.crufty.net> 1324956e45f6SSimon J. Gerraty 1325956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20201001 1326956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1327956e45f6SSimon J. Gerraty o compat.c: comment about "..." 1328956e45f6SSimon J. Gerraty 1329956e45f6SSimon J. Gerraty2020-09-30 Simon J Gerraty <sjg@beast.crufty.net> 1330956e45f6SSimon J. Gerraty 1331956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200930 1332956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1333956e45f6SSimon J. Gerraty o job.c: split Job.jobPipe into 2 separate fields 1334956e45f6SSimon J. Gerraty replace Lst_Open with direct iteration 1335956e45f6SSimon J. Gerraty o lst.c: remove redundant assertions 1336956e45f6SSimon J. Gerraty o targ.c: replace Lst_Open with direct iteration 1337956e45f6SSimon J. Gerraty o var.c: fix bug in evaluation of indirect variable modifiers 1338956e45f6SSimon J. Gerraty extract ApplyModifier_Quote into separate function 1339956e45f6SSimon J. Gerraty o make debug logging simpler 1340956e45f6SSimon J. Gerraty 1341956e45f6SSimon J. Gerraty2020-09-27 Simon J Gerraty <sjg@beast.crufty.net> 1342956e45f6SSimon J. Gerraty 1343956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200927 1344956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1345956e45f6SSimon J. Gerraty o parse.c: ensure parse errors result in 'stopped in' message. 1346956e45f6SSimon J. Gerraty o compat.c: make parameter of Compat_RunCommand const 1347956e45f6SSimon J. Gerraty o main.c: extract InitVarTarget from main 1348956e45f6SSimon J. Gerraty o parse.c: rename ParseFinishLine to FinishDependencyGroup 1349956e45f6SSimon J. Gerraty refactor ParseDoDependency 1350956e45f6SSimon J. Gerraty o var.c: Var_Subst no longer returns string result 1351956e45f6SSimon J. Gerraty rename Var_ParsePP back to Var_Parse 1352956e45f6SSimon J. Gerraty in lint mode, improve error handling for undefined variables 1353956e45f6SSimon J. Gerraty extract ParseVarname from Var_Parse 1354956e45f6SSimon J. Gerraty o rename Lst_ForEach to Lst_ForEachUntil 1355956e45f6SSimon J. Gerraty o inline Lst_ForEachUntil in several cases 1356956e45f6SSimon J. Gerraty o clean up API for finding and creating GNodes 1357956e45f6SSimon J. Gerraty o fix assertion failure in -j mode with .END node 1358956e45f6SSimon J. Gerraty o inline and remove LstNode_Prev and LstNode_Next 1359956e45f6SSimon J. Gerraty o use fine-grained type names for lists and their nodes 1360956e45f6SSimon J. Gerraty o more unit tests 1361956e45f6SSimon J. Gerraty 1362956e45f6SSimon J. Gerraty2020-09-11 Simon J Gerraty <sjg@beast.crufty.net> 1363956e45f6SSimon J. Gerraty 1364956e45f6SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200911 1365956e45f6SSimon J. Gerraty Merge with NetBSD make, pick up 1366956e45f6SSimon J. Gerraty o cond.c: split EvalComparison into smaller functions 1367956e45f6SSimon J. Gerraty reorder parameters of condition parsing functions 1368956e45f6SSimon J. Gerraty reduce code size in CondParser_Eval 1369956e45f6SSimon J. Gerraty rename CondGetString to CondParser_String 1370956e45f6SSimon J. Gerraty add CondLexer_SkipWhitespace 1371956e45f6SSimon J. Gerraty group the condition parsing state into a struct 1372956e45f6SSimon J. Gerraty in CondGetString, replace repeated Buf_Add with Buf_AddStr 1373956e45f6SSimon J. Gerraty o migrate Var_Parse to Var_ParsePP 1374956e45f6SSimon J. Gerraty o add wrappers around ctype.h functions 1375956e45f6SSimon J. Gerraty o lst.c: use a stack instead of a list for the nested include path 1376956e45f6SSimon J. Gerraty o more unit tests 1377956e45f6SSimon J. Gerraty 1378956e45f6SSimon J. Gerraty2020-09-04 Simon J Gerraty <sjg@beast.crufty.net> 1379956e45f6SSimon J. Gerraty 1380956e45f6SSimon J. Gerraty * make-bootstrap.sh.in: adjust object list 1381956e45f6SSimon J. Gerraty 13822c3632d1SSimon J. Gerraty2020-09-02 Simon J Gerraty <sjg@beast.crufty.net> 13832c3632d1SSimon J. Gerraty 13842c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200902 13852c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 13862c3632d1SSimon J. Gerraty o use make_stat to ensure no confusion over valid fields 13872c3632d1SSimon J. Gerraty returned by cached_stat 13882c3632d1SSimon J. Gerraty o var.c: make VarQuote const-correct 13892c3632d1SSimon J. Gerraty o add unit tests for .for 13902c3632d1SSimon J. Gerraty 13912c3632d1SSimon J. Gerraty2020-09-01 Simon J Gerraty <sjg@beast.crufty.net> 13922c3632d1SSimon J. Gerraty 13932c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200901 13942c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 13952c3632d1SSimon J. Gerraty o rename Hash_Table fields 13962c3632d1SSimon J. Gerraty o make data types in Dir_HasWildcards more precise 13972c3632d1SSimon J. Gerraty 13982c3632d1SSimon J. Gerraty2020-08-31 Simon J Gerraty <sjg@beast.crufty.net> 13992c3632d1SSimon J. Gerraty 14002c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200831 14012c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14022c3632d1SSimon J. Gerraty o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds 14032c3632d1SSimon J. Gerraty o lst.c: Lst_Open renable assert that list isn't open 14042c3632d1SSimon J. Gerraty o unit test for .TARGET dependent flags 14052c3632d1SSimon J. Gerraty o var.c: fix aliasing bug in VarUniq 14062c3632d1SSimon J. Gerraty o more unit tests for :u 14072c3632d1SSimon J. Gerraty 14082c3632d1SSimon J. Gerraty2020-08-30 Simon J Gerraty <sjg@beast.crufty.net> 14092c3632d1SSimon J. Gerraty 14102c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200830 14112c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14122c3632d1SSimon J. Gerraty o allow for strict type checking for Boolean 14132c3632d1SSimon J. Gerraty o Var_Parse never returns NULL 14142c3632d1SSimon J. Gerraty o Var_Subst never returns NULL 14152c3632d1SSimon J. Gerraty o Lst_Find now takes boolean match function 14162c3632d1SSimon J. Gerraty o rename Lst_Memeber to Lst_FindDatum 14172c3632d1SSimon J. Gerraty o rename LstNode functions to match their type 14182c3632d1SSimon J. Gerraty o rename GNode.iParents to implicitParents 14192c3632d1SSimon J. Gerraty o fix assertion failure for .SUFFIXES in archives 14202c3632d1SSimon J. Gerraty o compat.c: clean up documentation for CompatInterrupt and Compat_Run 14212c3632d1SSimon J. Gerraty remove unreachable code from CompatRunCommand 14222c3632d1SSimon J. Gerraty o main.c: simplify getBoolean 14232c3632d1SSimon J. Gerraty o stc.c: replace brk_string with simpler Str_Words 14242c3632d1SSimon J. Gerraty o suff.c: add debug macros 14252c3632d1SSimon J. Gerraty 14262c3632d1SSimon J. Gerraty2020-08-28 Simon J Gerraty <sjg@beast.crufty.net> 14272c3632d1SSimon J. Gerraty 14282c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200828 14292c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14302c3632d1SSimon J. Gerraty o lst.c: inline LstIsValid and LstNodeIsValid 14312c3632d1SSimon J. Gerraty o remove trailing S from Lst function names after migration complete 14322c3632d1SSimon J. Gerraty o more comment cleanup/clarification 14332c3632d1SSimon J. Gerraty o suff.c: clean up suffix handling 14342c3632d1SSimon J. Gerraty o more unit tests 14352c3632d1SSimon J. Gerraty 14362c3632d1SSimon J. Gerraty2020-08-26 Simon J Gerraty <sjg@beast.crufty.net> 14372c3632d1SSimon J. Gerraty 14382c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200826 14392c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14402c3632d1SSimon J. Gerraty o enum.c: distinguish between bitsets containing flags and 14412c3632d1SSimon J. Gerraty ordinary enums 14422c3632d1SSimon J. Gerraty o var.c: fix error message for ::!= modifier with shell error 14432c3632d1SSimon J. Gerraty o fix bugs in -DCLEANUP mode 14442c3632d1SSimon J. Gerraty 14452c3632d1SSimon J. Gerraty2020-08-24 Simon J Gerraty <sjg@beast.crufty.net> 14462c3632d1SSimon J. Gerraty 14472c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200824 14482c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14492c3632d1SSimon J. Gerraty o in debug mode, print GNode details in symbols 14502c3632d1SSimon J. Gerraty 14512c3632d1SSimon J. Gerraty2020-08-23 Simon J Gerraty <sjg@beast.crufty.net> 14522c3632d1SSimon J. Gerraty 14532c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200823 14542c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14552c3632d1SSimon J. Gerraty o lst.c: more asserts, 14562c3632d1SSimon J. Gerraty make args to Lst_Find match others. 14572c3632d1SSimon J. Gerraty o var.c: pass flags to VarAdd 14582c3632d1SSimon J. Gerraty o arch.c: use Buffer 14592c3632d1SSimon J. Gerraty o str.c: brk_string return size_t for nwords 14602c3632d1SSimon J. Gerraty o more unit tests 14612c3632d1SSimon J. Gerraty 14622c3632d1SSimon J. Gerraty2020-08-22 Simon J Gerraty <sjg@beast.crufty.net> 14632c3632d1SSimon J. Gerraty 14642c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 14652c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14662c3632d1SSimon J. Gerraty o var.c: support for read-only variables eg .SHELL 14672c3632d1SSimon J. Gerraty being the shell used to run scripts. 14682c3632d1SSimon J. Gerraty o lst.c: more simplification 14692c3632d1SSimon J. Gerraty o more documentation and style cleanup 14702c3632d1SSimon J. Gerraty o more unit tests 14712c3632d1SSimon J. Gerraty o ensure unit-test/Makefile is run by TEST_MAKE 14722c3632d1SSimon J. Gerraty o reduce duplication of header inclusion 14732c3632d1SSimon J. Gerraty 14742c3632d1SSimon J. Gerraty2020-08-21 Simon J Gerraty <sjg@beast.crufty.net> 14752c3632d1SSimon J. Gerraty 14762c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200821 14772c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14782c3632d1SSimon J. Gerraty o lst.c: revert invalid assertion - but document it 14792c3632d1SSimon J. Gerraty o dir.c: split Dir_Init into two functions 14802c3632d1SSimon J. Gerraty 14812c3632d1SSimon J. Gerraty2020-08-20 Simon J Gerraty <sjg@beast.crufty.net> 14822c3632d1SSimon J. Gerraty 14832c3632d1SSimon J. Gerraty * lst.c: needs inttypes.h on Linux 14842c3632d1SSimon J. Gerraty 14852c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200820 14862c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14872c3632d1SSimon J. Gerraty o make.1: clarify some passages 14882c3632d1SSimon J. Gerraty o var.c: more cleanup, clarify comments 14892c3632d1SSimon J. Gerraty o make_malloc.c: remove unreachable code 14902c3632d1SSimon J. Gerraty o cond.c: make CondGetString easier to debug 14912c3632d1SSimon J. Gerraty o simplify list usage 14922c3632d1SSimon J. Gerraty o unit-tests: more 14932c3632d1SSimon J. Gerraty 14942c3632d1SSimon J. Gerraty2020-08-16 Simon J Gerraty <sjg@beast.crufty.net> 14952c3632d1SSimon J. Gerraty 14962c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200816 14972c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 14982c3632d1SSimon J. Gerraty o refactor unit-tests to be more fine grained 14992c3632d1SSimon J. Gerraty not all tests moved yet 15002c3632d1SSimon J. Gerraty 15012c3632d1SSimon J. Gerraty2020-08-14 Simon J Gerraty <sjg@beast.crufty.net> 15022c3632d1SSimon J. Gerraty 15032c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200814 15042c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15052c3632d1SSimon J. Gerraty o more str_concat variants 15062c3632d1SSimon J. Gerraty o more enums for flags 15072c3632d1SSimon J. Gerraty o var.c: cleanup for higher warnings level 15082c3632d1SSimon J. Gerraty 15092c3632d1SSimon J. Gerraty2020-08-10 Simon J Gerraty <sjg@beast.crufty.net> 15102c3632d1SSimon J. Gerraty 15112c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200810 15122c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15132c3632d1SSimon J. Gerraty o more unit tests 15142c3632d1SSimon J. Gerraty o general comment and style cleanup 15152c3632d1SSimon J. Gerraty 15162c3632d1SSimon J. Gerraty2020-08-08 Simon J Gerraty <sjg@beast.crufty.net> 15172c3632d1SSimon J. Gerraty 15182c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200808 15192c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15202c3632d1SSimon J. Gerraty o enum.[ch]: streamline, enums for use in flags and debug output 15212c3632d1SSimon J. Gerraty o cond.c: cleanup 15222c3632d1SSimon J. Gerraty o var.c: reduce duplicate code for modifiers 15232c3632d1SSimon J. Gerraty debug logging for Var_Parse 15242c3632d1SSimon J. Gerraty more detailed debug output 15252c3632d1SSimon J. Gerraty o more unit tests 15262c3632d1SSimon J. Gerraty 15272c3632d1SSimon J. Gerraty2020-08-06 Simon J Gerraty <sjg@beast.crufty.net> 15282c3632d1SSimon J. Gerraty 15292c3632d1SSimon J. Gerraty * unit-tests/Makefile: -r for recursive and include Makefile.inc 15302c3632d1SSimon J. Gerraty so I can run tests in meta mode 15312c3632d1SSimon J. Gerraty supress extra noise if in meta mode 15322c3632d1SSimon J. Gerraty 15332c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200806 15342c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15352c3632d1SSimon J. Gerraty o parse.c: remove VARE_WANTRES for LINT 15362c3632d1SSimon J. Gerraty we just want to check parsing (for now). 15372c3632d1SSimon J. Gerraty 15382c3632d1SSimon J. Gerraty2020-08-05 Simon J Gerraty <sjg@beast.crufty.net> 15392c3632d1SSimon J. Gerraty 15402c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200805 15412c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15422c3632d1SSimon J. Gerraty o make.1: Rework the description of dependence operators 15432c3632d1SSimon J. Gerraty 15442c3632d1SSimon J. Gerraty2020-08-03 Simon J Gerraty <sjg@beast.crufty.net> 15452c3632d1SSimon J. Gerraty 15462c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200803 15472c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15482c3632d1SSimon J. Gerraty o revert some C99 usage, for max portability 15492c3632d1SSimon J. Gerraty o unit-tests/lint 15502c3632d1SSimon J. Gerraty 15512c3632d1SSimon J. Gerraty2020-08-02 Simon J Gerraty <sjg@beast.crufty.net> 15522c3632d1SSimon J. Gerraty 15532c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200802 15542c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15552c3632d1SSimon J. Gerraty o more unit tests 15562c3632d1SSimon J. Gerraty 15572c3632d1SSimon J. Gerraty2020-08-01 Simon J Gerraty <sjg@beast.crufty.net> 15582c3632d1SSimon J. Gerraty 15592c3632d1SSimon J. Gerraty * Remove NetBSD specific plumbing from unit-tests/Makefile 15602c3632d1SSimon J. Gerraty 15612c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200801 15622c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15632c3632d1SSimon J. Gerraty o make Var_Value return const 15642c3632d1SSimon J. Gerraty o size_t for buf sizes 15652c3632d1SSimon J. Gerraty o optimize some buffer operations - avoid strlen 15662c3632d1SSimon J. Gerraty 15672c3632d1SSimon J. Gerraty2020-07-31 Simon J Gerraty <sjg@beast.crufty.net> 15682c3632d1SSimon J. Gerraty 15692c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200731 15702c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15712c3632d1SSimon J. Gerraty o var.c: fix undefinded behavior for incomplete :t modifier 15722c3632d1SSimon J. Gerraty fixes unit-test/moderrs on Ubuntu 15732c3632d1SSimon J. Gerraty o parse.c: When parsing variable assignments other than := 15742c3632d1SSimon J. Gerraty if DEBUG(LINT) test substition of value, so we get a file and 15752c3632d1SSimon J. Gerraty line number in the resulting error. 15762c3632d1SSimon J. Gerraty o dir.c: fix parsing of nested braces in dependency lines 15772c3632d1SSimon J. Gerraty add unit-tests 15782c3632d1SSimon J. Gerraty 15792c3632d1SSimon J. Gerraty2020-07-30 Simon J Gerraty <sjg@beast.crufty.net> 15802c3632d1SSimon J. Gerraty 15812c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200730 15822c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15832c3632d1SSimon J. Gerraty o var.c: minor cleanup 15842c3632d1SSimon J. Gerraty o unit-tests: more tests to improve code coverage 15852c3632d1SSimon J. Gerraty 15862c3632d1SSimon J. Gerraty2020-07-28 Simon J Gerraty <sjg@beast.crufty.net> 15872c3632d1SSimon J. Gerraty 15882c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200728 15892c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15902c3632d1SSimon J. Gerraty o var.c: more optimizations 15912c3632d1SSimon J. Gerraty 15922c3632d1SSimon J. Gerraty2020-07-26 Simon J Gerraty <sjg@beast.crufty.net> 15932c3632d1SSimon J. Gerraty 15942c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200726 15952c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 15962c3632d1SSimon J. Gerraty o collapse lsd.lib into lst.c - reduce code size and allow inlining 15972c3632d1SSimon J. Gerraty o lots of function comment updates 15982c3632d1SSimon J. Gerraty o var.c: more optimizations 15992c3632d1SSimon J. Gerraty o make return of Var_Parse const 16002c3632d1SSimon J. Gerraty 16012c3632d1SSimon J. Gerraty2020-07-20 Simon J Gerraty <sjg@beast.crufty.net> 16022c3632d1SSimon J. Gerraty 16032c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200720 16042c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16052c3632d1SSimon J. Gerraty o DEBUG_HASH report stats at end and tone down the noise 16062c3632d1SSimon J. Gerraty o var.c: each flag type gets its own prefix. 16072c3632d1SSimon J. Gerraty move SysV string matching to var.c 16082c3632d1SSimon J. Gerraty make ampersand in ${VAR:from=to&} an ordinary character 16092c3632d1SSimon J. Gerraty cleanup and simplify implementation of modifiers 16102c3632d1SSimon J. Gerraty o make.1: move documentation for assignment modifiers 16112c3632d1SSimon J. Gerraty 16122c3632d1SSimon J. Gerraty2020-07-18 Simon J Gerraty <sjg@beast.crufty.net> 16132c3632d1SSimon J. Gerraty 16142c3632d1SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200718 16152c3632d1SSimon J. Gerraty Merge with NetBSD make, pick up 16162c3632d1SSimon J. Gerraty o DEBUG_HASH to see how well the hash tables are working 16172c3632d1SSimon J. Gerraty 16182c3632d1SSimon J. Gerraty2020-07-11 Simon J Gerraty <sjg@beast.crufty.net> 16192c3632d1SSimon J. Gerraty 16202c3632d1SSimon J. Gerraty * bsd.after-import.mk: make sure we update unit-tests/Makefile 16212c3632d1SSimon J. Gerraty 16223841c287SSimon J. Gerraty2020-07-10 Simon J Gerraty <sjg@beast.crufty.net> 16233841c287SSimon J. Gerraty 16243841c287SSimon J. Gerraty * configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC 16253841c287SSimon J. Gerraty 16263841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200710 16273841c287SSimon J. Gerraty Merge with NetBSD make, pick up 16283841c287SSimon J. Gerraty o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall 16293841c287SSimon J. Gerraty o meta.c: target flagged .META is out-of-date if meta file missing 16303841c287SSimon J. Gerraty 16313841c287SSimon J. Gerraty2020-07-09 Simon J Gerraty <sjg@beast.crufty.net> 16323841c287SSimon J. Gerraty 16333841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200709 16343841c287SSimon J. Gerraty Merge with NetBSD make, pick up 16353841c287SSimon J. Gerraty o cond.c: fix for compare_expression when doEval=0 16363841c287SSimon J. Gerraty o unit-tests/Makefile: rework 16373841c287SSimon J. Gerraty o filemon/filemon_dev.c: ensure filemon fd is closed on exec. 16383841c287SSimon J. Gerraty 16393841c287SSimon J. Gerraty2020-07-04 Simon J Gerraty <sjg@beast.crufty.net> 16403841c287SSimon J. Gerraty 16413841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200704 16423841c287SSimon J. Gerraty Merge with NetBSD make, pick up 16433841c287SSimon J. Gerraty (most of this by rillig@) 16443841c287SSimon J. Gerraty o lots of style and white-space cleanup 16453841c287SSimon J. Gerraty o lots more unit tests for variable modifiers 16463841c287SSimon J. Gerraty o simplified description of some functions 16473841c287SSimon J. Gerraty o str.c: refactor Str_Match 16483841c287SSimon J. Gerraty o var.c: debugging output for :@ 16493841c287SSimon J. Gerraty constify VarModify parameter 16503841c287SSimon J. Gerraty fix :hash modifier on 16-bit platforms 16513841c287SSimon J. Gerraty remove unnecessary forward declarations 16523841c287SSimon J. Gerraty refactor ApplyModifier_SysV to have less indentation 16533841c287SSimon J. Gerraty simplify code for :E and :R 16543841c287SSimon J. Gerraty clean up code for :H and :T 16553841c287SSimon J. Gerraty refactor ApplyModifiers 16563841c287SSimon J. Gerraty 16573841c287SSimon J. Gerraty * var.c: we need stdint.h on some platforms to get uint32_t 16583841c287SSimon J. Gerraty * unit-test/Makefile: we need to supress the specific error 16593841c287SSimon J. Gerraty for RE substitution error in modmisc, since it varies accross 16603841c287SSimon J. Gerraty different OS. 16613841c287SSimon J. Gerraty 16623841c287SSimon J. Gerraty2020-07-02 Simon J Gerraty <sjg@beast.crufty.net> 16633841c287SSimon J. Gerraty 16643841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200702 16653841c287SSimon J. Gerraty Merge with NetBSD make, pick up 16663841c287SSimon J. Gerraty o var.c: more improvements to avoiding unnecessary evaluation 16673841c287SSimon J. Gerraty use enums for flags 16683841c287SSimon J. Gerraty o remove flags arg to Var_Set which outside of var.c is always 0 16693841c287SSimon J. Gerraty 16703841c287SSimon J. Gerraty2020-07-01 Simon J Gerraty <sjg@beast.crufty.net> 16713841c287SSimon J. Gerraty 16723841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200701 16733841c287SSimon J. Gerraty Merge with NetBSD make, pick up 16743841c287SSimon J. Gerraty o var.c: with change to cond.c; ensure that nested variables 16753841c287SSimon J. Gerraty within a variable name are expanded. 16763841c287SSimon J. Gerraty o unit-tests/varmisc.mk: test for nested varname 16773841c287SSimon J. Gerraty 16783841c287SSimon J. Gerraty2020-06-29 Simon J Gerraty <sjg@beast.crufty.net> 16793841c287SSimon J. Gerraty 16803841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200629 16813841c287SSimon J. Gerraty Merge with NetBSD make, pick up 16823841c287SSimon J. Gerraty o cond.c: do not eval unnecessary terms of conditionals. 16833841c287SSimon J. Gerraty 16843841c287SSimon J. Gerraty2020-06-25 Simon J Gerraty <sjg@beast.crufty.net> 16853841c287SSimon J. Gerraty 16863841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200625 16873841c287SSimon J. Gerraty Merge with NetBSD make, pick up 16883841c287SSimon J. Gerraty o meta.c: report error if lseek in filemon_read fails 16893841c287SSimon J. Gerraty 16903841c287SSimon J. Gerraty2020-06-22 Simon J Gerraty <sjg@beast.crufty.net> 16913841c287SSimon J. Gerraty 16923841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200622 16933841c287SSimon J. Gerraty Merge with NetBSD make, pick up 16943841c287SSimon J. Gerraty o dieQuietly: ignore OP_SUBMAKE as too aggressive 16953841c287SSimon J. Gerraty 16963841c287SSimon J. Gerraty2020-06-19 Simon J Gerraty <sjg@beast.crufty.net> 16973841c287SSimon J. Gerraty 16983841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200619 16993841c287SSimon J. Gerraty Merge with NetBSD make, pick up 17003841c287SSimon J. Gerraty o str.c: performance improvement for Str_Match for multiple '*' 17013841c287SSimon J. Gerraty o dieQuietly: supress the failure output from make 17023841c287SSimon J. Gerraty when failing node is a sub-make or a sibling failed. 17033841c287SSimon J. Gerraty This cuts down greatly on unhelpful noise at the end of 17043841c287SSimon J. Gerraty build log. Disabled by -dj or .MAKE.DIE_QUIETLY=no 17053841c287SSimon J. Gerraty 17063841c287SSimon J. Gerraty2020-06-10 Simon J Gerraty <sjg@beast.crufty.net> 17073841c287SSimon J. Gerraty 17083841c287SSimon J. Gerraty * FILES: add LICENSE to appease some packagers. 17093841c287SSimon J. Gerraty This is an attempt to fairly represent the license on almost 17103841c287SSimon J. Gerraty 200 files, which are almost all BSD-3-Clause 17113841c287SSimon J. Gerraty The few exceptions being more liberal. 17123841c287SSimon J. Gerraty 17133841c287SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200610 17143841c287SSimon J. Gerraty Merge with NetBSD make, pick up 17153841c287SSimon J. Gerraty o unit test for :Or 17163841c287SSimon J. Gerraty 1717ef0b2538SSimon J. Gerraty2020-06-06 Simon J Gerraty <sjg@beast.crufty.net> 1718ef0b2538SSimon J. Gerraty 1719ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200606 1720ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 1721ef0b2538SSimon J. Gerraty o make.1: cleanup 1722ef0b2538SSimon J. Gerraty 1723ef0b2538SSimon J. Gerraty * Makefile: fix depends for main.o which broke MAKE_VERSION 1724ef0b2538SSimon J. Gerraty 1725ef0b2538SSimon J. Gerraty2020-06-05 Simon J Gerraty <sjg@beast.crufty.net> 1726ef0b2538SSimon J. Gerraty 1727ef0b2538SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200605 1728ef0b2538SSimon J. Gerraty Merge with NetBSD make, pick up 1729ef0b2538SSimon J. Gerraty o dir.c: cached_stats - don't confuse stat and lstat results. 1730ef0b2538SSimon J. Gerraty o var.c: add :Or for reverse sort. 1731ef0b2538SSimon J. Gerraty 1732ef0b2538SSimon J. Gerraty2020-05-24 Simon J Gerraty <sjg@beast.crufty.net> 1733ef0b2538SSimon J. Gerraty 1734ef0b2538SSimon J. Gerraty * configure.in: add AC_PROG_CC_C99 for mipspro compiler 1735ef0b2538SSimon J. Gerraty also if --with-filemon= specifies path to filemon.h 1736ef0b2538SSimon J. Gerraty set use_filemon=dev 1737ef0b2538SSimon J. Gerraty * dirname.c: remove include of namespace.h 1738ef0b2538SSimon J. Gerraty 173949caa483SSimon J. Gerraty2020-05-17 Simon J Gerraty <sjg@beast.crufty.net> 174049caa483SSimon J. Gerraty 174149caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200517 174249caa483SSimon J. Gerraty Merge with NetBSD make, pick up 174349caa483SSimon J. Gerraty o modified dollar tests to avoid shell dependencies 174449caa483SSimon J. Gerraty o new tests for .INCLUDEFROM 174549caa483SSimon J. Gerraty 174649caa483SSimon J. Gerraty2020-05-16 Simon J Gerraty <sjg@beast.crufty.net> 174749caa483SSimon J. Gerraty 174849caa483SSimon J. Gerraty * unit-tests/dollar.mk: tweak '1 dollar literal' test 174949caa483SSimon J. Gerraty to not depend so much on shell behavior 175049caa483SSimon J. Gerraty 175149caa483SSimon J. Gerraty2020-05-10 Simon J Gerraty <sjg@beast.crufty.net> 175249caa483SSimon J. Gerraty 175349caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200510 175449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 175549caa483SSimon J. Gerraty o unit test for dollar handling 175649caa483SSimon J. Gerraty 175749caa483SSimon J. Gerraty2020-05-06 Simon J Gerraty <sjg@beast.crufty.net> 175849caa483SSimon J. Gerraty 175949caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200506 176049caa483SSimon J. Gerraty Merge with NetBSD make, pick up 176149caa483SSimon J. Gerraty o str.c: empty string does not match % pattern 176249caa483SSimon J. Gerraty plus unit-test changes 176349caa483SSimon J. Gerraty 176449caa483SSimon J. Gerraty2020-05-04 Simon J Gerraty <sjg@beast.crufty.net> 176549caa483SSimon J. Gerraty 176649caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200504 176749caa483SSimon J. Gerraty May the 4th be with you 176849caa483SSimon J. Gerraty Merge with NetBSD make, pick up 176949caa483SSimon J. Gerraty o var.c: import handling of old sysV style modifier using '%' 177049caa483SSimon J. Gerraty o str.c: refactor brk_string 177149caa483SSimon J. Gerraty o unit-tests: add test case for lazy conditions 177249caa483SSimon J. Gerraty 177349caa483SSimon J. Gerraty2020-04-18 Simon J Gerraty <sjg@beast.crufty.net> 177449caa483SSimon J. Gerraty 177549caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200418 177649caa483SSimon J. Gerraty 177749caa483SSimon J. Gerraty * configure.in: use_makefile=no for cygwin et al. 177849caa483SSimon J. Gerraty case insensitive filesystems just don't work if both 177949caa483SSimon J. Gerraty makefile and Makefile exist. 178049caa483SSimon J. Gerraty NOTE: bmake does not support cygwin and likely never will, 178149caa483SSimon J. Gerraty but if brave souls want to try it - help them out. 178249caa483SSimon J. Gerraty 178349caa483SSimon J. Gerraty2020-04-02 Simon J Gerraty <sjg@beast.crufty.net> 178449caa483SSimon J. Gerraty 178549caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200402 178649caa483SSimon J. Gerraty Merge with NetBSD make, pick up 178749caa483SSimon J. Gerraty o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD 178849caa483SSimon J. Gerraty a blank command is perfectly valid. 178949caa483SSimon J. Gerraty 179049caa483SSimon J. Gerraty2020-03-30 Simon J Gerraty <sjg@beast.crufty.net> 179149caa483SSimon J. Gerraty 179249caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200330 179349caa483SSimon J. Gerraty Merge with NetBSD make, pick up 179449caa483SSimon J. Gerraty o make.h: extern debug_file 179549caa483SSimon J. Gerraty 179649caa483SSimon J. Gerraty2020-03-18 Simon J Gerraty <sjg@beast.crufty.net> 179749caa483SSimon J. Gerraty 179849caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200318 179949caa483SSimon J. Gerraty Merge with NetBSD make, pick up 180049caa483SSimon J. Gerraty o meta.c: meta_oodate, check for corrupted meta file 180149caa483SSimon J. Gerraty earlier and more often. 180249caa483SSimon J. Gerraty 180349caa483SSimon J. Gerraty2020-02-20 Simon J Gerraty <sjg@beast.crufty.net> 180449caa483SSimon J. Gerraty 180549caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200220 180649caa483SSimon J. Gerraty 180749caa483SSimon J. Gerraty2020-02-19 Simon J Gerraty <sjg@beast.crufty.net> 180849caa483SSimon J. Gerraty 180949caa483SSimon J. Gerraty * boot-strap: unset MAKEFLAGS 181049caa483SSimon J. Gerraty 181149caa483SSimon J. Gerraty2020-02-12 Simon J Gerraty <sjg@beast.crufty.net> 181249caa483SSimon J. Gerraty 181349caa483SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20200212 181449caa483SSimon J. Gerraty * meta.c: meta_compat_parent check for USE_FILEMON 181549caa483SSimon J. Gerraty patch from Soeren Tempel 181649caa483SSimon J. Gerraty 181749caa483SSimon J. Gerraty2020-02-05 Simon J Gerraty <sjg@beast.crufty.net> 181849caa483SSimon J. Gerraty 181949caa483SSimon J. Gerraty * VERSION: 20200205 182049caa483SSimon J. Gerraty Merge with NetBSD make, pick up 182149caa483SSimon J. Gerraty o meta.c: fix compat mode, need to call meta_job_output() 182249caa483SSimon J. Gerraty o job.c: extra fds for meta mode not needed if using filemon_dev 182349caa483SSimon J. Gerraty 182449caa483SSimon J. Gerraty2020-01-22 Simon J Gerraty <sjg@beast.crufty.net> 182549caa483SSimon J. Gerraty 182649caa483SSimon J. Gerraty * VERSION: 20200122 182749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 182849caa483SSimon J. Gerraty o meta.c: avoid passing NULL to filemon_*() when meta_needed() 182949caa483SSimon J. Gerraty returns FALSE. 183049caa483SSimon J. Gerraty 183149caa483SSimon J. Gerraty2020-01-21 Simon J Gerraty <sjg@beast.crufty.net> 183249caa483SSimon J. Gerraty 183349caa483SSimon J. Gerraty * VERSION: 20200121 183449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 183549caa483SSimon J. Gerraty o filemon/filemon_{dev,ktrace}.c: allow selection of 183649caa483SSimon J. Gerraty filemon implementation. filemon_dev.c uses the kernel module 183749caa483SSimon J. Gerraty while filemon_ktrace.c leverages the fktrace api available in 183849caa483SSimon J. Gerraty NetBSD. filemon_ktrace.c can hopefully form the basis for 183949caa483SSimon J. Gerraty adding support for other tracing mechanisms such as strace on 184049caa483SSimon J. Gerraty Linux. 184149caa483SSimon J. Gerraty o meta.c: when target is out-of-date per normal make rules 184249caa483SSimon J. Gerraty record value of .OODATE in meta file. 184349caa483SSimon J. Gerraty 184449caa483SSimon J. Gerraty2019-09-26 Simon J Gerraty <sjg@beast.crufty.net> 184549caa483SSimon J. Gerraty 184649caa483SSimon J. Gerraty * VERSION: 20190926 184749caa483SSimon J. Gerraty Merge with NetBSD make, pick up 184849caa483SSimon J. Gerraty o parse.c: don't pass NULL to realpath(3) 184949caa483SSimon J. Gerraty some versions cannot handle it. 185049caa483SSimon J. Gerraty 185149caa483SSimon J. Gerraty2019-04-09 Simon J Gerraty <sjg@beast.crufty.net> 185249caa483SSimon J. Gerraty 185349caa483SSimon J. Gerraty * VERSION: 20190409 185449caa483SSimon J. Gerraty Merge with NetBSD make, pick up 185549caa483SSimon J. Gerraty o parse.c: ParseDoDependency: free paths rather than assert 185649caa483SSimon J. Gerraty 185749caa483SSimon J. Gerraty2018-12-22 Simon J Gerraty <sjg@beast.crufty.net> 185849caa483SSimon J. Gerraty 185949caa483SSimon J. Gerraty * VERSION: 20181222 186049caa483SSimon J. Gerraty 186149caa483SSimon J. Gerraty * configure.in: add --without-makefile to avoid generating 186249caa483SSimon J. Gerraty makefile and make-bootstrap.sh 186349caa483SSimon J. Gerraty 186449caa483SSimon J. Gerraty * include Makefile.inc if it exists 186549caa483SSimon J. Gerraty 186649caa483SSimon J. Gerraty * Use Makefile and Makefile.config.in in unit-tests 186749caa483SSimon J. Gerraty so we can use just: make obj && make && make test 186849caa483SSimon J. Gerraty when bmake is already available. 186949caa483SSimon J. Gerraty We add --without-makefile to CONFIGURE_ARGS in this case. 187049caa483SSimon J. Gerraty 187149caa483SSimon J. Gerraty * tweak bsd.after-import.mk (captures Makefile.config etc 187249caa483SSimon J. Gerraty after import to FreeBSD for example) to cope with all the above. 187349caa483SSimon J. Gerraty 1874dfd669abSSimon J. Gerraty2018-12-21 Simon J Gerraty <sjg@beast.crufty.net> 1875dfd669abSSimon J. Gerraty 1876dfd669abSSimon J. Gerraty * VERSION: 20181221 1877dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 1878dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .PARSEDIR 1879dfd669abSSimon J. Gerraty and apply if relative, and then use .PARSEFILE 1880dfd669abSSimon J. Gerraty for consistent result. 1881dfd669abSSimon J. Gerraty 1882dfd669abSSimon J. Gerraty2018-12-20 Simon J Gerraty <sjg@beast.crufty.net> 1883dfd669abSSimon J. Gerraty 1884dfd669abSSimon J. Gerraty * VERSION: 20181220 1885dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 1886dfd669abSSimon J. Gerraty o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR 1887dfd669abSSimon J. Gerraty is relative 1888dfd669abSSimon J. Gerraty o var.c: avoid SEGFAULT in .unexport-env 1889dfd669abSSimon J. Gerraty when MAKELEVEL is not set 1890dfd669abSSimon J. Gerraty 1891dfd669abSSimon J. Gerraty2018-12-16 Simon J Gerraty <sjg@beast.crufty.net> 1892dfd669abSSimon J. Gerraty 1893dfd669abSSimon J. Gerraty * VERSION: 20181216 1894dfd669abSSimon J. Gerraty Merge with NetBSD make, pick up 1895dfd669abSSimon J. Gerraty o fix for unit-tests/varquote.mk on Debian 1896dfd669abSSimon J. Gerraty 18972eae894cSSimon J. Gerraty2018-09-21 Simon J. Gerraty <sjg@bad.crufty.net> 18982eae894cSSimon J. Gerraty 18992eae894cSSimon J. Gerraty * VERSION: 20180919 19002eae894cSSimon J. Gerraty Merge with NetBSD make, pick up 19012eae894cSSimon J. Gerraty o var.c: add :q 19022eae894cSSimon J. Gerraty o dir.c: cleanup caching of stats 19032eae894cSSimon J. Gerraty 19042eae894cSSimon J. Gerraty2018-09-21 Simon J Gerraty <sjg@beast.crufty.net> 19052eae894cSSimon J. Gerraty 19062eae894cSSimon J. Gerraty * Makefile.config.in: use += where it makes sense. 19072eae894cSSimon J. Gerraty 1908494f7191SSimon J. Gerraty2018-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 1909494f7191SSimon J. Gerraty 1910494f7191SSimon J. Gerraty * VERSION: 20180512 1911494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 1912494f7191SSimon J. Gerraty o job.c: skip polling job token pipe 1913494f7191SSimon J. Gerraty 1914494f7191SSimon J. Gerraty2018-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 1915494f7191SSimon J. Gerraty 1916494f7191SSimon J. Gerraty * VERSION: 20180405 1917494f7191SSimon J. Gerraty Merge with NetBSD make, pick up 1918494f7191SSimon J. Gerraty o parse.c: be more cautious about detecting depenency line 1919494f7191SSimon J. Gerraty rather than sysV style include. 1920494f7191SSimon J. Gerraty 192150d2e745SSimon J. Gerraty2018-02-22 Simon J. Gerraty <sjg@bad.crufty.net> 192250d2e745SSimon J. Gerraty 192350d2e745SSimon J. Gerraty * VERSION: 20180222 192450d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 192550d2e745SSimon J. Gerraty o parse.c: avoid calling sysconf for every call to loadfile 192650d2e745SSimon J. Gerraty 192750d2e745SSimon J. Gerraty2018-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 192850d2e745SSimon J. Gerraty 192950d2e745SSimon J. Gerraty * VERSION: 20180218 193050d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 193150d2e745SSimon J. Gerraty o var.c: Var_Set handle NULL value anytime. 193250d2e745SSimon J. Gerraty 193350d2e745SSimon J. Gerraty2018-02-12 Simon J. Gerraty <sjg@bad.crufty.net> 193450d2e745SSimon J. Gerraty 193550d2e745SSimon J. Gerraty * VERSION: 20180212 193650d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 193750d2e745SSimon J. Gerraty o parse.c: do not treat .info as warning with -W 193850d2e745SSimon J. Gerraty 193950d2e745SSimon J. Gerraty2017-12-07 Simon J. Gerraty <sjg@bad.crufty.net> 194050d2e745SSimon J. Gerraty 194150d2e745SSimon J. Gerraty * VERSION: 20171207 194250d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 194350d2e745SSimon J. Gerraty o var.c: Var_Append use Var_Set if var not previously set 194450d2e745SSimon J. Gerraty so that VAR_CMD is handled correctly. 194550d2e745SSimon J. Gerraty Add a suitable unit-test. 194650d2e745SSimon J. Gerraty 194750d2e745SSimon J. Gerraty2017-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 194850d2e745SSimon J. Gerraty 194950d2e745SSimon J. Gerraty * VERSION (_MAKE_VERSION): 20171126 195050d2e745SSimon J. Gerraty 195150d2e745SSimon J. Gerraty * aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__ 195250d2e745SSimon J. Gerraty since AC_TRY_COMPILE puts input inside main() 195350d2e745SSimon J. Gerraty which upsets modern compilers. 195450d2e745SSimon J. Gerraty 195550d2e745SSimon J. Gerraty2017-11-18 Simon J. Gerraty <sjg@bad.crufty.net> 195650d2e745SSimon J. Gerraty 195750d2e745SSimon J. Gerraty * VERSION: 20171118 195850d2e745SSimon J. Gerraty Merge with NetBSD make, pick up 195950d2e745SSimon J. Gerraty o var.c: do not append to variable set on command line 196050d2e745SSimon J. Gerraty add unit-test to catch this. 196150d2e745SSimon J. Gerraty 1962e22fef7dSSimon J. Gerraty2017-10-28 Simon J. Gerraty <sjg@bad.crufty.net> 1963e22fef7dSSimon J. Gerraty 1964e22fef7dSSimon J. Gerraty * VERSION: 20171028 1965e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 1966e22fef7dSSimon J. Gerraty o main.c: ignore empty MAKEOBJDIR 1967e22fef7dSSimon J. Gerraty 1968e22fef7dSSimon J. Gerraty * Makefile.config.in: 1969e22fef7dSSimon J. Gerraty make @prefix@ @machine*@ and @default_sys_path@ defaults. 1970e22fef7dSSimon J. Gerraty 1971e22fef7dSSimon J. Gerraty2017-10-05 Simon J. Gerraty <sjg@bad.crufty.net> 1972e22fef7dSSimon J. Gerraty 1973e22fef7dSSimon J. Gerraty * VERSION: 20171005 1974e22fef7dSSimon J. Gerraty 1975e22fef7dSSimon J. Gerraty * unit-tests/dotwait.mk: redirect stderr through pipe for more 1976e22fef7dSSimon J. Gerraty consistent result on some platforms. 1977e22fef7dSSimon J. Gerraty 1978e22fef7dSSimon J. Gerraty2017-08-13 Simon J. Gerraty <sjg@bad.crufty.net> 1979e22fef7dSSimon J. Gerraty 1980e22fef7dSSimon J. Gerraty * machine.sh: entry for AIX 1981e22fef7dSSimon J. Gerraty 1982e22fef7dSSimon J. Gerraty2017-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 1983e22fef7dSSimon J. Gerraty 1984e22fef7dSSimon J. Gerraty * VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION 1985e22fef7dSSimon J. Gerraty to a file that can be included by configure as well as make. 1986e22fef7dSSimon J. Gerraty This allows configure to set set _MAKE_VERSION in make-bootstrap.sh 1987e22fef7dSSimon J. Gerraty 1988e22fef7dSSimon J. Gerraty2017-08-10 Simon J. Gerraty <sjg@bad.crufty.net> 1989e22fef7dSSimon J. Gerraty 1990e22fef7dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170810 1991e22fef7dSSimon J. Gerraty Merge with NetBSD make, pick up 1992e22fef7dSSimon J. Gerraty o meta.c: if target is in subdir we only need subdir name in 1993e22fef7dSSimon J. Gerraty meta_name. 1994e22fef7dSSimon J. Gerraty 1995c7019bf7SSimon J. Gerraty2017-07-20 Simon J. Gerraty <sjg@bad.crufty.net> 1996c7019bf7SSimon J. Gerraty 1997c7019bf7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170720 1998c7019bf7SSimon J. Gerraty Merge with NetBSD make, pick up 1999c7019bf7SSimon J. Gerraty o compat.c: pass SIGINT etc onto child and wait for it to exit 2000c7019bf7SSimon J. Gerraty before we self-terminate. 2001c7019bf7SSimon J. Gerraty 20028695518cSSimon J. Gerraty2017-07-11 Simon J. Gerraty <sjg@bad.crufty.net> 20038695518cSSimon J. Gerraty 20048695518cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170711 20058695518cSSimon J. Gerraty forgot to update after merge on 20170708 ;-) 20068695518cSSimon J. Gerraty o main.c: refactor to reduce size of main function. 20078695518cSSimon J. Gerraty add -v option to always fully expand values. 20088695518cSSimon J. Gerraty o meta.c: ensure command output in meta file has ending newline 20098695518cSSimon J. Gerraty even when filemon not being used. 20108695518cSSimon J. Gerraty When matching ${.MAKE.META.IGNORE_PATTERNS} do not use 20118695518cSSimon J. Gerraty pathname via ':L' since any ':' in pathname breaks that. 20128695518cSSimon J. Gerraty Instead set a '${.p.}' to pathname in the target context and 20138695518cSSimon J. Gerraty use that. 20148695518cSSimon J. Gerraty 2015cac6fd11SSimon J. Gerraty2017-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 2016cac6fd11SSimon J. Gerraty 2017cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170510 2018cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2019cac6fd11SSimon J. Gerraty o main.c: Main_SetObjdir: ensure buf2 is in scope 2020cac6fd11SSimon J. Gerraty 2021cac6fd11SSimon J. Gerraty2017-05-08 Simon J. Gerraty <sjg@bad.crufty.net> 2022cac6fd11SSimon J. Gerraty 2023cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170505 2024cac6fd11SSimon J. Gerraty see mk/ChangeLog 2025cac6fd11SSimon J. Gerraty 2026cac6fd11SSimon J. Gerraty2017-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 2027cac6fd11SSimon J. Gerraty 2028cac6fd11SSimon J. Gerraty * parse.c: not everyone has stdint.h 2029cac6fd11SSimon J. Gerraty 2030cac6fd11SSimon J. Gerraty2017-05-01 Simon J. Gerraty <sjg@bad.crufty.net> 2031cac6fd11SSimon J. Gerraty 2032cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170501 2033cac6fd11SSimon J. Gerraty see mk/ChangeLog 2034cac6fd11SSimon J. Gerraty 2035cac6fd11SSimon J. Gerraty2017-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 2036cac6fd11SSimon J. Gerraty 2037cac6fd11SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170421 2038cac6fd11SSimon J. Gerraty Merge with NetBSD make, pick up 2039cac6fd11SSimon J. Gerraty o str.c: Str_Match: fix closure tests for [^] and add unit-test. 2040cac6fd11SSimon J. Gerraty 2041e1cee40dSSimon J. Gerraty2017-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 2042e1cee40dSSimon J. Gerraty 2043e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170420 2044e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2045e1cee40dSSimon J. Gerraty o main.c: only use -C arg "as is" if it contains no 2046e1cee40dSSimon J. Gerraty relative component. 2047e1cee40dSSimon J. Gerraty 2048e1cee40dSSimon J. Gerraty2017-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2049e1cee40dSSimon J. Gerraty 2050e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170418 2051e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2052e1cee40dSSimon J. Gerraty o main.c: fix Main_SetObjdir() for relative paths (eg obj). 2053e1cee40dSSimon J. Gerraty 2054e1cee40dSSimon J. Gerraty2017-04-17 Simon J. Gerraty <sjg@bad.crufty.net> 2055e1cee40dSSimon J. Gerraty 2056e1cee40dSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170417 2057e1cee40dSSimon J. Gerraty Merge with NetBSD make, pick up 2058e1cee40dSSimon J. Gerraty o fixes a number of coverity complaints 2059e1cee40dSSimon J. Gerraty - check return value of fseek, fcntl 2060e1cee40dSSimon J. Gerraty - plug memory leak in Dir_FindFile, Var_LoopExpand, 2061e1cee40dSSimon J. Gerraty JobPrintCommand, ParseTraditionalInclude 2062e1cee40dSSimon J. Gerraty - use bmake_malloc() where NULL is not tollerated 2063e1cee40dSSimon J. Gerraty - use MAKE_ATTR_UNUSED rather that kludges like 2064e1cee40dSSimon J. Gerraty return(unused ? 0 : 0) 2065e1cee40dSSimon J. Gerraty - use purge_cached_realpaths() rather than abuse cached_realpath() 2066e1cee40dSSimon J. Gerraty 2067b46b9039SSimon J. Gerraty2017-04-13 Simon J. Gerraty <sjg@bad.crufty.net> 2068b46b9039SSimon J. Gerraty 2069b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170413 2070b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2071b46b9039SSimon J. Gerraty o main.c: when setting .OBJDIR ignore '$' in paths. 2072b46b9039SSimon J. Gerraty 2073b46b9039SSimon J. Gerraty * job.c: use MALLOC_OPTIONS to set malloc_options. 2074b46b9039SSimon J. Gerraty 2075b46b9039SSimon J. Gerraty2017-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2076b46b9039SSimon J. Gerraty 2077b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170411 2078b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2079b46b9039SSimon J. Gerraty o str.c: Str_Match: allow [^a-z] to behave as expected. 2080b46b9039SSimon J. Gerraty 2081b46b9039SSimon J. Gerraty2017-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2082b46b9039SSimon J. Gerraty 2083b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170326 2084b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2085b46b9039SSimon J. Gerraty o main.c: purge relative paths from realpath cache when .OBJDIR 2086b46b9039SSimon J. Gerraty is changed. 2087b46b9039SSimon J. Gerraty 2088b46b9039SSimon J. Gerraty2017-03-11 Simon J. Gerraty <sjg@bad.crufty.net> 2089b46b9039SSimon J. Gerraty 2090b46b9039SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170311 2091b46b9039SSimon J. Gerraty Merge with NetBSD make, pick up 2092b46b9039SSimon J. Gerraty o main.c: only use -C arg "as is" if it starts with '/'. 2093b46b9039SSimon J. Gerraty 20941ce939a7SSimon J. Gerraty2017-03-01 Simon J. Gerraty <sjg@bad.crufty.net> 20951ce939a7SSimon J. Gerraty 20961ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170301 20971ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 2098b46b9039SSimon J. Gerraty o main.c: use -C arg "as is" rather than getcwd() 20991ce939a7SSimon J. Gerraty if they identify the same directory. 21001ce939a7SSimon J. Gerraty o parse.c: ensure loadfile buffer is \n terminated in non-mmap case 21011ce939a7SSimon J. Gerraty 21021ce939a7SSimon J. Gerraty2017-02-01 Simon J. Gerraty <sjg@bad.crufty.net> 21031ce939a7SSimon J. Gerraty 21041ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170201 21051ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 21061ce939a7SSimon J. Gerraty o var.c: allow :_=var and avoid use of special context. 21071ce939a7SSimon J. Gerraty 21081ce939a7SSimon J. Gerraty2017-01-30 Simon J. Gerraty <sjg@bad.crufty.net> 21091ce939a7SSimon J. Gerraty 21101ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170130 21111ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 21121ce939a7SSimon J. Gerraty o var.c: add :range and :_ 21131ce939a7SSimon J. Gerraty o main.c: partially initialize Dir_* before MainParseArgs() 21141ce939a7SSimon J. Gerraty can be called. 21151ce939a7SSimon J. Gerraty If -V, skip Main_ExportMAKEFLAGS() 21161ce939a7SSimon J. Gerraty 21171ce939a7SSimon J. Gerraty2017-01-14 Simon J. Gerraty <sjg@bad.crufty.net> 21181ce939a7SSimon J. Gerraty 21191ce939a7SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20170114 21201ce939a7SSimon J. Gerraty Merge with NetBSD make, pick up 21211ce939a7SSimon J. Gerraty o var.c: allow specifying the utc value used by :{gm,local}time 21221ce939a7SSimon J. Gerraty 212345447996SSimon J. Gerraty2016-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 212445447996SSimon J. Gerraty 212545447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161212 212645447996SSimon J. Gerraty Merge with NetBSD make, pick up 212745447996SSimon J. Gerraty o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too. 212845447996SSimon J. Gerraty 212945447996SSimon J. Gerraty2016-12-09 Simon J. Gerraty <sjg@bad.crufty.net> 213045447996SSimon J. Gerraty 213145447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161209 213245447996SSimon J. Gerraty Merge with NetBSD make, pick up 213345447996SSimon J. Gerraty o main.c: cleanup setting of .OBJDIR 213445447996SSimon J. Gerraty o parse.c: avoid coredump from (var)=val 213545447996SSimon J. Gerraty 213645447996SSimon J. Gerraty2016-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 213745447996SSimon J. Gerraty 213845447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20161126 213945447996SSimon J. Gerraty Merge with NetBSD make, pick up 214045447996SSimon J. Gerraty o make.c: Make_OODate: report src node name if path not set 214145447996SSimon J. Gerraty 214245447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 214345447996SSimon J. Gerraty 214445447996SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160926 214545447996SSimon J. Gerraty Merge with NetBSD make, pick up 214645447996SSimon J. Gerraty o support for .DELETE_ON_ERROR: (remove targets that fail) 214745447996SSimon J. Gerraty 214845447996SSimon J. Gerraty2016-09-26 Simon J. Gerraty <sjg@bad.crufty.net> 214945447996SSimon J. Gerraty 215045447996SSimon J. Gerraty * Makefile MAN: tweak .Dt to match ${PROG} 215145447996SSimon J. Gerraty 215295e3ed2cSSimon J. Gerraty2016-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 215395e3ed2cSSimon J. Gerraty 215495e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160818 215595e3ed2cSSimon J. Gerraty its a neater number; pick up whitespace fixes to man page. 215695e3ed2cSSimon J. Gerraty 215795e3ed2cSSimon J. Gerraty2016-08-17 Simon J. Gerraty <sjg@bad.crufty.net> 215895e3ed2cSSimon J. Gerraty 215995e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160817 216095e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 216195e3ed2cSSimon J. Gerraty o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore() 216295e3ed2cSSimon J. Gerraty so we can call it before adding entries to missingFiles. 216395e3ed2cSSimon J. Gerraty Thus we do not track files we have been told to ignore. 216495e3ed2cSSimon J. Gerraty 216595e3ed2cSSimon J. Gerraty2016-08-15 Simon J. Gerraty <sjg@bad.crufty.net> 216695e3ed2cSSimon J. Gerraty 216795e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160815 216895e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 216995e3ed2cSSimon J. Gerraty o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to 217095e3ed2cSSimon J. Gerraty pathnames, and skip if the expansion is empty. 217195e3ed2cSSimon J. Gerraty Useful for dirdeps.mk when checking DIRDEPS_CACHE. 217295e3ed2cSSimon J. Gerraty 217395e3ed2cSSimon J. Gerraty2016-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 217495e3ed2cSSimon J. Gerraty 217595e3ed2cSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160812 217695e3ed2cSSimon J. Gerraty Merge with NetBSD make, pick up 217795e3ed2cSSimon J. Gerraty o meta.c: remove all missingFiles entries that match a deleted 217895e3ed2cSSimon J. Gerraty dir. 217995e3ed2cSSimon J. Gerraty o main.c: set .ERROR_CMD if possible. 218095e3ed2cSSimon J. Gerraty 218139ac7ef4SSimon J. Gerraty2016-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 218239ac7ef4SSimon J. Gerraty 218339ac7ef4SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160606 218439ac7ef4SSimon J. Gerraty Merge with NetBSD make, pick up 218539ac7ef4SSimon J. Gerraty o dir.c: extend mtimes cache to others via cached_stat() 218639ac7ef4SSimon J. Gerraty 2187b778b302SSimon J. Gerraty2016-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 2188b778b302SSimon J. Gerraty 2189b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160604 2190b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2191b778b302SSimon J. Gerraty o meta.c: missing filemon data is only relevant if we read a 2192b778b302SSimon J. Gerraty meta file. 2193b778b302SSimon J. Gerraty Also do not return oodate for a missing metafile if gn->path 2194b778b302SSimon J. Gerraty points to .CURDIR 2195b778b302SSimon J. Gerraty 2196b778b302SSimon J. Gerraty2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 2197b778b302SSimon J. Gerraty 2198b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160602 2199b778b302SSimon J. Gerraty Merge with NetBSD make, pick up 2200b778b302SSimon J. Gerraty o cached_realpath(): avoid hitting filesystem more than necessary. 2201b778b302SSimon J. Gerraty o meta.c: refactor need_meta decision, add knobs for 2202b778b302SSimon J. Gerraty missing meta file and filemon data wrt out-of-datedness. 2203b778b302SSimon J. Gerraty 2204b778b302SSimon J. Gerraty2016-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 2205b778b302SSimon J. Gerraty 2206b778b302SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160528 2207b778b302SSimon J. Gerraty 2208b778b302SSimon J. Gerraty * boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION 2209b778b302SSimon J. Gerraty 2210e48f47ddSSimon J. Gerraty2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 2211e48f47ddSSimon J. Gerraty 2212e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160512 2213e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2214e48f47ddSSimon J. Gerraty o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS 2215e48f47ddSSimon J. Gerraty this is useful for gcov builds. 2216e48f47ddSSimon J. Gerraty o propagate errors from filemon(4). 2217e48f47ddSSimon J. Gerraty 2218e48f47ddSSimon J. Gerraty2016-05-09 Simon J. Gerraty <sjg@bad.crufty.net> 2219e48f47ddSSimon J. Gerraty 2220e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160509 2221e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2222e48f47ddSSimon J. Gerraty o remove use of non-standard types u_int etc. 2223e48f47ddSSimon J. Gerraty o meta.c: apply realpath() before matching against metaIgnorePaths 2224e48f47ddSSimon J. Gerraty 2225e48f47ddSSimon J. Gerraty2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net> 2226e48f47ddSSimon J. Gerraty 2227e48f47ddSSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160404 2228e48f47ddSSimon J. Gerraty Merge with NetBSD make, pick up 2229e48f47ddSSimon J. Gerraty o allow makefile to set .MAKE.JOBS 2230e48f47ddSSimon J. Gerraty 2231e48f47ddSSimon J. Gerraty * Makefile (PROG_NAME): use ${_MAKE_VERSION} 2232e48f47ddSSimon J. Gerraty 22333bebe729SSimon J. Gerraty2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net> 22343bebe729SSimon J. Gerraty 22353bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): 20160315 22363bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 22373bebe729SSimon J. Gerraty o fix handling of archive members 22383bebe729SSimon J. Gerraty 22393bebe729SSimon J. Gerraty2016-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 22403bebe729SSimon J. Gerraty 22413bebe729SSimon J. Gerraty * Makefile (_MAKE_VERSION): rename variable to avoid interference 22423bebe729SSimon J. Gerraty with checks for ${MAKE_VERSION} 22433bebe729SSimon J. Gerraty 22443bebe729SSimon J. Gerraty2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net> 22453bebe729SSimon J. Gerraty 22463bebe729SSimon J. Gerraty * Makefile (MAKE_VERSION): 20160310 22473bebe729SSimon J. Gerraty Merge with NetBSD make, pick up 22483bebe729SSimon J. Gerraty o meta.c: treat missing Read file same as Write, incase we Delete it. 22493bebe729SSimon J. Gerraty 2250be19d90bSSimon J. Gerraty2016-03-07 Simon J. Gerraty <sjg@bad.crufty.net> 2251be19d90bSSimon J. Gerraty 2252be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160307 2253be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2254be19d90bSSimon J. Gerraty o var.c: fix :ts\nnn to be octal by default. 2255be19d90bSSimon J. Gerraty o meta.c: meta_finish() to cleanup memory. 2256be19d90bSSimon J. Gerraty 2257be19d90bSSimon J. Gerraty2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 2258be19d90bSSimon J. Gerraty 2259be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160226 2260be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2261be19d90bSSimon J. Gerraty o meta.c: allow meta file for makeDepend if makefiles want it. 2262be19d90bSSimon J. Gerraty 2263be19d90bSSimon J. Gerraty2016-02-19 Simon J. Gerraty <sjg@bad.crufty.net> 2264be19d90bSSimon J. Gerraty 2265be19d90bSSimon J. Gerraty * var.c: default .MAKE.SAVE_DOLLARS to FALSE 2266be19d90bSSimon J. Gerraty for backwards compatability. 2267be19d90bSSimon J. Gerraty 2268be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160220 2269be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2270be19d90bSSimon J. Gerraty o var.c: add knob to control handling of '$$' in := 2271be19d90bSSimon J. Gerraty 2272be19d90bSSimon J. Gerraty2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 2273be19d90bSSimon J. Gerraty 2274be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160218 2275be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2276be19d90bSSimon J. Gerraty o var.c: add .export-literal allows us to fix sys.clean-env.mk 2277be19d90bSSimon J. Gerraty post the changes to Var_Subst. 2278be19d90bSSimon J. Gerraty Var_Subst now takes flags, and does not consume '$$' in := 2279be19d90bSSimon J. Gerraty 2280be19d90bSSimon J. Gerraty2016-02-17 Simon J. Gerraty <sjg@bad.crufty.net> 2281be19d90bSSimon J. Gerraty 2282be19d90bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20160217 2283be19d90bSSimon J. Gerraty Merge with NetBSD make, pick up 2284be19d90bSSimon J. Gerraty o var.c: preserve '$$' in := 2285be19d90bSSimon J. Gerraty o parse.c: add .dinclude for handling included 2286be19d90bSSimon J. Gerraty makefile like .depend 2287be19d90bSSimon J. Gerraty 22886e050540SSimon J. Gerraty2015-12-20 Simon J. Gerraty <sjg@bad.crufty.net> 22896e050540SSimon J. Gerraty 22906e050540SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151220 22916e050540SSimon J. Gerraty Merge with NetBSD make, pick up 22926e050540SSimon J. Gerraty o suff.c: re-initialize suffNull when clearing suffixes. 22936e050540SSimon J. Gerraty 2294ac3446e9SSimon J. Gerraty2015-12-01 Simon J. Gerraty <sjg@bad.crufty.net> 2295ac3446e9SSimon J. Gerraty 2296ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151201 2297ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2298ac3446e9SSimon J. Gerraty o cond.c: CondCvtArg: avoid access beyond end of empty buffer. 2299ac3446e9SSimon J. Gerraty o meta.c: meta_oodate: use lstat(2) for checking link target 2300ac3446e9SSimon J. Gerraty in case it is a symlink. 2301ac3446e9SSimon J. Gerraty o var.c: avoid calling brk_string and Var_Export1 with empty 2302ac3446e9SSimon J. Gerraty strings. 2303ac3446e9SSimon J. Gerraty 2304ac3446e9SSimon J. Gerraty2015-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 2305ac3446e9SSimon J. Gerraty 2306ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151126 2307ac3446e9SSimon J. Gerraty Merge with NetBSD make, pick up 2308ac3446e9SSimon J. Gerraty o parse.c: ParseTrackInput don't access beyond 2309ac3446e9SSimon J. Gerraty end of old value. 2310ac3446e9SSimon J. Gerraty 2311ac3446e9SSimon J. Gerraty2015-10-22 Simon J. Gerraty <sjg@bad.crufty.net> 2312ac3446e9SSimon J. Gerraty 2313ac3446e9SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151022 2314ac3446e9SSimon J. Gerraty 2315ac3446e9SSimon J. Gerraty * Add support for BSD/OS which lacks inttypes.h 2316ac3446e9SSimon J. Gerraty and really needs sys/param.h for sys/sysctl.h 2317ac3446e9SSimon J. Gerraty also 'type' is not a shell builtin. 2318ac3446e9SSimon J. Gerraty 2319ac3446e9SSimon J. Gerraty * var.c: eliminate uint32_t and need for inttypes.h 2320ac3446e9SSimon J. Gerraty 2321ac3446e9SSimon J. Gerraty * main.c: PrintOnError flush stdout before run .ERROR 2322ac3446e9SSimon J. Gerraty 2323ac3446e9SSimon J. Gerraty * parse.c: cope with _SC_PAGESIZE not being defined. 2324ac3446e9SSimon J. Gerraty 2325ac3446e9SSimon J. Gerraty 23264c620fe5SSimon J. Gerraty2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net> 23274c620fe5SSimon J. Gerraty 23284c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151020 23294c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 23304c620fe5SSimon J. Gerraty o var.c: fix uninitialized var 23314c620fe5SSimon J. Gerraty 23324c620fe5SSimon J. Gerraty2015-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 23334c620fe5SSimon J. Gerraty 23344c620fe5SSimon J. Gerraty * var.c: the conditional expressions used with ':?' can be 23354c620fe5SSimon J. Gerraty expensive, if already discarding do not evaluate or expand 23364c620fe5SSimon J. Gerraty anything. 23374c620fe5SSimon J. Gerraty 23384c620fe5SSimon J. Gerraty2015-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 23394c620fe5SSimon J. Gerraty 23404c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151010 23414c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 23424c620fe5SSimon J. Gerraty o Add Boolean wantit flag to Var_Subst and Var_Parse 23434c620fe5SSimon J. Gerraty when FALSE we know we are discarding the result and can 23444c620fe5SSimon J. Gerraty skip operations like Cmd_Exec. 23454c620fe5SSimon J. Gerraty 23464c620fe5SSimon J. Gerraty2015-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 23474c620fe5SSimon J. Gerraty 23484c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20151009 23494c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 23504c620fe5SSimon J. Gerraty o var.c: don't check for NULL before free() 23514c620fe5SSimon J. Gerraty o meta.c: meta_oodate, do not hard code ignore of makeDependfile 23524c620fe5SSimon J. Gerraty 23534c620fe5SSimon J. Gerraty2015-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 23544c620fe5SSimon J. Gerraty 23554c620fe5SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150910 23564c620fe5SSimon J. Gerraty Merge with NetBSD make, pick up 23574c620fe5SSimon J. Gerraty o main.c: with -w print Enter/Leaving messages for objdir too 23584c620fe5SSimon J. Gerraty if necessary. 23594c620fe5SSimon J. Gerraty o centralize shell metachar handling 23604c620fe5SSimon J. Gerraty 23614c620fe5SSimon J. Gerraty * FILES: add metachar.[ch] 23624c620fe5SSimon J. Gerraty 2363128a4105SSimon J. Gerraty2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 2364128a4105SSimon J. Gerraty 2365128a4105SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150606 2366128a4105SSimon J. Gerraty Merge with NetBSD make, pick up 2367128a4105SSimon J. Gerraty o make.1: document .OBJDIR target 2368128a4105SSimon J. Gerraty 236928a6bc81SSimon J. Gerraty2015-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 237028a6bc81SSimon J. Gerraty 237128a6bc81SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150505 237228a6bc81SSimon J. Gerraty Merge with NetBSD make, pick up 237328a6bc81SSimon J. Gerraty o cond.c: be strict about lhs of comparison when evaluating .if 237428a6bc81SSimon J. Gerraty but less so when called from variable expansion. 237528a6bc81SSimon J. Gerraty o unit-tests/cond2.mk: test various error conditions 237628a6bc81SSimon J. Gerraty 237728a6bc81SSimon J. Gerraty2015-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 237828a6bc81SSimon J. Gerraty 237928a6bc81SSimon J. Gerraty * machine.sh (MACHINE): Add Bitrig 238028a6bc81SSimon J. Gerraty patch from joerg@netbsd.org 238128a6bc81SSimon J. Gerraty 2382db29cad8SSimon J. Gerraty2015-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 2383db29cad8SSimon J. Gerraty 2384db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150418 2385db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2386db29cad8SSimon J. Gerraty o job.c: use memmove() rather than memcpy() 2387db29cad8SSimon J. Gerraty 2388db29cad8SSimon J. Gerraty * unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL 2389db29cad8SSimon J. Gerraty case, so skip it. 2390db29cad8SSimon J. Gerraty 2391db29cad8SSimon J. Gerraty2015-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 2392db29cad8SSimon J. Gerraty 2393db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150411 2394db29cad8SSimon J. Gerraty bump version - only mk/ changes. 2395db29cad8SSimon J. Gerraty 2396db29cad8SSimon J. Gerraty2015-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 2397db29cad8SSimon J. Gerraty 2398db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150410 2399db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2400db29cad8SSimon J. Gerraty o document different handling of '-' in jobs mode vs compat 2401db29cad8SSimon J. Gerraty o fix jobs mode so that '-' only applies to whole job 2402db29cad8SSimon J. Gerraty when shell lacks hasErrCtl 2403db29cad8SSimon J. Gerraty o meta.c: use separate vars to track lcwd and latestdir (read) 2404db29cad8SSimon J. Gerraty per process 2405db29cad8SSimon J. Gerraty 2406db29cad8SSimon J. Gerraty2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 2407db29cad8SSimon J. Gerraty 2408db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20150401 2409db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2410db29cad8SSimon J. Gerraty o meta.c: close meta file in child 2411db29cad8SSimon J. Gerraty 2412db29cad8SSimon J. Gerraty * Makefile: use BINDIR.bmake if set. 2413db29cad8SSimon J. Gerraty Same for MANDIR and SHAREDIR 2414db29cad8SSimon J. Gerraty Handy for testing release candidates 2415db29cad8SSimon J. Gerraty in various environments. 2416db29cad8SSimon J. Gerraty 2417db29cad8SSimon J. Gerraty2015-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 2418db29cad8SSimon J. Gerraty 2419db29cad8SSimon J. Gerraty * move initialization of savederr to block where it is used 2420db29cad8SSimon J. Gerraty to avoid spurious warning from gcc5 2421db29cad8SSimon J. Gerraty 2422db29cad8SSimon J. Gerraty2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 2423db29cad8SSimon J. Gerraty 2424db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141111 2425db29cad8SSimon J. Gerraty just a cooler number 2426db29cad8SSimon J. Gerraty 2427db29cad8SSimon J. Gerraty2014-11-05 Simon J. Gerraty <sjg@bad.crufty.net> 2428db29cad8SSimon J. Gerraty 2429db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20141105 2430db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2431db29cad8SSimon J. Gerraty o revert major overhaul of suffix handling 2432db29cad8SSimon J. Gerraty and POSIX compliance - too much breakage 2433db29cad8SSimon J. Gerraty and impossible to make backwards compatible. 2434db29cad8SSimon J. Gerraty o we still have the new unit test structure which is ok. 2435db29cad8SSimon J. Gerraty o meta.c ensure "-- filemon" is at start of line. 2436db29cad8SSimon J. Gerraty 2437db29cad8SSimon J. Gerraty2014-09-17 Simon J. Gerraty <sjg@bad.crufty.net> 2438db29cad8SSimon J. Gerraty 2439db29cad8SSimon J. Gerraty * configure.in: test that result of getconf PATH_MAX is numeric 2440db29cad8SSimon J. Gerraty and discard if not. Apparently needed for Hurd. 2441db29cad8SSimon J. Gerraty 2442db29cad8SSimon J. Gerraty2014-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 2443db29cad8SSimon J. Gerraty 2444db29cad8SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140830 2445db29cad8SSimon J. Gerraty Merge with NetBSD make, pick up 2446db29cad8SSimon J. Gerraty o major overhaul of suffix handling 2447db29cad8SSimon J. Gerraty o improved POSIX compliance 2448db29cad8SSimon J. Gerraty o overhauled unit-tests 2449db29cad8SSimon J. Gerraty 24505bcb7424SSimon J. Gerraty2014-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 24515bcb7424SSimon J. Gerraty 24525bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140620 24535bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 2454db29cad8SSimon J. Gerraty o var.c return varNoError rather than var_Error for ::= modifiers. 24555bcb7424SSimon J. Gerraty 24565bcb7424SSimon J. Gerraty2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net> 24575bcb7424SSimon J. Gerraty 24585bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140522 24595bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 24605bcb7424SSimon J. Gerraty o var.c detect some parse errors. 24615bcb7424SSimon J. Gerraty 24625bcb7424SSimon J. Gerraty2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 24635bcb7424SSimon J. Gerraty 24645bcb7424SSimon J. Gerraty * Fix spelling errors - patch from Pedro Giffuni 24655bcb7424SSimon J. Gerraty 24665bcb7424SSimon J. Gerraty2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 24675bcb7424SSimon J. Gerraty 24685bcb7424SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140214 24695bcb7424SSimon J. Gerraty Merge with NetBSD make, pick up 24705bcb7424SSimon J. Gerraty o .INCLUDEFROM* 24715bcb7424SSimon J. Gerraty o use Var_Value to get MAKEOBJDIR[PREFIX] 24725bcb7424SSimon J. Gerraty o reduced realloc'ign in brk_string. 24735bcb7424SSimon J. Gerraty * configure.in: add a check for compiler supporting __func__ 24745bcb7424SSimon J. Gerraty 24750dede8b0SSimon J. Gerraty2014-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 24760dede8b0SSimon J. Gerraty 24770dede8b0SSimon J. Gerraty * boot-strap: ignore mksrc=none 24780dede8b0SSimon J. Gerraty 24790dede8b0SSimon J. Gerraty2014-01-02 Simon J. Gerraty <sjg@bad.crufty.net> 24800dede8b0SSimon J. Gerraty 24810dede8b0SSimon J. Gerraty * Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk 24820dede8b0SSimon J. Gerraty 24830dede8b0SSimon J. Gerraty2014-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 24840dede8b0SSimon J. Gerraty 24850dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20140101 24860dede8b0SSimon J. Gerraty * configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024) 24870dede8b0SSimon J. Gerraty * Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max 24880dede8b0SSimon J. Gerraty * make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for 24890dede8b0SSimon J. Gerraty Hurd) 24900dede8b0SSimon J. Gerraty * configure.in: Add AC_PREREQ and check for 24910dede8b0SSimon J. Gerraty sysctl; patch from Andrew Shadura andrewsh at debian.org 24920dede8b0SSimon J. Gerraty 24930dede8b0SSimon J. Gerraty2013-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 24940dede8b0SSimon J. Gerraty 24950dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131010 24960dede8b0SSimon J. Gerraty * lose the const from arg to systcl to avoid problems on older BSDs. 24970dede8b0SSimon J. Gerraty 24980dede8b0SSimon J. Gerraty2013-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 24990dede8b0SSimon J. Gerraty 25000dede8b0SSimon J. Gerraty * Makefile (MAKE_VERSION): 20131001 25010dede8b0SSimon J. Gerraty Merge with NetBSD make, pick up 25020dede8b0SSimon J. Gerraty o main.c: for NATIVE build sysctl to get MACHINE_ARCH from 25030dede8b0SSimon J. Gerraty hw.machine_arch if necessary. 25040dede8b0SSimon J. Gerraty o meta.c: meta_oodate - need to look at src of Link and target 25050dede8b0SSimon J. Gerraty of Move as well. 25060dede8b0SSimon J. Gerraty * main.c: check that CTL_HW and HW_MACHINE_ARCH exist. 25070dede8b0SSimon J. Gerraty provide __arraycount() if needed. 25080dede8b0SSimon J. Gerraty 25091bbe5942SSimon J. Gerraty2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net> 25101bbe5942SSimon J. Gerraty 25111bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130904 25121bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 25131bbe5942SSimon J. Gerraty o Add VAR_INTERNAL context, so that internal setting of 25141bbe5942SSimon J. Gerraty MAKEFILE does not override value set by makefiles. 25151bbe5942SSimon J. Gerraty 25161bbe5942SSimon J. Gerraty2013-09-02 Simon J. Gerraty <sjg@bad.crufty.net> 25171bbe5942SSimon J. Gerraty 25181bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130902 25191bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 25201bbe5942SSimon J. Gerraty o CompatRunCommand: only apply shellErrFlag when errCheck is true 25211bbe5942SSimon J. Gerraty 25221bbe5942SSimon J. Gerraty2013-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 25231bbe5942SSimon J. Gerraty 25241bbe5942SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130828 25251bbe5942SSimon J. Gerraty Merge with NetBSD make, pick up 25261bbe5942SSimon J. Gerraty o Fix VAR :sh = syntax from Will Andrews at freebsd.org 25271bbe5942SSimon J. Gerraty o Call Job_SetPrefix() from Job_Init() so makefiles have 25281bbe5942SSimon J. Gerraty opportunity to set .MAKE.JOB.PREFIX 25291bbe5942SSimon J. Gerraty 253051ee2c1cSSimon J. Gerraty2013-07-30 Simon J. Gerraty <sjg@bad.crufty.net> 253151ee2c1cSSimon J. Gerraty 253251ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130730 253351ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 253451ee2c1cSSimon J. Gerraty o Allow suppression of --- job -- tokens by setting 253551ee2c1cSSimon J. Gerraty .MAKE.JOB.PREFIX empty. 253651ee2c1cSSimon J. Gerraty 253751ee2c1cSSimon J. Gerraty2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net> 253851ee2c1cSSimon J. Gerraty 253951ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130716 254051ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 25415bcb7424SSimon J. Gerraty o number of gmake compatibility tweaks 254251ee2c1cSSimon J. Gerraty -w for gmake style entering/leaving messages 254351ee2c1cSSimon J. Gerraty if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc. 254451ee2c1cSSimon J. Gerraty handle MAKEFLAGS containing only letters. 254551ee2c1cSSimon J. Gerraty o when overriding a GLOBAL variable on the command line, 254651ee2c1cSSimon J. Gerraty delete it from GLOBAL context so -V doesn't show the wrong 254751ee2c1cSSimon J. Gerraty value. 254851ee2c1cSSimon J. Gerraty 254951ee2c1cSSimon J. Gerraty2013-07-06 Simon J. Gerraty <sjg@bad.crufty.net> 255051ee2c1cSSimon J. Gerraty 255151ee2c1cSSimon J. Gerraty * configure.in: We don't need MAKE_LEVEL_SAFE anymore. 255251ee2c1cSSimon J. Gerraty 255351ee2c1cSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130706 255451ee2c1cSSimon J. Gerraty Merge with NetBSD make, pick up 255551ee2c1cSSimon J. Gerraty o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is 255651ee2c1cSSimon J. Gerraty true so that CompatRunCommand() can use it, to ensure 255751ee2c1cSSimon J. Gerraty consistent behavior with jobs mode. 255851ee2c1cSSimon J. Gerraty o use MAKE_LEVEL_ENV to define the variable to propagate 255951ee2c1cSSimon J. Gerraty .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake). 256051ee2c1cSSimon J. Gerraty o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of 256151ee2c1cSSimon J. Gerraty paths to ignore. 256251ee2c1cSSimon J. Gerraty 256374d2e02bSSimon J. Gerraty2013-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 256474d2e02bSSimon J. Gerraty 256574d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130604 256674d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 256774d2e02bSSimon J. Gerraty o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's 256874d2e02bSSimon J. Gerraty to avoid leaking descriptors. 256974d2e02bSSimon J. Gerraty 257074d2e02bSSimon J. Gerraty2013-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 257174d2e02bSSimon J. Gerraty 257274d2e02bSSimon J. Gerraty * Makefile (MAKE_VERSION): 20130528 257374d2e02bSSimon J. Gerraty Merge with NetBSD make, pick up 257474d2e02bSSimon J. Gerraty o var.c: cleanup some left-overs in VarHash() 257574d2e02bSSimon J. Gerraty 257652d86256SSimon J. Gerraty2013-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 257752d86256SSimon J. Gerraty 257852d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130520 257952d86256SSimon J. Gerraty generate manifest from component FILES rather than have to 258052d86256SSimon J. Gerraty update FILES when mk/FILES changes. 258152d86256SSimon J. Gerraty 258252d86256SSimon J. Gerraty2013-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 258352d86256SSimon J. Gerraty 258452d86256SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130518 258552d86256SSimon J. Gerraty Merge with NetBSD make, pick up 258652d86256SSimon J. Gerraty o suff.c: don't skip all processsing for .PHONY targets 258752d86256SSimon J. Gerraty else wildcard srcs do not get expanded. 258852d86256SSimon J. Gerraty o var.c: expand name of variable to delete if necessary. 258952d86256SSimon J. Gerraty 25901748de26SSimon J. Gerraty2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 25911748de26SSimon J. Gerraty 25921748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130330 25931748de26SSimon J. Gerraty Merge with NetBSD make, pick up 25941748de26SSimon J. Gerraty o meta.c: refine the handling of .OODATE in commands. 25951748de26SSimon J. Gerraty Rather than suppress command comparison for the entire script 25961748de26SSimon J. Gerraty as though .NOMETA_CMP had been used, only suppress it for the 25971748de26SSimon J. Gerraty one command line. 25981748de26SSimon J. Gerraty This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 25991748de26SSimon J. Gerraty suppress comparison of a command without otherwise affecting it. 26001748de26SSimon J. Gerraty o make.1: document that 26011748de26SSimon J. Gerraty 26021748de26SSimon J. Gerraty2013-03-22 Simon J. Gerraty <sjg@bad.crufty.net> 26031748de26SSimon J. Gerraty 26041748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130321 26051748de26SSimon J. Gerraty yes, not quite right but its a cooler number. 26061748de26SSimon J. Gerraty Merge with NetBSD make, pick up 26071748de26SSimon J. Gerraty o parse.c: fix ParseGmakeExport to be portable 26081748de26SSimon J. Gerraty and add a unit-test. 26091748de26SSimon J. Gerraty * meta.c: call meta_init() before makefiles are read and if built 26101748de26SSimon J. Gerraty with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON 26111748de26SSimon J. Gerraty this let's makefiles test for support. 26121748de26SSimon J. Gerraty Call meta_mode_init() to process .MAKE.MODE. 26131748de26SSimon J. Gerraty 26141748de26SSimon J. Gerraty2013-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 26151748de26SSimon J. Gerraty 26161748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130305 26171748de26SSimon J. Gerraty Merge with NetBSD make, pick up 26181748de26SSimon J. Gerraty o run .STALE: target when a dependency from .depend is missing. 26191748de26SSimon J. Gerraty o job.c: add Job_RunTarget() for the above and .BEGIN 26201748de26SSimon J. Gerraty 26211748de26SSimon J. Gerraty2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 26221748de26SSimon J. Gerraty 26231748de26SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130303 26241748de26SSimon J. Gerraty Merge with NetBSD make, pick up 26251748de26SSimon J. Gerraty o main.c: set .MAKE.OS to utsname.sysname 26261748de26SSimon J. Gerraty o job.c: more checks for read and poll errors 26271748de26SSimon J. Gerraty o var.c: lose VarChangeCase() saves 4% time 26281748de26SSimon J. Gerraty 26291748de26SSimon J. Gerraty2013-03-02 Simon J. Gerraty <sjg@bad.crufty.net> 26301748de26SSimon J. Gerraty 26311748de26SSimon J. Gerraty * boot-strap: remove MAKEOBJDIRPREFIX from environment since we 26321748de26SSimon J. Gerraty want to use MAKEOBJDIR 26331748de26SSimon J. Gerraty 26343cbdda60SSimon J. Gerraty2013-01-27 Simon J. Gerraty <sjg@bad.crufty.net> 26353cbdda60SSimon J. Gerraty 26363cbdda60SSimon J. Gerraty * Merge with NetBSD make, pick up 26373cbdda60SSimon J. Gerraty o make.1: more info on how shell commands are handled. 26383cbdda60SSimon J. Gerraty o job.c,main.c: detect write errors to job pipes. 26393cbdda60SSimon J. Gerraty 26403cbdda60SSimon J. Gerraty2013-01-25 Simon J. Gerraty <sjg@bad.crufty.net> 26413cbdda60SSimon J. Gerraty 26423cbdda60SSimon J. Gerraty * Makefile (MAKE_VERSION): 20130123 26433cbdda60SSimon J. Gerraty Merge with NetBSD make, pick up 26443cbdda60SSimon J. Gerraty o meta.c: if script uses .OODATE and meta_oodate() decides 26453cbdda60SSimon J. Gerraty rebuild is needed, .OODATE will be empty - set it to .ALLSRC. 26463cbdda60SSimon J. Gerraty o var.c: in debug output indicate which variabale modifiers 26473cbdda60SSimon J. Gerraty apply to. 26483cbdda60SSimon J. Gerraty o remove Check_Cwd logic the makefiles have been fixed. 26493cbdda60SSimon J. Gerraty 26503cbdda60SSimon J. Gerraty2012-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 26513cbdda60SSimon J. Gerraty 26523cbdda60SSimon J. Gerraty * makefile.in: add a simple makefile for folk who insist on 26533cbdda60SSimon J. Gerraty ./configure; make; make install 26543cbdda60SSimon J. Gerraty it just runs boot-strap 26553cbdda60SSimon J. Gerraty * include mk/* to accommodate the above 26563cbdda60SSimon J. Gerraty * boot-strap: re-work to accommodate the above 26573cbdda60SSimon J. Gerraty mksrc defaults to $Mydir/mk 26583cbdda60SSimon J. Gerraty allow op={configure,build,install,clean,all} 26593cbdda60SSimon J. Gerraty add options to facilitate install 26603cbdda60SSimon J. Gerraty * Makefile.config.in: just the bits set by configure 26613cbdda60SSimon J. Gerraty * Makefile: bump version to 20121212 26623cbdda60SSimon J. Gerraty abandon Makefile.in (NetBSD Makefile) 26633cbdda60SSimon J. Gerraty leverage mk/* instead 26643cbdda60SSimon J. Gerraty * configure.in: ensure srcdir is absolute 26653cbdda60SSimon J. Gerraty 266659a02420SSimon J. Gerraty2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 266759a02420SSimon J. Gerraty 266859a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121111 266959a02420SSimon J. Gerraty fix generation of bmake.cat1 267059a02420SSimon J. Gerraty 267159a02420SSimon J. Gerraty2012-11-09 Simon J. Gerraty <sjg@bad.crufty.net> 267259a02420SSimon J. Gerraty 267359a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121109 267459a02420SSimon J. Gerraty Merge with NetBSD make, pick up 267559a02420SSimon J. Gerraty o make.c: MakeBuildChild: return 0 so search continues if a 267659a02420SSimon J. Gerraty .ORDER dependency is detected. 267759a02420SSimon J. Gerraty o unit-tests/order: test the above 267859a02420SSimon J. Gerraty 267959a02420SSimon J. Gerraty2012-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 268059a02420SSimon J. Gerraty 268159a02420SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121102 268259a02420SSimon J. Gerraty Merge with NetBSD make, pick up 268359a02420SSimon J. Gerraty o cond.c: allow cond_state[] to grow. 268459a02420SSimon J. Gerraty In meta mode with a very large tree, we can hit the limit 268559a02420SSimon J. Gerraty while processing dirdeps. 268659a02420SSimon J. Gerraty 268759a02420SSimon J. Gerraty2012-10-25 Simon J. Gerraty <sjg@bad.crufty.net> 268859a02420SSimon J. Gerraty 268959a02420SSimon J. Gerraty * Makefile.in: we need to use ${srcdir} not ${.CURDIR} 269059a02420SSimon J. Gerraty 269193036677SSimon J. Gerraty2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 269293036677SSimon J. Gerraty 269393036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121010 269493036677SSimon J. Gerraty o protect syntax that only bmake parses correctly. 269593036677SSimon J. Gerraty o remove auto setting of FORCE_MACHINE, use configure's 269693036677SSimon J. Gerraty --with-force-machine=whatever if that is desired. 269793036677SSimon J. Gerraty 269893036677SSimon J. Gerraty2012-10-08 Simon J. Gerraty <sjg@bad.crufty.net> 269993036677SSimon J. Gerraty 270093036677SSimon J. Gerraty * Makefile.in: do not lose history from make.1 when generating bmake.1 270193036677SSimon J. Gerraty 270293036677SSimon J. Gerraty2012-10-07 Simon J. Gerraty <sjg@bad.crufty.net> 270393036677SSimon J. Gerraty 270493036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): 20121007 270593036677SSimon J. Gerraty Merge with NetBSD make, pick up 270693036677SSimon J. Gerraty o compat.c: ignore empty commands - same as jobs mode. 270793036677SSimon J. Gerraty o make.1: document meta chars that cause use of shell 270893036677SSimon J. Gerraty 270993036677SSimon J. Gerraty2012-09-11 Simon J. Gerraty <sjg@bad.crufty.net> 271093036677SSimon J. Gerraty 271193036677SSimon J. Gerraty * Makefile.in (MAKE_VERSION): bump version to 20120911 271293036677SSimon J. Gerraty * bsd.after-import.mk: include Makefile.inc early and allow it to 271393036677SSimon J. Gerraty override PROG 271493036677SSimon J. Gerraty 27153955d011SMarcel Moolenaar2012-08-31 Simon J. Gerraty <sjg@bad.crufty.net> 27163955d011SMarcel Moolenaar 27173955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120831 27183955d011SMarcel Moolenaar Merge with NetBSD make, pick up 27193955d011SMarcel Moolenaar o cast sizeof() to int for comparison 27203955d011SMarcel Moolenaar o minor make.1 tweak 27213955d011SMarcel Moolenaar 27223955d011SMarcel Moolenaar2012-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 27233955d011SMarcel Moolenaar 27243955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120830 27253955d011SMarcel Moolenaar Merge with NetBSD make, pick up 27263955d011SMarcel Moolenaar o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V 27273955d011SMarcel Moolenaar o debug flag -dV causes -V to show raw value regardless. 27283955d011SMarcel Moolenaar 27293955d011SMarcel Moolenaar2012-07-05 Simon J. Gerraty <sjg@bad.crufty.net> 27303955d011SMarcel Moolenaar 27313955d011SMarcel Moolenaar * bsd.after-import.mk (after-import): ensure unit-tests/Makefile 27323955d011SMarcel Moolenaar gets SRCTOP set. 27333955d011SMarcel Moolenaar 27343955d011SMarcel Moolenaar2012-07-04 Simon J. Gerraty <sjg@bad.crufty.net> 27353955d011SMarcel Moolenaar 27363955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120704 27373955d011SMarcel Moolenaar Merge with NetBSD make, pick up 27383955d011SMarcel Moolenaar o Job_ParseShell should call Shell_Init if it has been 27393955d011SMarcel Moolenaar previously called. 27403955d011SMarcel Moolenaar * Makefile.in: set USE_META based on configure result. 27413955d011SMarcel Moolenaar also .PARSEDIR is safer indicator of bmake. 27423955d011SMarcel Moolenaar 27433955d011SMarcel Moolenaar2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net> 27443955d011SMarcel Moolenaar 27453955d011SMarcel Moolenaar * Makefile.in: bump version to 20120626 27463955d011SMarcel Moolenaar ensure CPPFLAGS is in CFLAGS 27473955d011SMarcel Moolenaar * meta.c: avoid nested externs 27483955d011SMarcel Moolenaar * bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target 27493955d011SMarcel Moolenaar 27503955d011SMarcel Moolenaar2012-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 27513955d011SMarcel Moolenaar 27523955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120620 27533955d011SMarcel Moolenaar Merge with NetBSD make, pick up 27543955d011SMarcel Moolenaar o make_malloc.c: avoid including make_malloc.h again 27553955d011SMarcel Moolenaar 27563955d011SMarcel Moolenaar * Makefile.in: avoid bmake only syntax or protect with 27573955d011SMarcel Moolenaar .if defined(.MAKE.LEVEL) 27583955d011SMarcel Moolenaar * bsd.after-import.mk: replace .-include with .sinclude 27593955d011SMarcel Moolenaar ensure? SRCTOP gets a value 27603955d011SMarcel Moolenaar * configure.in: look for filemon.h in /usr/include/dev/filemon first. 27613955d011SMarcel Moolenaar 27623955d011SMarcel Moolenaar2012-06-19 Simon J. Gerraty <sjg@bad.crufty.net> 27633955d011SMarcel Moolenaar 27643955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120612 27653955d011SMarcel Moolenaar Merge with NetBSD make, pick up 27663955d011SMarcel Moolenaar o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler 27673955d011SMarcel Moolenaar for greater portability. 27683955d011SMarcel Moolenaar o unit-tests/forloop: check that .for works as expected wrt 27693955d011SMarcel Moolenaar number of times and with "quoted strings". 27703955d011SMarcel Moolenaar 27713955d011SMarcel Moolenaar2012-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 27723955d011SMarcel Moolenaar 27733955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120606 27743955d011SMarcel Moolenaar Merge with NetBSD make, pick up 27753955d011SMarcel Moolenaar o compat.c: use kill(2) rather than raise(3). 27763955d011SMarcel Moolenaar * configure.in: look for sys/dev/filemon 27773955d011SMarcel Moolenaar * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile 27783955d011SMarcel Moolenaar and pass BOOTSTRAP_XTRAS to boot-strap. 27793955d011SMarcel Moolenaar 27803955d011SMarcel Moolenaar2012-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 27813955d011SMarcel Moolenaar 27823955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120604 27833955d011SMarcel Moolenaar Merge with NetBSD make, pick up 27843955d011SMarcel Moolenaar o util.c and var.c share same var for tracking if environ 27853955d011SMarcel Moolenaar has been reallocated. 27863955d011SMarcel Moolenaar o util.c provide getenv with setenv. 27873955d011SMarcel Moolenaar * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL 27883955d011SMarcel Moolenaar when the shell actively strips .MAKE.* from the environment. 27893955d011SMarcel Moolenaar We still refer to the variable always as .MAKE.LEVEL 27903955d011SMarcel Moolenaar * util.c fix bug in findenv() was finding prefix of name. 27913955d011SMarcel Moolenaar * compat.c: re-raising SIGINT etc after running .INTERRUPT 27923955d011SMarcel Moolenaar results in more reliable termination of all activity on many 27933955d011SMarcel Moolenaar platforms. 27943955d011SMarcel Moolenaar 27953955d011SMarcel Moolenaar2012-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 27963955d011SMarcel Moolenaar 27973955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120602 27983955d011SMarcel Moolenaar Merge with NetBSD make, pick up 27993955d011SMarcel Moolenaar o for.c: handle quoted items in .for list 28003955d011SMarcel Moolenaar 28013955d011SMarcel Moolenaar2012-05-30 Simon J. Gerraty <sjg@bad.crufty.net> 28023955d011SMarcel Moolenaar 28033955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120530 28043955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28053955d011SMarcel Moolenaar o compat.c: ignore empty command. 28063955d011SMarcel Moolenaar 28073955d011SMarcel Moolenaar2012-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 28083955d011SMarcel Moolenaar 28093955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120524 28103955d011SMarcel Moolenaar * FILES: add bsd.after-import.mk: 28113955d011SMarcel Moolenaar A simple means of integrating bmake into a BSD build system. 28123955d011SMarcel Moolenaar 28133955d011SMarcel Moolenaar2012-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 28143955d011SMarcel Moolenaar 28153955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120520 28163955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28173955d011SMarcel Moolenaar o increased limit for nested conditionals. 28183955d011SMarcel Moolenaar 28193955d011SMarcel Moolenaar2012-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 28203955d011SMarcel Moolenaar 28213955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120518 28223955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28233955d011SMarcel Moolenaar o use _exit(2) in signal hanlder 28243955d011SMarcel Moolenaar o Don't use the [dir] cache when building nodes that might have 28253955d011SMarcel Moolenaar changed since the last exec. 28263955d011SMarcel Moolenaar o Avoid nested extern declaration warnings. 28273955d011SMarcel Moolenaar 28283955d011SMarcel Moolenaar2012-04-27 Simon J. Gerraty <sjg@bad.crufty.net> 28293955d011SMarcel Moolenaar 28303955d011SMarcel Moolenaar * meta.c (fgetLine): avoid %z - not portable. 28313955d011SMarcel Moolenaar * parse.c: Since we moved include of sys/mman.h 28323955d011SMarcel Moolenaar and def's of MAP_COPY etc. we got dups from a merge. 28333955d011SMarcel Moolenaar 28343955d011SMarcel Moolenaar2012-04-24 Simon J. Gerraty <sjg@bad.crufty.net> 28353955d011SMarcel Moolenaar 28363955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 28373955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28383955d011SMarcel Moolenaar o restore duplicate supression in .MAKE.MAKEFILES 28393955d011SMarcel Moolenaar runtime saving can be significant. 28403955d011SMarcel Moolenaar o Var_Subst() uses Buf_DestroyCompact() to reduce memory 28413955d011SMarcel Moolenaar consumption up to 20%. 28423955d011SMarcel Moolenaar 28433955d011SMarcel Moolenaar2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 28443955d011SMarcel Moolenaar 28453955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120420 28463955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28473955d011SMarcel Moolenaar o remove duplicate supression in .MAKE.MAKEFILES 28483955d011SMarcel Moolenaar o improved dir cache behavior 28493955d011SMarcel Moolenaar o gmake'ish export command 28503955d011SMarcel Moolenaar 28513955d011SMarcel Moolenaar2012-03-25 Simon J. Gerraty <sjg@bad.crufty.net> 28523955d011SMarcel Moolenaar 28533955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20120325 28543955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28553955d011SMarcel Moolenaar o fix parsing of :[#] in conditionals. 28563955d011SMarcel Moolenaar 28573955d011SMarcel Moolenaar2012-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 28583955d011SMarcel Moolenaar 28593955d011SMarcel Moolenaar * Makefile.in: replace use of .Nx in bmake.1 with NetBSD 28603955d011SMarcel Moolenaar since some systems cannot cope with .Nx <version> 28613955d011SMarcel Moolenaar 28623955d011SMarcel Moolenaar2011-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 28633955d011SMarcel Moolenaar 28643955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111111 28653955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28663955d011SMarcel Moolenaar o debug output for .PARSEDIR and .PARSEFILE 28673955d011SMarcel Moolenaar 28683955d011SMarcel Moolenaar2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 28693955d011SMarcel Moolenaar 28703955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111010 28713955d011SMarcel Moolenaar 28723955d011SMarcel Moolenaar2011-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 28733955d011SMarcel Moolenaar 28743955d011SMarcel Moolenaar * boot-strap: check for an expected file in the dirs we look for. 28753955d011SMarcel Moolenaar * make-bootstrap.sh: pass on LDSTATIC 28763955d011SMarcel Moolenaar 28773955d011SMarcel Moolenaar2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 28783955d011SMarcel Moolenaar 28793955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20111001 28803955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28813955d011SMarcel Moolenaar o ensure .PREFIX is set for .PHONY 28823955d011SMarcel Moolenaar and .TARGET set for .PHONY run via .END 28833955d011SMarcel Moolenaar o __dead used consistently 28843955d011SMarcel Moolenaar 28853955d011SMarcel Moolenaar2011-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 28863955d011SMarcel Moolenaar 28873955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-) 28883955d011SMarcel Moolenaar 28893955d011SMarcel Moolenaar2011-09-05 Simon J. Gerraty <sjg@bad.crufty.net> 28903955d011SMarcel Moolenaar 28913955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110905 28923955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28933955d011SMarcel Moolenaar o meta_oodate: ignore makeDependfile 28943955d011SMarcel Moolenaar 28953955d011SMarcel Moolenaar2011-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 28963955d011SMarcel Moolenaar 28973955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110828 28983955d011SMarcel Moolenaar Merge with NetBSD make, pick up 28993955d011SMarcel Moolenaar o silent=yes in .MAKE.MODE causes meta mode to mark targets 29003955d011SMarcel Moolenaar as SILENT if a .meta file is created 29013955d011SMarcel Moolenaar 29023955d011SMarcel Moolenaar2011-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 29033955d011SMarcel Moolenaar 29043955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110818 29053955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29063955d011SMarcel Moolenaar o in meta mode, if target flagged .META a missing .meta file 29073955d011SMarcel Moolenaar means target is out-of-date 29083955d011SMarcel Moolenaar o fixes for gcc 4.5 warnings 29093955d011SMarcel Moolenaar o simplify job printing code 29103955d011SMarcel Moolenaar 29113955d011SMarcel Moolenaar2011-08-09 Simon J. Gerraty <sjg@bad.crufty.net> 29123955d011SMarcel Moolenaar 29133955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110808 29143955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29153955d011SMarcel Moolenaar o do not touch OP_SPECIAL targets when doing make -t 29163955d011SMarcel Moolenaar 29173955d011SMarcel Moolenaar2011-06-22 Simon J. Gerraty <sjg@bad.crufty.net> 29183955d011SMarcel Moolenaar 29193955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110622 29203955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29213955d011SMarcel Moolenaar o meta_oodate detect corrupted .meta file and declare oodate. 29223955d011SMarcel Moolenaar * configure.in: add check for setsid 29233955d011SMarcel Moolenaar 29243955d011SMarcel Moolenaar2011-06-07 Simon J. Gerraty <sjg@bad.crufty.net> 29253955d011SMarcel Moolenaar 29263955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 29273955d011SMarcel Moolenaar o unit-tests/modts now works on MirBSD 29283955d011SMarcel Moolenaar 29293955d011SMarcel Moolenaar2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 29303955d011SMarcel Moolenaar 29313955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110606 29323955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29333955d011SMarcel Moolenaar o ApplyModifiers: when we parse a variable which is not 29343955d011SMarcel Moolenaar the entire modifier string, or not followed by ':', do not 29353955d011SMarcel Moolenaar consider it as containing modifiers. 29363955d011SMarcel Moolenaar o loadfile: ensure newline at end of mapped file. 29373955d011SMarcel Moolenaar 29383955d011SMarcel Moolenaar2011-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 29393955d011SMarcel Moolenaar 29403955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110505 29413955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29423955d011SMarcel Moolenaar o .MAKE.META.BAILIWICK - list of prefixes which define the scope 29433955d011SMarcel Moolenaar of make's control. In meta mode, any generated file within 29443955d011SMarcel Moolenaar said bailiwick, which is found to be missing, causes current 29453955d011SMarcel Moolenaar target to be out-of-date. 29463955d011SMarcel Moolenaar 29473955d011SMarcel Moolenaar2011-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 29483955d011SMarcel Moolenaar 29493955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110411 29503955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29513955d011SMarcel Moolenaar o when long modifiers fail to match, check sysV style. 29523955d011SMarcel Moolenaar - add a test case 29533955d011SMarcel Moolenaar 29543955d011SMarcel Moolenaar2011-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 29553955d011SMarcel Moolenaar 29563955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110410 29573955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29583955d011SMarcel Moolenaar o :hash - cheap 32bit hash of value 29593955d011SMarcel Moolenaar o :localtime, :gmtime - use value as format string for strftime. 29603955d011SMarcel Moolenaar 29613955d011SMarcel Moolenaar2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 29623955d011SMarcel Moolenaar 29633955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110330 29643955d011SMarcel Moolenaar mostly because its a cooler version. 29653955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29663955d011SMarcel Moolenaar o NetBSD tags for meta.[ch] 29673955d011SMarcel Moolenaar o job.c call meta_job_finish() after meta_job_error(). 29683955d011SMarcel Moolenaar o meta_job_error() should call meta_job_finish() to ensure 29693955d011SMarcel Moolenaar .meta file is closed, and safe to copy - if .ERROR target wants. 29703955d011SMarcel Moolenaar meta_job_finish() is safe to call repeatedly. 29713955d011SMarcel Moolenaar 29723955d011SMarcel Moolenaar2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net> 29733955d011SMarcel Moolenaar 29743955d011SMarcel Moolenaar * unit-tests/modts: use printf if it is a builtin, 29753955d011SMarcel Moolenaar to save us from MirBSD 29763955d011SMarcel Moolenaar 29773955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110329 29783955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29793955d011SMarcel Moolenaar o fix for use after free() in CondDoExists(). 29803955d011SMarcel Moolenaar o meta_oodate() report extra commands and return earlier. 29813955d011SMarcel Moolenaar 29823955d011SMarcel Moolenaar2011-03-27 Simon J. Gerraty <sjg@bad.crufty.net> 29833955d011SMarcel Moolenaar 29843955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110327 29853955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29863955d011SMarcel Moolenaar o meta.c, if .MAKE.MODE contains curdirOk=yes 29873955d011SMarcel Moolenaar allow creating .meta files in .CURDIR 29883955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): aparently at least on linux distro 29893955d011SMarcel Moolenaar formats the output of 'type' differently - so eat any "()" 29903955d011SMarcel Moolenaar 29913955d011SMarcel Moolenaar2011-03-06 Simon J. Gerraty <sjg@bad.crufty.net> 29923955d011SMarcel Moolenaar 29933955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110306 29943955d011SMarcel Moolenaar Merge with NetBSD make, pick up 29953955d011SMarcel Moolenaar o meta.c, only do getcwd() once 29963955d011SMarcel Moolenaar 29973955d011SMarcel Moolenaar2011-03-05 Simon J. Gerraty <sjg@bad.crufty.net> 29983955d011SMarcel Moolenaar 29993955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110305 30003955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30013955d011SMarcel Moolenaar o correct sysV substitution handling of empty lhs and variable 30023955d011SMarcel Moolenaar o correct exists() check for dir with trailing / 30033955d011SMarcel Moolenaar o correct handling of modifiers for non-existant variables 30043955d011SMarcel Moolenaar during evaluation of conditionals. 30053955d011SMarcel Moolenaar o ensure MAP_FILE is defined. 30063955d011SMarcel Moolenaar o meta.c use curdir[] now exported by main.c 30073955d011SMarcel Moolenaar 30083955d011SMarcel Moolenaar2011-02-25 Simon J. Gerraty <sjg@bad.crufty.net> 30093955d011SMarcel Moolenaar 30103955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110225 30113955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30123955d011SMarcel Moolenaar o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after 30133955d011SMarcel Moolenaar makefiles have been read. 30143955d011SMarcel Moolenaar o fix example of :? modifier in man page. 30153955d011SMarcel Moolenaar 30163955d011SMarcel Moolenaar2011-02-13 Simon J. Gerraty <sjg@bad.crufty.net> 30173955d011SMarcel Moolenaar 30183955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110214 30193955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30203955d011SMarcel Moolenaar o meta.c handle realpath() failing when generating meta file 30213955d011SMarcel Moolenaar name. 30223955d011SMarcel Moolenaar 30233955d011SMarcel Moolenaar * sigcompat.c: convert to ansi so we can use higher warning levels. 30243955d011SMarcel Moolenaar 30253955d011SMarcel Moolenaar 30263955d011SMarcel Moolenaar2011-02-07 Simon J. Gerraty <sjg@bad.crufty.net> 30273955d011SMarcel Moolenaar 30283955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110207 30293955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30303955d011SMarcel Moolenaar o fix for bug in meta mode. 30313955d011SMarcel Moolenaar 30323955d011SMarcel Moolenaar2011-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 30333955d011SMarcel Moolenaar 30343955d011SMarcel Moolenaar * parse.c: SunOS 5.8 at least does not have MAP_FILE 30353955d011SMarcel Moolenaar 30363955d011SMarcel Moolenaar2011-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 30373955d011SMarcel Moolenaar 30383955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20110101 30393955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30403955d011SMarcel Moolenaar o use mmap(2) if available, for reading makefiles 30413955d011SMarcel Moolenaar 30423955d011SMarcel Moolenaar2010-12-15 Simon J. Gerraty <sjg@bad.crufty.net> 30433955d011SMarcel Moolenaar 30443955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101215 30453955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30463955d011SMarcel Moolenaar o ensure meta_job_error() does not report a previous .meta file 30473955d011SMarcel Moolenaar as being culprit. 30483955d011SMarcel Moolenaar 30493955d011SMarcel Moolenaar2010-12-10 Simon J. Gerraty <sjg@bad.crufty.net> 30503955d011SMarcel Moolenaar 30513955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101210 30523955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30533955d011SMarcel Moolenaar o meta_oodate: track cwd per process, and only consider target 30543955d011SMarcel Moolenaar out-of-date if missing file is outside make's CWD. 30553955d011SMarcel Moolenaar Ignore files in /tmp/ etc. 30563955d011SMarcel Moolenaar o to ensure unit-tests results match, need to control LC_ALL 30573955d011SMarcel Moolenaar as well as LANG. 30583955d011SMarcel Moolenaar o fix for parsing bug in var.c 30593955d011SMarcel Moolenaar 30603955d011SMarcel Moolenaar2010-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 30613955d011SMarcel Moolenaar 30623955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101126 30633955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30643955d011SMarcel Moolenaar o if stale dependency is an IMPSRC, search via .PATH 30653955d011SMarcel Moolenaar o meta_oodate: if a referenced file is missing, target is 30663955d011SMarcel Moolenaar out-of-date. 30673955d011SMarcel Moolenaar o meta_oodate: if a target uses .OODATE in its commands, 30683955d011SMarcel Moolenaar it (.OODATE) needs to be recomputed. 30693955d011SMarcel Moolenaar o keep a pointer to youngest child node, rather than just its 30703955d011SMarcel Moolenaar mtime. 30713955d011SMarcel Moolenaar 30723955d011SMarcel Moolenaar2010-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 30733955d011SMarcel Moolenaar 30743955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20101101 30753955d011SMarcel Moolenaar 30763955d011SMarcel Moolenaar2010-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 30773955d011SMarcel Moolenaar 30783955d011SMarcel Moolenaar * machine.sh: like os.sh, 30793955d011SMarcel Moolenaar allow for uname -p producing useless drivel 30803955d011SMarcel Moolenaar 30813955d011SMarcel Moolenaar2010-09-13 Simon J. Gerraty <sjg@bad.crufty.net> 30823955d011SMarcel Moolenaar 30833955d011SMarcel Moolenaar * boot-strap: document configure knobs for meta and filemon. 30843955d011SMarcel Moolenaar 30853955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100911 30863955d011SMarcel Moolenaar Merge with NetBSD make, pick up 30873955d011SMarcel Moolenaar o meta.c - meta mode 30883955d011SMarcel Moolenaar 30893955d011SMarcel Moolenaar * make-bootstrap.sh.in: handle meta.c 30903955d011SMarcel Moolenaar * configure.in: add knobs for use_meta and filemon_h 30913955d011SMarcel Moolenaar also, look for dirname, str[e]sep and strlcpy 30923955d011SMarcel Moolenaar * util.c: add simple err[x] and warn[x] 30933955d011SMarcel Moolenaar 30943955d011SMarcel Moolenaar2010-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 30953955d011SMarcel Moolenaar 30963955d011SMarcel Moolenaar * boot-strap (TOOL_DIFF): set this to ensure tests use 30973955d011SMarcel Moolenaar the same version of diff that configure tested 30983955d011SMarcel Moolenaar 30993955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100808 31003955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31013955d011SMarcel Moolenaar o in jobs mode, when we discover we cannot make something, 31023955d011SMarcel Moolenaar call PrintOnError before exit. 31033955d011SMarcel Moolenaar 31043955d011SMarcel Moolenaar2010-08-06 Simon J. Gerraty <sjg@bad.crufty.net> 31053955d011SMarcel Moolenaar 31063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100806 31073955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31083955d011SMarcel Moolenaar o formatting fixes for ignored errors 31093955d011SMarcel Moolenaar o ensure jobs are cleaned up regardless of where wait() was called. 31103955d011SMarcel Moolenaar 31113955d011SMarcel Moolenaar2010-06-28 Simon J. Gerraty <sjg@bad.crufty.net> 31123955d011SMarcel Moolenaar 31133955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100618 31143955d011SMarcel Moolenaar * os.sh (MACHINE_ARCH): watch out for drivel from uname -p 31153955d011SMarcel Moolenaar 31163955d011SMarcel Moolenaar2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net> 31173955d011SMarcel Moolenaar 31183955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100616 31193955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31203955d011SMarcel Moolenaar o man page update 31213955d011SMarcel Moolenaar o call PrintOnError from JobFinish when we detect an error we 31223955d011SMarcel Moolenaar are not ignoring. 31233955d011SMarcel Moolenaar 31243955d011SMarcel Moolenaar2010-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 31253955d011SMarcel Moolenaar 31263955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100606 31273955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31283955d011SMarcel Moolenaar o man page update 31293955d011SMarcel Moolenaar 31303955d011SMarcel Moolenaar2010-06-05 Simon J. Gerraty <sjg@bad.crufty.net> 31313955d011SMarcel Moolenaar 31323955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100605 31333955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31343955d011SMarcel Moolenaar o use bmake_signal() which is a wrapper around sigaction() 31353955d011SMarcel Moolenaar in place of signal() 31363955d011SMarcel Moolenaar o add .export-env to allow exporting variables to environment 31373955d011SMarcel Moolenaar without tracking (so no re-export when the internal value is 31383955d011SMarcel Moolenaar changed). 31393955d011SMarcel Moolenaar 31403955d011SMarcel Moolenaar2010-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 31413955d011SMarcel Moolenaar 31423955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100524 31433955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31443955d011SMarcel Moolenaar o fix for .info et al being greedy. 31453955d011SMarcel Moolenaar 31463955d011SMarcel Moolenaar2010-05-23 Simon J. Gerraty <sjg@bad.crufty.net> 31473955d011SMarcel Moolenaar 31483955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100520 31493955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31503955d011SMarcel Moolenaar o back to using realpath on argv[0] 31513955d011SMarcel Moolenaar but only if contains '/' and does not start with '/'. 31523955d011SMarcel Moolenaar 31533955d011SMarcel Moolenaar2010-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 31543955d011SMarcel Moolenaar 31553955d011SMarcel Moolenaar * boot-strap: use absolute path for bmake when running tests. 31563955d011SMarcel Moolenaar 31573955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100510 31583955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31593955d011SMarcel Moolenaar o revert use of realpath on argv[0] 31603955d011SMarcel Moolenaar too many corner cases. 31613955d011SMarcel Moolenaar o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target. 31623955d011SMarcel Moolenaar 31633955d011SMarcel Moolenaar2010-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 31643955d011SMarcel Moolenaar 31653955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100505 31663955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31673955d011SMarcel Moolenaar o fix for missed SIGCHLD when compiled with SunPRO 31683955d011SMarcel Moolenaar actually for bmake, defining FORCE_POSIX_SIGNALS would have 31693955d011SMarcel Moolenaar done the job. 31703955d011SMarcel Moolenaar 31713955d011SMarcel Moolenaar2010-04-30 Simon J. Gerraty <sjg@bad.crufty.net> 31723955d011SMarcel Moolenaar 31733955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100430 31743955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31753955d011SMarcel Moolenaar o fflush stdout before writing to stdout 31763955d011SMarcel Moolenaar 31773955d011SMarcel Moolenaar2010-04-23 Simon J. Gerraty <sjg@bad.crufty.net> 31783955d011SMarcel Moolenaar 31793955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100423 31803955d011SMarcel Moolenaar Merge with NetBSD make, pick up 31813955d011SMarcel Moolenaar o updated unit tests for Haiku (this time for sure). 31823955d011SMarcel Moolenaar * boot-strap: based on patch from joerg 31833955d011SMarcel Moolenaar honor --with-default-sys-path better. 31843955d011SMarcel Moolenaar * boot-strap: remove mention of --with-prefix-sys-path 31853955d011SMarcel Moolenaar 31863955d011SMarcel Moolenaar2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net> 31873955d011SMarcel Moolenaar 31883955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100422 31893955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 31903955d011SMarcel Moolenaar o fix for vfork() on Darwin. 31913955d011SMarcel Moolenaar o fix for bogus $TMPDIR. 31923955d011SMarcel Moolenaar o set .MAKE.MODE=compat for -B 31933955d011SMarcel Moolenaar o set .MAKE.JOBS=max_jobs for -j max_jobs 31943955d011SMarcel Moolenaar o allow unit-tests to run without any *.mk 31953955d011SMarcel Moolenaar o unit-tests/modmisc be more conservative in dirs presumed to exist. 31963955d011SMarcel Moolenaar * boot-strap: ignore /usr/share/mk except on NetBSD. 31973955d011SMarcel Moolenaar * unit-tests/Makefile.in: set LANG=C when running unit-tests to 31983955d011SMarcel Moolenaar ensure sort(1) behaves as expected. 31993955d011SMarcel Moolenaar 32003955d011SMarcel Moolenaar2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 32013955d011SMarcel Moolenaar 32023955d011SMarcel Moolenaar * boot-strap: add FindHereOrAbove so we can use -m .../mk 32033955d011SMarcel Moolenaar 32043955d011SMarcel Moolenaar2010-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 32053955d011SMarcel Moolenaar 32063955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100420 32073955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 32083955d011SMarcel Moolenaar o fix for variable realpath() behavior. 32093955d011SMarcel Moolenaar we have to stat(2) the result to be sure. 32103955d011SMarcel Moolenaar o fix for .export (all) when nested vars use :sh 32113955d011SMarcel Moolenaar 32123955d011SMarcel Moolenaar2010-04-14 Simon J. Gerraty <sjg@bad.crufty.net> 32133955d011SMarcel Moolenaar 32143955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100414 32153955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 32163955d011SMarcel Moolenaar o use realpath to resolve argv[0] (for .MAKE) if needed. 32173955d011SMarcel Moolenaar o add realpath from libc. 32183955d011SMarcel Moolenaar o add :tA to resolve variable via realpath(3) if possible. 32193955d011SMarcel Moolenaar 32203955d011SMarcel Moolenaar2010-04-08 Simon J. Gerraty <sjg@bad.crufty.net> 32213955d011SMarcel Moolenaar 32223955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100408 32233955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 32243955d011SMarcel Moolenaar o unit tests for .ERROR, .error 32253955d011SMarcel Moolenaar o fix for .ERROR to ensure it cannot be default target. 32263955d011SMarcel Moolenaar 32273955d011SMarcel Moolenaar2010-04-06 Simon J. Gerraty <sjg@bad.crufty.net> 32283955d011SMarcel Moolenaar 32293955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100406 32303955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 32313955d011SMarcel Moolenaar o fix for compat mode "Error code" going to debug_file. 32323955d011SMarcel Moolenaar o fix for .ALLSRC being populated twice. 32333955d011SMarcel Moolenaar o support for .info, .warning and .error directives 32343955d011SMarcel Moolenaar o .MAKE.MODE to control make's operational mode 32353955d011SMarcel Moolenaar o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile 32363955d011SMarcel Moolenaar name(s). 32373955d011SMarcel Moolenaar o .MAKE.DEPENDFILE to control the name of the depend file 32383955d011SMarcel Moolenaar o .ERROR target - run on failure. 32393955d011SMarcel Moolenaar 32403955d011SMarcel Moolenaar2010-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 32413955d011SMarcel Moolenaar 32423955d011SMarcel Moolenaar * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile 32433955d011SMarcel Moolenaar 32443955d011SMarcel Moolenaar * os.sh,arch.c: patch for Haiku from joerg at netbsd 32453955d011SMarcel Moolenaar 32463955d011SMarcel Moolenaar2010-03-17 Simon J. Gerraty <sjg@bad.crufty.net> 32473955d011SMarcel Moolenaar 32483955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100222 32493955d011SMarcel Moolenaar * Merge with NetBSD make, pick up 32503955d011SMarcel Moolenaar o better error msg for .for with mutiple inter vars 32513955d011SMarcel Moolenaar 32523955d011SMarcel Moolenaar * boot-strap: 32533955d011SMarcel Moolenaar o use make-bootstrap.sh from joerg at netbsd 32543955d011SMarcel Moolenaar to avoid the need for a native make when bootstrapping. 32553955d011SMarcel Moolenaar o add "" everywhere ;-) 32563955d011SMarcel Moolenaar o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1 32573955d011SMarcel Moolenaar otherwise the pre-formated version. 32583955d011SMarcel Moolenaar 32593955d011SMarcel Moolenaar2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net> 32603955d011SMarcel Moolenaar 32613955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20100102 32623955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 32633955d011SMarcel Moolenaar o fix for -m .../ 32643955d011SMarcel Moolenaar 32653955d011SMarcel Moolenaar2009-11-18 Simon J. Gerraty <sjg@void.crufty.net> 32663955d011SMarcel Moolenaar 32673955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20091118 32683955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 32693955d011SMarcel Moolenaar o .unexport 32703955d011SMarcel Moolenaar o report lines that start with '.' and should have ':' 32713955d011SMarcel Moolenaar (catch typo's of .el*if). 32723955d011SMarcel Moolenaar 32733955d011SMarcel Moolenaar2009-10-30 Simon J. Gerraty <sjg@void.crufty.net> 32743955d011SMarcel Moolenaar 32753955d011SMarcel Moolenaar * configure.in: Ensure that srcdir and mksrc are absolute paths. 32763955d011SMarcel Moolenaar 32773955d011SMarcel Moolenaar2009-10-09 Simon J. Gerraty <sjg@void.crufty.net> 32783955d011SMarcel Moolenaar 32793955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): fix version to 20091007 32803955d011SMarcel Moolenaar 32813955d011SMarcel Moolenaar2009-10-07 Simon J. Gerraty <sjg@void.crufty.net> 32823955d011SMarcel Moolenaar 32833955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 200910007 32843955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 32853955d011SMarcel Moolenaar o fix for parsing of :S;...;...; applied to .for loop iterator 32863955d011SMarcel Moolenaar appearing in a dependency line. 32873955d011SMarcel Moolenaar 32883955d011SMarcel Moolenaar2009-09-09 Simon J. Gerraty <sjg@void.crufty.net> 32893955d011SMarcel Moolenaar 32903955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090909 32913955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 32923955d011SMarcel Moolenaar o fix for -C, .CURDIR and .OBJDIR 32933955d011SMarcel Moolenaar * boot-strap: 32943955d011SMarcel Moolenaar o allow share_dir to be set independent of prefix. 32953955d011SMarcel Moolenaar o select default share_dir better when prefix ends in $HOST_TARGET 32963955d011SMarcel Moolenaar o if FORCE_BSD_MK etc were set, include them in the suggested 32973955d011SMarcel Moolenaar install-mk command. 32983955d011SMarcel Moolenaar 32993955d011SMarcel Moolenaar2009-09-08 Simon J. Gerraty <sjg@void.crufty.net> 33003955d011SMarcel Moolenaar 33013955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090908 33023955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 33033955d011SMarcel Moolenaar o .MAKE.LEVEL for recursion tracking 33043955d011SMarcel Moolenaar o fix for :M scanning \: 33053955d011SMarcel Moolenaar 33063955d011SMarcel Moolenaar2009-09-03 Simon J. Gerraty <sjg@void.crufty.net> 33073955d011SMarcel Moolenaar 33083955d011SMarcel Moolenaar * configure.in: Don't -D__EXTENSIONS__ if 33093955d011SMarcel Moolenaar AC_USE_SYSTEM_EXTENSIONS says "no". 33103955d011SMarcel Moolenaar 33113955d011SMarcel Moolenaar2009-08-26 Simon J. Gerraty <sjg@void.crufty.net> 33123955d011SMarcel Moolenaar 33133955d011SMarcel Moolenaar * Makefile.in (MAKE_VERSION): bump version to 20090826 33143955d011SMarcel Moolenaar Simplify MAKE_VERSION to just the bare date. 33153955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 33163955d011SMarcel Moolenaar o -C directory support. 33173955d011SMarcel Moolenaar o support for SIGINFO 33183955d011SMarcel Moolenaar o use $TMPDIR for temp files. 33193955d011SMarcel Moolenaar o child of vfork should be careful about modifying parent's state. 33203955d011SMarcel Moolenaar 33213955d011SMarcel Moolenaar 33223955d011SMarcel Moolenaar2009-03-26 Simon J. Gerraty <sjg@void.crufty.net> 33233955d011SMarcel Moolenaar 33243955d011SMarcel Moolenaar * Appy some patches for MiNT from David Brownlee 33253955d011SMarcel Moolenaar 33263955d011SMarcel Moolenaar2009-02-26 Simon J. Gerraty <sjg@void.crufty.net> 33273955d011SMarcel Moolenaar 33283955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090222 33293955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 33303955d011SMarcel Moolenaar o Possible null pointer de-ref in Var_Set. 33313955d011SMarcel Moolenaar 33323955d011SMarcel Moolenaar2009-02-08 Simon J. Gerraty <sjg@void.crufty.net> 33333955d011SMarcel Moolenaar 33343955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20090204 33353955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 33363955d011SMarcel Moolenaar o bmake_malloc et al moved to their own .c 33373955d011SMarcel Moolenaar o Count both () and {} when looking for the end of a :M pattern 33383955d011SMarcel Moolenaar o Change 'Buffer' so that it is the actual struct, not a pointer to it. 33393955d011SMarcel Moolenaar o strlist.c - functions for processing extendable arrays of pointers to strings. 33403955d011SMarcel Moolenaar o ClientData replaced with void *, so const void * can be used. 33413955d011SMarcel Moolenaar o New debug flag C for DEBUG_CWD 33423955d011SMarcel Moolenaar 33433955d011SMarcel Moolenaar2008-11-11 Simon J. Gerraty <sjg@void.crufty.net> 33443955d011SMarcel Moolenaar 33453955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081111 33463955d011SMarcel Moolenaar Apply patch from Joerg Sonnenberge to 33473955d011SMarcel Moolenaar configure.in: 33483955d011SMarcel Moolenaar o remove some redundant checks 33493955d011SMarcel Moolenaar o check for emlloc etc only in libutil and require the whole family. 33503955d011SMarcel Moolenaar util.c: 33513955d011SMarcel Moolenaar o remove [v]asprintf which is no longer used. 33523955d011SMarcel Moolenaar 33533955d011SMarcel Moolenaar2008-11-04 Simon J. Gerraty <sjg@void.crufty.net> 33543955d011SMarcel Moolenaar 33553955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081101 33563955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 33573955d011SMarcel Moolenaar o util.c: avoid use of putenv() - christos 33583955d011SMarcel Moolenaar 33593955d011SMarcel Moolenaar2008-10-30 Simon J. Gerraty <sjg@void.crufty.net> 33603955d011SMarcel Moolenaar 33613955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081030 33623955d011SMarcel Moolenaar pick up man page tweaks. 33633955d011SMarcel Moolenaar 33643955d011SMarcel Moolenaar2008-10-29 Simon J. Gerraty <sjg@void.crufty.net> 33653955d011SMarcel Moolenaar 33663955d011SMarcel Moolenaar * Makefile.in: move processing of LIBOBJS to after is definition! 33673955d011SMarcel Moolenaar thus we'll have getenv.c in SRCS only if needed. 33683955d011SMarcel Moolenaar 33693955d011SMarcel Moolenaar * make.1: add examples of how to use :? 33703955d011SMarcel Moolenaar 33713955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20081029 33723955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 33733955d011SMarcel Moolenaar o fix for .END processing with -j 33743955d011SMarcel Moolenaar o segfault from Parse_Error when no makefile is open 33753955d011SMarcel Moolenaar o handle numeric expressions in any variable expansion 33763955d011SMarcel Moolenaar o debug output now defaults to stderr, -dF to change it - apb 33773955d011SMarcel Moolenaar o make now uses bmake_malloc etc so that it can build natively 33783955d011SMarcel Moolenaar on A/UX - wasn't an issue for bmake, but we want to keep in sync. 33793955d011SMarcel Moolenaar 33803955d011SMarcel Moolenaar2008-09-27 Simon J. Gerraty <sjg@void.crufty.net> 33813955d011SMarcel Moolenaar 33823955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080808 33833955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 33843955d011SMarcel Moolenaar o fix for PR/38840: Pierre Pronchery: make crashes while parsing 33853955d011SMarcel Moolenaar long lines in Makefiles 33863955d011SMarcel Moolenaar o optimizations for VarQuote by joerg 33873955d011SMarcel Moolenaar o fix for PR/38756: dominik: make dumps core on invalid makefile 33883955d011SMarcel Moolenaar 33893955d011SMarcel Moolenaar2008-05-15 Simon J. Gerraty <sjg@void.crufty.net> 33903955d011SMarcel Moolenaar 33913955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080515 33923955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 33933955d011SMarcel Moolenaar o fix skip setting vars in VAR_GLOBAL context, to handle 33943955d011SMarcel Moolenaar cases where VAR_CMD is used for other than command line vars. 33953955d011SMarcel Moolenaar 33963955d011SMarcel Moolenaar2008-05-14 Simon J. Gerraty <sjg@void.crufty.net> 33973955d011SMarcel Moolenaar 33983955d011SMarcel Moolenaar * boot-strap (make_version): we may need to look in 33993955d011SMarcel Moolenaar $prefix/share/mk for sys.mk 34003955d011SMarcel Moolenaar 34013955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080514 34023955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34033955d011SMarcel Moolenaar o skip setting vars in VAR_GLOBAL context, when already set in 34043955d011SMarcel Moolenaar VAR_CMD which takes precedence. 34053955d011SMarcel Moolenaar 34063955d011SMarcel Moolenaar2008-03-30 Simon J. Gerraty <sjg@void.crufty.net> 34073955d011SMarcel Moolenaar 34083955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080330 34093955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34103955d011SMarcel Moolenaar o fix for ?= when LHS contains variable reference. 34113955d011SMarcel Moolenaar 34123955d011SMarcel Moolenaar2008-02-15 Simon J. Gerraty <sjg@void.crufty.net> 34133955d011SMarcel Moolenaar 34143955d011SMarcel Moolenaar * merge some patches from NetBSD pkgsrc. 34153955d011SMarcel Moolenaar 34163955d011SMarcel Moolenaar * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of 34173955d011SMarcel Moolenaar the MAKSYSPATH used during bootstrap. 34183955d011SMarcel Moolenaar 34193955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080215 34203955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34213955d011SMarcel Moolenaar o warn if non-space chars follow 'empty' in a conditional. 34223955d011SMarcel Moolenaar 34233955d011SMarcel Moolenaar2008-01-18 Simon J. Gerraty <sjg@void.crufty.net> 34243955d011SMarcel Moolenaar 34253955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20080118 34263955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34273955d011SMarcel Moolenaar o consider dependencies read from .depend as optional - dsl 34283955d011SMarcel Moolenaar o remember when buffer for reading makefile grows - dsl 34293955d011SMarcel Moolenaar o add -dl (aka LOUD) - David O'Brien 34303955d011SMarcel Moolenaar 34313955d011SMarcel Moolenaar2007-10-22 Simon J. Gerraty <sjg@void.crufty.net> 34323955d011SMarcel Moolenaar 34333955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071022 34343955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34353955d011SMarcel Moolenaar o Allow .PATH<suffix> to be used for .include "" 34363955d011SMarcel Moolenaar 34373955d011SMarcel Moolenaar * boot-strap: source default settings from .bmake-boot-strap.rc 34383955d011SMarcel Moolenaar 34393955d011SMarcel Moolenaar2007-10-16 Simon J. Gerraty <sjg@void.crufty.net> 34403955d011SMarcel Moolenaar 34413955d011SMarcel Moolenaar * Makefile.in: fix maninstall on various systems 34423955d011SMarcel Moolenaar provided that our man.mk is used. 34433955d011SMarcel Moolenaar For non-BSD systems we install the preformatted page 34443955d011SMarcel Moolenaar into $MANDIR/cat1 34453955d011SMarcel Moolenaar 34463955d011SMarcel Moolenaar2007-10-15 Simon J. Gerraty <sjg@void.crufty.net> 34473955d011SMarcel Moolenaar 34483955d011SMarcel Moolenaar * boot-strap: make bmake.1 too, so maninstall works. 34493955d011SMarcel Moolenaar 34503955d011SMarcel Moolenaar2007-10-14 Simon J. Gerraty <sjg@void.crufty.net> 34513955d011SMarcel Moolenaar 34523955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071014 34533955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34543955d011SMarcel Moolenaar o revamped handling of defshell - configure no longer needs to 34553955d011SMarcel Moolenaar know the content of the shells array - apb 34563955d011SMarcel Moolenaar o stop Var_Subst modifying its input - apb 34573955d011SMarcel Moolenaar o avoid calling ParseTrackInput too often - dsl 34583955d011SMarcel Moolenaar 34593955d011SMarcel Moolenaar2007-10-11 Simon J. Gerraty <sjg@void.crufty.net> 34603955d011SMarcel Moolenaar 34613955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20071011 34623955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34633955d011SMarcel Moolenaar o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path. 34643955d011SMarcel Moolenaar 34653955d011SMarcel Moolenaar * sigcompat.c: some tweaks for HP-UX 11.x based on 34663955d011SMarcel Moolenaar patch from Tobias Nygren 34673955d011SMarcel Moolenaar 34683955d011SMarcel Moolenaar * configure.in: update handling of --with-defshell to match 34693955d011SMarcel Moolenaar new make behavior. --with-defshell=/usr/xpg4/bin/sh 34703955d011SMarcel Moolenaar will now do what one might hope - provided the chosen shell 34713955d011SMarcel Moolenaar behaves enough like sh. 34723955d011SMarcel Moolenaar 34733955d011SMarcel Moolenaar2007-10-08 Simon J. Gerraty <sjg@void.crufty.net> 34743955d011SMarcel Moolenaar 34753955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20071008 34763955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34773955d011SMarcel Moolenaar o .MAKE.JOB.PREFIX - control the token output before jobs - sjg 34783955d011SMarcel Moolenaar o .export/.MAKE.EXPORTED - export of variables - sjg 34793955d011SMarcel Moolenaar o .MAKE.MAKEFILES - track all makefiles read - sjg 34803955d011SMarcel Moolenaar o performance improvements - dsl 34813955d011SMarcel Moolenaar o revamp parallel job scheduling - dsl 34823955d011SMarcel Moolenaar 34833955d011SMarcel Moolenaar2006-07-28 Simon J. Gerraty <sjg@void.crufty.net> 34843955d011SMarcel Moolenaar 34853955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060728 34863955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34873955d011SMarcel Moolenaar o extra debug info during variable and cond processing - sjg 34883955d011SMarcel Moolenaar o shell definition now covers newline - rillig 34893955d011SMarcel Moolenaar o minor mem leak in PrintOnError - sjg 34903955d011SMarcel Moolenaar 34913955d011SMarcel Moolenaar2006-05-11 Simon J. Gerraty <sjg@void.crufty.net> 34923955d011SMarcel Moolenaar 34933955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060511 34943955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 34953955d011SMarcel Moolenaar o more memory leaks - coverity 34963955d011SMarcel Moolenaar o possible overflow in ArchFindMember - coverity 34973955d011SMarcel Moolenaar o extract variable modifier code out of Var_Parse() 34983955d011SMarcel Moolenaar so it can be called recursively - sjg 34993955d011SMarcel Moolenaar o unit-tests/moderrs - sjg 35003955d011SMarcel Moolenaar 35013955d011SMarcel Moolenaar2006-04-12 Simon J. Gerraty <sjg@void.crufty.net> 35023955d011SMarcel Moolenaar 35033955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060412 35043955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35053955d011SMarcel Moolenaar o fixes for some memory leaks - coverity 35063955d011SMarcel Moolenaar o only read first sys.mk etc when searching sysIncPath - sjg 35073955d011SMarcel Moolenaar 35083955d011SMarcel Moolenaar * main.c (ReadMakefile): remove hack for __INTERIX that prevented 35093955d011SMarcel Moolenaar setting ${MAKEFILE} - OBATA Akio 35103955d011SMarcel Moolenaar 35113955d011SMarcel Moolenaar2006-03-18 Simon J. Gerraty <sjg@void.crufty.net> 35123955d011SMarcel Moolenaar 35133955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060318 35143955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35153955d011SMarcel Moolenaar o cleanup of job.c to remove remote handling, distcc is more 35163955d011SMarcel Moolenaar useful and this code was likely bit-rotting - dsl 35173955d011SMarcel Moolenaar o fix for :P modifier - sjg 35183955d011SMarcel Moolenaar * boot-strap: set default prefix to something reasonable 35193955d011SMarcel Moolenaar (for me anyway). 35203955d011SMarcel Moolenaar 35213955d011SMarcel Moolenaar2006-03-01 Simon J. Gerraty <sjg@void.crufty.net> 35223955d011SMarcel Moolenaar 35233955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060301 35243955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35253955d011SMarcel Moolenaar o make .WAIT apply recursively, document and test case - apb 35263955d011SMarcel Moolenaar o allow variable modifiers in a variable appear anywhere in 35273955d011SMarcel Moolenaar modifier list, document and test case - sjg 35283955d011SMarcel Moolenaar 35293955d011SMarcel Moolenaar2006-02-22 Simon J. Gerraty <sjg@void.crufty.net> 35303955d011SMarcel Moolenaar 35313955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20060222 35323955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35333955d011SMarcel Moolenaar o improved job token handling - dsl 35343955d011SMarcel Moolenaar o SIG_DFL the correct signal before exec - dsl 35353955d011SMarcel Moolenaar o more debug info during parsing - dsl 35363955d011SMarcel Moolenaar o allow variable modifiers to be specified via variable - sjg 35373955d011SMarcel Moolenaar * boot-strap: explain why we died if no mksrc 35383955d011SMarcel Moolenaar 35393955d011SMarcel Moolenaar2005-11-05 Simon J. Gerraty <sjg@void.crufty.net> 35403955d011SMarcel Moolenaar 35413955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051105 35423955d011SMarcel Moolenaar * configure.in: always set default_sys_path 35433955d011SMarcel Moolenaar default is ${prefix}/share/mk 35443955d011SMarcel Moolenaar - remove prefix_sys_path, anyone wanting more than above 35453955d011SMarcel Moolenaar needs to set it manually. 35463955d011SMarcel Moolenaar 35473955d011SMarcel Moolenaar2005-11-04 Simon J. Gerraty <sjg@void.crufty.net> 35483955d011SMarcel Moolenaar 35493955d011SMarcel Moolenaar * boot-strap: make this a bit easier for pkgsrc folk. 35503955d011SMarcel Moolenaar bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to 35513955d011SMarcel Moolenaar 'mips' while pkgsrc wants 'mipseb' or 'mipsel' 35523955d011SMarcel Moolenaar 35533955d011SMarcel Moolenaar2005-11-02 Simon J. Gerraty <sjg@void.crufty.net> 35543955d011SMarcel Moolenaar 35553955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051102 35563955d011SMarcel Moolenaar * job.c (JobFinish): fix likely ancient merge lossage 35573955d011SMarcel Moolenaar fix from Todd Vierling. 35583955d011SMarcel Moolenaar * boot-strap (srcdir): allow setting mksrc=none 35593955d011SMarcel Moolenaar 35603955d011SMarcel Moolenaar2005-10-31 Simon J. Gerraty <sjg@void.crufty.net> 35613955d011SMarcel Moolenaar 35623955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051031 35633955d011SMarcel Moolenaar * ranlib.h: skip on OSF too. 35643955d011SMarcel Moolenaar (NetBSD PR 31864) 35653955d011SMarcel Moolenaar 35663955d011SMarcel Moolenaar2005-10-10 Simon J. Gerraty <sjg@void.crufty.net> 35673955d011SMarcel Moolenaar 35683955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051002 35693955d011SMarcel Moolenaar fix a silly typo 35703955d011SMarcel Moolenaar 35713955d011SMarcel Moolenaar2005-10-09 Simon J. Gerraty <sjg@void.crufty.net> 35723955d011SMarcel Moolenaar 35733955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20051001 35743955d011SMarcel Moolenaar support for UnixWare and some other systems, 35753955d011SMarcel Moolenaar based on patches from pkgsrc/bootstrap 35763955d011SMarcel Moolenaar 35773955d011SMarcel Moolenaar2005-09-03 Simon J. Gerraty <sjg@void.crufty.net> 35783955d011SMarcel Moolenaar 35793955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050901 35803955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35813955d011SMarcel Moolenaar o possible parse error causing us to wander off. 35823955d011SMarcel Moolenaar 35833955d011SMarcel Moolenaar2005-06-06 Simon J. Gerraty <sjg@void.crufty.net> 35843955d011SMarcel Moolenaar 35853955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050606 35863955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35873955d011SMarcel Moolenaar o :0x modifier for randomizing a list 35883955d011SMarcel Moolenaar o fixes for a number of -Wuninitialized issues. 35893955d011SMarcel Moolenaar 35903955d011SMarcel Moolenaar2005-05-30 Simon J. Gerraty <sjg@void.crufty.net> 35913955d011SMarcel Moolenaar 35923955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050530 35933955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 35943955d011SMarcel Moolenaar o Handle dependencies for .BEGIN, .END and .INTERRUPT 35953955d011SMarcel Moolenaar 35963955d011SMarcel Moolenaar * README: was seriously out of date. 35973955d011SMarcel Moolenaar 35983955d011SMarcel Moolenaar2005-03-22 Simon J. Gerraty <sjg@void.crufty.net> 35993955d011SMarcel Moolenaar 36003955d011SMarcel Moolenaar * Important to use .MAKE rather than MAKE. 36013955d011SMarcel Moolenaar 36023955d011SMarcel Moolenaar2005-03-15 Simon J. Gerraty <sjg@void.crufty.net> 36033955d011SMarcel Moolenaar 36043955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20050315 36053955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36063955d011SMarcel Moolenaar o don't mistake .elsefoo for .else 36073955d011SMarcel Moolenaar o use suffix-specific search path correctly 36083955d011SMarcel Moolenaar o bunch of style nits 36093955d011SMarcel Moolenaar 36103955d011SMarcel Moolenaar2004-05-11 Simon J. Gerraty <sjg@void.crufty.net> 36113955d011SMarcel Moolenaar 36123955d011SMarcel Moolenaar * boot-strap: 36133955d011SMarcel Moolenaar o ensure that args to --src and --with-mksrc 36143955d011SMarcel Moolenaar are resolved before giving them to configure. 36153955d011SMarcel Moolenaar o add -o "objdir" so that builder can control it, 36163955d011SMarcel Moolenaar default is $OS as determined by os.sh 36173955d011SMarcel Moolenaar o add -q to suppress all the install instructions. 36183955d011SMarcel Moolenaar 36193955d011SMarcel Moolenaar2004-05-08 Simon J. Gerraty <sjg@void.crufty.net> 36203955d011SMarcel Moolenaar 36213955d011SMarcel Moolenaar * Remove __IDSTRING() 36223955d011SMarcel Moolenaar 36233955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040508 36243955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36253955d011SMarcel Moolenaar o posix fixes 36263955d011SMarcel Moolenaar - remove '-e' from compat mode 36273955d011SMarcel Moolenaar - add support for '+' command-line prefix. 36283955d011SMarcel Moolenaar o fix for handling '--' on command-line. 36293955d011SMarcel Moolenaar o fix include in lst.lib/lstInt.h to simplify '-I's 36303955d011SMarcel Moolenaar o we also picked up replacement of MAKE_BOOTSTRAP 36313955d011SMarcel Moolenaar with !MAKE_NATIVE which is a noop, but possibly confusing. 36323955d011SMarcel Moolenaar 36333955d011SMarcel Moolenaar2004-04-14 Simon J. Gerraty <sjg@void.crufty.net> 36343955d011SMarcel Moolenaar 36353955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040414 36363955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36373955d011SMarcel Moolenaar o allow quoted strings on lhs of conditionals 36383955d011SMarcel Moolenaar o issue warning when extra .else is seen 36393955d011SMarcel Moolenaar o print line numer when errors encountered during parsing from 36403955d011SMarcel Moolenaar string. 36413955d011SMarcel Moolenaar 36423955d011SMarcel Moolenaar2004-02-20 Simon J. Gerraty <sjg@void.crufty.net> 36433955d011SMarcel Moolenaar 36443955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040220 36453955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36463955d011SMarcel Moolenaar o fix for old :M parsing bug. 36473955d011SMarcel Moolenaar o re-jigged unit-tests 36483955d011SMarcel Moolenaar 36493955d011SMarcel Moolenaar2004-02-15 Simon J. Gerraty <sjg@void.crufty.net> 36503955d011SMarcel Moolenaar 36513955d011SMarcel Moolenaar * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,} 36523955d011SMarcel Moolenaar so that './bmake -f Makefile test' works. 36533955d011SMarcel Moolenaar 36543955d011SMarcel Moolenaar2004-02-14 Simon J. Gerraty <sjg@void.crufty.net> 36553955d011SMarcel Moolenaar 36563955d011SMarcel Moolenaar * Makefile.in: (BMAKE_VERSION): bump to 20040214 36573955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36583955d011SMarcel Moolenaar o search upwards for *.mk 36593955d011SMarcel Moolenaar o fix for double free of var substitution buffers 36603955d011SMarcel Moolenaar o use of getopt replaced with custom code, since the usage 36613955d011SMarcel Moolenaar (re-scanning) isn't posix compatible. 36623955d011SMarcel Moolenaar 36633955d011SMarcel Moolenaar2004-02-12 Simon J. Gerraty <sjg@void.crufty.net> 36643955d011SMarcel Moolenaar 36653955d011SMarcel Moolenaar * arch.c: don't include ranlib.h on ELF systems 36663955d011SMarcel Moolenaar (thanks to Chuck Cranor <chuck@ece.cmu.edu>). 36673955d011SMarcel Moolenaar 36683955d011SMarcel Moolenaar2004-01-18 Simon J. Gerraty <sjg@void.crufty.net> 36693955d011SMarcel Moolenaar 36703955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump to 20040118 36713955d011SMarcel Moolenaar 36723955d011SMarcel Moolenaar * boot-strap (while): export vars we assign to on cmdline 36733955d011SMarcel Moolenaar * unit-test/Makefile.in: ternary is .PHONY 36743955d011SMarcel Moolenaar 36753955d011SMarcel Moolenaar2004-01-08 Simon J. Gerraty <sjg@void.crufty.net> 36763955d011SMarcel Moolenaar 36773955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040108 36783955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36793955d011SMarcel Moolenaar o fix for ternary modifier 36803955d011SMarcel Moolenaar 36813955d011SMarcel Moolenaar2004-01-06 Simon J. Gerraty <sjg@void.crufty.net> 36823955d011SMarcel Moolenaar 36833955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20040105 36843955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36853955d011SMarcel Moolenaar o fix for cond.c to handle compound expressions better 36863955d011SMarcel Moolenaar o variable expansion within sysV style replacements 36873955d011SMarcel Moolenaar 36883955d011SMarcel Moolenaar2003-12-22 Simon J. Gerraty <sjg@void.crufty.net> 36893955d011SMarcel Moolenaar 36903955d011SMarcel Moolenaar * Make portable snprintf safer - output to /dev/null first to 36913955d011SMarcel Moolenaar check space needed. 36923955d011SMarcel Moolenaar 36933955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20031222 36943955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 36953955d011SMarcel Moolenaar o -dg3 to show input graph when things go wrong. 36963955d011SMarcel Moolenaar o explicitly look for makefiles in objdir if not found in curdir so 36973955d011SMarcel Moolenaar that errors in .depend etc will be reported accurarely. 36983955d011SMarcel Moolenaar o avoid use of -e in shell scripts in jobs mode, use '|| exit $?' 36993955d011SMarcel Moolenaar instead as it more accurately reflects the expected behavior and 37003955d011SMarcel Moolenaar is more consistently implemented. 37013955d011SMarcel Moolenaar o avoid use of asprintf. 37023955d011SMarcel Moolenaar 37033955d011SMarcel Moolenaar2003-09-28 Simon J. Gerraty <sjg@void.crufty.net> 37043955d011SMarcel Moolenaar 37053955d011SMarcel Moolenaar * util.c: Add asprintf and vasprintf. 37063955d011SMarcel Moolenaar 37073955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030928 37083955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37093955d011SMarcel Moolenaar :[] modifier - allows picking words from a variable. 37103955d011SMarcel Moolenaar :tW modifier - allows treating value as one big word. 37113955d011SMarcel Moolenaar W flag for :C and :S - allows treating value as one big word. 37123955d011SMarcel Moolenaar 37133955d011SMarcel Moolenaar2003-09-12 Simon J. Gerraty <sjg@void.crufty.net> 37143955d011SMarcel Moolenaar 37153955d011SMarcel Moolenaar * Merge with NetBSD make 37163955d011SMarcel Moolenaar pick up -de flag to enable printing failed command. 37173955d011SMarcel Moolenaar don't skip 1st two dir entries (normally . and ..) since 37183955d011SMarcel Moolenaar coda does not have them. 37193955d011SMarcel Moolenaar 37203955d011SMarcel Moolenaar2003-09-09 Simon J. Gerraty <sjg@void.crufty.net> 37213955d011SMarcel Moolenaar 37223955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030909 37233955d011SMarcel Moolenaar * Merge with NetBSD make, pick up: 37243955d011SMarcel Moolenaar - changes for -V '${VAR}' to print fully expanded value 37253955d011SMarcel Moolenaar cf. -V VAR 37263955d011SMarcel Moolenaar - CompatRunCommand now prints the command that failed. 37273955d011SMarcel Moolenaar - several files got updated 3 clause Berkeley license. 37283955d011SMarcel Moolenaar 37293955d011SMarcel Moolenaar2003-08-02 Simon J. Gerraty <sjg@void.crufty.net> 37303955d011SMarcel Moolenaar 37313955d011SMarcel Moolenaar * boot-strap: Allow setting configure args on command line. 37323955d011SMarcel Moolenaar 37333955d011SMarcel Moolenaar2003-07-31 Simon J. Gerraty <sjg@void.crufty.net> 37343955d011SMarcel Moolenaar 37353955d011SMarcel Moolenaar * configure.in: add --with-defshell to allow sh or ksh 37363955d011SMarcel Moolenaar to be selected as default shell. 37373955d011SMarcel Moolenaar 37383955d011SMarcel Moolenaar * Makefile.in: bump version to 20030731 37393955d011SMarcel Moolenaar 37403955d011SMarcel Moolenaar * Merge with NetBSD make 37413955d011SMarcel Moolenaar Pick up .SHELL spec for ksh and associate man page changes. 37423955d011SMarcel Moolenaar Also compat mode now uses the same shell specs. 37433955d011SMarcel Moolenaar 37443955d011SMarcel Moolenaar2003-07-29 Simon J. Gerraty <sjg@void.crufty.net> 37453955d011SMarcel Moolenaar 37463955d011SMarcel Moolenaar * var.c (Var_Parse): ensure delim is initialized. 37473955d011SMarcel Moolenaar 37483955d011SMarcel Moolenaar * unit-tests/Makefile.in: use single quotes to avoid problems from 37493955d011SMarcel Moolenaar some shells. 37503955d011SMarcel Moolenaar 37513955d011SMarcel Moolenaar * makefile.boot.in: 37523955d011SMarcel Moolenaar Run the unit-tests as part of the bootstrap procedure. 37533955d011SMarcel Moolenaar 37543955d011SMarcel Moolenaar2003-07-28 Simon J. Gerraty <sjg@void.crufty.net> 37553955d011SMarcel Moolenaar 37563955d011SMarcel Moolenaar * unit-tests/Makefile.in: always force complaints from 37573955d011SMarcel Moolenaar ${TEST_MAKE} to be from 'make'. 37583955d011SMarcel Moolenaar 37593955d011SMarcel Moolenaar * configure.in: add check for 'diff -u' 37603955d011SMarcel Moolenaar also fix some old autoconf'isms 37613955d011SMarcel Moolenaar 37623955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030728. 37633955d011SMarcel Moolenaar if using GCC add -Wno-cast-qual to CFLAGS for var.o 37643955d011SMarcel Moolenaar 37653955d011SMarcel Moolenaar * Merge with NetBSD make 37663955d011SMarcel Moolenaar Pick up fix for :ts parsing error in some cases. 37673955d011SMarcel Moolenaar Pick unit-tests. 37683955d011SMarcel Moolenaar 37693955d011SMarcel Moolenaar2003-07-23 Simon J. Gerraty <sjg@void.crufty.net> 37703955d011SMarcel Moolenaar 37713955d011SMarcel Moolenaar * Makefile.in (BMAKE_VERSION): bump version to 20030723. 37723955d011SMarcel Moolenaar 37733955d011SMarcel Moolenaar * var.c (Var_Parse): fix bug in :ts modifier, after const 37743955d011SMarcel Moolenaar correctness fixes, must pass nstr to VarModify. 37753955d011SMarcel Moolenaar 37763955d011SMarcel Moolenaar2003-07-14 Simon J. Gerraty <sjg@void.crufty.net> 37773955d011SMarcel Moolenaar 37783955d011SMarcel Moolenaar * Makefile.in: BMAKE_VERSION switch to a date based version. 37793955d011SMarcel Moolenaar We'll generally use the date of last import from NetBSD. 37803955d011SMarcel Moolenaar 37813955d011SMarcel Moolenaar * Merge with NetBSD make 37823955d011SMarcel Moolenaar Pick up fixes for const-correctness, now passes WARNS=3 on 37833955d011SMarcel Moolenaar NetBSD. 37843955d011SMarcel Moolenaar Pick up :ts modifier, allows controlling the separator used 37853955d011SMarcel Moolenaar between words in variable expansion. 37863955d011SMarcel Moolenaar 37873955d011SMarcel Moolenaar2003-07-11 Simon J. Gerraty <sjg@void.crufty.net> 37883955d011SMarcel Moolenaar 37893955d011SMarcel Moolenaar * FILES: include boot-strap and os.sh 37903955d011SMarcel Moolenaar 37913955d011SMarcel Moolenaar * Makefile.in: only set WARNS if we are NetBSD, the effect on 37923955d011SMarcel Moolenaar FreeBSD is known to be bad. 37933955d011SMarcel Moolenaar 37943955d011SMarcel Moolenaar * makefile.boot.in (bootstrap): make this the default target. 37953955d011SMarcel Moolenaar 37963955d011SMarcel Moolenaar * Makefile.in: bump version to 3.1.19 37973955d011SMarcel Moolenaar 37983955d011SMarcel Moolenaar * machine.sh: avoid A-Z with tr as it is bound to lose. 37993955d011SMarcel Moolenaar 38003955d011SMarcel Moolenaar2003-07-10 Simon J. Gerraty <sjg@void.crufty.net> 38013955d011SMarcel Moolenaar 38023955d011SMarcel Moolenaar * Merge with NetBSD make 38033955d011SMarcel Moolenaar Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo 38043955d011SMarcel Moolenaar Plus some doc fixes. 38053955d011SMarcel Moolenaar 38063955d011SMarcel Moolenaar2003-04-27 Simon J. Gerraty <sjg@void.crufty.net> 38073955d011SMarcel Moolenaar 38083955d011SMarcel Moolenaar * Merge with NetBSD make 38093955d011SMarcel Moolenaar Pick up fix for PR/1523 - don't count a library as built, if there 38103955d011SMarcel Moolenaar is no way to build it 38113955d011SMarcel Moolenaar 38123955d011SMarcel Moolenaar * Bump version to 3.1.18 38133955d011SMarcel Moolenaar 38143955d011SMarcel Moolenaar2003-03-23 Simon J. Gerraty <sjg@void.crufty.net> 38153955d011SMarcel Moolenaar 38163955d011SMarcel Moolenaar * Merge with NetBSD make 38173955d011SMarcel Moolenaar Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT 38183955d011SMarcel Moolenaar appears in src list. 38193955d011SMarcel Moolenaar 38203955d011SMarcel Moolenaar2003-03-21 Simon J. Gerraty <sjg@void.crufty.net> 38213955d011SMarcel Moolenaar 38223955d011SMarcel Moolenaar * Merge with NetBSD make (mmm 10th anniversary!) 38233955d011SMarcel Moolenaar pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828) 38243955d011SMarcel Moolenaar pick up -X which tells us to not export VAR=val via setenv if 38253955d011SMarcel Moolenaar we are already doing so via MAKEFLAGS. This saves valuable env 38263955d011SMarcel Moolenaar space on systems like Darwin. 38273955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.17 38283955d011SMarcel Moolenaar 38293955d011SMarcel Moolenaar * parse.c: pix up fix for suffix rules 38303955d011SMarcel Moolenaar 38313955d011SMarcel Moolenaar2003-03-06 Simon J. Gerraty <sjg@void.crufty.net> 38323955d011SMarcel Moolenaar 38333955d011SMarcel Moolenaar * Merge with NetBSD make. 38343955d011SMarcel Moolenaar pick up fix for propagating -B via MAKEFLAGS. 38353955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.16 38363955d011SMarcel Moolenaar 38373955d011SMarcel Moolenaar * Apply some patches from pkgsrc-bootstrap/bmake 38383955d011SMarcel Moolenaar Originally by Grant Beattie <grant@netbsd.org> 38393955d011SMarcel Moolenaar I may have missed some - since they are based on bmake-3.1.12 38403955d011SMarcel Moolenaar 38413955d011SMarcel Moolenaar2002-12-03 Simon J. Gerraty <sjg@void.crufty.net> 38423955d011SMarcel Moolenaar 38433955d011SMarcel Moolenaar * makefile.boot.in (bmake): update install targets for those that 38443955d011SMarcel Moolenaar use them, also clear MAKEFLAGS when invoking bmake.boot to avoid 38453955d011SMarcel Moolenaar havoc from gmake -w. Thanks to Harlan Stenn <hstenn@cisco.com>. 38463955d011SMarcel Moolenaar 38473955d011SMarcel Moolenaar * bmake.cat1: update the pre-formatted man page! 38483955d011SMarcel Moolenaar 38493955d011SMarcel Moolenaar2002-11-30 Simon J. Gerraty <sjg@void.crufty.net> 38503955d011SMarcel Moolenaar 38513955d011SMarcel Moolenaar * Merge with NetBSD make. 38523955d011SMarcel Moolenaar pick up fix for premature free of pointer used in call 38533955d011SMarcel Moolenaar to Dir_InitCur(). 38543955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.15 38553955d011SMarcel Moolenaar 38563955d011SMarcel Moolenaar2002-11-26 Simon J. Gerraty <sjg@void.crufty.net> 38573955d011SMarcel Moolenaar 38583955d011SMarcel Moolenaar * configure.in: determine suitable value for MKSRC. 38593955d011SMarcel Moolenaar override using --with-mksrc=PATH. 38603955d011SMarcel Moolenaar 38613955d011SMarcel Moolenaar * machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems. 38623955d011SMarcel Moolenaar configs(8) will use 'sun4' as an alias for 'sparc'. 38633955d011SMarcel Moolenaar 38643955d011SMarcel Moolenaar2002-11-25 Simon J. Gerraty <sjg@void.crufty.net> 38653955d011SMarcel Moolenaar 38663955d011SMarcel Moolenaar * Merge with NetBSD make. 38673955d011SMarcel Moolenaar pick up ${.PATH} 38683955d011SMarcel Moolenaar pick up fix for finding ../cat.c via .PATH when .CURDIR=.. 38693955d011SMarcel Moolenaar set MAKE_VERSION to 3.1.14 38703955d011SMarcel Moolenaar add configure checks for killpg and sys/socket.h 38713955d011SMarcel Moolenaar 38723955d011SMarcel Moolenaar2002-09-16 Simon J. Gerraty <sjg@void.crufty.net> 38733955d011SMarcel Moolenaar 38743955d011SMarcel Moolenaar * tag bmake-3-1-13 38753955d011SMarcel Moolenaar 38763955d011SMarcel Moolenaar * makefile.boot.in (bmake): use install-mk 38773955d011SMarcel Moolenaar Also setup ./mk before trying to invoke bmake.boot incase we 38783955d011SMarcel Moolenaar needed install-mk to create a sys.mk for us. 38793955d011SMarcel Moolenaar 38803955d011SMarcel Moolenaar * configure.in: If we need to add -I${srcdir}/missing, make it an 38813955d011SMarcel Moolenaar absolute path so that it works for lst.lib too. 38823955d011SMarcel Moolenaar 38833955d011SMarcel Moolenaar * make.h: always include sys/cdefs.h since we provide one if the 38843955d011SMarcel Moolenaar host does not. 38853955d011SMarcel Moolenaar 38863955d011SMarcel Moolenaar * Makefile.in (install-mk): 38873955d011SMarcel Moolenaar use MKSRC/install-mk which will do the right thing. 38883955d011SMarcel Moolenaar use uname -p for ARCH if possible. 38893955d011SMarcel Moolenaar since install-mk will setup links bsd.prog.mk -> prog.mk if 38903955d011SMarcel Moolenaar needed, just .include bsd.prog.mk 38913955d011SMarcel Moolenaar 38923955d011SMarcel Moolenaar * Merge with NetBSD make (NetBSD-1.6) 38933955d011SMarcel Moolenaar Code is ansi-C only now. 38943955d011SMarcel Moolenaar Bug in handling of dotLast is fixed. 38953955d011SMarcel Moolenaar Can now assign .OBJDIR and make will reset its notions of life. 38963955d011SMarcel Moolenaar New modifiers :tu :tl for toUpper and toLower. 38973955d011SMarcel Moolenaar 38983955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001 Simon J. Gerraty <sjg@zen.crufty.net> 38993955d011SMarcel Moolenaar 39003955d011SMarcel Moolenaar * Merge with NetBSD make 39013955d011SMarcel Moolenaar pick up fix for .END failure in compat mode. 39023955d011SMarcel Moolenaar pick up fix for extra va_end() in ParseVErrorInternal. 39033955d011SMarcel Moolenaar 39043955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001 Simon J. Gerraty <sjg@zen.crufty.net> 39053955d011SMarcel Moolenaar 39063955d011SMarcel Moolenaar * configure.in: for systems that have sys/cdefs.h check if it is 39073955d011SMarcel Moolenaar compatible. If not, include the one under missing, but tell it to 39083955d011SMarcel Moolenaar include the native one too - necessary on Linux. 39093955d011SMarcel Moolenaar 39103955d011SMarcel Moolenaar * missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use 39113955d011SMarcel Moolenaar include_next (for gcc) to get the native sys/cdefs.h 39123955d011SMarcel Moolenaar 39133955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 39143955d011SMarcel Moolenaar 39153955d011SMarcel Moolenaar * job.c (JobFinish): Fix an earlier merge bug that resulted in 39163955d011SMarcel Moolenaar leaking descriptors when using -jN. 39173955d011SMarcel Moolenaar 39183955d011SMarcel Moolenaar * job.c (JobPrintCommand): See if "curdir" exists before 39193955d011SMarcel Moolenaar attempting to chdir(). Doing the chdir directly in make (when in 39203955d011SMarcel Moolenaar compat mode) fails silently, so let the -jN version do the same. 39213955d011SMarcel Moolenaar This can happen when building kernels in an object tree and 39223955d011SMarcel Moolenaar playing clever games to reset .CURDIR. 39233955d011SMarcel Moolenaar 39243955d011SMarcel Moolenaar * Merged with NetBSD make 39253955d011SMarcel Moolenaar pick up .USEBEFORE 39263955d011SMarcel Moolenaar 39273955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 39283955d011SMarcel Moolenaar 39293955d011SMarcel Moolenaar * makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work. 39303955d011SMarcel Moolenaar 39313955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 39323955d011SMarcel Moolenaar 39333955d011SMarcel Moolenaar * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell 39343955d011SMarcel Moolenaar us not to export the iterator variable when using VAR_CMD context. 39353955d011SMarcel Moolenaar 39363955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 39373955d011SMarcel Moolenaar 39383955d011SMarcel Moolenaar * job.c (Job_CatchChildren): don't call Job_CatchOutput() here, 39393955d011SMarcel Moolenaar its the wrong "fix". 39403955d011SMarcel Moolenaar 39413955d011SMarcel MoolenaarSat Jun 9 00:11:24 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 39423955d011SMarcel Moolenaar 39433955d011SMarcel Moolenaar * Redesigned export of VAR_CMD's via MAKEFLAGS. 39443955d011SMarcel Moolenaar We now simply append the variable names to .MAKEOVERRIDES, and 39453955d011SMarcel Moolenaar handle duplicate suppression and quoting in ExportMAKEFLAGS using: 39463955d011SMarcel Moolenaar ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@} 39473955d011SMarcel Moolenaar Apart from fixing quoting bugs in previous version, this allows us 39483955d011SMarcel Moolenaar to export vars to the environment by simply doing: 39493955d011SMarcel Moolenaar .MAKEOVERRIDES+= PATH 39503955d011SMarcel Moolenaar Merged again with NetBSD make, but the above is the only change. 39513955d011SMarcel Moolenaar 39523955d011SMarcel Moolenaar * configure.in: added 39533955d011SMarcel Moolenaar --disable-pwd-override disable $PWD overriding getcwd() 39543955d011SMarcel Moolenaar --disable-check-make-chdir disable make trying to guess 39553955d011SMarcel Moolenaar when it should automatically cd ${.CURDIR} 39563955d011SMarcel Moolenaar 39573955d011SMarcel Moolenaar * Merge with NetBSD make, changes include: 39583955d011SMarcel Moolenaar parse.c (ParseDoDependency): Spot that the syntax error is 39593955d011SMarcel Moolenaar caused by an unresolved cvs/rcs conflict and say so. 39603955d011SMarcel Moolenaar var.c: most of Var* functions now take a ctxt as 1st arg. 39613955d011SMarcel Moolenaar now does variable substituion on rhs of sysv style modifiers. 39623955d011SMarcel Moolenaar 39633955d011SMarcel Moolenaar * var.c (Var_Set): exporting of command line variables (VAR_CMD) 39643955d011SMarcel Moolenaar is now done here. We append the name='value' to .MAKEOVERRIDES 39653955d011SMarcel Moolenaar rather than directly into MAKEFLAGS as this allows a Makefile to 39663955d011SMarcel Moolenaar use .MAKEOVERRIDES= to disable this behaviour. GNU make uses a 39673955d011SMarcel Moolenaar very similar mechanism. Note that in adding name='value' to 39683955d011SMarcel Moolenaar .MAKEOVERRIDES we do the moral equivalent of: 39693955d011SMarcel Moolenaar .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val' 39703955d011SMarcel Moolenaar 39713955d011SMarcel MoolenaarFri Jun 1 14:08:02 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 39723955d011SMarcel Moolenaar 39733955d011SMarcel Moolenaar * make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H 39743955d011SMarcel Moolenaar 39753955d011SMarcel Moolenaar * Merged with NetBSD make 39763955d011SMarcel Moolenaar make -dx can now be used to run commands via sh -x 39773955d011SMarcel Moolenaar better error messages on exec failures. 39783955d011SMarcel Moolenaar 39793955d011SMarcel MoolenaarThu May 31 01:44:54 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 39803955d011SMarcel Moolenaar 39813955d011SMarcel Moolenaar * Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that 39823955d011SMarcel Moolenaar MAKE_VERSION gets updated. Also don't use ?= for MAKE_VERSION, 39833955d011SMarcel Moolenaar MACHINE etc otherwise they propagate from the previous bmake. 39843955d011SMarcel Moolenaar 39853955d011SMarcel Moolenaar * configure.in (machine): allow --with-machine=generic to make 39863955d011SMarcel Moolenaar configure use machine.sh to set MACHINE. 39873955d011SMarcel Moolenaar 39883955d011SMarcel Moolenaar * job.c (JobInterrupt): convert to using WAIT_T and friends. 39893955d011SMarcel Moolenaar 39903955d011SMarcel Moolenaar * Makefile.in: mention in bmake.1 that we use autoconf. 39913955d011SMarcel Moolenaar 39923955d011SMarcel Moolenaar * make.1: mention MAKE_PRINT_VAR_ON_ERROR. 39933955d011SMarcel Moolenaar 39943955d011SMarcel MoolenaarWed May 30 23:17:18 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 39953955d011SMarcel Moolenaar 39963955d011SMarcel Moolenaar * main.c (ReadMakefile): don't set MAKEFILE if reading ".depend" 39973955d011SMarcel Moolenaar as that rather defeats the usefulness of ${MAKEFILE}. 39983955d011SMarcel Moolenaar 39993955d011SMarcel Moolenaar * main.c (MainParseArgs): append command line variable assignments 40003955d011SMarcel Moolenaar to MAKEFLAGS so that they get propagated to child make's. 40013955d011SMarcel Moolenaar Apparently this is required POSIX behaviour? Its useful anyway. 40023955d011SMarcel Moolenaar 40033955d011SMarcel MoolenaarTue May 29 02:20:07 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 40043955d011SMarcel Moolenaar 40053955d011SMarcel Moolenaar * compat.c (CompatRunCommand): don't use perror() since stdio may 40063955d011SMarcel Moolenaar cause problems in child of vfork(). 40073955d011SMarcel Moolenaar 40083955d011SMarcel Moolenaar * compat.c, main.c: Call PrintOnError() when we are going to bail. 40093955d011SMarcel Moolenaar This routine prints out the .curdir where we stopped and will also 40103955d011SMarcel Moolenaar display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}. 40113955d011SMarcel Moolenaar 40123955d011SMarcel Moolenaar * main.c: add ${.newline} to hold a "\n" - sometimes handy in 40133955d011SMarcel Moolenaar :@ expansion. 40143955d011SMarcel Moolenaar 40153955d011SMarcel Moolenaar * var.c: VarLoopExpand: ignore addSpace if a \n is present. 40163955d011SMarcel Moolenaar 40173955d011SMarcel Moolenaar * Added RCSid's for the files we've touched. 40183955d011SMarcel Moolenaar 40193955d011SMarcel MoolenaarThu May 24 15:41:37 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 40203955d011SMarcel Moolenaar 40213955d011SMarcel Moolenaar * configure.in: Thanks to some clues from mdb@juniper.net, 40223955d011SMarcel Moolenaar added autoconf magic to control setting of MACHINE, MACHINE_ARCH 40233955d011SMarcel Moolenaar as well as what ends up in _PATH_DEFSYSPATH. We now have: 40243955d011SMarcel Moolenaar 40253955d011SMarcel Moolenaar --with-machine=MACHINE explicitly set MACHINE 40263955d011SMarcel Moolenaar --with-force-machine=MACHINE set FORCE_MACHINE 40273955d011SMarcel Moolenaar --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH 40283955d011SMarcel Moolenaar --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 40293955d011SMarcel Moolenaar --with-prefix-sys-path=PATH:DIR:LIST prefix _PATH_PREFIX_SYSPATH 40303955d011SMarcel Moolenaar --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX 40313955d011SMarcel Moolenaar 40323955d011SMarcel Moolenaar If _PATH_OBJDIRPREFIX is set to "no" we won't define it. 40333955d011SMarcel Moolenaar 40343955d011SMarcel Moolenaar * makefile: added a pathetically simple makefile to drive 40353955d011SMarcel Moolenaar bootstrapping. Running configure by hand is more useful. 40363955d011SMarcel Moolenaar 40373955d011SMarcel Moolenaar * Makefile.in: added MAKE_VERSION, and reworked things to be less 40383955d011SMarcel Moolenaar dependent on NetBSD bsd.*.mk 40393955d011SMarcel Moolenaar 40403955d011SMarcel Moolenaar * pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining 40413955d011SMarcel Moolenaar _PATH_OBJDIRPREFIX for those that don't want a default. 40423955d011SMarcel Moolenaar construct _PATH_DEFSYSPATH from the info we get from configure. 40433955d011SMarcel Moolenaar 40443955d011SMarcel Moolenaar * main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION} 40453955d011SMarcel Moolenaar if MAKE_VERSION is defined. 40463955d011SMarcel Moolenaar 40473955d011SMarcel Moolenaar * compat.c: when we bail, print out the .CURDIR we were in. 40483955d011SMarcel Moolenaar 40493955d011SMarcel MoolenaarSat May 12 00:34:12 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 40503955d011SMarcel Moolenaar 40513955d011SMarcel Moolenaar * Merged with NetBSD make 40523955d011SMarcel Moolenaar 40533955d011SMarcel Moolenaar * var.c: fixed a bug in the handling of the modifier :P 40543955d011SMarcel Moolenaar if the node as found but the path was null, we segfault trying to 40553955d011SMarcel Moolenaar duplicate it. 40563955d011SMarcel Moolenaar 40573955d011SMarcel MoolenaarMon Mar 5 16:20:33 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 40583955d011SMarcel Moolenaar 40593955d011SMarcel Moolenaar * Merged with NetBSD make 40603955d011SMarcel Moolenaar 40613955d011SMarcel Moolenaar * make.c: Make_OODate's test for a library out of date was using 40623955d011SMarcel Moolenaar cmtime where it should have used mtime (my bug). 40633955d011SMarcel Moolenaar 40643955d011SMarcel Moolenaar * compat.c: Use perror() to tell us what really went wrong when we 40653955d011SMarcel Moolenaar cannot exec a command. 40663955d011SMarcel Moolenaar 40673955d011SMarcel MoolenaarFri Dec 15 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 40683955d011SMarcel Moolenaar 40693955d011SMarcel Moolenaar * Merged with NetBSD make 40703955d011SMarcel Moolenaar 40713955d011SMarcel MoolenaarSat Jun 10 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 40723955d011SMarcel Moolenaar 40733955d011SMarcel Moolenaar * Merged with NetBSD make 40743955d011SMarcel Moolenaar 40753955d011SMarcel MoolenaarThu Jun 1 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 40763955d011SMarcel Moolenaar 40773955d011SMarcel Moolenaar * Merged with NetBSD make 40783955d011SMarcel Moolenaar 40793955d011SMarcel MoolenaarTue May 30 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 40803955d011SMarcel Moolenaar 40813955d011SMarcel Moolenaar * Merged with NetBSD make 40823955d011SMarcel Moolenaar 40833955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 40843955d011SMarcel Moolenaar 40853955d011SMarcel Moolenaar * util.c: don't provide signal() since we use sigcompat.c 40863955d011SMarcel Moolenaar 40873955d011SMarcel Moolenaar * Makefile.in: added a build target. 40883955d011SMarcel Moolenaar 40893955d011SMarcel Moolenaar * var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :! 40903955d011SMarcel Moolenaar These allow some quite clever magic. 40913955d011SMarcel Moolenaar 40923955d011SMarcel Moolenaar * main.c (main): added support for getenv(MAKESYSPATH). 40933955d011SMarcel Moolenaar 40943955d011SMarcel MoolenaarMon Apr 2 16:25:13 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 40953955d011SMarcel Moolenaar 40963955d011SMarcel Moolenaar * Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set. 40973955d011SMarcel Moolenaar This avoids objdir having a different value depending on how a 40983955d011SMarcel Moolenaar directory was reached (via command line, or subdir.mk). 40993955d011SMarcel Moolenaar 41003955d011SMarcel Moolenaar * If FORCE_MACHINE is defined, ignore getenv("MACHINE"). 41013955d011SMarcel Moolenaar 41023955d011SMarcel MoolenaarMon Apr 2 23:15:31 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 41033955d011SMarcel Moolenaar 41043955d011SMarcel Moolenaar * Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if 41053955d011SMarcel Moolenaar MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not. 41063955d011SMarcel Moolenaar I've been testing this in NetBSD's make for some weeks. 41073955d011SMarcel Moolenaar 41083955d011SMarcel Moolenaar * Turn Makefile into Makefile.in and make it useful. 41093955d011SMarcel Moolenaar 41103955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 41113955d011SMarcel Moolenaar 41123955d011SMarcel Moolenaar * Imported NetBSD's -current make(1) and resolve conflicts. 41133955d011SMarcel Moolenaar 41143955d011SMarcel Moolenaar * Applied autoconf patches from bmake v2 41153955d011SMarcel Moolenaar 41163955d011SMarcel Moolenaar * Imported clean code base from NetBSD-1.0 4117