xref: /freebsd/contrib/bmake/ChangeLog (revision 06b9b3e0ad0dc3f0166b3e8f26ced68c271cf527)
1*06b9b3e0SSimon J. Gerraty2021-01-10  Simon J Gerraty  <sjg@beast.crufty.net>
2*06b9b3e0SSimon J. Gerraty
3*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210110
4*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
5*06b9b3e0SSimon J. Gerraty	o fix lint warnings
6*06b9b3e0SSimon J. Gerraty	o consistently use boolean expressions in conditions
7*06b9b3e0SSimon J. Gerraty
8*06b9b3e0SSimon J. Gerraty2021-01-08  Simon J Gerraty  <sjg@beast.crufty.net>
9*06b9b3e0SSimon J. Gerraty
10*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210108
11*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
12*06b9b3e0SSimon J. Gerraty	o job.c: back to polling token pipe if we want a token
13*06b9b3e0SSimon J. Gerraty	o main.c: always print 'stopped in' on first call
14*06b9b3e0SSimon J. Gerraty	The execption is if we bail because of an abort token
15*06b9b3e0SSimon J. Gerraty	in which case just exit 6.
16*06b9b3e0SSimon J. Gerraty
17*06b9b3e0SSimon J. Gerraty2021-01-01  Simon J Gerraty  <sjg@beast.crufty.net>
18*06b9b3e0SSimon J. Gerraty
19*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20210101
20*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
21*06b9b3e0SSimon J. Gerraty	o Happy New Year!
22*06b9b3e0SSimon J. Gerraty	o rename CmdOpts.lint to strict
23*06b9b3e0SSimon J. Gerraty	o exit 2 on technical errors
24*06b9b3e0SSimon J. Gerraty	o replace pointers in controlling conditions with booleans
25*06b9b3e0SSimon J. Gerraty	o replace global preserveUndefined with VARE_KEEP_UNDEF
26*06b9b3e0SSimon J. Gerraty	o compat.c: re-export variables from the actual make process
27*06b9b3e0SSimon J. Gerraty	if using vfork this is the effect anyway
28*06b9b3e0SSimon J. Gerraty	o cond.c: clean up VarParseResult constants
29*06b9b3e0SSimon J. Gerraty	o for.c: fix undefined behavior in SubstVarLong
30*06b9b3e0SSimon J. Gerraty	make control flow in SubstVarLong of .for loops more obvious
31*06b9b3e0SSimon J. Gerraty	clean up SubstVarShort in .for loops
32*06b9b3e0SSimon J. Gerraty	extract ForSubstBody from ForReadMore
33*06b9b3e0SSimon J. Gerraty	clean up ForReadMore
34*06b9b3e0SSimon J. Gerraty	simplify termination condition for .for loop
35*06b9b3e0SSimon J. Gerraty	add error handling for .for loop items
36*06b9b3e0SSimon J. Gerraty	job.c: re-export variables from the actual make process
37*06b9b3e0SSimon J. Gerraty	parse.c: remove mmap for loading files, only allow files < 1 GiB
38*06b9b3e0SSimon J. Gerraty	fix edge case in := with undefined in variable name
39*06b9b3e0SSimon J. Gerraty	skip variable expansion in ParseDependencyTargetWord
40*06b9b3e0SSimon J. Gerraty	var.c: split ExportVar into separate functions
41*06b9b3e0SSimon J. Gerraty	clean up code in extracted ExportVar functions
42*06b9b3e0SSimon J. Gerraty	remove dead code from ApplyModifiersIndirect
43*06b9b3e0SSimon J. Gerraty	split Var_Subst into easily understandable functions
44*06b9b3e0SSimon J. Gerraty	clean up VarParseResult constants
45*06b9b3e0SSimon J. Gerraty
46*06b9b3e0SSimon J. Gerraty2020-12-25  Simon J Gerraty  <sjg@beast.crufty.net>
47*06b9b3e0SSimon J. Gerraty
48*06b9b3e0SSimon J. Gerraty	* main.c: use .MAKE.DEPENDFILE as set by makefiles
49*06b9b3e0SSimon J. Gerraty
50*06b9b3e0SSimon J. Gerraty2020-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
51*06b9b3e0SSimon J. Gerraty
52*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201222
53*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
54*06b9b3e0SSimon J. Gerraty	o make DEBUG macro return boolean
55*06b9b3e0SSimon J. Gerraty	o parse.c: fix assertion failure for files without trailing newline
56*06b9b3e0SSimon J. Gerraty	o var.c: allow .undef to undefine multiple variables at once
57*06b9b3e0SSimon J. Gerraty	remove excess newline from parse errors
58*06b9b3e0SSimon J. Gerraty
59*06b9b3e0SSimon J. Gerraty2020-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
60*06b9b3e0SSimon J. Gerraty
61*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201221
62*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
63*06b9b3e0SSimon J. Gerraty	o some unit-test updates
64*06b9b3e0SSimon J. Gerraty
65*06b9b3e0SSimon J. Gerraty2020-12-20  Simon J Gerraty  <sjg@beast.crufty.net>
66*06b9b3e0SSimon J. Gerraty
67*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201220
68*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
69*06b9b3e0SSimon J. Gerraty	o more unit tests
70*06b9b3e0SSimon J. Gerraty	o return FStr from Var_Parse and Var_Value
71*06b9b3e0SSimon J. Gerraty	o spell nonexistent consistently
72*06b9b3e0SSimon J. Gerraty	o add str_basename to reduce duplicate code
73*06b9b3e0SSimon J. Gerraty	o compat.c: fix .ERROR_TARGET in compat -k mode
74*06b9b3e0SSimon J. Gerraty	extract InitSignals from Compat_Run
75*06b9b3e0SSimon J. Gerraty	extract UseShell from Compat_RunCommand
76*06b9b3e0SSimon J. Gerraty	o cond.c: error out if an '.endif' or '.else' contain extraneous text
77*06b9b3e0SSimon J. Gerraty	o for.c: rename ForIterate to ForReadMore
78*06b9b3e0SSimon J. Gerraty	o hash.c: clean up hash function for HashTable
79*06b9b3e0SSimon J. Gerraty	o lst.c: rename Vector.priv_cap to cap
80*06b9b3e0SSimon J. Gerraty	o main.c: remove constant parameter from MakeMode
81*06b9b3e0SSimon J. Gerraty	o make.c: use symbolic time for 0 in Make_Recheck
82*06b9b3e0SSimon J. Gerraty	extract MakeChildren from MakeStartJobs
83*06b9b3e0SSimon J. Gerraty	o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar
84*06b9b3e0SSimon J. Gerraty	fix error message for .info/.warning/.error without argument
85*06b9b3e0SSimon J. Gerraty	extract Var_Undef from ParseDirective
86*06b9b3e0SSimon J. Gerraty	extract ParseSkippedBranches, ParseForLoop from ParseReadLine
87*06b9b3e0SSimon J. Gerraty	rename mode constants for ParseGetLine to be more expressive
88*06b9b3e0SSimon J. Gerraty	reduce debugging details in Parse_SetInput
89*06b9b3e0SSimon J. Gerraty	fix line numbers in .for loops
90*06b9b3e0SSimon J. Gerraty	split ParseGetLine into separate functions
91*06b9b3e0SSimon J. Gerraty	fix garbled output for failed shell command
92*06b9b3e0SSimon J. Gerraty	var.c: remove redundant assignment in ApplyModifier_SysV
93*06b9b3e0SSimon J. Gerraty	error out on unknown variable modifiers at parse time
94*06b9b3e0SSimon J. Gerraty	remove wrong error message for indirect modifier in lint mode
95*06b9b3e0SSimon J. Gerraty	extract ApplySingleModifier from ApplyModifiers
96*06b9b3e0SSimon J. Gerraty	use FStr for memory management in Var_SetWithFlags
97*06b9b3e0SSimon J. Gerraty	extract SetVar from Var_SetWithFlags
98*06b9b3e0SSimon J. Gerraty	use FStr in VarNew
99*06b9b3e0SSimon J. Gerraty	extract string functions from ApplyModifier_To
100*06b9b3e0SSimon J. Gerraty	error out if .undef has not exactly 1 argument
101*06b9b3e0SSimon J. Gerraty	extract Var_DeleteVar from Var_Delete
102*06b9b3e0SSimon J. Gerraty	extract Var_Undef from ParseDirective
103*06b9b3e0SSimon J. Gerraty	clean up memory management for expanding variable expressions
104*06b9b3e0SSimon J. Gerraty
105*06b9b3e0SSimon J. Gerraty2020-12-12  Simon J Gerraty  <sjg@beast.crufty.net>
106*06b9b3e0SSimon J. Gerraty
107*06b9b3e0SSimon J. Gerraty	* avoid %zu
108*06b9b3e0SSimon J. Gerraty
109*06b9b3e0SSimon J. Gerraty	* lst.c: avoid anonymous union
110*06b9b3e0SSimon J. Gerraty
111*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201212
112*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
113*06b9b3e0SSimon J. Gerraty	o more unit tests
114*06b9b3e0SSimon J. Gerraty	o inline Targ_Ignore and Targ_Silent
115*06b9b3e0SSimon J. Gerraty	o split JobFlags into separate fields
116*06b9b3e0SSimon J. Gerraty	o remove const from function parameters (left overs from refactoring)
117*06b9b3e0SSimon J. Gerraty	o eliminate boolean argument of Var_Export
118*06b9b3e0SSimon J. Gerraty	o make API of Buf_Init simpler
119*06b9b3e0SSimon J. Gerraty	o rename ParseRunOptions to ParseCommandFlags
120*06b9b3e0SSimon J. Gerraty	o replace *line with line[0]
121*06b9b3e0SSimon J. Gerraty	o compat.c: fix wrong exit status for multiple failed main targets
122*06b9b3e0SSimon J. Gerraty	refactor Compat_Run to show the error condition more clearly
123*06b9b3e0SSimon J. Gerraty	don't make .END if the main targets already failed (-k mode)
124*06b9b3e0SSimon J. Gerraty	fix exit status in -k mode if a dependency fails
125*06b9b3e0SSimon J. Gerraty	o for.c: clean up Buf_AddEscaped in .for loops
126*06b9b3e0SSimon J. Gerraty	o job.c: extract ShellWriter_ErrOn from JobPrintCommand
127*06b9b3e0SSimon J. Gerraty	make Job_Touch simpler
128*06b9b3e0SSimon J. Gerraty	refactor JobFinish
129*06b9b3e0SSimon J. Gerraty	rename Shell.exitFlag to errFlag
130*06b9b3e0SSimon J. Gerraty	move Job.xtraced to ShellWriter
131*06b9b3e0SSimon J. Gerraty	make printing of shell commands independent from the job
132*06b9b3e0SSimon J. Gerraty	rename shell flags in struct Shell
133*06b9b3e0SSimon J. Gerraty	extract JobOpenTmpFile from JobStart
134*06b9b3e0SSimon J. Gerraty	rename RunFlags to CommandFlags
135*06b9b3e0SSimon J. Gerraty	split various Job.* into separate fields
136*06b9b3e0SSimon J. Gerraty	rename commandShell to shell
137*06b9b3e0SSimon J. Gerraty	extract InitShellNameAndPath from Shell_Init
138*06b9b3e0SSimon J. Gerraty	replace signal handling macros with local functions
139*06b9b3e0SSimon J. Gerraty	replace macro MESSAGE with local function
140*06b9b3e0SSimon J. Gerraty	parse.c: error out on null bytes in makefiles
141*06b9b3e0SSimon J. Gerraty	error out on misspelled directives
142*06b9b3e0SSimon J. Gerraty	rename IFile.nextbuf to readMore
143*06b9b3e0SSimon J. Gerraty	fix undefined behavior in ParseEOF
144*06b9b3e0SSimon J. Gerraty	str.c: remove redundant call to strlen in Str_Words
145*06b9b3e0SSimon J. Gerraty	var.c: error out on misspelled .unexport-env
146*06b9b3e0SSimon J. Gerraty	error out on misspelled .export directives
147*06b9b3e0SSimon J. Gerraty	extract ExportVars from Var_Export
148*06b9b3e0SSimon J. Gerraty	extract ExportVarsExpand from Var_Export
149*06b9b3e0SSimon J. Gerraty	eliminate boolean argument of Var_Export
150*06b9b3e0SSimon J. Gerraty	fix undefined behavior when exporting ${:U }
151*06b9b3e0SSimon J. Gerraty	rename Var_ExportVars to Var_ReexportVars
152*06b9b3e0SSimon J. Gerraty	rename Var_Export1 to ExportVar
153*06b9b3e0SSimon J. Gerraty
154*06b9b3e0SSimon J. Gerraty2020-12-06  Simon J Gerraty  <sjg@beast.crufty.net>
155*06b9b3e0SSimon J. Gerraty
156*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201206
157*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
158*06b9b3e0SSimon J. Gerraty	o more unit tests
159*06b9b3e0SSimon J. Gerraty	o inline macros for debug logging
160*06b9b3e0SSimon J. Gerraty	o use consistent variable names for list nodes
161*06b9b3e0SSimon J. Gerraty	o define constants for enum zero-values
162*06b9b3e0SSimon J. Gerraty	o dir.c: use fixed format for debug output of the directory cache
163*06b9b3e0SSimon J. Gerraty	remove Dir_InitDir
164*06b9b3e0SSimon J. Gerraty	o lst.c: inline Lst_Enqueue, Vector_Done
165*06b9b3e0SSimon J. Gerraty	o meta.c: remove unused parameter from meta_needed
166*06b9b3e0SSimon J. Gerraty	o parse.c: rename parse functions
167*06b9b3e0SSimon J. Gerraty	o suff.c: extract ExpandChildrenRegular from ExpandChildren
168*06b9b3e0SSimon J. Gerraty	o targ.c: don't concatenate identifiers in Targ_PrintType
169*06b9b3e0SSimon J. Gerraty	o var.c: remove comment decoration
170*06b9b3e0SSimon J. Gerraty	extract UnexportVars from Var_UnExport
171*06b9b3e0SSimon J. Gerraty	extract GetVarnamesToUnexport from Var_UnExport
172*06b9b3e0SSimon J. Gerraty	extract UnexportEnv from Var_UnExport
173*06b9b3e0SSimon J. Gerraty	extract UnexportVar from Var_UnExport
174*06b9b3e0SSimon J. Gerraty	move CleanEnv to UnexportVars
175*06b9b3e0SSimon J. Gerraty	replace pointer comparisons with enum
176*06b9b3e0SSimon J. Gerraty	add FStr to var.c to make memory handling simpler
177*06b9b3e0SSimon J. Gerraty	use FStr in Var_UnExport
178*06b9b3e0SSimon J. Gerraty	move type definitions in var.c to the top
179*06b9b3e0SSimon J. Gerraty	extract FreeEnvVar from Var_Parse
180*06b9b3e0SSimon J. Gerraty	extract ShuffleStrings from ApplyModifier_Order
181*06b9b3e0SSimon J. Gerraty
182*06b9b3e0SSimon J. Gerraty2020-11-30  Simon J Gerraty  <sjg@beast.crufty.net>
183*06b9b3e0SSimon J. Gerraty
184*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201130
185*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
186*06b9b3e0SSimon J. Gerraty	o add unit tests for META MODE
187*06b9b3e0SSimon J. Gerraty	o reduce memory allocation for dirSearchPath, GNode.parents,
188*06b9b3e0SSimon J. Gerraty	GNode.children, OpenDirs
189*06b9b3e0SSimon J. Gerraty	o reduce pointer indirection for GNode.cohorts and
190*06b9b3e0SSimon J. Gerraty	GNode.implicitParents
191*06b9b3e0SSimon J. Gerraty	o remove pointer indirection from GNode.commands
192*06b9b3e0SSimon J. Gerraty	o inline Lst_ForEachUntil in meta mode
193*06b9b3e0SSimon J. Gerraty	o dir.c: fix memory leak for lstat cache in -DCLEANUP mode
194*06b9b3e0SSimon J. Gerraty	clean up memory management for CachedDirs
195*06b9b3e0SSimon J. Gerraty	fix the reference count of dotLast going negative
196*06b9b3e0SSimon J. Gerraty	add debug logging for OpenDirs_Done
197*06b9b3e0SSimon J. Gerraty	extract CacheNewDir from Dir_AddDir
198*06b9b3e0SSimon J. Gerraty	add debug logging for reference counting of CachedDir
199*06b9b3e0SSimon J. Gerraty	rename some Dir functions to SearchPath
200*06b9b3e0SSimon J. Gerraty	o job.c: rename some global variables
201*06b9b3e0SSimon J. Gerraty	o main.c: reduce memory allocation in ReadBuiltinRules
202*06b9b3e0SSimon J. Gerraty	reduce memory allocation in CmdOpts.create, CmdOpts.variables,
203*06b9b3e0SSimon J. Gerraty	CmdOpts.makefiles
204*06b9b3e0SSimon J. Gerraty	Add .MAKE.UID and .MAKE.GID
205*06b9b3e0SSimon J. Gerraty	o make.c: reduce memory allocation for/in toBeMade,
206*06b9b3e0SSimon J. Gerraty	Make_ProcessWait, Make_ExpandUse
207*06b9b3e0SSimon J. Gerraty	o meta.c: reduce memory allocation in meta_oodate
208*06b9b3e0SSimon J. Gerraty	o parse.c: reduce memory allocations for parsing dependencies and
209*06b9b3e0SSimon J. Gerraty	targets
210*06b9b3e0SSimon J. Gerraty	o suff.c: reduce memory allocation in suffix handling
211*06b9b3e0SSimon J. Gerraty
212*06b9b3e0SSimon J. Gerraty2020-11-24  Simon J Gerraty  <sjg@beast.crufty.net>
213*06b9b3e0SSimon J. Gerraty
214*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201124
215*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
216*06b9b3e0SSimon J. Gerraty	o .MAKE.{UID,GID} represent uid and gid running make.
217*06b9b3e0SSimon J. Gerraty	o fix error handling for .BEGIN and .END dependency in -k mode
218*06b9b3e0SSimon J. Gerraty	o fix missing "Stop." after failed .END node in -k mode
219*06b9b3e0SSimon J. Gerraty	o use properly typed comparisons in boolean contexts
220*06b9b3e0SSimon J. Gerraty	o replace a few HashTable_CreateEntry with HashTable_Set
221*06b9b3e0SSimon J. Gerraty	o add HashSet type
222*06b9b3e0SSimon J. Gerraty	o compat.c: split Compat_Make into smaller functions
223*06b9b3e0SSimon J. Gerraty	extract DebugFailedTarget from Compat_RunCommand
224*06b9b3e0SSimon J. Gerraty	o dir.c: refactor Dir_UpdateMTime
225*06b9b3e0SSimon J. Gerraty	migrate CachedDir.files from HashTable to HashSet
226*06b9b3e0SSimon J. Gerraty	o make.c: add high-level API for GNode.made
227*06b9b3e0SSimon J. Gerraty
228*06b9b3e0SSimon J. Gerraty2020-11-22  Simon J Gerraty  <sjg@beast.crufty.net>
229*06b9b3e0SSimon J. Gerraty
230*06b9b3e0SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201122
231*06b9b3e0SSimon J. Gerraty	Merge with NetBSD make, pick up
232*06b9b3e0SSimon J. Gerraty	o rename GNode.context to vars
233*06b9b3e0SSimon J. Gerraty	o suff.c: cleanup and refactor
234*06b9b3e0SSimon J. Gerraty	rename some functions and vars to better reflect usage
235*06b9b3e0SSimon J. Gerraty	add high-level API for CandidateSearcher
236*06b9b3e0SSimon J. Gerraty	o targ.c: add more debug logging for suffix handling
237*06b9b3e0SSimon J. Gerraty	o more unit tests
238*06b9b3e0SSimon J. Gerraty	o add debug logging for setting and resetting the main target
239*06b9b3e0SSimon J. Gerraty
240e2eeea75SSimon J. Gerraty2020-11-17  Simon J Gerraty  <sjg@beast.crufty.net>
241e2eeea75SSimon J. Gerraty
242e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201117
243e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
244*06b9b3e0SSimon J. Gerraty	o fix some unit-tests when .SHELL is dash
245e2eeea75SSimon J. Gerraty	o rename Targ_NewGN to GNode_New
246e2eeea75SSimon J. Gerraty	o make some GNode functions const
247e2eeea75SSimon J. Gerraty	o main.c: call Targ_Init before Var_Init
248e2eeea75SSimon J. Gerraty	cleanup PrintOnError, getTmpdir and ParseBoolean
249e2eeea75SSimon J. Gerraty	o var.c: fix error message of failed :!cmd! modifier
250e2eeea75SSimon J. Gerraty
251e2eeea75SSimon J. Gerraty2020-11-14  Simon J Gerraty  <sjg@beast.crufty.net>
252e2eeea75SSimon J. Gerraty
253e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201114
254e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
255e2eeea75SSimon J. Gerraty	o replace a few HashTable_CreateEntry with HashTable_Set
256e2eeea75SSimon J. Gerraty	o clean up cached_stats
257e2eeea75SSimon J. Gerraty	o rename DEFAULT to defaultNode
258e2eeea75SSimon J. Gerraty	o remove redundant struct make_stat
259e2eeea75SSimon J. Gerraty	o cond.c: in lint mode, check for ".else <cond>"
260e2eeea75SSimon J. Gerraty	use bitset for IfState
261e2eeea75SSimon J. Gerraty	replace large switch with if-else in Cond_EvalLine
262e2eeea75SSimon J. Gerraty	o job.c: clean up JobExec, JobStart, JobDoOutput
263e2eeea75SSimon J. Gerraty	use stderr for error message about failed touch
264e2eeea75SSimon J. Gerraty	clean up Job_Touch
265e2eeea75SSimon J. Gerraty	replace macro DBPRINTF with JobPrintln
266e2eeea75SSimon J. Gerraty	rename JobState to JobStatus
267e2eeea75SSimon J. Gerraty	main.c: switch cache for realpath from GNode to HashTable
268e2eeea75SSimon J. Gerraty	clean up Fatal
269e2eeea75SSimon J. Gerraty	clean up InitDefSysIncPath
270e2eeea75SSimon J. Gerraty	use progname instead of hard-coded 'make' in warning
271e2eeea75SSimon J. Gerraty	rename Main_SetVarObjdir to SetVarObjdir
272e2eeea75SSimon J. Gerraty	make.1: document the -S option
273e2eeea75SSimon J. Gerraty	make.c: fix debug output for GNode details
274e2eeea75SSimon J. Gerraty	use symbolic names in debug output of GNodes
275e2eeea75SSimon J. Gerraty
276e2eeea75SSimon J. Gerraty2020-11-12  Simon J Gerraty  <sjg@beast.crufty.net>
277e2eeea75SSimon J. Gerraty
278e2eeea75SSimon J. Gerraty	* configure.in: fix --with-force-machine-arch
279e2eeea75SSimon J. Gerraty
280e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201112
281e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
282e2eeea75SSimon J. Gerraty	o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
283e2eeea75SSimon J. Gerraty	checks in InitObjdir.  Explicit .OBJDIR target always allows
284e2eeea75SSimon J. Gerraty	read-only directory.
285e2eeea75SSimon J. Gerraty	o cond.c: clean up Cond_EvalLine
286e2eeea75SSimon J. Gerraty
287e2eeea75SSimon J. Gerraty2020-11-11  Simon J Gerraty  <sjg@beast.crufty.net>
288e2eeea75SSimon J. Gerraty
289e2eeea75SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201111
290e2eeea75SSimon J. Gerraty	Merge with NetBSD make, pick up
291e2eeea75SSimon J. Gerraty	o more unit-tests
292e2eeea75SSimon J. Gerraty	o style cleanup
293e2eeea75SSimon J. Gerraty	remove redundant parentheses from sizeof operator
294e2eeea75SSimon J. Gerraty	replace character literal 0 with '\0'.
295e2eeea75SSimon J. Gerraty	replace pointer literal 0 with NULL.
296e2eeea75SSimon J. Gerraty	remove redundant parentheses.
297e2eeea75SSimon J. Gerraty	replace (expr & mask) == 0 with !(expr & mask).
298e2eeea75SSimon J. Gerraty	use strict typing in conditions of the form !var
299e2eeea75SSimon J. Gerraty	o rename Make_OODate to GNode_IsOODate
300e2eeea75SSimon J. Gerraty	o rename Make_TimeStamp to GNode_UpdateYoungestChild
301e2eeea75SSimon J. Gerraty	o rename Var_Set_with_flags to Var_SetWithFlags
302e2eeea75SSimon J. Gerraty	o rename dieQuietly to shouldDieQuietly
303e2eeea75SSimon J. Gerraty	o buf.c: make API of Buf_Init simpler
304e2eeea75SSimon J. Gerraty	o compat.c: clean up Compat_Make, Compat_RunCommand,
305e2eeea75SSimon J. Gerraty	CompatDeleteTarget and CompatInterrupt
306e2eeea75SSimon J. Gerraty	o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|'
307e2eeea75SSimon J. Gerraty	clean up CondParser_Comparison
308e2eeea75SSimon J. Gerraty	o main.c: rename getBoolean and s2Boolean
309e2eeea75SSimon J. Gerraty	rename MAKEFILE_PREFERENCE for consistency
310e2eeea75SSimon J. Gerraty	o parse.c: replace strstr in ParseMaybeSubMake with optimized code
311e2eeea75SSimon J. Gerraty	o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR
312e2eeea75SSimon J. Gerraty	replace emptyString with allocated empty string
313e2eeea75SSimon J. Gerraty	error out on unclosed expressions after the colon
314e2eeea75SSimon J. Gerraty
315956e45f6SSimon J. Gerraty2020-11-01  Simon J Gerraty  <sjg@beast.crufty.net>
316956e45f6SSimon J. Gerraty
317956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201101
318956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
319956e45f6SSimon J. Gerraty	o negate NoExecute to GNode_ShouldExecute
320956e45f6SSimon J. Gerraty	o job.c: rename JobMatchShell to FindShellByName
321956e45f6SSimon J. Gerraty	extract EscapeShellDblQuot from JobPrintCommand
322956e45f6SSimon J. Gerraty	extract ParseRunOptions from JobPrintCommand
323956e45f6SSimon J. Gerraty	o var.c: extract ApplyModifiersIndirect from ApplyModifiers
324956e45f6SSimon J. Gerraty	treat malformed :range, :ts and :[...] as errors
325956e45f6SSimon J. Gerraty	add tests for the variable modifiers :[words] and :range
326956e45f6SSimon J. Gerraty
327956e45f6SSimon J. Gerraty2020-10-31  Simon J Gerraty  <sjg@beast.crufty.net>
328956e45f6SSimon J. Gerraty
329956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201031
330956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
331956e45f6SSimon J. Gerraty	o format #include directives consistently
332956e45f6SSimon J. Gerraty	o do not look up local variables like .TARGET anywhere else
333956e45f6SSimon J. Gerraty	o main.c: Main_SetObjdir is first called for curdir which may be
334956e45f6SSimon J. Gerraty	readonly
335956e45f6SSimon J. Gerraty	reduce the scope where recursive expressions are detected
336956e45f6SSimon J. Gerraty	remove redundant :tl from getBoolean
337956e45f6SSimon J. Gerraty	clean up mkTempFile
338956e45f6SSimon J. Gerraty	o meta.c: simplify memory allocation in meta_create and meta_oodate
339956e45f6SSimon J. Gerraty	o parse.c: extract loadedfile_mmap from loadfile
340956e45f6SSimon J. Gerraty	o trace.c: document possible undefined behavior with .CURDIR
341956e45f6SSimon J. Gerraty	o var.c: make parsing of the :gmtime and :localtime modifiers stricter
342956e45f6SSimon J. Gerraty	rename ismeta to is_shell_metachar
343956e45f6SSimon J. Gerraty	remove debug logging for the :Q variable modifier
344956e45f6SSimon J. Gerraty	rename VarIsDynamic to VarnameIsDynamic
345956e45f6SSimon J. Gerraty	use consistent parameter order in varname parsing functions
346956e45f6SSimon J. Gerraty	extract ParseVarnameLong from Var_Parse
347956e45f6SSimon J. Gerraty	extract ParseVarnameShort from Var_Parse
348956e45f6SSimon J. Gerraty	fix type of ParseModifierPart parameter delim
349956e45f6SSimon J. Gerraty	extract IsEscapedModifierPart from ParseModifierPart
350956e45f6SSimon J. Gerraty	clean up ModifyWords
351956e45f6SSimon J. Gerraty	add test for combining the :@ and :? variable modifiers
352956e45f6SSimon J. Gerraty
353956e45f6SSimon J. Gerraty2020-10-30  Simon J Gerraty  <sjg@beast.crufty.net>
354956e45f6SSimon J. Gerraty
355956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201030
356956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
357956e45f6SSimon J. Gerraty	o change char * to void * in Var_Value
358956e45f6SSimon J. Gerraty	o make iterating over HashTable simpler
359956e45f6SSimon J. Gerraty	o rename VAR_CMD to VAR_CMDLINE
360956e45f6SSimon J. Gerraty	o cond.c: clean up is_separator
361956e45f6SSimon J. Gerraty	fix parse error in string literal in conditional
362956e45f6SSimon J. Gerraty	o main.c: do not use objdir that is not writable
363956e45f6SSimon J. Gerraty	in lint mode, exit with error status on errors
364956e45f6SSimon J. Gerraty	o  parse.c: clean up StrContainsWord
365956e45f6SSimon J. Gerraty	fix out-of-bounds pointer in ParseTrackInput
366956e45f6SSimon J. Gerraty	o var.c: rename Str_SYSVMatch and its parameters
367956e45f6SSimon J. Gerraty	remove unsatisfiable conditions in Var_Set_with_flags
368956e45f6SSimon J. Gerraty	document where the variable name is expanded
369956e45f6SSimon J. Gerraty	fix documentation for VARP_SUB_ONE
370956e45f6SSimon J. Gerraty	rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME
371956e45f6SSimon J. Gerraty	document VAR_READONLY
372956e45f6SSimon J. Gerraty	prevent appending to read-only variables
373956e45f6SSimon J. Gerraty	extract MayExport from Var_Export1
374956e45f6SSimon J. Gerraty	remove redundant evaluations in VarFind
375956e45f6SSimon J. Gerraty	replace VarFindFlags with a simple Boolean
376956e45f6SSimon J. Gerraty	rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE
377956e45f6SSimon J. Gerraty
378956e45f6SSimon J. Gerraty2020-10-28  Simon J Gerraty  <sjg@beast.crufty.net>
379956e45f6SSimon J. Gerraty
380956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201028
381956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
382956e45f6SSimon J. Gerraty	o rename defIncPath to defSysIncPath
383956e45f6SSimon J. Gerraty	o initialize all CmdOpts fields
384956e45f6SSimon J. Gerraty	o lst.c: inline Vector_Get
385956e45f6SSimon J. Gerraty	o main.c: refactor main extract
386956e45f6SSimon J. Gerraty	InitMaxJobs,InitObjdir,InitVarMake,InitRandom,
387956e45f6SSimon J. Gerraty	ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules,
388956e45f6SSimon J. Gerraty	InitDefIncPath,CmdOpts_Init,UnlimitFiles
389956e45f6SSimon J. Gerraty	o parse.c: merge curFile into includes
390956e45f6SSimon J. Gerraty	rename predecessor to order_pred
391956e45f6SSimon J. Gerraty	sort ParseSpecial alphabetically
392956e45f6SSimon J. Gerraty	remove unused, undocumented .NOEXPORT
393956e45f6SSimon J. Gerraty	rename ParseSpecial enum values consistently
394956e45f6SSimon J. Gerraty	rename some fields of struct IFile
395956e45f6SSimon J. Gerraty
396956e45f6SSimon J. Gerraty2020-10-26  Simon J Gerraty  <sjg@beast.crufty.net>
397956e45f6SSimon J. Gerraty
398956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201026
399956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
400956e45f6SSimon J. Gerraty	o group the command line options and arguments into a struct
401956e45f6SSimon J. Gerraty	o rename GNode.cmgn to youngestChild
402956e45f6SSimon J. Gerraty	o rename hash functions to identify the type name
403956e45f6SSimon J. Gerraty	o negate OP_NOP and rename it to GNode_IsTarget
404956e45f6SSimon J. Gerraty	o add GNode_Path to access the path of a GNode
405956e45f6SSimon J. Gerraty	o remove macros MIN and MAX
406956e45f6SSimon J. Gerraty	o remove unused Lst_Find and Lst_FindFrom
407956e45f6SSimon J. Gerraty	o arch.c: and make Arch_FindLib simpler
408956e45f6SSimon J. Gerraty	clean up code layout
409956e45f6SSimon J. Gerraty	make Arch_ParseArchive simpler
410956e45f6SSimon J. Gerraty	o cond.c: inline CondFindStrMatch into FuncMake
411956e45f6SSimon J. Gerraty	o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath
412956e45f6SSimon J. Gerraty	omit trailing space in debug output for expanding file patterns
413956e45f6SSimon J. Gerraty	refactor DirMatchFiles
414956e45f6SSimon J. Gerraty	document that the SearchPath of Dir_FindFile may be NULL
415956e45f6SSimon J. Gerraty	remove UNCONST from Dir_Expand
416956e45f6SSimon J. Gerraty	inline DirFindName
417956e45f6SSimon J. Gerraty	o for.c: clean up code for handling .for loops
418956e45f6SSimon J. Gerraty	o hash.c: print hash in debug log with fixed width
419956e45f6SSimon J. Gerraty	clean up hash table functions
420956e45f6SSimon J. Gerraty	reduce amount of string hashing
421956e45f6SSimon J. Gerraty	o job.c: refactor JobDeleteTarget
422956e45f6SSimon J. Gerraty	use proper enum constants for aborting
423956e45f6SSimon J. Gerraty	convert result of JobStart from macros to enum
424956e45f6SSimon J. Gerraty	convert abort reason macros to enum
425956e45f6SSimon J. Gerraty	rework Job_CheckCommands to reduce indentation
426956e45f6SSimon J. Gerraty	rename Shell fields
427956e45f6SSimon J. Gerraty	add field names in declaration of DEFSHELL_CUSTOM
428956e45f6SSimon J. Gerraty	convert JobState and JobFlags to enum types
429956e45f6SSimon J. Gerraty	move handling of the "..." command to JobPrintCommands
430956e45f6SSimon J. Gerraty	o lst.c: clean up
431956e45f6SSimon J. Gerraty	refactor LstNodeNew
432956e45f6SSimon J. Gerraty	remove Lst_Open, Lst_Next, Lst_Close
433956e45f6SSimon J. Gerraty	remove code for circular lists from Lst_Next
434956e45f6SSimon J. Gerraty	o main.c: do not attempt to read .MAKE.DEPENFILE if set to
435956e45f6SSimon J. Gerraty	/dev/null or anything starting with "no"
436956e45f6SSimon J. Gerraty	convert macros for debug flags into enum
437956e45f6SSimon J. Gerraty	o make.c: inline Lst_Copy in Make_ExpandUse
438956e45f6SSimon J. Gerraty	o meta.c: inline Lst_Find in meta_oodate
439956e45f6SSimon J. Gerraty	make Lst_RemoveIf simpler in meta_oodate
440956e45f6SSimon J. Gerraty	o parse.c: convert error level for Parse_Error to an enum
441956e45f6SSimon J. Gerraty	o suff.c: properly terminate debug output with newline
442956e45f6SSimon J. Gerraty	add more details to DEBUG_SRC log
443956e45f6SSimon J. Gerraty	replace Dir_CopyDir with Dir_CopyDirSearchPath
444956e45f6SSimon J. Gerraty	don't modify GNode name while rebuilding the suffix graph
445956e45f6SSimon J. Gerraty	o var.c: reduce duplicate code in VarFind
446956e45f6SSimon J. Gerraty
447956e45f6SSimon J. Gerraty2020-10-22  Simon J Gerraty  <sjg@beast.crufty.net>
448956e45f6SSimon J. Gerraty
449956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201022
450956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
451956e45f6SSimon J. Gerraty	o more refactoring and simplification to reduce code size
452956e45f6SSimon J. Gerraty	o var.c: extract CanonicalVarname from VarFind
453956e45f6SSimon J. Gerraty	o make.c: extract UpdateImplicitParentsVars from Make_Update
454956e45f6SSimon J. Gerraty	o main.c: extract PrintVar from doPrintVars
455956e45f6SSimon J. Gerraty	extract HandlePWD from main
456956e45f6SSimon J. Gerraty	o lst.c: inline simple Lst getters
457956e45f6SSimon J. Gerraty	remove unused Lst_ForEach
458956e45f6SSimon J. Gerraty	o job.c: move struct Shell from job.h to job.c
459956e45f6SSimon J. Gerraty	o more unit tests
460956e45f6SSimon J. Gerraty
461956e45f6SSimon J. Gerraty2020-10-19  Simon J Gerraty  <sjg@beast.crufty.net>
462956e45f6SSimon J. Gerraty
463956e45f6SSimon J. Gerraty	* configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT
464956e45f6SSimon J. Gerraty
465956e45f6SSimon J. Gerraty2020-10-18  Simon J Gerraty  <sjg@beast.crufty.net>
466956e45f6SSimon J. Gerraty
467956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201018
468956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
469956e45f6SSimon J. Gerraty	o remove USE_IOVEC
470956e45f6SSimon J. Gerraty	o rename some Hash_* apis to Hash*
471956e45f6SSimon J. Gerraty	o replace execError with execDie
472956e45f6SSimon J. Gerraty	o rename Lst_Init to Lst_New
473956e45f6SSimon J. Gerraty	o add tags to enum types
474956e45f6SSimon J. Gerraty	o rename Stack to Vector
475956e45f6SSimon J. Gerraty	o parse.c: more refactoring
476956e45f6SSimon J. Gerraty	o unit-tests: make some tests use line buffered stdout
477956e45f6SSimon J. Gerraty	o unit-tests/Makefile: in meta mode do not make all tests depend on
478956e45f6SSimon J. Gerraty	Makefile, it isn't necessary.
479956e45f6SSimon J. Gerraty
480956e45f6SSimon J. Gerraty2020-10-10  Simon J Gerraty  <sjg@beast.crufty.net>
481956e45f6SSimon J. Gerraty
482956e45f6SSimon J. Gerraty	* main.c: check for CTL_HW being defined.
483956e45f6SSimon J. Gerraty	* unit-tests/Makefile: ensure export tests output are POSIX compliant
484956e45f6SSimon J. Gerraty	disable opt-debug-jobs test until it works on ubuntu
485956e45f6SSimon J. Gerraty
486956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201010
487956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
488956e45f6SSimon J. Gerraty	o dir.c: remove pathname limit for Dir_FindHereOrAbove
489956e45f6SSimon J. Gerraty	o hash.c: replace strcpy with memcpy in Hash_CreateEntry
490956e45f6SSimon J. Gerraty	o main.c: extract init_machine and init_machine_arch from main
491956e45f6SSimon J. Gerraty	allow to disable debug logging options
492956e45f6SSimon J. Gerraty	o parse.c: enable format string truncation warnings
493956e45f6SSimon J. Gerraty	extract parsing of sources from ParseDoDependency
494956e45f6SSimon J. Gerraty	split ParseDoSrc into smaller functions
495956e45f6SSimon J. Gerraty	hide implementation details from Parse_DoVar
496956e45f6SSimon J. Gerraty	clean up parsing of variable assignments
497956e45f6SSimon J. Gerraty	split Parse_DoVar into manageable pieces
498956e45f6SSimon J. Gerraty	don't modify the given line during Parse_DoVar
499956e45f6SSimon J. Gerraty	fix out-of-bounds memory access in Parse_DoVar
500956e45f6SSimon J. Gerraty	fix parsing of the :sh assignment modifier
501956e45f6SSimon J. Gerraty	o var.c: rework memory allocation for the name of variables
502956e45f6SSimon J. Gerraty	extract ApplyModifier_Literal into separate function
503956e45f6SSimon J. Gerraty	in lint mode, reject modifiers without delimiter
504956e45f6SSimon J. Gerraty	do not export variable names starting with '-'
505956e45f6SSimon J. Gerraty	o fix double-free bug in -DCLEANUP mode
506956e45f6SSimon J. Gerraty	o more cleanup to enable higher warnings level
507956e45f6SSimon J. Gerraty	o more unit tests
508956e45f6SSimon J. Gerraty
509956e45f6SSimon J. Gerraty2020-10-02  Simon J Gerraty  <sjg@beast.crufty.net>
510956e45f6SSimon J. Gerraty
511956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201002
512956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
513956e45f6SSimon J. Gerraty	o dir.c: use hash table for looking up open directories by name
514956e45f6SSimon J. Gerraty	o main.c: clean up option handling
515956e45f6SSimon J. Gerraty	o parse.c: add missing const for Parse_AddIncludeDir
516956e45f6SSimon J. Gerraty	o var.c: ApplyModifier_To, update pp in each branch
517956e45f6SSimon J. Gerraty	o remove redundant function prototypes
518956e45f6SSimon J. Gerraty	o more unit tests
519956e45f6SSimon J. Gerraty
520956e45f6SSimon J. Gerraty2020-10-01  Simon J Gerraty  <sjg@beast.crufty.net>
521956e45f6SSimon J. Gerraty
522956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20201001
523956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
524956e45f6SSimon J. Gerraty	o compat.c: comment about "..."
525956e45f6SSimon J. Gerraty
526956e45f6SSimon J. Gerraty2020-09-30  Simon J Gerraty  <sjg@beast.crufty.net>
527956e45f6SSimon J. Gerraty
528956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200930
529956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
530956e45f6SSimon J. Gerraty	o job.c: split Job.jobPipe into 2 separate fields
531956e45f6SSimon J. Gerraty	replace Lst_Open with direct iteration
532956e45f6SSimon J. Gerraty	o lst.c: remove redundant assertions
533956e45f6SSimon J. Gerraty	o targ.c: replace Lst_Open with direct iteration
534956e45f6SSimon J. Gerraty	o var.c: fix bug in evaluation of indirect variable modifiers
535956e45f6SSimon J. Gerraty	extract ApplyModifier_Quote into separate function
536956e45f6SSimon J. Gerraty	o make debug logging simpler
537956e45f6SSimon J. Gerraty
538956e45f6SSimon J. Gerraty2020-09-27  Simon J Gerraty  <sjg@beast.crufty.net>
539956e45f6SSimon J. Gerraty
540956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200927
541956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
542956e45f6SSimon J. Gerraty	o parse.c: ensure parse errors result in 'stopped in' message.
543956e45f6SSimon J. Gerraty	o compat.c: make parameter of Compat_RunCommand const
544956e45f6SSimon J. Gerraty	o main.c: extract InitVarTarget from main
545956e45f6SSimon J. Gerraty	o parse.c: rename ParseFinishLine to FinishDependencyGroup
546956e45f6SSimon J. Gerraty	refactor ParseDoDependency
547956e45f6SSimon J. Gerraty	o var.c: Var_Subst no longer returns string result
548956e45f6SSimon J. Gerraty	rename Var_ParsePP back to Var_Parse
549956e45f6SSimon J. Gerraty	in lint mode, improve error handling for undefined variables
550956e45f6SSimon J. Gerraty	extract ParseVarname from Var_Parse
551956e45f6SSimon J. Gerraty	o rename Lst_ForEach to Lst_ForEachUntil
552956e45f6SSimon J. Gerraty	o inline Lst_ForEachUntil in several cases
553956e45f6SSimon J. Gerraty	o clean up API for finding and creating GNodes
554956e45f6SSimon J. Gerraty	o fix assertion failure in -j mode with .END node
555956e45f6SSimon J. Gerraty	o inline and remove LstNode_Prev and LstNode_Next
556956e45f6SSimon J. Gerraty	o use fine-grained type names for lists and their nodes
557956e45f6SSimon J. Gerraty	o more unit tests
558956e45f6SSimon J. Gerraty
559956e45f6SSimon J. Gerraty2020-09-11  Simon J Gerraty  <sjg@beast.crufty.net>
560956e45f6SSimon J. Gerraty
561956e45f6SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200911
562956e45f6SSimon J. Gerraty	Merge with NetBSD make, pick up
563956e45f6SSimon J. Gerraty	o cond.c: split EvalComparison into smaller functions
564956e45f6SSimon J. Gerraty	reorder parameters of condition parsing functions
565956e45f6SSimon J. Gerraty	reduce code size in CondParser_Eval
566956e45f6SSimon J. Gerraty	rename CondGetString to CondParser_String
567956e45f6SSimon J. Gerraty	add CondLexer_SkipWhitespace
568956e45f6SSimon J. Gerraty	group the condition parsing state into a struct
569956e45f6SSimon J. Gerraty	in CondGetString, replace repeated Buf_Add with Buf_AddStr
570956e45f6SSimon J. Gerraty	o migrate Var_Parse to Var_ParsePP
571956e45f6SSimon J. Gerraty	o add wrappers around ctype.h functions
572956e45f6SSimon J. Gerraty	o lst.c: use a stack instead of a list for the nested include path
573956e45f6SSimon J. Gerraty	o more unit tests
574956e45f6SSimon J. Gerraty
575956e45f6SSimon J. Gerraty2020-09-04  Simon J Gerraty  <sjg@beast.crufty.net>
576956e45f6SSimon J. Gerraty
577956e45f6SSimon J. Gerraty	* make-bootstrap.sh.in: adjust object list
578956e45f6SSimon J. Gerraty
5792c3632d1SSimon J. Gerraty2020-09-02  Simon J Gerraty  <sjg@beast.crufty.net>
5802c3632d1SSimon J. Gerraty
5812c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200902
5822c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
5832c3632d1SSimon J. Gerraty	o use make_stat to ensure no confusion over valid fields
5842c3632d1SSimon J. Gerraty	returned by cached_stat
5852c3632d1SSimon J. Gerraty	o var.c: make VarQuote const-correct
5862c3632d1SSimon J. Gerraty	o add unit tests for .for
5872c3632d1SSimon J. Gerraty
5882c3632d1SSimon J. Gerraty2020-09-01  Simon J Gerraty  <sjg@beast.crufty.net>
5892c3632d1SSimon J. Gerraty
5902c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200901
5912c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
5922c3632d1SSimon J. Gerraty	o rename Hash_Table fields
5932c3632d1SSimon J. Gerraty	o make data types in Dir_HasWildcards more precise
5942c3632d1SSimon J. Gerraty
5952c3632d1SSimon J. Gerraty2020-08-31  Simon J Gerraty  <sjg@beast.crufty.net>
5962c3632d1SSimon J. Gerraty
5972c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200831
5982c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
5992c3632d1SSimon J. Gerraty	o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds
6002c3632d1SSimon J. Gerraty	o lst.c: Lst_Open renable assert that list isn't open
6012c3632d1SSimon J. Gerraty	o unit test for .TARGET dependent flags
6022c3632d1SSimon J. Gerraty	o var.c: fix aliasing bug in VarUniq
6032c3632d1SSimon J. Gerraty	o more unit tests for :u
6042c3632d1SSimon J. Gerraty
6052c3632d1SSimon J. Gerraty2020-08-30  Simon J Gerraty  <sjg@beast.crufty.net>
6062c3632d1SSimon J. Gerraty
6072c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200830
6082c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6092c3632d1SSimon J. Gerraty	o allow for strict type checking for Boolean
6102c3632d1SSimon J. Gerraty	o Var_Parse never returns NULL
6112c3632d1SSimon J. Gerraty	o Var_Subst never returns NULL
6122c3632d1SSimon J. Gerraty	o Lst_Find now takes boolean match function
6132c3632d1SSimon J. Gerraty	o rename Lst_Memeber to Lst_FindDatum
6142c3632d1SSimon J. Gerraty	o rename LstNode functions to match their type
6152c3632d1SSimon J. Gerraty	o rename GNode.iParents to implicitParents
6162c3632d1SSimon J. Gerraty	o fix assertion failure for .SUFFIXES in archives
6172c3632d1SSimon J. Gerraty	o compat.c: clean up documentation for CompatInterrupt and Compat_Run
6182c3632d1SSimon J. Gerraty	remove unreachable code from CompatRunCommand
6192c3632d1SSimon J. Gerraty	o main.c: simplify getBoolean
6202c3632d1SSimon J. Gerraty	o stc.c: replace brk_string with simpler Str_Words
6212c3632d1SSimon J. Gerraty	o suff.c: add debug macros
6222c3632d1SSimon J. Gerraty
6232c3632d1SSimon J. Gerraty2020-08-28  Simon J Gerraty  <sjg@beast.crufty.net>
6242c3632d1SSimon J. Gerraty
6252c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200828
6262c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6272c3632d1SSimon J. Gerraty	o lst.c: inline LstIsValid and LstNodeIsValid
6282c3632d1SSimon J. Gerraty	o remove trailing S from Lst function names after migration complete
6292c3632d1SSimon J. Gerraty	o more comment cleanup/clarification
6302c3632d1SSimon J. Gerraty	o suff.c: clean up suffix handling
6312c3632d1SSimon J. Gerraty	o more unit tests
6322c3632d1SSimon J. Gerraty
6332c3632d1SSimon J. Gerraty2020-08-26  Simon J Gerraty  <sjg@beast.crufty.net>
6342c3632d1SSimon J. Gerraty
6352c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200826
6362c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6372c3632d1SSimon J. Gerraty	o enum.c: distinguish between bitsets containing flags and
6382c3632d1SSimon J. Gerraty	ordinary enums
6392c3632d1SSimon J. Gerraty	o var.c: fix error message for ::!= modifier with shell error
6402c3632d1SSimon J. Gerraty	o fix bugs in -DCLEANUP mode
6412c3632d1SSimon J. Gerraty
6422c3632d1SSimon J. Gerraty2020-08-24  Simon J Gerraty  <sjg@beast.crufty.net>
6432c3632d1SSimon J. Gerraty
6442c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200824
6452c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6462c3632d1SSimon J. Gerraty	o in debug mode, print GNode details in symbols
6472c3632d1SSimon J. Gerraty
6482c3632d1SSimon J. Gerraty2020-08-23  Simon J Gerraty  <sjg@beast.crufty.net>
6492c3632d1SSimon J. Gerraty
6502c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200823
6512c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6522c3632d1SSimon J. Gerraty	o lst.c: more asserts,
6532c3632d1SSimon J. Gerraty	make args to Lst_Find match others.
6542c3632d1SSimon J. Gerraty	o var.c: pass flags to VarAdd
6552c3632d1SSimon J. Gerraty	o arch.c: use Buffer
6562c3632d1SSimon J. Gerraty	o str.c: brk_string return size_t for nwords
6572c3632d1SSimon J. Gerraty	o more unit tests
6582c3632d1SSimon J. Gerraty
6592c3632d1SSimon J. Gerraty2020-08-22  Simon J Gerraty  <sjg@beast.crufty.net>
6602c3632d1SSimon J. Gerraty
6612c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION):
6622c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6632c3632d1SSimon J. Gerraty	o var.c: support for read-only variables eg .SHELL
6642c3632d1SSimon J. Gerraty	being the shell used to run scripts.
6652c3632d1SSimon J. Gerraty	o lst.c: more simplification
6662c3632d1SSimon J. Gerraty	o more documentation and style cleanup
6672c3632d1SSimon J. Gerraty	o more unit tests
6682c3632d1SSimon J. Gerraty	o ensure unit-test/Makefile is run by TEST_MAKE
6692c3632d1SSimon J. Gerraty	o reduce duplication of header inclusion
6702c3632d1SSimon J. Gerraty
6712c3632d1SSimon J. Gerraty2020-08-21  Simon J Gerraty  <sjg@beast.crufty.net>
6722c3632d1SSimon J. Gerraty
6732c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200821
6742c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6752c3632d1SSimon J. Gerraty	o lst.c: revert invalid assertion - but document it
6762c3632d1SSimon J. Gerraty	o dir.c: split Dir_Init into two functions
6772c3632d1SSimon J. Gerraty
6782c3632d1SSimon J. Gerraty2020-08-20  Simon J Gerraty  <sjg@beast.crufty.net>
6792c3632d1SSimon J. Gerraty
6802c3632d1SSimon J. Gerraty	* lst.c: needs inttypes.h on Linux
6812c3632d1SSimon J. Gerraty
6822c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200820
6832c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6842c3632d1SSimon J. Gerraty	o make.1: clarify some passages
6852c3632d1SSimon J. Gerraty	o var.c: more cleanup, clarify comments
6862c3632d1SSimon J. Gerraty	o make_malloc.c: remove unreachable code
6872c3632d1SSimon J. Gerraty	o cond.c: make CondGetString easier to debug
6882c3632d1SSimon J. Gerraty	o simplify list usage
6892c3632d1SSimon J. Gerraty	o unit-tests: more
6902c3632d1SSimon J. Gerraty
6912c3632d1SSimon J. Gerraty2020-08-16  Simon J Gerraty  <sjg@beast.crufty.net>
6922c3632d1SSimon J. Gerraty
6932c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200816
6942c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
6952c3632d1SSimon J. Gerraty	o refactor unit-tests to be more fine grained
6962c3632d1SSimon J. Gerraty	  not all tests moved yet
6972c3632d1SSimon J. Gerraty
6982c3632d1SSimon J. Gerraty2020-08-14  Simon J Gerraty  <sjg@beast.crufty.net>
6992c3632d1SSimon J. Gerraty
7002c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200814
7012c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7022c3632d1SSimon J. Gerraty	o more str_concat variants
7032c3632d1SSimon J. Gerraty	o more enums for flags
7042c3632d1SSimon J. Gerraty	o var.c: cleanup for higher warnings level
7052c3632d1SSimon J. Gerraty
7062c3632d1SSimon J. Gerraty2020-08-10  Simon J Gerraty  <sjg@beast.crufty.net>
7072c3632d1SSimon J. Gerraty
7082c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200810
7092c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7102c3632d1SSimon J. Gerraty	o more unit tests
7112c3632d1SSimon J. Gerraty	o general comment and style cleanup
7122c3632d1SSimon J. Gerraty
7132c3632d1SSimon J. Gerraty2020-08-08  Simon J Gerraty  <sjg@beast.crufty.net>
7142c3632d1SSimon J. Gerraty
7152c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200808
7162c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7172c3632d1SSimon J. Gerraty	o enum.[ch]: streamline, enums for use in flags and debug output
7182c3632d1SSimon J. Gerraty	o cond.c: cleanup
7192c3632d1SSimon J. Gerraty	o var.c: reduce duplicate code for modifiers
7202c3632d1SSimon J. Gerraty	debug logging for Var_Parse
7212c3632d1SSimon J. Gerraty	more detailed debug output
7222c3632d1SSimon J. Gerraty	o more unit tests
7232c3632d1SSimon J. Gerraty
7242c3632d1SSimon J. Gerraty2020-08-06  Simon J Gerraty  <sjg@beast.crufty.net>
7252c3632d1SSimon J. Gerraty
7262c3632d1SSimon J. Gerraty	* unit-tests/Makefile: -r for recursive and include Makefile.inc
7272c3632d1SSimon J. Gerraty	so I can run tests in meta mode
7282c3632d1SSimon J. Gerraty	supress extra noise if in meta mode
7292c3632d1SSimon J. Gerraty
7302c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200806
7312c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7322c3632d1SSimon J. Gerraty	o parse.c: remove VARE_WANTRES for LINT
7332c3632d1SSimon J. Gerraty	we just want to check parsing (for now).
7342c3632d1SSimon J. Gerraty
7352c3632d1SSimon J. Gerraty2020-08-05  Simon J Gerraty  <sjg@beast.crufty.net>
7362c3632d1SSimon J. Gerraty
7372c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200805
7382c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7392c3632d1SSimon J. Gerraty	o make.1: Rework the description of dependence operators
7402c3632d1SSimon J. Gerraty
7412c3632d1SSimon J. Gerraty2020-08-03  Simon J Gerraty  <sjg@beast.crufty.net>
7422c3632d1SSimon J. Gerraty
7432c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200803
7442c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7452c3632d1SSimon J. Gerraty	o revert some C99 usage, for max portability
7462c3632d1SSimon J. Gerraty	o unit-tests/lint
7472c3632d1SSimon J. Gerraty
7482c3632d1SSimon J. Gerraty2020-08-02  Simon J Gerraty  <sjg@beast.crufty.net>
7492c3632d1SSimon J. Gerraty
7502c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200802
7512c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7522c3632d1SSimon J. Gerraty	o more unit tests
7532c3632d1SSimon J. Gerraty
7542c3632d1SSimon J. Gerraty2020-08-01  Simon J Gerraty  <sjg@beast.crufty.net>
7552c3632d1SSimon J. Gerraty
7562c3632d1SSimon J. Gerraty	* Remove NetBSD specific plumbing from unit-tests/Makefile
7572c3632d1SSimon J. Gerraty
7582c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200801
7592c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7602c3632d1SSimon J. Gerraty	o make Var_Value return const
7612c3632d1SSimon J. Gerraty	o size_t for buf sizes
7622c3632d1SSimon J. Gerraty	o optimize some buffer operations - avoid strlen
7632c3632d1SSimon J. Gerraty
7642c3632d1SSimon J. Gerraty2020-07-31  Simon J Gerraty  <sjg@beast.crufty.net>
7652c3632d1SSimon J. Gerraty
7662c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200731
7672c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7682c3632d1SSimon J. Gerraty	o var.c: fix undefinded behavior for incomplete :t modifier
7692c3632d1SSimon J. Gerraty	  fixes unit-test/moderrs on Ubuntu
7702c3632d1SSimon J. Gerraty	o parse.c: When parsing variable assignments other than :=
7712c3632d1SSimon J. Gerraty	  if DEBUG(LINT) test substition of value, so we get a file and
7722c3632d1SSimon J. Gerraty	  line number in the resulting error.
7732c3632d1SSimon J. Gerraty	o dir.c: fix parsing of nested braces in dependency lines
7742c3632d1SSimon J. Gerraty	  add unit-tests
7752c3632d1SSimon J. Gerraty
7762c3632d1SSimon J. Gerraty2020-07-30  Simon J Gerraty  <sjg@beast.crufty.net>
7772c3632d1SSimon J. Gerraty
7782c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200730
7792c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7802c3632d1SSimon J. Gerraty	o var.c: minor cleanup
7812c3632d1SSimon J. Gerraty	o unit-tests: more tests to improve code coverage
7822c3632d1SSimon J. Gerraty
7832c3632d1SSimon J. Gerraty2020-07-28  Simon J Gerraty  <sjg@beast.crufty.net>
7842c3632d1SSimon J. Gerraty
7852c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200728
7862c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7872c3632d1SSimon J. Gerraty	o var.c: more optimizations
7882c3632d1SSimon J. Gerraty
7892c3632d1SSimon J. Gerraty2020-07-26  Simon J Gerraty  <sjg@beast.crufty.net>
7902c3632d1SSimon J. Gerraty
7912c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200726
7922c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
7932c3632d1SSimon J. Gerraty	o collapse lsd.lib into lst.c - reduce code size and allow inlining
7942c3632d1SSimon J. Gerraty	o lots of function comment updates
7952c3632d1SSimon J. Gerraty	o var.c: more optimizations
7962c3632d1SSimon J. Gerraty	o make return of Var_Parse const
7972c3632d1SSimon J. Gerraty
7982c3632d1SSimon J. Gerraty2020-07-20  Simon J Gerraty  <sjg@beast.crufty.net>
7992c3632d1SSimon J. Gerraty
8002c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200720
8012c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
8022c3632d1SSimon J. Gerraty	o DEBUG_HASH report stats at end and tone down the noise
8032c3632d1SSimon J. Gerraty	o var.c: each flag type gets its own prefix.
8042c3632d1SSimon J. Gerraty	move SysV string matching to var.c
8052c3632d1SSimon J. Gerraty	make ampersand in ${VAR:from=to&} an ordinary character
8062c3632d1SSimon J. Gerraty	cleanup and simplify implementation of modifiers
8072c3632d1SSimon J. Gerraty	o make.1: move documentation for assignment modifiers
8082c3632d1SSimon J. Gerraty
8092c3632d1SSimon J. Gerraty2020-07-18  Simon J Gerraty  <sjg@beast.crufty.net>
8102c3632d1SSimon J. Gerraty
8112c3632d1SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200718
8122c3632d1SSimon J. Gerraty	Merge with NetBSD make, pick up
8132c3632d1SSimon J. Gerraty	o DEBUG_HASH to see how well the hash tables are working
8142c3632d1SSimon J. Gerraty
8152c3632d1SSimon J. Gerraty2020-07-11  Simon J Gerraty  <sjg@beast.crufty.net>
8162c3632d1SSimon J. Gerraty
8172c3632d1SSimon J. Gerraty	* bsd.after-import.mk: make sure we update unit-tests/Makefile
8182c3632d1SSimon J. Gerraty
8193841c287SSimon J. Gerraty2020-07-10  Simon J Gerraty  <sjg@beast.crufty.net>
8203841c287SSimon J. Gerraty
8213841c287SSimon J. Gerraty	* configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC
8223841c287SSimon J. Gerraty
8233841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200710
8243841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8253841c287SSimon J. Gerraty	o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall
8263841c287SSimon J. Gerraty	o meta.c: target flagged .META is out-of-date if meta file missing
8273841c287SSimon J. Gerraty
8283841c287SSimon J. Gerraty2020-07-09  Simon J Gerraty  <sjg@beast.crufty.net>
8293841c287SSimon J. Gerraty
8303841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200709
8313841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8323841c287SSimon J. Gerraty	o cond.c: fix for compare_expression when doEval=0
8333841c287SSimon J. Gerraty	o unit-tests/Makefile: rework
8343841c287SSimon J. Gerraty	o filemon/filemon_dev.c: ensure filemon fd is closed on exec.
8353841c287SSimon J. Gerraty
8363841c287SSimon J. Gerraty2020-07-04  Simon J Gerraty  <sjg@beast.crufty.net>
8373841c287SSimon J. Gerraty
8383841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200704
8393841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8403841c287SSimon J. Gerraty	(most of this by rillig@)
8413841c287SSimon J. Gerraty	o lots of style and white-space cleanup
8423841c287SSimon J. Gerraty	o lots more unit tests for variable modifiers
8433841c287SSimon J. Gerraty	o simplified description of some functions
8443841c287SSimon J. Gerraty	o str.c: refactor Str_Match
8453841c287SSimon J. Gerraty	o var.c: debugging output for :@
8463841c287SSimon J. Gerraty	  constify VarModify parameter
8473841c287SSimon J. Gerraty	  fix :hash modifier on 16-bit platforms
8483841c287SSimon J. Gerraty	  remove unnecessary forward declarations
8493841c287SSimon J. Gerraty	  refactor ApplyModifier_SysV to have less indentation
8503841c287SSimon J. Gerraty	  simplify code for :E and :R
8513841c287SSimon J. Gerraty	  clean up code for :H and :T
8523841c287SSimon J. Gerraty	  refactor ApplyModifiers
8533841c287SSimon J. Gerraty
8543841c287SSimon J. Gerraty	* var.c: we need stdint.h on some platforms to get uint32_t
8553841c287SSimon J. Gerraty	* unit-test/Makefile: we need to supress the specific error
8563841c287SSimon J. Gerraty	for RE substitution error in modmisc, since it varies accross
8573841c287SSimon J. Gerraty	different OS.
8583841c287SSimon J. Gerraty
8593841c287SSimon J. Gerraty2020-07-02  Simon J Gerraty  <sjg@beast.crufty.net>
8603841c287SSimon J. Gerraty
8613841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200702
8623841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8633841c287SSimon J. Gerraty	o var.c: more improvements to avoiding unnecessary evaluation
8643841c287SSimon J. Gerraty	use enums for flags
8653841c287SSimon J. Gerraty	o remove flags arg to Var_Set which outside of var.c is always 0
8663841c287SSimon J. Gerraty
8673841c287SSimon J. Gerraty2020-07-01  Simon J Gerraty  <sjg@beast.crufty.net>
8683841c287SSimon J. Gerraty
8693841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200701
8703841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8713841c287SSimon J. Gerraty	o var.c: with change to cond.c; ensure that nested variables
8723841c287SSimon J. Gerraty	within a variable name are expanded.
8733841c287SSimon J. Gerraty	o unit-tests/varmisc.mk: test for nested varname
8743841c287SSimon J. Gerraty
8753841c287SSimon J. Gerraty2020-06-29  Simon J Gerraty  <sjg@beast.crufty.net>
8763841c287SSimon J. Gerraty
8773841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200629
8783841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8793841c287SSimon J. Gerraty	o cond.c: do not eval unnecessary terms of conditionals.
8803841c287SSimon J. Gerraty
8813841c287SSimon J. Gerraty2020-06-25  Simon J Gerraty  <sjg@beast.crufty.net>
8823841c287SSimon J. Gerraty
8833841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200625
8843841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8853841c287SSimon J. Gerraty	o meta.c: report error if lseek in filemon_read fails
8863841c287SSimon J. Gerraty
8873841c287SSimon J. Gerraty2020-06-22  Simon J Gerraty  <sjg@beast.crufty.net>
8883841c287SSimon J. Gerraty
8893841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200622
8903841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8913841c287SSimon J. Gerraty	o dieQuietly: ignore OP_SUBMAKE as too aggressive
8923841c287SSimon J. Gerraty
8933841c287SSimon J. Gerraty2020-06-19  Simon J Gerraty  <sjg@beast.crufty.net>
8943841c287SSimon J. Gerraty
8953841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200619
8963841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
8973841c287SSimon J. Gerraty	o str.c: performance improvement for Str_Match for multiple '*'
8983841c287SSimon J. Gerraty	o dieQuietly: supress the failure output from make
8993841c287SSimon J. Gerraty	when failing node is a sub-make or a sibling failed.
9003841c287SSimon J. Gerraty	This cuts down greatly on unhelpful noise at the end of
9013841c287SSimon J. Gerraty	build log.  Disabled by -dj or .MAKE.DIE_QUIETLY=no
9023841c287SSimon J. Gerraty
9033841c287SSimon J. Gerraty2020-06-10  Simon J Gerraty  <sjg@beast.crufty.net>
9043841c287SSimon J. Gerraty
9053841c287SSimon J. Gerraty	* FILES: add LICENSE to appease some packagers.
9063841c287SSimon J. Gerraty	This is an attempt to fairly represent the license on almost
9073841c287SSimon J. Gerraty	200 files, which are almost all BSD-3-Clause
9083841c287SSimon J. Gerraty	The few exceptions being more liberal.
9093841c287SSimon J. Gerraty
9103841c287SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200610
9113841c287SSimon J. Gerraty	Merge with NetBSD make, pick up
9123841c287SSimon J. Gerraty	o unit test for :Or
9133841c287SSimon J. Gerraty
914ef0b2538SSimon J. Gerraty2020-06-06  Simon J Gerraty  <sjg@beast.crufty.net>
915ef0b2538SSimon J. Gerraty
916ef0b2538SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200606
917ef0b2538SSimon J. Gerraty	Merge with NetBSD make, pick up
918ef0b2538SSimon J. Gerraty	o make.1: cleanup
919ef0b2538SSimon J. Gerraty
920ef0b2538SSimon J. Gerraty	* Makefile: fix depends for main.o which broke MAKE_VERSION
921ef0b2538SSimon J. Gerraty
922ef0b2538SSimon J. Gerraty2020-06-05  Simon J Gerraty  <sjg@beast.crufty.net>
923ef0b2538SSimon J. Gerraty
924ef0b2538SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200605
925ef0b2538SSimon J. Gerraty	Merge with NetBSD make, pick up
926ef0b2538SSimon J. Gerraty	o dir.c: cached_stats - don't confuse stat and lstat results.
927ef0b2538SSimon J. Gerraty	o var.c: add :Or for reverse sort.
928ef0b2538SSimon J. Gerraty
929ef0b2538SSimon J. Gerraty2020-05-24  Simon J Gerraty  <sjg@beast.crufty.net>
930ef0b2538SSimon J. Gerraty
931ef0b2538SSimon J. Gerraty	* configure.in: add AC_PROG_CC_C99 for mipspro compiler
932ef0b2538SSimon J. Gerraty	also if --with-filemon= specifies path to filemon.h
933ef0b2538SSimon J. Gerraty	set use_filemon=dev
934ef0b2538SSimon J. Gerraty	* dirname.c: remove include of namespace.h
935ef0b2538SSimon J. Gerraty
93649caa483SSimon J. Gerraty2020-05-17  Simon J Gerraty  <sjg@beast.crufty.net>
93749caa483SSimon J. Gerraty
93849caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200517
93949caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
94049caa483SSimon J. Gerraty	o modified dollar tests to avoid shell dependencies
94149caa483SSimon J. Gerraty	o new tests for .INCLUDEFROM
94249caa483SSimon J. Gerraty
94349caa483SSimon J. Gerraty2020-05-16  Simon J Gerraty  <sjg@beast.crufty.net>
94449caa483SSimon J. Gerraty
94549caa483SSimon J. Gerraty	* unit-tests/dollar.mk: tweak  '1 dollar literal' test
94649caa483SSimon J. Gerraty	to not depend so much on shell behavior
94749caa483SSimon J. Gerraty
94849caa483SSimon J. Gerraty2020-05-10  Simon J Gerraty  <sjg@beast.crufty.net>
94949caa483SSimon J. Gerraty
95049caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200510
95149caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
95249caa483SSimon J. Gerraty	o unit test for dollar handling
95349caa483SSimon J. Gerraty
95449caa483SSimon J. Gerraty2020-05-06  Simon J Gerraty  <sjg@beast.crufty.net>
95549caa483SSimon J. Gerraty
95649caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200506
95749caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
95849caa483SSimon J. Gerraty	o str.c: empty string does not match % pattern
95949caa483SSimon J. Gerraty	  plus unit-test changes
96049caa483SSimon J. Gerraty
96149caa483SSimon J. Gerraty2020-05-04  Simon J Gerraty  <sjg@beast.crufty.net>
96249caa483SSimon J. Gerraty
96349caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200504
96449caa483SSimon J. Gerraty	May the 4th be with you
96549caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
96649caa483SSimon J. Gerraty	o var.c: import handling of old sysV style modifier using '%'
96749caa483SSimon J. Gerraty	o str.c: refactor brk_string
96849caa483SSimon J. Gerraty	o unit-tests: add test case for lazy conditions
96949caa483SSimon J. Gerraty
97049caa483SSimon J. Gerraty2020-04-18  Simon J Gerraty  <sjg@beast.crufty.net>
97149caa483SSimon J. Gerraty
97249caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200418
97349caa483SSimon J. Gerraty
97449caa483SSimon J. Gerraty	* configure.in: use_makefile=no for cygwin et al.
97549caa483SSimon J. Gerraty	case insensitive filesystems just don't work if both
97649caa483SSimon J. Gerraty	makefile and Makefile exist.
97749caa483SSimon J. Gerraty	NOTE: bmake does not support cygwin and likely never will,
97849caa483SSimon J. Gerraty	but if brave souls want to try it - help them out.
97949caa483SSimon J. Gerraty
98049caa483SSimon J. Gerraty2020-04-02  Simon J Gerraty  <sjg@beast.crufty.net>
98149caa483SSimon J. Gerraty
98249caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200402
98349caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
98449caa483SSimon J. Gerraty	o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD
98549caa483SSimon J. Gerraty	  a blank command is perfectly valid.
98649caa483SSimon J. Gerraty
98749caa483SSimon J. Gerraty2020-03-30  Simon J Gerraty  <sjg@beast.crufty.net>
98849caa483SSimon J. Gerraty
98949caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200330
99049caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
99149caa483SSimon J. Gerraty	o make.h: extern debug_file
99249caa483SSimon J. Gerraty
99349caa483SSimon J. Gerraty2020-03-18  Simon J Gerraty  <sjg@beast.crufty.net>
99449caa483SSimon J. Gerraty
99549caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200318
99649caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
99749caa483SSimon J. Gerraty	o meta.c: meta_oodate, check for corrupted meta file
99849caa483SSimon J. Gerraty	  earlier and more often.
99949caa483SSimon J. Gerraty
100049caa483SSimon J. Gerraty2020-02-20  Simon J Gerraty  <sjg@beast.crufty.net>
100149caa483SSimon J. Gerraty
100249caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200220
100349caa483SSimon J. Gerraty
100449caa483SSimon J. Gerraty2020-02-19  Simon J Gerraty  <sjg@beast.crufty.net>
100549caa483SSimon J. Gerraty
100649caa483SSimon J. Gerraty	* boot-strap: unset MAKEFLAGS
100749caa483SSimon J. Gerraty
100849caa483SSimon J. Gerraty2020-02-12  Simon J Gerraty  <sjg@beast.crufty.net>
100949caa483SSimon J. Gerraty
101049caa483SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20200212
101149caa483SSimon J. Gerraty	* meta.c: meta_compat_parent check for USE_FILEMON
101249caa483SSimon J. Gerraty	  patch from Soeren Tempel
101349caa483SSimon J. Gerraty
101449caa483SSimon J. Gerraty2020-02-05  Simon J Gerraty  <sjg@beast.crufty.net>
101549caa483SSimon J. Gerraty
101649caa483SSimon J. Gerraty	* VERSION: 20200205
101749caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
101849caa483SSimon J. Gerraty	o meta.c: fix compat mode, need to call meta_job_output()
101949caa483SSimon J. Gerraty	o job.c: extra fds for meta mode not needed if using filemon_dev
102049caa483SSimon J. Gerraty
102149caa483SSimon J. Gerraty2020-01-22  Simon J Gerraty  <sjg@beast.crufty.net>
102249caa483SSimon J. Gerraty
102349caa483SSimon J. Gerraty	* VERSION: 20200122
102449caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
102549caa483SSimon J. Gerraty	o meta.c: avoid passing NULL to filemon_*() when meta_needed()
102649caa483SSimon J. Gerraty	  returns FALSE.
102749caa483SSimon J. Gerraty
102849caa483SSimon J. Gerraty2020-01-21  Simon J Gerraty  <sjg@beast.crufty.net>
102949caa483SSimon J. Gerraty
103049caa483SSimon J. Gerraty	* VERSION: 20200121
103149caa483SSimon J. Gerraty	Merge with NetBSD make, pick up
103249caa483SSimon J. Gerraty	o filemon/filemon_{dev,ktrace}.c: allow selection of
103349caa483SSimon J. Gerraty	  filemon implementation.  filemon_dev.c uses the kernel module
103449caa483SSimon J. Gerraty	  while filemon_ktrace.c leverages the fktrace api available in
103549caa483SSimon J. Gerraty	  NetBSD.  filemon_ktrace.c can hopefully form the basis for
103649caa483SSimon J. Gerraty	  adding support for other tracing mechanisms such as strace on
103749caa483SSimon J. Gerraty	  Linux.
103849caa483SSimon J. Gerraty	o meta.c: when target is out-of-date per normal make rules
103949caa483SSimon J. Gerraty	  record value of .OODATE in meta file.
104049caa483SSimon J. Gerraty
104149caa483SSimon J. Gerraty2019-09-26  Simon J Gerraty  <sjg@beast.crufty.net>
104249caa483SSimon J. Gerraty
104349caa483SSimon J. Gerraty	* VERSION: 20190926
104449caa483SSimon J. Gerraty	  Merge with NetBSD make, pick up
104549caa483SSimon J. Gerraty	  o parse.c: don't pass NULL to realpath(3)
104649caa483SSimon J. Gerraty	    some versions cannot handle it.
104749caa483SSimon J. Gerraty
104849caa483SSimon J. Gerraty2019-04-09  Simon J Gerraty  <sjg@beast.crufty.net>
104949caa483SSimon J. Gerraty
105049caa483SSimon J. Gerraty	* VERSION: 20190409
105149caa483SSimon J. Gerraty	  Merge with NetBSD make, pick up
105249caa483SSimon J. Gerraty	  o parse.c: ParseDoDependency: free paths rather than assert
105349caa483SSimon J. Gerraty
105449caa483SSimon J. Gerraty2018-12-22  Simon J Gerraty  <sjg@beast.crufty.net>
105549caa483SSimon J. Gerraty
105649caa483SSimon J. Gerraty	* VERSION: 20181222
105749caa483SSimon J. Gerraty
105849caa483SSimon J. Gerraty	* configure.in: add --without-makefile to avoid generating
105949caa483SSimon J. Gerraty	  makefile and make-bootstrap.sh
106049caa483SSimon J. Gerraty
106149caa483SSimon J. Gerraty	* include Makefile.inc if it exists
106249caa483SSimon J. Gerraty
106349caa483SSimon J. Gerraty	* Use Makefile and Makefile.config.in in unit-tests
106449caa483SSimon J. Gerraty	  so we can use just: make obj && make && make test
106549caa483SSimon J. Gerraty	  when bmake is already available.
106649caa483SSimon J. Gerraty	  We add --without-makefile to CONFIGURE_ARGS in this case.
106749caa483SSimon J. Gerraty
106849caa483SSimon J. Gerraty	* tweak bsd.after-import.mk (captures Makefile.config etc
106949caa483SSimon J. Gerraty	  after import to FreeBSD for example) to cope with all the above.
107049caa483SSimon J. Gerraty
1071dfd669abSSimon J. Gerraty2018-12-21  Simon J Gerraty  <sjg@beast.crufty.net>
1072dfd669abSSimon J. Gerraty
1073dfd669abSSimon J. Gerraty	* VERSION: 20181221
1074dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1075dfd669abSSimon J. Gerraty	  o parse.c: ParseVErrorInternal use .PARSEDIR
1076dfd669abSSimon J. Gerraty	    and apply if relative, and then use .PARSEFILE
1077dfd669abSSimon J. Gerraty	    for consistent result.
1078dfd669abSSimon J. Gerraty
1079dfd669abSSimon J. Gerraty2018-12-20  Simon J Gerraty  <sjg@beast.crufty.net>
1080dfd669abSSimon J. Gerraty
1081dfd669abSSimon J. Gerraty	* VERSION: 20181220
1082dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1083dfd669abSSimon J. Gerraty	  o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR
1084dfd669abSSimon J. Gerraty	    is relative
1085dfd669abSSimon J. Gerraty	  o var.c: avoid SEGFAULT in .unexport-env
1086dfd669abSSimon J. Gerraty	    when MAKELEVEL is not set
1087dfd669abSSimon J. Gerraty
1088dfd669abSSimon J. Gerraty2018-12-16  Simon J Gerraty  <sjg@beast.crufty.net>
1089dfd669abSSimon J. Gerraty
1090dfd669abSSimon J. Gerraty	* VERSION: 20181216
1091dfd669abSSimon J. Gerraty	  Merge with NetBSD make, pick up
1092dfd669abSSimon J. Gerraty	  o fix for unit-tests/varquote.mk on Debian
1093dfd669abSSimon J. Gerraty
10942eae894cSSimon J. Gerraty2018-09-21  Simon J. Gerraty  <sjg@bad.crufty.net>
10952eae894cSSimon J. Gerraty
10962eae894cSSimon J. Gerraty	* VERSION: 20180919
10972eae894cSSimon J. Gerraty	  Merge with NetBSD make, pick up
10982eae894cSSimon J. Gerraty	  o var.c: add :q
10992eae894cSSimon J. Gerraty	  o dir.c: cleanup caching of stats
11002eae894cSSimon J. Gerraty
11012eae894cSSimon J. Gerraty2018-09-21  Simon J Gerraty  <sjg@beast.crufty.net>
11022eae894cSSimon J. Gerraty
11032eae894cSSimon J. Gerraty	* Makefile.config.in: use += where it makes sense.
11042eae894cSSimon J. Gerraty
1105494f7191SSimon J. Gerraty2018-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
1106494f7191SSimon J. Gerraty
1107494f7191SSimon J. Gerraty	* VERSION: 20180512
1108494f7191SSimon J. Gerraty	  Merge with NetBSD make, pick up
1109494f7191SSimon J. Gerraty	  o job.c: skip polling job token pipe
1110494f7191SSimon J. Gerraty
1111494f7191SSimon J. Gerraty2018-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1112494f7191SSimon J. Gerraty
1113494f7191SSimon J. Gerraty	* VERSION: 20180405
1114494f7191SSimon J. Gerraty	  Merge with NetBSD make, pick up
1115494f7191SSimon J. Gerraty	  o parse.c: be more cautious about detecting depenency line
1116494f7191SSimon J. Gerraty	    rather than sysV style include.
1117494f7191SSimon J. Gerraty
111850d2e745SSimon J. Gerraty2018-02-22  Simon J. Gerraty  <sjg@bad.crufty.net>
111950d2e745SSimon J. Gerraty
112050d2e745SSimon J. Gerraty	* VERSION: 20180222
112150d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
112250d2e745SSimon J. Gerraty	  o parse.c: avoid calling sysconf for every call to loadfile
112350d2e745SSimon J. Gerraty
112450d2e745SSimon J. Gerraty2018-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
112550d2e745SSimon J. Gerraty
112650d2e745SSimon J. Gerraty	* VERSION: 20180218
112750d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
112850d2e745SSimon J. Gerraty	  o var.c: Var_Set handle NULL value anytime.
112950d2e745SSimon J. Gerraty
113050d2e745SSimon J. Gerraty2018-02-12  Simon J. Gerraty  <sjg@bad.crufty.net>
113150d2e745SSimon J. Gerraty
113250d2e745SSimon J. Gerraty	* VERSION: 20180212
113350d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
113450d2e745SSimon J. Gerraty	  o parse.c: do not treat .info as warning with -W
113550d2e745SSimon J. Gerraty
113650d2e745SSimon J. Gerraty2017-12-07  Simon J. Gerraty  <sjg@bad.crufty.net>
113750d2e745SSimon J. Gerraty
113850d2e745SSimon J. Gerraty	* VERSION: 20171207
113950d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
114050d2e745SSimon J. Gerraty	  o var.c: Var_Append use Var_Set if var not previously set
114150d2e745SSimon J. Gerraty	    so that VAR_CMD is handled correctly.
114250d2e745SSimon J. Gerraty	    Add a suitable unit-test.
114350d2e745SSimon J. Gerraty
114450d2e745SSimon J. Gerraty2017-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
114550d2e745SSimon J. Gerraty
114650d2e745SSimon J. Gerraty	* VERSION (_MAKE_VERSION): 20171126
114750d2e745SSimon J. Gerraty
114850d2e745SSimon J. Gerraty	* aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__
114950d2e745SSimon J. Gerraty	  since AC_TRY_COMPILE puts input inside main()
115050d2e745SSimon J. Gerraty	  which upsets modern compilers.
115150d2e745SSimon J. Gerraty
115250d2e745SSimon J. Gerraty2017-11-18  Simon J. Gerraty  <sjg@bad.crufty.net>
115350d2e745SSimon J. Gerraty
115450d2e745SSimon J. Gerraty	* VERSION: 20171118
115550d2e745SSimon J. Gerraty	  Merge with NetBSD make, pick up
115650d2e745SSimon J. Gerraty	  o var.c: do not append to variable set on command line
115750d2e745SSimon J. Gerraty	    add unit-test to catch this.
115850d2e745SSimon J. Gerraty
1159e22fef7dSSimon J. Gerraty2017-10-28  Simon J. Gerraty  <sjg@bad.crufty.net>
1160e22fef7dSSimon J. Gerraty
1161e22fef7dSSimon J. Gerraty	* VERSION: 20171028
1162e22fef7dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1163e22fef7dSSimon J. Gerraty	  o main.c: ignore empty MAKEOBJDIR
1164e22fef7dSSimon J. Gerraty
1165e22fef7dSSimon J. Gerraty	* Makefile.config.in:
1166e22fef7dSSimon J. Gerraty	  make @prefix@ @machine*@ and @default_sys_path@ defaults.
1167e22fef7dSSimon J. Gerraty
1168e22fef7dSSimon J. Gerraty2017-10-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1169e22fef7dSSimon J. Gerraty
1170e22fef7dSSimon J. Gerraty	* VERSION: 20171005
1171e22fef7dSSimon J. Gerraty
1172e22fef7dSSimon J. Gerraty	* unit-tests/dotwait.mk: redirect stderr through pipe for more
1173e22fef7dSSimon J. Gerraty	  consistent result on some platforms.
1174e22fef7dSSimon J. Gerraty
1175e22fef7dSSimon J. Gerraty2017-08-13  Simon J. Gerraty  <sjg@bad.crufty.net>
1176e22fef7dSSimon J. Gerraty
1177e22fef7dSSimon J. Gerraty	* machine.sh: entry for AIX
1178e22fef7dSSimon J. Gerraty
1179e22fef7dSSimon J. Gerraty2017-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
1180e22fef7dSSimon J. Gerraty
1181e22fef7dSSimon J. Gerraty	* VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION
1182e22fef7dSSimon J. Gerraty	  to a file that can be included by configure as well as make.
1183e22fef7dSSimon J. Gerraty	  This allows configure to set set _MAKE_VERSION in make-bootstrap.sh
1184e22fef7dSSimon J. Gerraty
1185e22fef7dSSimon J. Gerraty2017-08-10  Simon J. Gerraty  <sjg@bad.crufty.net>
1186e22fef7dSSimon J. Gerraty
1187e22fef7dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170810
1188e22fef7dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1189e22fef7dSSimon J. Gerraty	  o meta.c: if target is in subdir we only need subdir name in
1190e22fef7dSSimon J. Gerraty	    meta_name.
1191e22fef7dSSimon J. Gerraty
1192c7019bf7SSimon J. Gerraty2017-07-20  Simon J. Gerraty  <sjg@bad.crufty.net>
1193c7019bf7SSimon J. Gerraty
1194c7019bf7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170720
1195c7019bf7SSimon J. Gerraty	  Merge with NetBSD make, pick up
1196c7019bf7SSimon J. Gerraty	  o compat.c: pass SIGINT etc onto child and wait for it to exit
1197c7019bf7SSimon J. Gerraty	    before we self-terminate.
1198c7019bf7SSimon J. Gerraty
11998695518cSSimon J. Gerraty2017-07-11  Simon J. Gerraty  <sjg@bad.crufty.net>
12008695518cSSimon J. Gerraty
12018695518cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170711
12028695518cSSimon J. Gerraty	  forgot to update after merge on 20170708 ;-)
12038695518cSSimon J. Gerraty	  o main.c: refactor to reduce size of main function.
12048695518cSSimon J. Gerraty	    add -v option to always fully expand values.
12058695518cSSimon J. Gerraty	  o meta.c: ensure command output in meta file has ending newline
12068695518cSSimon J. Gerraty	    even when filemon not being used.
12078695518cSSimon J. Gerraty	    When matching ${.MAKE.META.IGNORE_PATTERNS} do not use
12088695518cSSimon J. Gerraty	    pathname via ':L' since any ':' in pathname breaks that.
12098695518cSSimon J. Gerraty	    Instead set a '${.p.}' to pathname in the target context and
12108695518cSSimon J. Gerraty	    use that.
12118695518cSSimon J. Gerraty
1212cac6fd11SSimon J. Gerraty2017-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
1213cac6fd11SSimon J. Gerraty
1214cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170510
1215cac6fd11SSimon J. Gerraty	  Merge with NetBSD make, pick up
1216cac6fd11SSimon J. Gerraty	  o main.c: Main_SetObjdir: ensure buf2 is in scope
1217cac6fd11SSimon J. Gerraty
1218cac6fd11SSimon J. Gerraty2017-05-08  Simon J. Gerraty  <sjg@bad.crufty.net>
1219cac6fd11SSimon J. Gerraty
1220cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170505
1221cac6fd11SSimon J. Gerraty	  see mk/ChangeLog
1222cac6fd11SSimon J. Gerraty
1223cac6fd11SSimon J. Gerraty2017-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1224cac6fd11SSimon J. Gerraty
1225cac6fd11SSimon J. Gerraty	* parse.c: not everyone has stdint.h
1226cac6fd11SSimon J. Gerraty
1227cac6fd11SSimon J. Gerraty2017-05-01  Simon J. Gerraty  <sjg@bad.crufty.net>
1228cac6fd11SSimon J. Gerraty
1229cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170501
1230cac6fd11SSimon J. Gerraty	  see mk/ChangeLog
1231cac6fd11SSimon J. Gerraty
1232cac6fd11SSimon J. Gerraty2017-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
1233cac6fd11SSimon J. Gerraty
1234cac6fd11SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170421
1235cac6fd11SSimon J. Gerraty	  Merge with NetBSD make, pick up
1236cac6fd11SSimon J. Gerraty	  o str.c: Str_Match: fix closure tests for [^] and add unit-test.
1237cac6fd11SSimon J. Gerraty
1238e1cee40dSSimon J. Gerraty2017-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
1239e1cee40dSSimon J. Gerraty
1240e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170420
1241e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1242e1cee40dSSimon J. Gerraty	  o main.c: only use -C arg "as is" if it contains no
1243e1cee40dSSimon J. Gerraty	    relative component.
1244e1cee40dSSimon J. Gerraty
1245e1cee40dSSimon J. Gerraty2017-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
1246e1cee40dSSimon J. Gerraty
1247e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170418
1248e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1249e1cee40dSSimon J. Gerraty	  o main.c: fix Main_SetObjdir() for relative paths (eg obj).
1250e1cee40dSSimon J. Gerraty
1251e1cee40dSSimon J. Gerraty2017-04-17  Simon J. Gerraty  <sjg@bad.crufty.net>
1252e1cee40dSSimon J. Gerraty
1253e1cee40dSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170417
1254e1cee40dSSimon J. Gerraty	  Merge with NetBSD make, pick up
1255e1cee40dSSimon J. Gerraty	  o fixes a number of coverity complaints
1256e1cee40dSSimon J. Gerraty	    - check return value of fseek, fcntl
1257e1cee40dSSimon J. Gerraty	    - plug memory leak in Dir_FindFile, Var_LoopExpand,
1258e1cee40dSSimon J. Gerraty	      JobPrintCommand, ParseTraditionalInclude
1259e1cee40dSSimon J. Gerraty	    - use bmake_malloc() where NULL is not tollerated
1260e1cee40dSSimon J. Gerraty	    - use MAKE_ATTR_UNUSED rather that kludges like
1261e1cee40dSSimon J. Gerraty	      return(unused ? 0 : 0)
1262e1cee40dSSimon J. Gerraty	    - use purge_cached_realpaths() rather than abuse cached_realpath()
1263e1cee40dSSimon J. Gerraty
1264b46b9039SSimon J. Gerraty2017-04-13  Simon J. Gerraty  <sjg@bad.crufty.net>
1265b46b9039SSimon J. Gerraty
1266b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170413
1267b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
1268b46b9039SSimon J. Gerraty	  o main.c: when setting .OBJDIR ignore '$' in paths.
1269b46b9039SSimon J. Gerraty
1270b46b9039SSimon J. Gerraty	* job.c: use MALLOC_OPTIONS to set malloc_options.
1271b46b9039SSimon J. Gerraty
1272b46b9039SSimon J. Gerraty2017-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
1273b46b9039SSimon J. Gerraty
1274b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170411
1275b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
1276b46b9039SSimon J. Gerraty	  o str.c: Str_Match: allow [^a-z] to behave as expected.
1277b46b9039SSimon J. Gerraty
1278b46b9039SSimon J. Gerraty2017-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
1279b46b9039SSimon J. Gerraty
1280b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170326
1281b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
1282b46b9039SSimon J. Gerraty	  o main.c: purge relative paths from realpath cache when .OBJDIR
1283b46b9039SSimon J. Gerraty	    is changed.
1284b46b9039SSimon J. Gerraty
1285b46b9039SSimon J. Gerraty2017-03-11  Simon J. Gerraty  <sjg@bad.crufty.net>
1286b46b9039SSimon J. Gerraty
1287b46b9039SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170311
1288b46b9039SSimon J. Gerraty	  Merge with NetBSD make, pick up
1289b46b9039SSimon J. Gerraty          o main.c: only use -C arg "as is" if it starts with '/'.
1290b46b9039SSimon J. Gerraty
12911ce939a7SSimon J. Gerraty2017-03-01  Simon J. Gerraty  <sjg@bad.crufty.net>
12921ce939a7SSimon J. Gerraty
12931ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170301
12941ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
1295b46b9039SSimon J. Gerraty	  o main.c: use -C arg "as is" rather than getcwd()
12961ce939a7SSimon J. Gerraty	    if they identify the same directory.
12971ce939a7SSimon J. Gerraty	  o parse.c: ensure loadfile buffer is \n terminated in non-mmap case
12981ce939a7SSimon J. Gerraty
12991ce939a7SSimon J. Gerraty2017-02-01  Simon J. Gerraty  <sjg@bad.crufty.net>
13001ce939a7SSimon J. Gerraty
13011ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170201
13021ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
13031ce939a7SSimon J. Gerraty	  o var.c: allow :_=var and avoid use of special context.
13041ce939a7SSimon J. Gerraty
13051ce939a7SSimon J. Gerraty2017-01-30  Simon J. Gerraty  <sjg@bad.crufty.net>
13061ce939a7SSimon J. Gerraty
13071ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170130
13081ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
13091ce939a7SSimon J. Gerraty	  o var.c: add :range and :_
13101ce939a7SSimon J. Gerraty	  o main.c: partially initialize Dir_* before MainParseArgs()
13111ce939a7SSimon J. Gerraty	    can be called.
13121ce939a7SSimon J. Gerraty	    If -V, skip Main_ExportMAKEFLAGS()
13131ce939a7SSimon J. Gerraty
13141ce939a7SSimon J. Gerraty2017-01-14  Simon J. Gerraty  <sjg@bad.crufty.net>
13151ce939a7SSimon J. Gerraty
13161ce939a7SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20170114
13171ce939a7SSimon J. Gerraty	  Merge with NetBSD make, pick up
13181ce939a7SSimon J. Gerraty	  o var.c: allow specifying the utc value used by :{gm,local}time
13191ce939a7SSimon J. Gerraty
132045447996SSimon J. Gerraty2016-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
132145447996SSimon J. Gerraty
132245447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161212
132345447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
132445447996SSimon J. Gerraty          o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too.
132545447996SSimon J. Gerraty
132645447996SSimon J. Gerraty2016-12-09  Simon J. Gerraty  <sjg@bad.crufty.net>
132745447996SSimon J. Gerraty
132845447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161209
132945447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
133045447996SSimon J. Gerraty	  o main.c: cleanup setting of .OBJDIR
133145447996SSimon J. Gerraty	  o parse.c: avoid coredump from (var)=val
133245447996SSimon J. Gerraty
133345447996SSimon J. Gerraty2016-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
133445447996SSimon J. Gerraty
133545447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20161126
133645447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
133745447996SSimon J. Gerraty	  o make.c: Make_OODate: report src node name if path not set
133845447996SSimon J. Gerraty
133945447996SSimon J. Gerraty2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
134045447996SSimon J. Gerraty
134145447996SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160926
134245447996SSimon J. Gerraty	  Merge with NetBSD make, pick up
134345447996SSimon J. Gerraty	  o support for .DELETE_ON_ERROR: (remove targets that fail)
134445447996SSimon J. Gerraty
134545447996SSimon J. Gerraty2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>
134645447996SSimon J. Gerraty
134745447996SSimon J. Gerraty	* Makefile MAN: tweak .Dt to match ${PROG}
134845447996SSimon J. Gerraty
134995e3ed2cSSimon J. Gerraty2016-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
135095e3ed2cSSimon J. Gerraty
135195e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160818
135295e3ed2cSSimon J. Gerraty	  its a neater number; pick up whitespace fixes to man page.
135395e3ed2cSSimon J. Gerraty
135495e3ed2cSSimon J. Gerraty2016-08-17  Simon J. Gerraty  <sjg@bad.crufty.net>
135595e3ed2cSSimon J. Gerraty
135695e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160817
135795e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
135895e3ed2cSSimon J. Gerraty	  o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore()
135995e3ed2cSSimon J. Gerraty	    so we can call it before adding entries to missingFiles.
136095e3ed2cSSimon J. Gerraty	    Thus we do not track files we have been told to ignore.
136195e3ed2cSSimon J. Gerraty
136295e3ed2cSSimon J. Gerraty2016-08-15  Simon J. Gerraty  <sjg@bad.crufty.net>
136395e3ed2cSSimon J. Gerraty
136495e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160815
136595e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
136695e3ed2cSSimon J. Gerraty	  o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to
136795e3ed2cSSimon J. Gerraty	    pathnames, and skip if the expansion is empty.
136895e3ed2cSSimon J. Gerraty	    Useful for dirdeps.mk when checking DIRDEPS_CACHE.
136995e3ed2cSSimon J. Gerraty
137095e3ed2cSSimon J. Gerraty2016-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>
137195e3ed2cSSimon J. Gerraty
137295e3ed2cSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160812
137395e3ed2cSSimon J. Gerraty	  Merge with NetBSD make, pick up
137495e3ed2cSSimon J. Gerraty	  o meta.c: remove all missingFiles entries that match a deleted
137595e3ed2cSSimon J. Gerraty	    dir.
137695e3ed2cSSimon J. Gerraty	  o main.c: set .ERROR_CMD if possible.
137795e3ed2cSSimon J. Gerraty
137839ac7ef4SSimon J. Gerraty2016-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
137939ac7ef4SSimon J. Gerraty
138039ac7ef4SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160606
138139ac7ef4SSimon J. Gerraty	  Merge with NetBSD make, pick up
138239ac7ef4SSimon J. Gerraty	  o dir.c: extend mtimes cache to others via cached_stat()
138339ac7ef4SSimon J. Gerraty
1384b778b302SSimon J. Gerraty2016-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
1385b778b302SSimon J. Gerraty
1386b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160604
1387b778b302SSimon J. Gerraty	  Merge with NetBSD make, pick up
1388b778b302SSimon J. Gerraty	  o meta.c: missing filemon data is only relevant if we read a
1389b778b302SSimon J. Gerraty	    meta file.
1390b778b302SSimon J. Gerraty	    Also do not return oodate for a missing metafile if gn->path
1391b778b302SSimon J. Gerraty	    points to .CURDIR
1392b778b302SSimon J. Gerraty
1393b778b302SSimon J. Gerraty2016-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
1394b778b302SSimon J. Gerraty
1395b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160602
1396b778b302SSimon J. Gerraty	  Merge with NetBSD make, pick up
1397b778b302SSimon J. Gerraty	  o cached_realpath(): avoid hitting filesystem more than necessary.
1398b778b302SSimon J. Gerraty	  o meta.c: refactor need_meta decision, add knobs for
1399b778b302SSimon J. Gerraty	    missing meta file and filemon data wrt out-of-datedness.
1400b778b302SSimon J. Gerraty
1401b778b302SSimon J. Gerraty2016-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
1402b778b302SSimon J. Gerraty
1403b778b302SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160528
1404b778b302SSimon J. Gerraty
1405b778b302SSimon J. Gerraty	* boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION
1406b778b302SSimon J. Gerraty
1407e48f47ddSSimon J. Gerraty2016-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>
1408e48f47ddSSimon J. Gerraty
1409e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160512
1410e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
1411e48f47ddSSimon J. Gerraty	  o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS
1412e48f47ddSSimon J. Gerraty	    this is useful for gcov builds.
1413e48f47ddSSimon J. Gerraty	  o propagate errors from filemon(4).
1414e48f47ddSSimon J. Gerraty
1415e48f47ddSSimon J. Gerraty2016-05-09  Simon J. Gerraty  <sjg@bad.crufty.net>
1416e48f47ddSSimon J. Gerraty
1417e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160509
1418e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
1419e48f47ddSSimon J. Gerraty	  o remove use of non-standard types u_int etc.
1420e48f47ddSSimon J. Gerraty	  o meta.c: apply realpath() before matching against metaIgnorePaths
1421e48f47ddSSimon J. Gerraty
1422e48f47ddSSimon J. Gerraty2016-04-04  Simon J. Gerraty  <sjg@bad.crufty.net>
1423e48f47ddSSimon J. Gerraty
1424e48f47ddSSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160404
1425e48f47ddSSimon J. Gerraty	  Merge with NetBSD make, pick up
1426e48f47ddSSimon J. Gerraty	  o allow makefile to set .MAKE.JOBS
1427e48f47ddSSimon J. Gerraty
1428e48f47ddSSimon J. Gerraty	* Makefile (PROG_NAME): use ${_MAKE_VERSION}
1429e48f47ddSSimon J. Gerraty
14303bebe729SSimon J. Gerraty2016-03-15  Simon J. Gerraty  <sjg@bad.crufty.net>
14313bebe729SSimon J. Gerraty
14323bebe729SSimon J. Gerraty	* Makefile (_MAKE_VERSION): 20160315
14333bebe729SSimon J. Gerraty	  Merge with NetBSD make, pick up
14343bebe729SSimon J. Gerraty	  o fix handling of archive members
14353bebe729SSimon J. Gerraty
14363bebe729SSimon J. Gerraty2016-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
14373bebe729SSimon J. Gerraty
14383bebe729SSimon J. Gerraty	* Makefile (_MAKE_VERSION): rename variable to avoid interference
14393bebe729SSimon J. Gerraty	  with checks for ${MAKE_VERSION}
14403bebe729SSimon J. Gerraty
14413bebe729SSimon J. Gerraty2016-03-10  Simon J. Gerraty  <sjg@bad.crufty.net>
14423bebe729SSimon J. Gerraty
14433bebe729SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160310
14443bebe729SSimon J. Gerraty	  Merge with NetBSD make, pick up
14453bebe729SSimon J. Gerraty	  o meta.c: treat missing Read file same as Write, incase we Delete it.
14463bebe729SSimon J. Gerraty
1447be19d90bSSimon J. Gerraty2016-03-07  Simon J. Gerraty  <sjg@bad.crufty.net>
1448be19d90bSSimon J. Gerraty
1449be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160307
1450be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
1451be19d90bSSimon J. Gerraty	  o var.c: fix :ts\nnn to be octal by default.
1452be19d90bSSimon J. Gerraty	  o meta.c: meta_finish() to cleanup memory.
1453be19d90bSSimon J. Gerraty
1454be19d90bSSimon J. Gerraty2016-02-26  Simon J. Gerraty  <sjg@bad.crufty.net>
1455be19d90bSSimon J. Gerraty
1456be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160226
1457be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
1458be19d90bSSimon J. Gerraty	  o meta.c: allow meta file for makeDepend if makefiles want it.
1459be19d90bSSimon J. Gerraty
1460be19d90bSSimon J. Gerraty2016-02-19  Simon J. Gerraty  <sjg@bad.crufty.net>
1461be19d90bSSimon J. Gerraty
1462be19d90bSSimon J. Gerraty	* var.c: default .MAKE.SAVE_DOLLARS to FALSE
1463be19d90bSSimon J. Gerraty	  for backwards compatability.
1464be19d90bSSimon J. Gerraty
1465be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160220
1466be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
1467be19d90bSSimon J. Gerraty	  o var.c: add knob to control handling of '$$' in :=
1468be19d90bSSimon J. Gerraty
1469be19d90bSSimon J. Gerraty2016-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>
1470be19d90bSSimon J. Gerraty
1471be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160218
1472be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
1473be19d90bSSimon J. Gerraty	  o var.c: add .export-literal allows us to fix sys.clean-env.mk
1474be19d90bSSimon J. Gerraty	    post the changes to Var_Subst.
1475be19d90bSSimon J. Gerraty	    Var_Subst now takes flags, and does not consume '$$' in :=
1476be19d90bSSimon J. Gerraty
1477be19d90bSSimon J. Gerraty2016-02-17  Simon J. Gerraty  <sjg@bad.crufty.net>
1478be19d90bSSimon J. Gerraty
1479be19d90bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20160217
1480be19d90bSSimon J. Gerraty	  Merge with NetBSD make, pick up
1481be19d90bSSimon J. Gerraty	  o var.c: preserve '$$' in :=
1482be19d90bSSimon J. Gerraty	  o parse.c: add .dinclude for handling included
1483be19d90bSSimon J. Gerraty	    makefile like .depend
1484be19d90bSSimon J. Gerraty
14856e050540SSimon J. Gerraty2015-12-20  Simon J. Gerraty  <sjg@bad.crufty.net>
14866e050540SSimon J. Gerraty
14876e050540SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151220
14886e050540SSimon J. Gerraty	  Merge with NetBSD make, pick up
14896e050540SSimon J. Gerraty	  o suff.c: re-initialize suffNull when clearing suffixes.
14906e050540SSimon J. Gerraty
1491ac3446e9SSimon J. Gerraty2015-12-01  Simon J. Gerraty  <sjg@bad.crufty.net>
1492ac3446e9SSimon J. Gerraty
1493ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151201
1494ac3446e9SSimon J. Gerraty	  Merge with NetBSD make, pick up
1495ac3446e9SSimon J. Gerraty	  o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
1496ac3446e9SSimon J. Gerraty	  o meta.c: meta_oodate: use lstat(2) for checking link target
1497ac3446e9SSimon J. Gerraty	    in case it is a symlink.
1498ac3446e9SSimon J. Gerraty	  o var.c: avoid calling brk_string and Var_Export1 with empty
1499ac3446e9SSimon J. Gerraty	    strings.
1500ac3446e9SSimon J. Gerraty
1501ac3446e9SSimon J. Gerraty2015-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
1502ac3446e9SSimon J. Gerraty
1503ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151126
1504ac3446e9SSimon J. Gerraty	  Merge with NetBSD make, pick up
1505ac3446e9SSimon J. Gerraty	  o parse.c: ParseTrackInput don't access beyond
1506ac3446e9SSimon J. Gerraty	    end of old value.
1507ac3446e9SSimon J. Gerraty
1508ac3446e9SSimon J. Gerraty2015-10-22  Simon J. Gerraty  <sjg@bad.crufty.net>
1509ac3446e9SSimon J. Gerraty
1510ac3446e9SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151022
1511ac3446e9SSimon J. Gerraty
1512ac3446e9SSimon J. Gerraty	* Add support for BSD/OS which lacks inttypes.h
1513ac3446e9SSimon J. Gerraty	  and really needs sys/param.h for sys/sysctl.h
1514ac3446e9SSimon J. Gerraty	  also 'type' is not a shell builtin.
1515ac3446e9SSimon J. Gerraty
1516ac3446e9SSimon J. Gerraty	* var.c: eliminate uint32_t and need for inttypes.h
1517ac3446e9SSimon J. Gerraty
1518ac3446e9SSimon J. Gerraty	* main.c: PrintOnError flush stdout before run .ERROR
1519ac3446e9SSimon J. Gerraty
1520ac3446e9SSimon J. Gerraty	* parse.c: cope with _SC_PAGESIZE not being defined.
1521ac3446e9SSimon J. Gerraty
1522ac3446e9SSimon J. Gerraty
15234c620fe5SSimon J. Gerraty2015-10-20  Simon J. Gerraty  <sjg@bad.crufty.net>
15244c620fe5SSimon J. Gerraty
15254c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151020
15264c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
15274c620fe5SSimon J. Gerraty	  o var.c: fix uninitialized var
15284c620fe5SSimon J. Gerraty
15294c620fe5SSimon J. Gerraty2015-10-12  Simon J. Gerraty  <sjg@bad.crufty.net>
15304c620fe5SSimon J. Gerraty
15314c620fe5SSimon J. Gerraty	* var.c: the conditional expressions used with ':?' can be
15324c620fe5SSimon J. Gerraty	expensive, if already discarding do not evaluate or expand
15334c620fe5SSimon J. Gerraty	anything.
15344c620fe5SSimon J. Gerraty
15354c620fe5SSimon J. Gerraty2015-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
15364c620fe5SSimon J. Gerraty
15374c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151010
15384c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
15394c620fe5SSimon J. Gerraty	  o Add Boolean wantit flag to Var_Subst and Var_Parse
15404c620fe5SSimon J. Gerraty	    when FALSE we know we are discarding the result and can
15414c620fe5SSimon J. Gerraty	    skip operations like Cmd_Exec.
15424c620fe5SSimon J. Gerraty
15434c620fe5SSimon J. Gerraty2015-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
15444c620fe5SSimon J. Gerraty
15454c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20151009
15464c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
15474c620fe5SSimon J. Gerraty	  o var.c: don't check for NULL before free()
15484c620fe5SSimon J. Gerraty	  o meta.c: meta_oodate, do not hard code ignore of makeDependfile
15494c620fe5SSimon J. Gerraty
15504c620fe5SSimon J. Gerraty2015-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
15514c620fe5SSimon J. Gerraty
15524c620fe5SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150910
15534c620fe5SSimon J. Gerraty	  Merge with NetBSD make, pick up
15544c620fe5SSimon J. Gerraty	  o main.c: with -w print Enter/Leaving messages for objdir too
15554c620fe5SSimon J. Gerraty	    if necessary.
15564c620fe5SSimon J. Gerraty	  o centralize shell metachar handling
15574c620fe5SSimon J. Gerraty
15584c620fe5SSimon J. Gerraty	* FILES: add metachar.[ch]
15594c620fe5SSimon J. Gerraty
1560128a4105SSimon J. Gerraty2015-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
1561128a4105SSimon J. Gerraty
1562128a4105SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150606
1563128a4105SSimon J. Gerraty	  Merge with NetBSD make, pick up
1564128a4105SSimon J. Gerraty	  o make.1: document .OBJDIR target
1565128a4105SSimon J. Gerraty
156628a6bc81SSimon J. Gerraty2015-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
156728a6bc81SSimon J. Gerraty
156828a6bc81SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150505
156928a6bc81SSimon J. Gerraty	  Merge with NetBSD make, pick up
157028a6bc81SSimon J. Gerraty	  o cond.c: be strict about lhs of comparison when evaluating .if
157128a6bc81SSimon J. Gerraty	    but less so when called from variable expansion.
157228a6bc81SSimon J. Gerraty	  o unit-tests/cond2.mk: test various error conditions
157328a6bc81SSimon J. Gerraty
157428a6bc81SSimon J. Gerraty2015-05-04  Simon J. Gerraty  <sjg@bad.crufty.net>
157528a6bc81SSimon J. Gerraty
157628a6bc81SSimon J. Gerraty	* machine.sh (MACHINE): Add Bitrig
157728a6bc81SSimon J. Gerraty	  patch from joerg@netbsd.org
157828a6bc81SSimon J. Gerraty
1579db29cad8SSimon J. Gerraty2015-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>
1580db29cad8SSimon J. Gerraty
1581db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150418
1582db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
1583db29cad8SSimon J. Gerraty	  o job.c: use memmove() rather than memcpy()
1584db29cad8SSimon J. Gerraty
1585db29cad8SSimon J. Gerraty	* unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL
1586db29cad8SSimon J. Gerraty	  case, so skip it.
1587db29cad8SSimon J. Gerraty
1588db29cad8SSimon J. Gerraty2015-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
1589db29cad8SSimon J. Gerraty
1590db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150411
1591db29cad8SSimon J. Gerraty	  bump version - only mk/ changes.
1592db29cad8SSimon J. Gerraty
1593db29cad8SSimon J. Gerraty2015-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
1594db29cad8SSimon J. Gerraty
1595db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150410
1596db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
1597db29cad8SSimon J. Gerraty	  o document different handling of '-' in jobs mode vs compat
1598db29cad8SSimon J. Gerraty	  o fix jobs mode so that '-' only applies to whole job
1599db29cad8SSimon J. Gerraty	    when shell lacks hasErrCtl
1600db29cad8SSimon J. Gerraty	  o meta.c: use separate vars to track lcwd and latestdir (read)
1601db29cad8SSimon J. Gerraty	    per process
1602db29cad8SSimon J. Gerraty
1603db29cad8SSimon J. Gerraty2015-04-01  Simon J. Gerraty  <sjg@bad.crufty.net>
1604db29cad8SSimon J. Gerraty
1605db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20150401
1606db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
1607db29cad8SSimon J. Gerraty	  o meta.c: close meta file in child
1608db29cad8SSimon J. Gerraty
1609db29cad8SSimon J. Gerraty	* Makefile: use BINDIR.bmake if set.
1610db29cad8SSimon J. Gerraty	  Same for MANDIR and SHAREDIR
1611db29cad8SSimon J. Gerraty	  Handy for testing release candidates
1612db29cad8SSimon J. Gerraty	  in various environments.
1613db29cad8SSimon J. Gerraty
1614db29cad8SSimon J. Gerraty2015-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>
1615db29cad8SSimon J. Gerraty
1616db29cad8SSimon J. Gerraty	* move initialization of savederr to block where it is used
1617db29cad8SSimon J. Gerraty	  to avoid spurious warning from gcc5
1618db29cad8SSimon J. Gerraty
1619db29cad8SSimon J. Gerraty2014-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
1620db29cad8SSimon J. Gerraty
1621db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20141111
1622db29cad8SSimon J. Gerraty	  just a cooler number
1623db29cad8SSimon J. Gerraty
1624db29cad8SSimon J. Gerraty2014-11-05  Simon J. Gerraty  <sjg@bad.crufty.net>
1625db29cad8SSimon J. Gerraty
1626db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20141105
1627db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
1628db29cad8SSimon J. Gerraty	  o revert major overhaul of suffix handling
1629db29cad8SSimon J. Gerraty	    and POSIX compliance - too much breakage
1630db29cad8SSimon J. Gerraty	    and impossible to make backwards compatible.
1631db29cad8SSimon J. Gerraty	  o we still have the new unit test structure which is ok.
1632db29cad8SSimon J. Gerraty	  o meta.c ensure "-- filemon" is at start of line.
1633db29cad8SSimon J. Gerraty
1634db29cad8SSimon J. Gerraty2014-09-17  Simon J. Gerraty  <sjg@bad.crufty.net>
1635db29cad8SSimon J. Gerraty
1636db29cad8SSimon J. Gerraty	* configure.in: test that result of getconf PATH_MAX is numeric
1637db29cad8SSimon J. Gerraty	  and discard if not.  Apparently needed for Hurd.
1638db29cad8SSimon J. Gerraty
1639db29cad8SSimon J. Gerraty2014-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
1640db29cad8SSimon J. Gerraty
1641db29cad8SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140830
1642db29cad8SSimon J. Gerraty	  Merge with NetBSD make, pick up
1643db29cad8SSimon J. Gerraty	  o major overhaul of suffix handling
1644db29cad8SSimon J. Gerraty	  o improved POSIX compliance
1645db29cad8SSimon J. Gerraty	  o overhauled unit-tests
1646db29cad8SSimon J. Gerraty
16475bcb7424SSimon J. Gerraty2014-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
16485bcb7424SSimon J. Gerraty
16495bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140620
16505bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
1651db29cad8SSimon J. Gerraty	  o var.c return varNoError rather than var_Error for ::= modifiers.
16525bcb7424SSimon J. Gerraty
16535bcb7424SSimon J. Gerraty2014-05-22  Simon J. Gerraty  <sjg@bad.crufty.net>
16545bcb7424SSimon J. Gerraty
16555bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140522
16565bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
16575bcb7424SSimon J. Gerraty	  o var.c detect some parse errors.
16585bcb7424SSimon J. Gerraty
16595bcb7424SSimon J. Gerraty2014-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>
16605bcb7424SSimon J. Gerraty
16615bcb7424SSimon J. Gerraty	* Fix spelling errors - patch from Pedro Giffuni
16625bcb7424SSimon J. Gerraty
16635bcb7424SSimon J. Gerraty2014-02-14  Simon J. Gerraty  <sjg@bad.crufty.net>
16645bcb7424SSimon J. Gerraty
16655bcb7424SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140214
16665bcb7424SSimon J. Gerraty	  Merge with NetBSD make, pick up
16675bcb7424SSimon J. Gerraty	  o .INCLUDEFROM*
16685bcb7424SSimon J. Gerraty	  o use Var_Value to get MAKEOBJDIR[PREFIX]
16695bcb7424SSimon J. Gerraty	  o reduced realloc'ign in brk_string.
16705bcb7424SSimon J. Gerraty	* configure.in: add a check for compiler supporting __func__
16715bcb7424SSimon J. Gerraty
16720dede8b0SSimon J. Gerraty2014-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
16730dede8b0SSimon J. Gerraty
16740dede8b0SSimon J. Gerraty	* boot-strap: ignore mksrc=none
16750dede8b0SSimon J. Gerraty
16760dede8b0SSimon J. Gerraty2014-01-02  Simon J. Gerraty  <sjg@bad.crufty.net>
16770dede8b0SSimon J. Gerraty
16780dede8b0SSimon J. Gerraty	* Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk
16790dede8b0SSimon J. Gerraty
16800dede8b0SSimon J. Gerraty2014-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
16810dede8b0SSimon J. Gerraty
16820dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20140101
16830dede8b0SSimon J. Gerraty	* configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024)
16840dede8b0SSimon J. Gerraty	* Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max
16850dede8b0SSimon J. Gerraty	* make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for
16860dede8b0SSimon J. Gerraty	  Hurd)
16870dede8b0SSimon J. Gerraty	* configure.in: Add AC_PREREQ and check for
16880dede8b0SSimon J. Gerraty	  sysctl; patch from Andrew Shadura andrewsh at debian.org
16890dede8b0SSimon J. Gerraty
16900dede8b0SSimon J. Gerraty2013-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
16910dede8b0SSimon J. Gerraty
16920dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20131010
16930dede8b0SSimon J. Gerraty	* lose the const from arg to systcl to avoid problems on older BSDs.
16940dede8b0SSimon J. Gerraty
16950dede8b0SSimon J. Gerraty2013-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
16960dede8b0SSimon J. Gerraty
16970dede8b0SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20131001
16980dede8b0SSimon J. Gerraty	  Merge with NetBSD make, pick up
16990dede8b0SSimon J. Gerraty	  o main.c: for NATIVE build sysctl to get MACHINE_ARCH from
17000dede8b0SSimon J. Gerraty	    hw.machine_arch if necessary.
17010dede8b0SSimon J. Gerraty	  o meta.c: meta_oodate - need to look at src of Link and target
17020dede8b0SSimon J. Gerraty	    of Move as well.
17030dede8b0SSimon J. Gerraty	* main.c: check that CTL_HW and HW_MACHINE_ARCH exist.
17040dede8b0SSimon J. Gerraty	  provide __arraycount() if needed.
17050dede8b0SSimon J. Gerraty
17061bbe5942SSimon J. Gerraty2013-09-04  Simon J. Gerraty  <sjg@bad.crufty.net>
17071bbe5942SSimon J. Gerraty
17081bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130904
17091bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
17101bbe5942SSimon J. Gerraty	  o Add VAR_INTERNAL context, so that internal setting of
17111bbe5942SSimon J. Gerraty	    MAKEFILE does not override value set by makefiles.
17121bbe5942SSimon J. Gerraty
17131bbe5942SSimon J. Gerraty2013-09-02  Simon J. Gerraty  <sjg@bad.crufty.net>
17141bbe5942SSimon J. Gerraty
17151bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130902
17161bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
17171bbe5942SSimon J. Gerraty	  o CompatRunCommand: only apply shellErrFlag when errCheck is true
17181bbe5942SSimon J. Gerraty
17191bbe5942SSimon J. Gerraty2013-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
17201bbe5942SSimon J. Gerraty
17211bbe5942SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130828
17221bbe5942SSimon J. Gerraty	  Merge with NetBSD make, pick up
17231bbe5942SSimon J. Gerraty	  o Fix VAR :sh = syntax from Will Andrews at freebsd.org
17241bbe5942SSimon J. Gerraty	  o Call Job_SetPrefix() from Job_Init() so makefiles have
17251bbe5942SSimon J. Gerraty	    opportunity to set .MAKE.JOB.PREFIX
17261bbe5942SSimon J. Gerraty
172751ee2c1cSSimon J. Gerraty2013-07-30  Simon J. Gerraty  <sjg@bad.crufty.net>
172851ee2c1cSSimon J. Gerraty
172951ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130730
173051ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
173151ee2c1cSSimon J. Gerraty	  o Allow suppression of --- job -- tokens by setting
173251ee2c1cSSimon J. Gerraty	    .MAKE.JOB.PREFIX empty.
173351ee2c1cSSimon J. Gerraty
173451ee2c1cSSimon J. Gerraty2013-07-16  Simon J. Gerraty  <sjg@bad.crufty.net>
173551ee2c1cSSimon J. Gerraty
173651ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130716
173751ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
17385bcb7424SSimon J. Gerraty	  o number of gmake compatibility tweaks
173951ee2c1cSSimon J. Gerraty	    -w for gmake style entering/leaving messages
174051ee2c1cSSimon J. Gerraty	    if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc.
174151ee2c1cSSimon J. Gerraty	    handle MAKEFLAGS containing only letters.
174251ee2c1cSSimon J. Gerraty	  o when overriding a GLOBAL variable on the command line,
174351ee2c1cSSimon J. Gerraty	    delete it from GLOBAL context so -V doesn't show the wrong
174451ee2c1cSSimon J. Gerraty	    value.
174551ee2c1cSSimon J. Gerraty
174651ee2c1cSSimon J. Gerraty2013-07-06  Simon J. Gerraty  <sjg@bad.crufty.net>
174751ee2c1cSSimon J. Gerraty
174851ee2c1cSSimon J. Gerraty	* configure.in: We don't need MAKE_LEVEL_SAFE anymore.
174951ee2c1cSSimon J. Gerraty
175051ee2c1cSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130706
175151ee2c1cSSimon J. Gerraty	  Merge with NetBSD make, pick up
175251ee2c1cSSimon J. Gerraty	  o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is
175351ee2c1cSSimon J. Gerraty	    true so that CompatRunCommand() can use it, to ensure
175451ee2c1cSSimon J. Gerraty	    consistent behavior with jobs mode.
175551ee2c1cSSimon J. Gerraty	  o use MAKE_LEVEL_ENV to define the variable to propagate
175651ee2c1cSSimon J. Gerraty	    .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake).
175751ee2c1cSSimon J. Gerraty	  o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of
175851ee2c1cSSimon J. Gerraty	    paths to ignore.
175951ee2c1cSSimon J. Gerraty
176074d2e02bSSimon J. Gerraty2013-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
176174d2e02bSSimon J. Gerraty
176274d2e02bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130604
176374d2e02bSSimon J. Gerraty	  Merge with NetBSD make, pick up
176474d2e02bSSimon J. Gerraty	  o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's
176574d2e02bSSimon J. Gerraty	    to avoid leaking descriptors.
176674d2e02bSSimon J. Gerraty
176774d2e02bSSimon J. Gerraty2013-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>
176874d2e02bSSimon J. Gerraty
176974d2e02bSSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130528
177074d2e02bSSimon J. Gerraty	  Merge with NetBSD make, pick up
177174d2e02bSSimon J. Gerraty	  o var.c: cleanup some left-overs in VarHash()
177274d2e02bSSimon J. Gerraty
177352d86256SSimon J. Gerraty2013-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
177452d86256SSimon J. Gerraty
177552d86256SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130520
177652d86256SSimon J. Gerraty	  generate manifest from component FILES rather than have to
177752d86256SSimon J. Gerraty	  update FILES when mk/FILES changes.
177852d86256SSimon J. Gerraty
177952d86256SSimon J. Gerraty2013-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
178052d86256SSimon J. Gerraty
178152d86256SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130518
178252d86256SSimon J. Gerraty	  Merge with NetBSD make, pick up
178352d86256SSimon J. Gerraty	  o suff.c: don't skip all processsing for .PHONY targets
178452d86256SSimon J. Gerraty	    else wildcard srcs do not get expanded.
178552d86256SSimon J. Gerraty	  o var.c: expand name of variable to delete if necessary.
178652d86256SSimon J. Gerraty
17871748de26SSimon J. Gerraty2013-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
17881748de26SSimon J. Gerraty
17891748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130330
17901748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
17911748de26SSimon J. Gerraty	  o meta.c: refine the handling of .OODATE in commands.
17921748de26SSimon J. Gerraty	    Rather than suppress command comparison for the entire script
17931748de26SSimon J. Gerraty	    as though .NOMETA_CMP had been used, only suppress it for the
17941748de26SSimon J. Gerraty	    one command line.
17951748de26SSimon J. Gerraty	    This allows something like ${.OODATE:M.NOMETA_CMP} to be used to
17961748de26SSimon J. Gerraty	    suppress comparison of a command without otherwise affecting it.
17971748de26SSimon J. Gerraty	  o make.1: document that
17981748de26SSimon J. Gerraty
17991748de26SSimon J. Gerraty2013-03-22  Simon J. Gerraty  <sjg@bad.crufty.net>
18001748de26SSimon J. Gerraty
18011748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130321
18021748de26SSimon J. Gerraty	  yes, not quite right but its a cooler number.
18031748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
18041748de26SSimon J. Gerraty	  o parse.c: fix ParseGmakeExport to be portable
18051748de26SSimon J. Gerraty	    and add a unit-test.
18061748de26SSimon J. Gerraty	* meta.c: call meta_init() before makefiles are read and if built
18071748de26SSimon J. Gerraty	  with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON
18081748de26SSimon J. Gerraty	  this let's makefiles test for support.
18091748de26SSimon J. Gerraty	  Call meta_mode_init() to process .MAKE.MODE.
18101748de26SSimon J. Gerraty
18111748de26SSimon J. Gerraty2013-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>
18121748de26SSimon J. Gerraty
18131748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130305
18141748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
18151748de26SSimon J. Gerraty	  o run .STALE: target when a dependency from .depend is missing.
18161748de26SSimon J. Gerraty	  o job.c: add Job_RunTarget() for the above and .BEGIN
18171748de26SSimon J. Gerraty
18181748de26SSimon J. Gerraty2013-03-03  Simon J. Gerraty  <sjg@bad.crufty.net>
18191748de26SSimon J. Gerraty
18201748de26SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130303
18211748de26SSimon J. Gerraty	  Merge with NetBSD make, pick up
18221748de26SSimon J. Gerraty	  o main.c: set .MAKE.OS to utsname.sysname
18231748de26SSimon J. Gerraty	  o job.c: more checks for read and poll errors
18241748de26SSimon J. Gerraty	  o var.c: lose VarChangeCase() saves 4% time
18251748de26SSimon J. Gerraty
18261748de26SSimon J. Gerraty2013-03-02  Simon J. Gerraty  <sjg@bad.crufty.net>
18271748de26SSimon J. Gerraty
18281748de26SSimon J. Gerraty	* boot-strap: remove MAKEOBJDIRPREFIX from environment since we
18291748de26SSimon J. Gerraty	  want to use MAKEOBJDIR
18301748de26SSimon J. Gerraty
18313cbdda60SSimon J. Gerraty2013-01-27  Simon J. Gerraty  <sjg@bad.crufty.net>
18323cbdda60SSimon J. Gerraty
18333cbdda60SSimon J. Gerraty	* Merge with NetBSD make, pick up
18343cbdda60SSimon J. Gerraty	  o make.1: more info on how shell commands are handled.
18353cbdda60SSimon J. Gerraty	  o job.c,main.c: detect write errors to job pipes.
18363cbdda60SSimon J. Gerraty
18373cbdda60SSimon J. Gerraty2013-01-25  Simon J. Gerraty  <sjg@bad.crufty.net>
18383cbdda60SSimon J. Gerraty
18393cbdda60SSimon J. Gerraty	* Makefile (MAKE_VERSION): 20130123
18403cbdda60SSimon J. Gerraty	  Merge with NetBSD make, pick up
18413cbdda60SSimon J. Gerraty	  o meta.c: if script uses .OODATE and meta_oodate() decides
18423cbdda60SSimon J. Gerraty	    rebuild is needed, .OODATE will be empty - set it to .ALLSRC.
18433cbdda60SSimon J. Gerraty	  o var.c: in debug output indicate which variabale modifiers
18443cbdda60SSimon J. Gerraty	    apply to.
18453cbdda60SSimon J. Gerraty	  o remove Check_Cwd logic the makefiles have been fixed.
18463cbdda60SSimon J. Gerraty
18473cbdda60SSimon J. Gerraty2012-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>
18483cbdda60SSimon J. Gerraty
18493cbdda60SSimon J. Gerraty	* makefile.in: add a simple makefile for folk who insist on
18503cbdda60SSimon J. Gerraty	  ./configure; make; make install
18513cbdda60SSimon J. Gerraty	  it just runs boot-strap
18523cbdda60SSimon J. Gerraty	* include mk/* to accommodate the above
18533cbdda60SSimon J. Gerraty	* boot-strap:  re-work to accommodate the above
18543cbdda60SSimon J. Gerraty	  mksrc defaults to $Mydir/mk
18553cbdda60SSimon J. Gerraty	  allow op={configure,build,install,clean,all}
18563cbdda60SSimon J. Gerraty	  add options to facilitate install
18573cbdda60SSimon J. Gerraty	* Makefile.config.in: just the bits set by configure
18583cbdda60SSimon J. Gerraty	* Makefile: bump version to 20121212
18593cbdda60SSimon J. Gerraty	  abandon Makefile.in (NetBSD Makefile)
18603cbdda60SSimon J. Gerraty	  leverage mk/* instead
18613cbdda60SSimon J. Gerraty	* configure.in: ensure srcdir is absolute
18623cbdda60SSimon J. Gerraty
186359a02420SSimon J. Gerraty2012-11-11  Simon J. Gerraty  <sjg@bad.crufty.net>
186459a02420SSimon J. Gerraty
186559a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121111
186659a02420SSimon J. Gerraty	  fix generation of bmake.cat1
186759a02420SSimon J. Gerraty
186859a02420SSimon J. Gerraty2012-11-09  Simon J. Gerraty  <sjg@bad.crufty.net>
186959a02420SSimon J. Gerraty
187059a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121109
187159a02420SSimon J. Gerraty	  Merge with NetBSD make, pick up
187259a02420SSimon J. Gerraty	  o make.c: MakeBuildChild: return 0 so search continues if a
187359a02420SSimon J. Gerraty	    .ORDER dependency is detected.
187459a02420SSimon J. Gerraty	  o unit-tests/order: test the above
187559a02420SSimon J. Gerraty
187659a02420SSimon J. Gerraty2012-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
187759a02420SSimon J. Gerraty
187859a02420SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121102
187959a02420SSimon J. Gerraty	  Merge with NetBSD make, pick up
188059a02420SSimon J. Gerraty	  o cond.c: allow cond_state[] to grow.
188159a02420SSimon J. Gerraty	    In meta mode with a very large tree, we can hit the limit
188259a02420SSimon J. Gerraty	    while processing dirdeps.
188359a02420SSimon J. Gerraty
188459a02420SSimon J. Gerraty2012-10-25  Simon J. Gerraty  <sjg@bad.crufty.net>
188559a02420SSimon J. Gerraty
188659a02420SSimon J. Gerraty	* Makefile.in: we need to use ${srcdir} not ${.CURDIR}
188759a02420SSimon J. Gerraty
188893036677SSimon J. Gerraty2012-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
188993036677SSimon J. Gerraty
189093036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121010
189193036677SSimon J. Gerraty	  o protect syntax that only bmake parses correctly.
189293036677SSimon J. Gerraty	  o remove auto setting of FORCE_MACHINE, use configure's
189393036677SSimon J. Gerraty	    --with-force-machine=whatever if that is desired.
189493036677SSimon J. Gerraty
189593036677SSimon J. Gerraty2012-10-08  Simon J. Gerraty  <sjg@bad.crufty.net>
189693036677SSimon J. Gerraty
189793036677SSimon J. Gerraty	* Makefile.in: do not lose history from make.1 when generating bmake.1
189893036677SSimon J. Gerraty
189993036677SSimon J. Gerraty2012-10-07  Simon J. Gerraty  <sjg@bad.crufty.net>
190093036677SSimon J. Gerraty
190193036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): 20121007
190293036677SSimon J. Gerraty	  Merge with NetBSD make, pick up
190393036677SSimon J. Gerraty	  o compat.c: ignore empty commands - same as jobs mode.
190493036677SSimon J. Gerraty	  o make.1: document meta chars that cause use of shell
190593036677SSimon J. Gerraty
190693036677SSimon J. Gerraty2012-09-11  Simon J. Gerraty  <sjg@bad.crufty.net>
190793036677SSimon J. Gerraty
190893036677SSimon J. Gerraty	* Makefile.in (MAKE_VERSION): bump version to 20120911
190993036677SSimon J. Gerraty	* bsd.after-import.mk: include Makefile.inc early and allow it to
191093036677SSimon J. Gerraty	  override PROG
191193036677SSimon J. Gerraty
19123955d011SMarcel Moolenaar2012-08-31  Simon J. Gerraty  <sjg@bad.crufty.net>
19133955d011SMarcel Moolenaar
19143955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120831
19153955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
19163955d011SMarcel Moolenaar	  o cast sizeof() to int for comparison
19173955d011SMarcel Moolenaar	  o minor make.1 tweak
19183955d011SMarcel Moolenaar
19193955d011SMarcel Moolenaar2012-08-30  Simon J. Gerraty  <sjg@bad.crufty.net>
19203955d011SMarcel Moolenaar
19213955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120830
19223955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
19233955d011SMarcel Moolenaar	  o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V
19243955d011SMarcel Moolenaar	  o debug flag -dV causes -V to show raw value regardless.
19253955d011SMarcel Moolenaar
19263955d011SMarcel Moolenaar2012-07-05  Simon J. Gerraty  <sjg@bad.crufty.net>
19273955d011SMarcel Moolenaar
19283955d011SMarcel Moolenaar	* bsd.after-import.mk (after-import): ensure unit-tests/Makefile
19293955d011SMarcel Moolenaar	  gets SRCTOP set.
19303955d011SMarcel Moolenaar
19313955d011SMarcel Moolenaar2012-07-04  Simon J. Gerraty  <sjg@bad.crufty.net>
19323955d011SMarcel Moolenaar
19333955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120704
19343955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
19353955d011SMarcel Moolenaar	  o Job_ParseShell should call Shell_Init if it has been
19363955d011SMarcel Moolenaar	    previously called.
19373955d011SMarcel Moolenaar	* Makefile.in: set USE_META based on configure result.
19383955d011SMarcel Moolenaar	  also .PARSEDIR is safer indicator of bmake.
19393955d011SMarcel Moolenaar
19403955d011SMarcel Moolenaar2012-06-26  Simon J. Gerraty  <sjg@bad.crufty.net>
19413955d011SMarcel Moolenaar
19423955d011SMarcel Moolenaar	* Makefile.in: bump version to 20120626
19433955d011SMarcel Moolenaar	  ensure CPPFLAGS is in CFLAGS
19443955d011SMarcel Moolenaar	* meta.c: avoid nested externs
19453955d011SMarcel Moolenaar	* bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target
19463955d011SMarcel Moolenaar
19473955d011SMarcel Moolenaar2012-06-20  Simon J. Gerraty  <sjg@bad.crufty.net>
19483955d011SMarcel Moolenaar
19493955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120620
19503955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
19513955d011SMarcel Moolenaar	  o make_malloc.c: avoid including make_malloc.h again
19523955d011SMarcel Moolenaar
19533955d011SMarcel Moolenaar	* Makefile.in: avoid bmake only syntax or protect with
19543955d011SMarcel Moolenaar	  .if defined(.MAKE.LEVEL)
19553955d011SMarcel Moolenaar	* bsd.after-import.mk: replace .-include with .sinclude
19563955d011SMarcel Moolenaar	  ensure? SRCTOP gets a value
19573955d011SMarcel Moolenaar	* configure.in: look for filemon.h in /usr/include/dev/filemon first.
19583955d011SMarcel Moolenaar
19593955d011SMarcel Moolenaar2012-06-19  Simon J. Gerraty  <sjg@bad.crufty.net>
19603955d011SMarcel Moolenaar
19613955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120612
19623955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
19633955d011SMarcel Moolenaar	  o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler
19643955d011SMarcel Moolenaar	    for greater portability.
19653955d011SMarcel Moolenaar	  o unit-tests/forloop: check that .for works as expected wrt
19663955d011SMarcel Moolenaar	    number of times and with "quoted strings".
19673955d011SMarcel Moolenaar
19683955d011SMarcel Moolenaar2012-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
19693955d011SMarcel Moolenaar
19703955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120606
19713955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
19723955d011SMarcel Moolenaar	  o compat.c: use kill(2) rather than raise(3).
19733955d011SMarcel Moolenaar	* configure.in: look for sys/dev/filemon
19743955d011SMarcel Moolenaar	* bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile
19753955d011SMarcel Moolenaar	  and pass BOOTSTRAP_XTRAS to boot-strap.
19763955d011SMarcel Moolenaar
19773955d011SMarcel Moolenaar2012-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
19783955d011SMarcel Moolenaar
19793955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120604
19803955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
19813955d011SMarcel Moolenaar	  o util.c and var.c share same var for tracking if environ
19823955d011SMarcel Moolenaar	    has been reallocated.
19833955d011SMarcel Moolenaar	  o util.c provide getenv with setenv.
19843955d011SMarcel Moolenaar	* Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL
19853955d011SMarcel Moolenaar	  when the shell actively strips .MAKE.* from the environment.
19863955d011SMarcel Moolenaar	  We still refer to the variable always as .MAKE.LEVEL
19873955d011SMarcel Moolenaar	* util.c fix bug in findenv() was finding prefix of name.
19883955d011SMarcel Moolenaar	* compat.c: re-raising SIGINT etc after running .INTERRUPT
19893955d011SMarcel Moolenaar	  results in more reliable termination of all activity on many
19903955d011SMarcel Moolenaar	  platforms.
19913955d011SMarcel Moolenaar
19923955d011SMarcel Moolenaar2012-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>
19933955d011SMarcel Moolenaar
19943955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120602
19953955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
19963955d011SMarcel Moolenaar	  o for.c: handle quoted items in .for list
19973955d011SMarcel Moolenaar
19983955d011SMarcel Moolenaar2012-05-30  Simon J. Gerraty  <sjg@bad.crufty.net>
19993955d011SMarcel Moolenaar
20003955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120530
20013955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20023955d011SMarcel Moolenaar	  o compat.c: ignore empty command.
20033955d011SMarcel Moolenaar
20043955d011SMarcel Moolenaar2012-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
20053955d011SMarcel Moolenaar
20063955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120524
20073955d011SMarcel Moolenaar	* FILES: add bsd.after-import.mk:
20083955d011SMarcel Moolenaar	  A simple means of integrating bmake into a BSD build system.
20093955d011SMarcel Moolenaar
20103955d011SMarcel Moolenaar2012-05-20  Simon J. Gerraty  <sjg@bad.crufty.net>
20113955d011SMarcel Moolenaar
20123955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120520
20133955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20143955d011SMarcel Moolenaar	  o increased limit for nested conditionals.
20153955d011SMarcel Moolenaar
20163955d011SMarcel Moolenaar2012-05-18  Simon J. Gerraty  <sjg@bad.crufty.net>
20173955d011SMarcel Moolenaar
20183955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120518
20193955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20203955d011SMarcel Moolenaar	  o use _exit(2) in signal hanlder
20213955d011SMarcel Moolenaar	  o Don't use the [dir] cache when building nodes that might have
20223955d011SMarcel Moolenaar	    changed since the last exec.
20233955d011SMarcel Moolenaar	  o Avoid nested extern declaration warnings.
20243955d011SMarcel Moolenaar
20253955d011SMarcel Moolenaar2012-04-27  Simon J. Gerraty  <sjg@bad.crufty.net>
20263955d011SMarcel Moolenaar
20273955d011SMarcel Moolenaar	* meta.c (fgetLine): avoid %z - not portable.
20283955d011SMarcel Moolenaar	* parse.c: Since we moved include of sys/mman.h
20293955d011SMarcel Moolenaar	  and def's of MAP_COPY etc. we got dups from a merge.
20303955d011SMarcel Moolenaar
20313955d011SMarcel Moolenaar2012-04-24  Simon J. Gerraty  <sjg@bad.crufty.net>
20323955d011SMarcel Moolenaar
20333955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120420
20343955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20353955d011SMarcel Moolenaar	  o restore duplicate supression in .MAKE.MAKEFILES
20363955d011SMarcel Moolenaar	    runtime saving can be significant.
20373955d011SMarcel Moolenaar	  o Var_Subst() uses Buf_DestroyCompact() to reduce memory
20383955d011SMarcel Moolenaar	    consumption up to 20%.
20393955d011SMarcel Moolenaar
20403955d011SMarcel Moolenaar2012-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
20413955d011SMarcel Moolenaar
20423955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120420
20433955d011SMarcel Moolenaar          Merge with NetBSD make, pick up
20443955d011SMarcel Moolenaar	  o remove duplicate supression in .MAKE.MAKEFILES
20453955d011SMarcel Moolenaar	  o improved dir cache behavior
20463955d011SMarcel Moolenaar	  o gmake'ish export command
20473955d011SMarcel Moolenaar
20483955d011SMarcel Moolenaar2012-03-25  Simon J. Gerraty  <sjg@bad.crufty.net>
20493955d011SMarcel Moolenaar
20503955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20120325
20513955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20523955d011SMarcel Moolenaar	  o fix parsing of :[#] in conditionals.
20533955d011SMarcel Moolenaar
20543955d011SMarcel Moolenaar2012-02-10  Simon J. Gerraty  <sjg@bad.crufty.net>
20553955d011SMarcel Moolenaar
20563955d011SMarcel Moolenaar	* Makefile.in: replace use of .Nx in bmake.1 with NetBSD
20573955d011SMarcel Moolenaar	  since some systems cannot cope with .Nx <version>
20583955d011SMarcel Moolenaar
20593955d011SMarcel Moolenaar2011-11-14  Simon J. Gerraty  <sjg@bad.crufty.net>
20603955d011SMarcel Moolenaar
20613955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20111111
20623955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20633955d011SMarcel Moolenaar	  o debug output for .PARSEDIR and .PARSEFILE
20643955d011SMarcel Moolenaar
20653955d011SMarcel Moolenaar2011-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>
20663955d011SMarcel Moolenaar
20673955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION):  bump version to 20111010
20683955d011SMarcel Moolenaar
20693955d011SMarcel Moolenaar2011-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>
20703955d011SMarcel Moolenaar
20713955d011SMarcel Moolenaar	* boot-strap: check for an expected file in the dirs we look for.
20723955d011SMarcel Moolenaar	* make-bootstrap.sh: pass on LDSTATIC
20733955d011SMarcel Moolenaar
20743955d011SMarcel Moolenaar2011-10-01  Simon J. Gerraty  <sjg@bad.crufty.net>
20753955d011SMarcel Moolenaar
20763955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20111001
20773955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20783955d011SMarcel Moolenaar	  o ensure .PREFIX is set for .PHONY
20793955d011SMarcel Moolenaar	    and .TARGET set for .PHONY run via .END
20803955d011SMarcel Moolenaar	  o __dead used consistently
20813955d011SMarcel Moolenaar
20823955d011SMarcel Moolenaar2011-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>
20833955d011SMarcel Moolenaar
20843955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): 20110909 is a better number ;-)
20853955d011SMarcel Moolenaar
20863955d011SMarcel Moolenaar2011-09-05  Simon J. Gerraty  <sjg@bad.crufty.net>
20873955d011SMarcel Moolenaar
20883955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110905
20893955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20903955d011SMarcel Moolenaar	  o meta_oodate: ignore makeDependfile
20913955d011SMarcel Moolenaar
20923955d011SMarcel Moolenaar2011-08-28  Simon J. Gerraty  <sjg@bad.crufty.net>
20933955d011SMarcel Moolenaar
20943955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110828
20953955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
20963955d011SMarcel Moolenaar	  o silent=yes in .MAKE.MODE causes meta mode to mark targets
20973955d011SMarcel Moolenaar	    as SILENT if a .meta file is created
20983955d011SMarcel Moolenaar
20993955d011SMarcel Moolenaar2011-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>
21003955d011SMarcel Moolenaar
21013955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110818
21023955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21033955d011SMarcel Moolenaar	  o in meta mode, if target flagged .META a missing .meta file
21043955d011SMarcel Moolenaar	    means target is out-of-date
21053955d011SMarcel Moolenaar	  o fixes for gcc 4.5 warnings
21063955d011SMarcel Moolenaar	  o simplify job printing code
21073955d011SMarcel Moolenaar
21083955d011SMarcel Moolenaar2011-08-09  Simon J. Gerraty  <sjg@bad.crufty.net>
21093955d011SMarcel Moolenaar
21103955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110808
21113955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21123955d011SMarcel Moolenaar	  o do not touch OP_SPECIAL targets when doing make -t
21133955d011SMarcel Moolenaar
21143955d011SMarcel Moolenaar2011-06-22  Simon J. Gerraty  <sjg@bad.crufty.net>
21153955d011SMarcel Moolenaar
21163955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110622
21173955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21183955d011SMarcel Moolenaar	  o meta_oodate detect corrupted .meta file and declare oodate.
21193955d011SMarcel Moolenaar	* configure.in: add check for setsid
21203955d011SMarcel Moolenaar
21213955d011SMarcel Moolenaar2011-06-07  Simon J. Gerraty  <sjg@bad.crufty.net>
21223955d011SMarcel Moolenaar
21233955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
21243955d011SMarcel Moolenaar	  o unit-tests/modts now works on MirBSD
21253955d011SMarcel Moolenaar
21263955d011SMarcel Moolenaar2011-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>
21273955d011SMarcel Moolenaar
21283955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110606
21293955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21303955d011SMarcel Moolenaar	  o ApplyModifiers: when we parse a variable which is not
21313955d011SMarcel Moolenaar	    the entire modifier string, or not followed by ':', do not
21323955d011SMarcel Moolenaar	    consider it as containing modifiers.
21333955d011SMarcel Moolenaar	  o loadfile: ensure newline at end of mapped file.
21343955d011SMarcel Moolenaar
21353955d011SMarcel Moolenaar2011-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
21363955d011SMarcel Moolenaar
21373955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110505
21383955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21393955d011SMarcel Moolenaar	  o .MAKE.META.BAILIWICK - list of prefixes which define the scope
21403955d011SMarcel Moolenaar	    of make's control.  In meta mode, any generated file within
21413955d011SMarcel Moolenaar	    said bailiwick, which  is found to be missing, causes current
21423955d011SMarcel Moolenaar	    target to be out-of-date.
21433955d011SMarcel Moolenaar
21443955d011SMarcel Moolenaar2011-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>
21453955d011SMarcel Moolenaar
21463955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110411
21473955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21483955d011SMarcel Moolenaar	  o when long modifiers fail to match, check sysV style.
21493955d011SMarcel Moolenaar	    - add a test case
21503955d011SMarcel Moolenaar
21513955d011SMarcel Moolenaar2011-04-10  Simon J. Gerraty  <sjg@bad.crufty.net>
21523955d011SMarcel Moolenaar
21533955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110410
21543955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21553955d011SMarcel Moolenaar	  o :hash - cheap 32bit hash of value
21563955d011SMarcel Moolenaar	  o :localtime, :gmtime - use value as format string for strftime.
21573955d011SMarcel Moolenaar
21583955d011SMarcel Moolenaar2011-03-30  Simon J. Gerraty  <sjg@bad.crufty.net>
21593955d011SMarcel Moolenaar
21603955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110330
21613955d011SMarcel Moolenaar	  mostly because its a cooler version.
21623955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21633955d011SMarcel Moolenaar	  o NetBSD tags for meta.[ch]
21643955d011SMarcel Moolenaar	  o job.c call meta_job_finish() after meta_job_error().
21653955d011SMarcel Moolenaar	  o meta_job_error() should call meta_job_finish() to ensure
21663955d011SMarcel Moolenaar	    .meta file is closed, and safe to copy - if .ERROR target wants.
21673955d011SMarcel Moolenaar	   meta_job_finish() is safe to call repeatedly.
21683955d011SMarcel Moolenaar
21693955d011SMarcel Moolenaar2011-03-29  Simon J. Gerraty  <sjg@bad.crufty.net>
21703955d011SMarcel Moolenaar
21713955d011SMarcel Moolenaar	* unit-tests/modts: use printf if it is a builtin,
21723955d011SMarcel Moolenaar	  to save us from MirBSD
21733955d011SMarcel Moolenaar
21743955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110329
21753955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21763955d011SMarcel Moolenaar	  o fix for use after free() in CondDoExists().
21773955d011SMarcel Moolenaar	  o meta_oodate() report extra commands and return earlier.
21783955d011SMarcel Moolenaar
21793955d011SMarcel Moolenaar2011-03-27  Simon J. Gerraty  <sjg@bad.crufty.net>
21803955d011SMarcel Moolenaar
21813955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110327
21823955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21833955d011SMarcel Moolenaar	  o meta.c, if .MAKE.MODE contains curdirOk=yes
21843955d011SMarcel Moolenaar	    allow creating .meta files in .CURDIR
21853955d011SMarcel Moolenaar	* boot-strap (TOOL_DIFF): aparently at least on linux distro
21863955d011SMarcel Moolenaar	  formats the output of 'type' differently - so eat any "()"
21873955d011SMarcel Moolenaar
21883955d011SMarcel Moolenaar2011-03-06  Simon J. Gerraty  <sjg@bad.crufty.net>
21893955d011SMarcel Moolenaar
21903955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110306
21913955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21923955d011SMarcel Moolenaar	  o meta.c, only do getcwd() once
21933955d011SMarcel Moolenaar
21943955d011SMarcel Moolenaar2011-03-05  Simon J. Gerraty  <sjg@bad.crufty.net>
21953955d011SMarcel Moolenaar
21963955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110305
21973955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
21983955d011SMarcel Moolenaar	  o correct sysV substitution handling of empty lhs and variable
21993955d011SMarcel Moolenaar	  o correct exists() check for dir with trailing /
22003955d011SMarcel Moolenaar	  o correct handling of modifiers for non-existant variables
22013955d011SMarcel Moolenaar	    during evaluation of conditionals.
22023955d011SMarcel Moolenaar	  o ensure MAP_FILE is defined.
22033955d011SMarcel Moolenaar	  o meta.c use curdir[] now exported by main.c
22043955d011SMarcel Moolenaar
22053955d011SMarcel Moolenaar2011-02-25  Simon J. Gerraty  <sjg@bad.crufty.net>
22063955d011SMarcel Moolenaar
22073955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110225
22083955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22093955d011SMarcel Moolenaar	  o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after
22103955d011SMarcel Moolenaar	    makefiles have been read.
22113955d011SMarcel Moolenaar	  o fix example of :? modifier in man page.
22123955d011SMarcel Moolenaar
22133955d011SMarcel Moolenaar2011-02-13  Simon J. Gerraty  <sjg@bad.crufty.net>
22143955d011SMarcel Moolenaar
22153955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110214
22163955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22173955d011SMarcel Moolenaar	  o meta.c handle realpath() failing when generating meta file
22183955d011SMarcel Moolenaar	    name.
22193955d011SMarcel Moolenaar
22203955d011SMarcel Moolenaar	* sigcompat.c: convert to ansi so we can use higher warning levels.
22213955d011SMarcel Moolenaar
22223955d011SMarcel Moolenaar
22233955d011SMarcel Moolenaar2011-02-07  Simon J. Gerraty  <sjg@bad.crufty.net>
22243955d011SMarcel Moolenaar
22253955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110207
22263955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22273955d011SMarcel Moolenaar	  o fix for bug in meta mode.
22283955d011SMarcel Moolenaar
22293955d011SMarcel Moolenaar2011-01-03  Simon J. Gerraty  <sjg@bad.crufty.net>
22303955d011SMarcel Moolenaar
22313955d011SMarcel Moolenaar	* parse.c: SunOS 5.8 at least does not have MAP_FILE
22323955d011SMarcel Moolenaar
22333955d011SMarcel Moolenaar2011-01-01  Simon J. Gerraty  <sjg@bad.crufty.net>
22343955d011SMarcel Moolenaar
22353955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20110101
22363955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22373955d011SMarcel Moolenaar	  o use mmap(2) if available, for reading makefiles
22383955d011SMarcel Moolenaar
22393955d011SMarcel Moolenaar2010-12-15  Simon J. Gerraty  <sjg@bad.crufty.net>
22403955d011SMarcel Moolenaar
22413955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101215
22423955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22433955d011SMarcel Moolenaar	  o ensure meta_job_error() does not report a previous .meta file
22443955d011SMarcel Moolenaar	    as being culprit.
22453955d011SMarcel Moolenaar
22463955d011SMarcel Moolenaar2010-12-10  Simon J. Gerraty  <sjg@bad.crufty.net>
22473955d011SMarcel Moolenaar
22483955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101210
22493955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22503955d011SMarcel Moolenaar	  o meta_oodate: track cwd per process, and only consider target
22513955d011SMarcel Moolenaar	    out-of-date if missing file is outside make's CWD.
22523955d011SMarcel Moolenaar	    Ignore files in /tmp/ etc.
22533955d011SMarcel Moolenaar	  o to ensure unit-tests results match, need to control LC_ALL
22543955d011SMarcel Moolenaar	    as well as LANG.
22553955d011SMarcel Moolenaar	  o fix for parsing bug in var.c
22563955d011SMarcel Moolenaar
22573955d011SMarcel Moolenaar2010-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>
22583955d011SMarcel Moolenaar
22593955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101126
22603955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22613955d011SMarcel Moolenaar	  o if stale dependency is an IMPSRC, search via .PATH
22623955d011SMarcel Moolenaar	  o meta_oodate: if a referenced file is missing, target is
22633955d011SMarcel Moolenaar	    out-of-date.
22643955d011SMarcel Moolenaar	  o meta_oodate: if a target uses .OODATE in its commands,
22653955d011SMarcel Moolenaar	    it (.OODATE) needs to be recomputed.
22663955d011SMarcel Moolenaar	  o keep a pointer to youngest child node, rather than just its
22673955d011SMarcel Moolenaar	    mtime.
22683955d011SMarcel Moolenaar
22693955d011SMarcel Moolenaar2010-11-02  Simon J. Gerraty  <sjg@bad.crufty.net>
22703955d011SMarcel Moolenaar
22713955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20101101
22723955d011SMarcel Moolenaar
22733955d011SMarcel Moolenaar2010-10-16  Simon J. Gerraty  <sjg@bad.crufty.net>
22743955d011SMarcel Moolenaar
22753955d011SMarcel Moolenaar	* machine.sh: like os.sh,
22763955d011SMarcel Moolenaar	allow for uname -p producing useless drivel
22773955d011SMarcel Moolenaar
22783955d011SMarcel Moolenaar2010-09-13  Simon J. Gerraty  <sjg@bad.crufty.net>
22793955d011SMarcel Moolenaar
22803955d011SMarcel Moolenaar	* boot-strap: document configure knobs for meta and filemon.
22813955d011SMarcel Moolenaar
22823955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100911
22833955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22843955d011SMarcel Moolenaar	  o meta.c - meta mode
22853955d011SMarcel Moolenaar
22863955d011SMarcel Moolenaar	* make-bootstrap.sh.in: handle meta.c
22873955d011SMarcel Moolenaar	* configure.in: add knobs for use_meta and filemon_h
22883955d011SMarcel Moolenaar	  also, look for dirname, str[e]sep and strlcpy
22893955d011SMarcel Moolenaar	* util.c: add simple err[x] and warn[x]
22903955d011SMarcel Moolenaar
22913955d011SMarcel Moolenaar2010-08-08  Simon J. Gerraty  <sjg@bad.crufty.net>
22923955d011SMarcel Moolenaar
22933955d011SMarcel Moolenaar	* boot-strap (TOOL_DIFF): set this to ensure tests use
22943955d011SMarcel Moolenaar	  the same version of diff that configure tested
22953955d011SMarcel Moolenaar
22963955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100808
22973955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
22983955d011SMarcel Moolenaar	  o in jobs mode, when we discover we cannot make something,
22993955d011SMarcel Moolenaar	    call PrintOnError before exit.
23003955d011SMarcel Moolenaar
23013955d011SMarcel Moolenaar2010-08-06  Simon J. Gerraty  <sjg@bad.crufty.net>
23023955d011SMarcel Moolenaar
23033955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100806
23043955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23053955d011SMarcel Moolenaar	  o formatting fixes for ignored errors
23063955d011SMarcel Moolenaar	  o ensure jobs are cleaned up regardless of where wait() was called.
23073955d011SMarcel Moolenaar
23083955d011SMarcel Moolenaar2010-06-28  Simon J. Gerraty  <sjg@bad.crufty.net>
23093955d011SMarcel Moolenaar
23103955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100618
23113955d011SMarcel Moolenaar	* os.sh (MACHINE_ARCH): watch out for drivel from uname -p
23123955d011SMarcel Moolenaar
23133955d011SMarcel Moolenaar2010-06-16  Simon J. Gerraty  <sjg@bad.crufty.net>
23143955d011SMarcel Moolenaar
23153955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100616
23163955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23173955d011SMarcel Moolenaar	  o man page update
23183955d011SMarcel Moolenaar	  o call PrintOnError from JobFinish when we detect an error we
23193955d011SMarcel Moolenaar	    are not ignoring.
23203955d011SMarcel Moolenaar
23213955d011SMarcel Moolenaar2010-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>
23223955d011SMarcel Moolenaar
23233955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100606
23243955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23253955d011SMarcel Moolenaar	  o man page update
23263955d011SMarcel Moolenaar
23273955d011SMarcel Moolenaar2010-06-05  Simon J. Gerraty  <sjg@bad.crufty.net>
23283955d011SMarcel Moolenaar
23293955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100605
23303955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23313955d011SMarcel Moolenaar	  o use bmake_signal() which is a wrapper around sigaction()
23323955d011SMarcel Moolenaar	    in place of signal()
23333955d011SMarcel Moolenaar	  o add .export-env to allow exporting variables to environment
23343955d011SMarcel Moolenaar	    without tracking (so no re-export when the internal value is
23353955d011SMarcel Moolenaar	    changed).
23363955d011SMarcel Moolenaar
23373955d011SMarcel Moolenaar2010-05-24  Simon J. Gerraty  <sjg@bad.crufty.net>
23383955d011SMarcel Moolenaar
23393955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100524
23403955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23413955d011SMarcel Moolenaar	  o fix for .info et al being greedy.
23423955d011SMarcel Moolenaar
23433955d011SMarcel Moolenaar2010-05-23  Simon J. Gerraty  <sjg@bad.crufty.net>
23443955d011SMarcel Moolenaar
23453955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100520
23463955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23473955d011SMarcel Moolenaar	  o back to using realpath on argv[0]
23483955d011SMarcel Moolenaar	    but only if contains '/' and does not start with '/'.
23493955d011SMarcel Moolenaar
23503955d011SMarcel Moolenaar2010-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>
23513955d011SMarcel Moolenaar
23523955d011SMarcel Moolenaar	* boot-strap: use absolute path for bmake when running tests.
23533955d011SMarcel Moolenaar
23543955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION):  bump version to 20100510
23553955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23563955d011SMarcel Moolenaar	  o revert use of realpath on argv[0]
23573955d011SMarcel Moolenaar	    too many corner cases.
23583955d011SMarcel Moolenaar	  o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target.
23593955d011SMarcel Moolenaar
23603955d011SMarcel Moolenaar2010-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>
23613955d011SMarcel Moolenaar
23623955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100505
23633955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23643955d011SMarcel Moolenaar	  o fix for missed SIGCHLD when compiled with SunPRO
23653955d011SMarcel Moolenaar	    actually for bmake, defining FORCE_POSIX_SIGNALS would have
23663955d011SMarcel Moolenaar	    done the job.
23673955d011SMarcel Moolenaar
23683955d011SMarcel Moolenaar2010-04-30  Simon J. Gerraty  <sjg@bad.crufty.net>
23693955d011SMarcel Moolenaar
23703955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100430
23713955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23723955d011SMarcel Moolenaar	  o fflush stdout before writing to stdout
23733955d011SMarcel Moolenaar
23743955d011SMarcel Moolenaar2010-04-23  Simon J. Gerraty  <sjg@bad.crufty.net>
23753955d011SMarcel Moolenaar
23763955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100423
23773955d011SMarcel Moolenaar	  Merge with NetBSD make, pick up
23783955d011SMarcel Moolenaar	  o updated unit tests for Haiku (this time for sure).
23793955d011SMarcel Moolenaar	* boot-strap: based on patch from joerg
23803955d011SMarcel Moolenaar	  honor --with-default-sys-path better.
23813955d011SMarcel Moolenaar	* boot-strap: remove mention of --with-prefix-sys-path
23823955d011SMarcel Moolenaar
23833955d011SMarcel Moolenaar2010-04-22  Simon J. Gerraty  <sjg@bad.crufty.net>
23843955d011SMarcel Moolenaar
23853955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100422
23863955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
23873955d011SMarcel Moolenaar	  o fix for vfork() on Darwin.
23883955d011SMarcel Moolenaar	  o fix for bogus $TMPDIR.
23893955d011SMarcel Moolenaar	  o set .MAKE.MODE=compat for -B
23903955d011SMarcel Moolenaar	  o set .MAKE.JOBS=max_jobs for -j max_jobs
23913955d011SMarcel Moolenaar	  o allow unit-tests to run without any *.mk
23923955d011SMarcel Moolenaar	  o unit-tests/modmisc be more conservative in dirs presumed to exist.
23933955d011SMarcel Moolenaar	* boot-strap: ignore /usr/share/mk except on NetBSD.
23943955d011SMarcel Moolenaar	* unit-tests/Makefile.in: set LANG=C when running unit-tests to
23953955d011SMarcel Moolenaar	  ensure sort(1) behaves as expected.
23963955d011SMarcel Moolenaar
23973955d011SMarcel Moolenaar2010-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>
23983955d011SMarcel Moolenaar
23993955d011SMarcel Moolenaar	* boot-strap: add FindHereOrAbove so we can use -m .../mk
24003955d011SMarcel Moolenaar
24013955d011SMarcel Moolenaar2010-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>
24023955d011SMarcel Moolenaar
24033955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100420
24043955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
24053955d011SMarcel Moolenaar	  o fix for variable realpath() behavior.
24063955d011SMarcel Moolenaar	    we have to stat(2) the result to be sure.
24073955d011SMarcel Moolenaar	  o fix for .export (all) when nested vars use :sh
24083955d011SMarcel Moolenaar
24093955d011SMarcel Moolenaar2010-04-14  Simon J. Gerraty  <sjg@bad.crufty.net>
24103955d011SMarcel Moolenaar
24113955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100414
24123955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
24133955d011SMarcel Moolenaar	  o use realpath to resolve argv[0] (for .MAKE) if needed.
24143955d011SMarcel Moolenaar	  o add realpath from libc.
24153955d011SMarcel Moolenaar	  o add :tA to resolve variable via realpath(3) if possible.
24163955d011SMarcel Moolenaar
24173955d011SMarcel Moolenaar2010-04-08  Simon J. Gerraty  <sjg@bad.crufty.net>
24183955d011SMarcel Moolenaar
24193955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100408
24203955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
24213955d011SMarcel Moolenaar	  o unit tests for .ERROR, .error
24223955d011SMarcel Moolenaar	  o fix for .ERROR to ensure it cannot be default target.
24233955d011SMarcel Moolenaar
24243955d011SMarcel Moolenaar2010-04-06  Simon J. Gerraty  <sjg@bad.crufty.net>
24253955d011SMarcel Moolenaar
24263955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100406
24273955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
24283955d011SMarcel Moolenaar	  o fix for compat mode "Error code" going to debug_file.
24293955d011SMarcel Moolenaar	  o fix for .ALLSRC being populated twice.
24303955d011SMarcel Moolenaar	  o support for .info, .warning and .error directives
24313955d011SMarcel Moolenaar	  o .MAKE.MODE to control make's operational mode
24323955d011SMarcel Moolenaar	  o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile
24333955d011SMarcel Moolenaar	    name(s).
24343955d011SMarcel Moolenaar	  o .MAKE.DEPENDFILE to control the name of the depend file
24353955d011SMarcel Moolenaar	  o .ERROR target - run on failure.
24363955d011SMarcel Moolenaar
24373955d011SMarcel Moolenaar2010-03-18  Simon J. Gerraty  <sjg@bad.crufty.net>
24383955d011SMarcel Moolenaar
24393955d011SMarcel Moolenaar	* make-bootstrap.sh.in: extract MAKE_VERSION from Makefile
24403955d011SMarcel Moolenaar
24413955d011SMarcel Moolenaar	* os.sh,arch.c: patch for Haiku from joerg at netbsd
24423955d011SMarcel Moolenaar
24433955d011SMarcel Moolenaar2010-03-17  Simon J. Gerraty  <sjg@bad.crufty.net>
24443955d011SMarcel Moolenaar
24453955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100222
24463955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up
24473955d011SMarcel Moolenaar	  o better error msg for .for with mutiple inter vars
24483955d011SMarcel Moolenaar
24493955d011SMarcel Moolenaar	* boot-strap:
24503955d011SMarcel Moolenaar	  o use make-bootstrap.sh from joerg at netbsd
24513955d011SMarcel Moolenaar	    to avoid the need for a native make when bootstrapping.
24523955d011SMarcel Moolenaar	  o add "" everywhere ;-)
24533955d011SMarcel Moolenaar	  o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1
24543955d011SMarcel Moolenaar	    otherwise the pre-formated version.
24553955d011SMarcel Moolenaar
24563955d011SMarcel Moolenaar2010-01-04  Simon J. Gerraty  <sjg@bad.crufty.net>
24573955d011SMarcel Moolenaar
24583955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20100102
24593955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
24603955d011SMarcel Moolenaar	  o fix for -m .../
24613955d011SMarcel Moolenaar
24623955d011SMarcel Moolenaar2009-11-18  Simon J. Gerraty  <sjg@void.crufty.net>
24633955d011SMarcel Moolenaar
24643955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20091118
24653955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
24663955d011SMarcel Moolenaar	  o .unexport
24673955d011SMarcel Moolenaar	  o report lines that start with '.' and should have ':'
24683955d011SMarcel Moolenaar	    (catch typo's of .el*if).
24693955d011SMarcel Moolenaar
24703955d011SMarcel Moolenaar2009-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
24713955d011SMarcel Moolenaar
24723955d011SMarcel Moolenaar	* configure.in: Ensure that srcdir and mksrc are absolute paths.
24733955d011SMarcel Moolenaar
24743955d011SMarcel Moolenaar2009-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
24753955d011SMarcel Moolenaar
24763955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): fix version to 20091007
24773955d011SMarcel Moolenaar
24783955d011SMarcel Moolenaar2009-10-07  Simon J. Gerraty  <sjg@void.crufty.net>
24793955d011SMarcel Moolenaar
24803955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 200910007
24813955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
24823955d011SMarcel Moolenaar	  o fix for parsing of :S;...;...; applied to .for loop iterator
24833955d011SMarcel Moolenaar	    appearing in a dependency line.
24843955d011SMarcel Moolenaar
24853955d011SMarcel Moolenaar2009-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
24863955d011SMarcel Moolenaar
24873955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090909
24883955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
24893955d011SMarcel Moolenaar	  o fix for -C, .CURDIR and .OBJDIR
24903955d011SMarcel Moolenaar	* boot-strap:
24913955d011SMarcel Moolenaar	  o allow share_dir to be set independent of prefix.
24923955d011SMarcel Moolenaar	  o select default share_dir better when prefix ends in $HOST_TARGET
24933955d011SMarcel Moolenaar	  o if FORCE_BSD_MK etc were set, include them in the suggested
24943955d011SMarcel Moolenaar	    install-mk command.
24953955d011SMarcel Moolenaar
24963955d011SMarcel Moolenaar2009-09-08  Simon J. Gerraty  <sjg@void.crufty.net>
24973955d011SMarcel Moolenaar
24983955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090908
24993955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
25003955d011SMarcel Moolenaar	  o .MAKE.LEVEL for recursion tracking
25013955d011SMarcel Moolenaar	  o fix for :M scanning \:
25023955d011SMarcel Moolenaar
25033955d011SMarcel Moolenaar2009-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
25043955d011SMarcel Moolenaar
25053955d011SMarcel Moolenaar	* configure.in: Don't -D__EXTENSIONS__ if
25063955d011SMarcel Moolenaar	AC_USE_SYSTEM_EXTENSIONS says "no".
25073955d011SMarcel Moolenaar
25083955d011SMarcel Moolenaar2009-08-26  Simon J. Gerraty  <sjg@void.crufty.net>
25093955d011SMarcel Moolenaar
25103955d011SMarcel Moolenaar	* Makefile.in (MAKE_VERSION): bump version to 20090826
25113955d011SMarcel Moolenaar	Simplify MAKE_VERSION to just the bare date.
25123955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
25133955d011SMarcel Moolenaar	  o -C directory support.
25143955d011SMarcel Moolenaar	  o support for SIGINFO
25153955d011SMarcel Moolenaar	  o use $TMPDIR for temp files.
25163955d011SMarcel Moolenaar	  o child of vfork should be careful about modifying parent's state.
25173955d011SMarcel Moolenaar
25183955d011SMarcel Moolenaar
25193955d011SMarcel Moolenaar2009-03-26  Simon J. Gerraty  <sjg@void.crufty.net>
25203955d011SMarcel Moolenaar
25213955d011SMarcel Moolenaar	* Appy some patches for MiNT from David Brownlee
25223955d011SMarcel Moolenaar
25233955d011SMarcel Moolenaar2009-02-26  Simon J. Gerraty  <sjg@void.crufty.net>
25243955d011SMarcel Moolenaar
25253955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20090222
25263955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
25273955d011SMarcel Moolenaar	  o Possible null pointer de-ref in Var_Set.
25283955d011SMarcel Moolenaar
25293955d011SMarcel Moolenaar2009-02-08  Simon J. Gerraty  <sjg@void.crufty.net>
25303955d011SMarcel Moolenaar
25313955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20090204
25323955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
25333955d011SMarcel Moolenaar	  o bmake_malloc et al moved to their own .c
25343955d011SMarcel Moolenaar	  o Count both () and {} when looking for the end of a :M pattern
25353955d011SMarcel Moolenaar	  o Change 'Buffer' so that it is the actual struct, not a pointer to it.
25363955d011SMarcel Moolenaar	  o strlist.c - functions for processing extendable arrays of pointers to strings.
25373955d011SMarcel Moolenaar	  o ClientData replaced with void *, so const void * can be used.
25383955d011SMarcel Moolenaar	  o New debug flag C for DEBUG_CWD
25393955d011SMarcel Moolenaar
25403955d011SMarcel Moolenaar2008-11-11  Simon J. Gerraty  <sjg@void.crufty.net>
25413955d011SMarcel Moolenaar
25423955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081111
25433955d011SMarcel Moolenaar	  Apply patch from Joerg Sonnenberge to
25443955d011SMarcel Moolenaar	  configure.in:
25453955d011SMarcel Moolenaar	  o remove some redundant checks
25463955d011SMarcel Moolenaar	  o check for emlloc etc only in libutil and require the whole family.
25473955d011SMarcel Moolenaar	  util.c:
25483955d011SMarcel Moolenaar	  o remove [v]asprintf which is no longer used.
25493955d011SMarcel Moolenaar
25503955d011SMarcel Moolenaar2008-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
25513955d011SMarcel Moolenaar
25523955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081101
25533955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
25543955d011SMarcel Moolenaar	  o util.c: avoid use of putenv() - christos
25553955d011SMarcel Moolenaar
25563955d011SMarcel Moolenaar2008-10-30  Simon J. Gerraty  <sjg@void.crufty.net>
25573955d011SMarcel Moolenaar
25583955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081030
25593955d011SMarcel Moolenaar	  pick up man page tweaks.
25603955d011SMarcel Moolenaar
25613955d011SMarcel Moolenaar2008-10-29  Simon J. Gerraty  <sjg@void.crufty.net>
25623955d011SMarcel Moolenaar
25633955d011SMarcel Moolenaar	* Makefile.in: move processing of LIBOBJS to after is definition!
25643955d011SMarcel Moolenaar	  thus we'll have getenv.c in SRCS only if needed.
25653955d011SMarcel Moolenaar
25663955d011SMarcel Moolenaar	* make.1: add examples of how to use :?
25673955d011SMarcel Moolenaar
25683955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20081029
25693955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
25703955d011SMarcel Moolenaar	  o fix for .END processing with -j
25713955d011SMarcel Moolenaar	  o segfault from Parse_Error when no makefile is open
25723955d011SMarcel Moolenaar	  o handle numeric expressions in any variable expansion
25733955d011SMarcel Moolenaar	  o debug output now defaults to stderr, -dF to change it - apb
25743955d011SMarcel Moolenaar	  o make now uses bmake_malloc etc so that it can build natively
25753955d011SMarcel Moolenaar	    on A/UX - wasn't an issue for bmake, but we want to keep in sync.
25763955d011SMarcel Moolenaar
25773955d011SMarcel Moolenaar2008-09-27  Simon J. Gerraty  <sjg@void.crufty.net>
25783955d011SMarcel Moolenaar
25793955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080808
25803955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
25813955d011SMarcel Moolenaar	  o fix for PR/38840: Pierre Pronchery: make crashes while parsing
25823955d011SMarcel Moolenaar	    long lines in Makefiles
25833955d011SMarcel Moolenaar	  o optimizations for VarQuote by joerg
25843955d011SMarcel Moolenaar	  o fix for PR/38756: dominik: make dumps core on invalid makefile
25853955d011SMarcel Moolenaar
25863955d011SMarcel Moolenaar2008-05-15  Simon J. Gerraty  <sjg@void.crufty.net>
25873955d011SMarcel Moolenaar
25883955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080515
25893955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
25903955d011SMarcel Moolenaar	  o fix skip setting vars in VAR_GLOBAL context, to handle
25913955d011SMarcel Moolenaar	    cases where VAR_CMD is used for other than command line vars.
25923955d011SMarcel Moolenaar
25933955d011SMarcel Moolenaar2008-05-14  Simon J. Gerraty  <sjg@void.crufty.net>
25943955d011SMarcel Moolenaar
25953955d011SMarcel Moolenaar	* boot-strap (make_version): we may need to look in
25963955d011SMarcel Moolenaar	$prefix/share/mk for sys.mk
25973955d011SMarcel Moolenaar
25983955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080514
25993955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26003955d011SMarcel Moolenaar	  o skip setting vars in VAR_GLOBAL context, when already set in
26013955d011SMarcel Moolenaar	  VAR_CMD which takes precedence.
26023955d011SMarcel Moolenaar
26033955d011SMarcel Moolenaar2008-03-30  Simon J. Gerraty  <sjg@void.crufty.net>
26043955d011SMarcel Moolenaar
26053955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump version to 20080330
26063955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26073955d011SMarcel Moolenaar	  o fix for ?= when LHS contains variable reference.
26083955d011SMarcel Moolenaar
26093955d011SMarcel Moolenaar2008-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
26103955d011SMarcel Moolenaar
26113955d011SMarcel Moolenaar	* merge some patches from NetBSD pkgsrc.
26123955d011SMarcel Moolenaar
26133955d011SMarcel Moolenaar	* makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
26143955d011SMarcel Moolenaar	the MAKSYSPATH used during bootstrap.
26153955d011SMarcel Moolenaar
26163955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080215
26173955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26183955d011SMarcel Moolenaar	  o warn if non-space chars follow 'empty' in a conditional.
26193955d011SMarcel Moolenaar
26203955d011SMarcel Moolenaar2008-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
26213955d011SMarcel Moolenaar
26223955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20080118
26233955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26243955d011SMarcel Moolenaar	  o consider dependencies read from .depend as optional - dsl
26253955d011SMarcel Moolenaar	  o remember when buffer for reading makefile grows - dsl
26263955d011SMarcel Moolenaar	  o add -dl (aka LOUD) - David O'Brien
26273955d011SMarcel Moolenaar
26283955d011SMarcel Moolenaar2007-10-22  Simon J. Gerraty  <sjg@void.crufty.net>
26293955d011SMarcel Moolenaar
26303955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071022
26313955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26323955d011SMarcel Moolenaar	  o Allow .PATH<suffix> to be used for .include ""
26333955d011SMarcel Moolenaar
26343955d011SMarcel Moolenaar	* boot-strap: source default settings from .bmake-boot-strap.rc
26353955d011SMarcel Moolenaar
26363955d011SMarcel Moolenaar2007-10-16  Simon J. Gerraty  <sjg@void.crufty.net>
26373955d011SMarcel Moolenaar
26383955d011SMarcel Moolenaar	* Makefile.in: fix maninstall on various systems
26393955d011SMarcel Moolenaar	  provided that our man.mk is used.
26403955d011SMarcel Moolenaar	  For non-BSD systems we install the preformatted page
26413955d011SMarcel Moolenaar	  into $MANDIR/cat1
26423955d011SMarcel Moolenaar
26433955d011SMarcel Moolenaar2007-10-15  Simon J. Gerraty  <sjg@void.crufty.net>
26443955d011SMarcel Moolenaar
26453955d011SMarcel Moolenaar	* boot-strap: make bmake.1 too, so maninstall works.
26463955d011SMarcel Moolenaar
26473955d011SMarcel Moolenaar2007-10-14  Simon J. Gerraty  <sjg@void.crufty.net>
26483955d011SMarcel Moolenaar
26493955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071014
26503955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26513955d011SMarcel Moolenaar	  o revamped handling of defshell - configure no longer needs to
26523955d011SMarcel Moolenaar	    know the content of the shells array - apb
26533955d011SMarcel Moolenaar	  o stop Var_Subst modifying its input - apb
26543955d011SMarcel Moolenaar	  o avoid calling ParseTrackInput too often - dsl
26553955d011SMarcel Moolenaar
26563955d011SMarcel Moolenaar2007-10-11  Simon J. Gerraty  <sjg@void.crufty.net>
26573955d011SMarcel Moolenaar
26583955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20071011
26593955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26603955d011SMarcel Moolenaar	  o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.
26613955d011SMarcel Moolenaar
26623955d011SMarcel Moolenaar	* sigcompat.c: some tweaks for HP-UX 11.x based on
26633955d011SMarcel Moolenaar	  patch from Tobias Nygren
26643955d011SMarcel Moolenaar
26653955d011SMarcel Moolenaar	* configure.in: update handling of --with-defshell to match
26663955d011SMarcel Moolenaar	  new make behavior.  --with-defshell=/usr/xpg4/bin/sh
26673955d011SMarcel Moolenaar	  will now do what one might hope - provided the chosen shell
26683955d011SMarcel Moolenaar	  behaves enough like sh.
26693955d011SMarcel Moolenaar
26703955d011SMarcel Moolenaar2007-10-08  Simon J. Gerraty  <sjg@void.crufty.net>
26713955d011SMarcel Moolenaar
26723955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20071008
26733955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26743955d011SMarcel Moolenaar	  o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
26753955d011SMarcel Moolenaar	  o .export/.MAKE.EXPORTED - export of variables - sjg
26763955d011SMarcel Moolenaar	  o .MAKE.MAKEFILES - track all makefiles read - sjg
26773955d011SMarcel Moolenaar	  o performance improvements - dsl
26783955d011SMarcel Moolenaar	  o revamp parallel job scheduling - dsl
26793955d011SMarcel Moolenaar
26803955d011SMarcel Moolenaar2006-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
26813955d011SMarcel Moolenaar
26823955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060728
26833955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26843955d011SMarcel Moolenaar	  o extra debug info during variable and cond processing - sjg
26853955d011SMarcel Moolenaar	  o shell definition now covers newline - rillig
26863955d011SMarcel Moolenaar	  o minor mem leak in PrintOnError - sjg
26873955d011SMarcel Moolenaar
26883955d011SMarcel Moolenaar2006-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
26893955d011SMarcel Moolenaar
26903955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump to 20060511
26913955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
26923955d011SMarcel Moolenaar	  o more memory leaks - coverity
26933955d011SMarcel Moolenaar	  o possible overflow in ArchFindMember - coverity
26943955d011SMarcel Moolenaar	  o extract variable modifier code out of Var_Parse()
26953955d011SMarcel Moolenaar	    so it can be called recursively - sjg
26963955d011SMarcel Moolenaar	  o unit-tests/moderrs - sjg
26973955d011SMarcel Moolenaar
26983955d011SMarcel Moolenaar2006-04-12  Simon J. Gerraty  <sjg@void.crufty.net>
26993955d011SMarcel Moolenaar
27003955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060412
27013955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
27023955d011SMarcel Moolenaar	  o fixes for some memory leaks - coverity
27033955d011SMarcel Moolenaar	  o only read first sys.mk etc when searching sysIncPath - sjg
27043955d011SMarcel Moolenaar
27053955d011SMarcel Moolenaar	* main.c (ReadMakefile): remove hack for __INTERIX that prevented
27063955d011SMarcel Moolenaar	setting ${MAKEFILE} - OBATA Akio
27073955d011SMarcel Moolenaar
27083955d011SMarcel Moolenaar2006-03-18  Simon J. Gerraty  <sjg@void.crufty.net>
27093955d011SMarcel Moolenaar
27103955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060318
27113955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
27123955d011SMarcel Moolenaar	  o cleanup of job.c to remove remote handling, distcc is more
27133955d011SMarcel Moolenaar	    useful and this code was likely bit-rotting - dsl
27143955d011SMarcel Moolenaar	  o fix for :P modifier - sjg
27153955d011SMarcel Moolenaar	* boot-strap: set default prefix to something reasonable
27163955d011SMarcel Moolenaar	  (for me anyway).
27173955d011SMarcel Moolenaar
27183955d011SMarcel Moolenaar2006-03-01  Simon J. Gerraty  <sjg@void.crufty.net>
27193955d011SMarcel Moolenaar
27203955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060301
27213955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
27223955d011SMarcel Moolenaar	  o make .WAIT apply recursively, document and test case - apb
27233955d011SMarcel Moolenaar	  o allow variable modifiers in a variable appear anywhere in
27243955d011SMarcel Moolenaar	    modifier list, document and test case - sjg
27253955d011SMarcel Moolenaar
27263955d011SMarcel Moolenaar2006-02-22  Simon J. Gerraty  <sjg@void.crufty.net>
27273955d011SMarcel Moolenaar
27283955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20060222
27293955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
27303955d011SMarcel Moolenaar	  o improved job token handling - dsl
27313955d011SMarcel Moolenaar	  o SIG_DFL the correct signal before exec - dsl
27323955d011SMarcel Moolenaar	  o more debug info during parsing - dsl
27333955d011SMarcel Moolenaar	  o allow variable modifiers to be specified via variable - sjg
27343955d011SMarcel Moolenaar	* boot-strap: explain why we died if no mksrc
27353955d011SMarcel Moolenaar
27363955d011SMarcel Moolenaar2005-11-05  Simon J. Gerraty  <sjg@void.crufty.net>
27373955d011SMarcel Moolenaar
27383955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051105
27393955d011SMarcel Moolenaar	* configure.in: always set default_sys_path
27403955d011SMarcel Moolenaar	  default is ${prefix}/share/mk
27413955d011SMarcel Moolenaar	  - remove prefix_sys_path, anyone wanting more than above
27423955d011SMarcel Moolenaar	    needs to set it manually.
27433955d011SMarcel Moolenaar
27443955d011SMarcel Moolenaar2005-11-04  Simon J. Gerraty  <sjg@void.crufty.net>
27453955d011SMarcel Moolenaar
27463955d011SMarcel Moolenaar	* boot-strap: make this a bit easier for pkgsrc folk.
27473955d011SMarcel Moolenaar	  bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
27483955d011SMarcel Moolenaar	  'mips' while pkgsrc wants 'mipseb' or 'mipsel'
27493955d011SMarcel Moolenaar
27503955d011SMarcel Moolenaar2005-11-02  Simon J. Gerraty  <sjg@void.crufty.net>
27513955d011SMarcel Moolenaar
27523955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051102
27533955d011SMarcel Moolenaar	* job.c (JobFinish): fix likely ancient merge lossage
27543955d011SMarcel Moolenaar	fix from Todd Vierling.
27553955d011SMarcel Moolenaar	* boot-strap (srcdir): allow setting mksrc=none
27563955d011SMarcel Moolenaar
27573955d011SMarcel Moolenaar2005-10-31  Simon J. Gerraty  <sjg@void.crufty.net>
27583955d011SMarcel Moolenaar
27593955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051031
27603955d011SMarcel Moolenaar	* ranlib.h: skip on OSF too.
27613955d011SMarcel Moolenaar	  (NetBSD PR 31864)
27623955d011SMarcel Moolenaar
27633955d011SMarcel Moolenaar2005-10-10  Simon J. Gerraty  <sjg@void.crufty.net>
27643955d011SMarcel Moolenaar
27653955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051002
27663955d011SMarcel Moolenaar	  fix a silly typo
27673955d011SMarcel Moolenaar
27683955d011SMarcel Moolenaar2005-10-09  Simon J. Gerraty  <sjg@void.crufty.net>
27693955d011SMarcel Moolenaar
27703955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20051001
27713955d011SMarcel Moolenaar	  support for UnixWare and some other systems,
27723955d011SMarcel Moolenaar	  based on patches from pkgsrc/bootstrap
27733955d011SMarcel Moolenaar
27743955d011SMarcel Moolenaar2005-09-03  Simon J. Gerraty  <sjg@void.crufty.net>
27753955d011SMarcel Moolenaar
27763955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050901
27773955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
27783955d011SMarcel Moolenaar	  o possible parse error causing us to wander off.
27793955d011SMarcel Moolenaar
27803955d011SMarcel Moolenaar2005-06-06  Simon J. Gerraty  <sjg@void.crufty.net>
27813955d011SMarcel Moolenaar
27823955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050606
27833955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
27843955d011SMarcel Moolenaar	  o :0x modifier for randomizing a list
27853955d011SMarcel Moolenaar	  o fixes for a number of -Wuninitialized issues.
27863955d011SMarcel Moolenaar
27873955d011SMarcel Moolenaar2005-05-30  Simon J. Gerraty  <sjg@void.crufty.net>
27883955d011SMarcel Moolenaar
27893955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050530
27903955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
27913955d011SMarcel Moolenaar	  o Handle dependencies for .BEGIN, .END and .INTERRUPT
27923955d011SMarcel Moolenaar
27933955d011SMarcel Moolenaar	* README: was seriously out of date.
27943955d011SMarcel Moolenaar
27953955d011SMarcel Moolenaar2005-03-22  Simon J. Gerraty  <sjg@void.crufty.net>
27963955d011SMarcel Moolenaar
27973955d011SMarcel Moolenaar	* Important to use .MAKE rather than MAKE.
27983955d011SMarcel Moolenaar
27993955d011SMarcel Moolenaar2005-03-15  Simon J. Gerraty  <sjg@void.crufty.net>
28003955d011SMarcel Moolenaar
28013955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20050315
28023955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
28033955d011SMarcel Moolenaar	  o don't mistake .elsefoo for .else
28043955d011SMarcel Moolenaar	  o use suffix-specific search path correctly
28053955d011SMarcel Moolenaar	  o bunch of style nits
28063955d011SMarcel Moolenaar
28073955d011SMarcel Moolenaar2004-05-11  Simon J. Gerraty  <sjg@void.crufty.net>
28083955d011SMarcel Moolenaar
28093955d011SMarcel Moolenaar	* boot-strap:
28103955d011SMarcel Moolenaar	o ensure that args to --src and --with-mksrc
28113955d011SMarcel Moolenaar	  are resolved before giving them to configure.
28123955d011SMarcel Moolenaar	o add -o "objdir" so that builder can control it,
28133955d011SMarcel Moolenaar	  default is $OS as determined by os.sh
28143955d011SMarcel Moolenaar	o add -q to suppress all the install instructions.
28153955d011SMarcel Moolenaar
28163955d011SMarcel Moolenaar2004-05-08  Simon J. Gerraty  <sjg@void.crufty.net>
28173955d011SMarcel Moolenaar
28183955d011SMarcel Moolenaar	* Remove __IDSTRING()
28193955d011SMarcel Moolenaar
28203955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040508
28213955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
28223955d011SMarcel Moolenaar	  o posix fixes
28233955d011SMarcel Moolenaar	    - remove '-e' from compat mode
28243955d011SMarcel Moolenaar	    - add support for '+' command-line prefix.
28253955d011SMarcel Moolenaar	  o fix for handling '--' on command-line.
28263955d011SMarcel Moolenaar	  o fix include in lst.lib/lstInt.h to simplify '-I's
28273955d011SMarcel Moolenaar	  o we also picked up replacement of MAKE_BOOTSTRAP
28283955d011SMarcel Moolenaar	    with !MAKE_NATIVE which is a noop, but possibly confusing.
28293955d011SMarcel Moolenaar
28303955d011SMarcel Moolenaar2004-04-14  Simon J. Gerraty  <sjg@void.crufty.net>
28313955d011SMarcel Moolenaar
28323955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040414
28333955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
28343955d011SMarcel Moolenaar	  o allow quoted strings on lhs of conditionals
28353955d011SMarcel Moolenaar	  o issue warning when extra .else is seen
28363955d011SMarcel Moolenaar	  o print line numer when errors encountered during parsing from
28373955d011SMarcel Moolenaar	  string.
28383955d011SMarcel Moolenaar
28393955d011SMarcel Moolenaar2004-02-20  Simon J. Gerraty  <sjg@void.crufty.net>
28403955d011SMarcel Moolenaar
28413955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION):  bump to 20040220
28423955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
28433955d011SMarcel Moolenaar	  o fix for old :M parsing bug.
28443955d011SMarcel Moolenaar	  o re-jigged unit-tests
28453955d011SMarcel Moolenaar
28463955d011SMarcel Moolenaar2004-02-15  Simon J. Gerraty  <sjg@void.crufty.net>
28473955d011SMarcel Moolenaar
28483955d011SMarcel Moolenaar	* Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,}
28493955d011SMarcel Moolenaar	so that './bmake -f Makefile test' works.
28503955d011SMarcel Moolenaar
28513955d011SMarcel Moolenaar2004-02-14  Simon J. Gerraty  <sjg@void.crufty.net>
28523955d011SMarcel Moolenaar
28533955d011SMarcel Moolenaar	* Makefile.in: (BMAKE_VERSION): bump to 20040214
28543955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
28553955d011SMarcel Moolenaar	  o search upwards for *.mk
28563955d011SMarcel Moolenaar	  o fix for double free of var substitution buffers
28573955d011SMarcel Moolenaar	  o use of getopt replaced with custom code, since the usage
28583955d011SMarcel Moolenaar	  (re-scanning) isn't posix compatible.
28593955d011SMarcel Moolenaar
28603955d011SMarcel Moolenaar2004-02-12  Simon J. Gerraty  <sjg@void.crufty.net>
28613955d011SMarcel Moolenaar
28623955d011SMarcel Moolenaar	* arch.c: don't include ranlib.h on ELF systems
28633955d011SMarcel Moolenaar	(thanks to Chuck Cranor <chuck@ece.cmu.edu>).
28643955d011SMarcel Moolenaar
28653955d011SMarcel Moolenaar2004-01-18  Simon J. Gerraty  <sjg@void.crufty.net>
28663955d011SMarcel Moolenaar
28673955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump to 20040118
28683955d011SMarcel Moolenaar
28693955d011SMarcel Moolenaar	* boot-strap (while): export vars we assign to on cmdline
28703955d011SMarcel Moolenaar	* unit-test/Makefile.in: ternary is .PHONY
28713955d011SMarcel Moolenaar
28723955d011SMarcel Moolenaar2004-01-08  Simon J. Gerraty  <sjg@void.crufty.net>
28733955d011SMarcel Moolenaar
28743955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20040108
28753955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
28763955d011SMarcel Moolenaar	  o fix for ternary modifier
28773955d011SMarcel Moolenaar
28783955d011SMarcel Moolenaar2004-01-06  Simon J. Gerraty  <sjg@void.crufty.net>
28793955d011SMarcel Moolenaar
28803955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20040105
28813955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
28823955d011SMarcel Moolenaar	  o fix for cond.c to handle compound expressions better
28833955d011SMarcel Moolenaar	  o variable expansion within sysV style replacements
28843955d011SMarcel Moolenaar
28853955d011SMarcel Moolenaar2003-12-22  Simon J. Gerraty  <sjg@void.crufty.net>
28863955d011SMarcel Moolenaar
28873955d011SMarcel Moolenaar	* Make portable snprintf safer - output to /dev/null first to
28883955d011SMarcel Moolenaar	check space needed.
28893955d011SMarcel Moolenaar
28903955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20031222
28913955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
28923955d011SMarcel Moolenaar	  o -dg3 to show input graph when things go wrong.
28933955d011SMarcel Moolenaar	  o explicitly look for makefiles in objdir if not found in curdir so
28943955d011SMarcel Moolenaar	    that errors in .depend etc will be reported accurarely.
28953955d011SMarcel Moolenaar	  o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
28963955d011SMarcel Moolenaar	    instead as it more accurately reflects the expected behavior and
28973955d011SMarcel Moolenaar	    is more consistently implemented.
28983955d011SMarcel Moolenaar	  o avoid use of asprintf.
28993955d011SMarcel Moolenaar
29003955d011SMarcel Moolenaar2003-09-28  Simon J. Gerraty  <sjg@void.crufty.net>
29013955d011SMarcel Moolenaar
29023955d011SMarcel Moolenaar	* util.c: Add asprintf and vasprintf.
29033955d011SMarcel Moolenaar
29043955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030928
29053955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
29063955d011SMarcel Moolenaar	:[] modifier - allows picking words from a variable.
29073955d011SMarcel Moolenaar	:tW modifier - allows treating value as one big word.
29083955d011SMarcel Moolenaar	W flag for :C and :S - allows treating value as one big word.
29093955d011SMarcel Moolenaar
29103955d011SMarcel Moolenaar2003-09-12  Simon J. Gerraty  <sjg@void.crufty.net>
29113955d011SMarcel Moolenaar
29123955d011SMarcel Moolenaar	* Merge with NetBSD make
29133955d011SMarcel Moolenaar	pick up -de flag to enable printing failed command.
29143955d011SMarcel Moolenaar	don't skip 1st two dir entries (normally . and ..) since
29153955d011SMarcel Moolenaar	coda does not have them.
29163955d011SMarcel Moolenaar
29173955d011SMarcel Moolenaar2003-09-09  Simon J. Gerraty  <sjg@void.crufty.net>
29183955d011SMarcel Moolenaar
29193955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030909
29203955d011SMarcel Moolenaar	* Merge with NetBSD make, pick up:
29213955d011SMarcel Moolenaar	- changes for -V '${VAR}' to print fully expanded value
29223955d011SMarcel Moolenaar	  cf. -V VAR
29233955d011SMarcel Moolenaar	- CompatRunCommand now prints the command that failed.
29243955d011SMarcel Moolenaar	- several files got updated 3 clause Berkeley license.
29253955d011SMarcel Moolenaar
29263955d011SMarcel Moolenaar2003-08-02  Simon J. Gerraty  <sjg@void.crufty.net>
29273955d011SMarcel Moolenaar
29283955d011SMarcel Moolenaar	* boot-strap: Allow setting configure args on command line.
29293955d011SMarcel Moolenaar
29303955d011SMarcel Moolenaar2003-07-31  Simon J. Gerraty  <sjg@void.crufty.net>
29313955d011SMarcel Moolenaar
29323955d011SMarcel Moolenaar	* configure.in: add --with-defshell to allow sh or ksh
29333955d011SMarcel Moolenaar	to be selected as default shell.
29343955d011SMarcel Moolenaar
29353955d011SMarcel Moolenaar	* Makefile.in: bump version to 20030731
29363955d011SMarcel Moolenaar
29373955d011SMarcel Moolenaar	* Merge with NetBSD make
29383955d011SMarcel Moolenaar	Pick up .SHELL spec for ksh and associate man page changes.
29393955d011SMarcel Moolenaar	Also compat mode now uses the same shell specs.
29403955d011SMarcel Moolenaar
29413955d011SMarcel Moolenaar2003-07-29  Simon J. Gerraty  <sjg@void.crufty.net>
29423955d011SMarcel Moolenaar
29433955d011SMarcel Moolenaar	* var.c (Var_Parse): ensure delim is initialized.
29443955d011SMarcel Moolenaar
29453955d011SMarcel Moolenaar	* unit-tests/Makefile.in: use single quotes to avoid problems from
29463955d011SMarcel Moolenaar	some shells.
29473955d011SMarcel Moolenaar
29483955d011SMarcel Moolenaar	* makefile.boot.in:
29493955d011SMarcel Moolenaar	Run the unit-tests as part of the bootstrap procedure.
29503955d011SMarcel Moolenaar
29513955d011SMarcel Moolenaar2003-07-28  Simon J. Gerraty  <sjg@void.crufty.net>
29523955d011SMarcel Moolenaar
29533955d011SMarcel Moolenaar	* unit-tests/Makefile.in: always force complaints from
29543955d011SMarcel Moolenaar	${TEST_MAKE} to be from 'make'.
29553955d011SMarcel Moolenaar
29563955d011SMarcel Moolenaar	* configure.in: add check for 'diff -u'
29573955d011SMarcel Moolenaar	also fix some old autoconf'isms
29583955d011SMarcel Moolenaar
29593955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030728.
29603955d011SMarcel Moolenaar	if using GCC add -Wno-cast-qual to CFLAGS for var.o
29613955d011SMarcel Moolenaar
29623955d011SMarcel Moolenaar	* Merge with NetBSD make
29633955d011SMarcel Moolenaar	Pick up fix for :ts parsing error in some cases.
29643955d011SMarcel Moolenaar	Pick unit-tests.
29653955d011SMarcel Moolenaar
29663955d011SMarcel Moolenaar2003-07-23  Simon J. Gerraty  <sjg@void.crufty.net>
29673955d011SMarcel Moolenaar
29683955d011SMarcel Moolenaar	* Makefile.in (BMAKE_VERSION): bump version to 20030723.
29693955d011SMarcel Moolenaar
29703955d011SMarcel Moolenaar	* var.c (Var_Parse): fix bug in :ts modifier, after const
29713955d011SMarcel Moolenaar	correctness fixes, must pass nstr to VarModify.
29723955d011SMarcel Moolenaar
29733955d011SMarcel Moolenaar2003-07-14  Simon J. Gerraty  <sjg@void.crufty.net>
29743955d011SMarcel Moolenaar
29753955d011SMarcel Moolenaar	* Makefile.in: BMAKE_VERSION switch to a date based version.
29763955d011SMarcel Moolenaar	We'll generally use the date of last import from NetBSD.
29773955d011SMarcel Moolenaar
29783955d011SMarcel Moolenaar	* Merge with NetBSD make
29793955d011SMarcel Moolenaar	Pick up fixes for const-correctness, now passes WARNS=3 on
29803955d011SMarcel Moolenaar	NetBSD.
29813955d011SMarcel Moolenaar	Pick up :ts modifier, allows controlling the separator used
29823955d011SMarcel Moolenaar	between words in variable expansion.
29833955d011SMarcel Moolenaar
29843955d011SMarcel Moolenaar2003-07-11  Simon J. Gerraty  <sjg@void.crufty.net>
29853955d011SMarcel Moolenaar
29863955d011SMarcel Moolenaar	* FILES: include boot-strap and os.sh
29873955d011SMarcel Moolenaar
29883955d011SMarcel Moolenaar	* Makefile.in: only set WARNS if we are NetBSD, the effect on
29893955d011SMarcel Moolenaar	FreeBSD is known to be bad.
29903955d011SMarcel Moolenaar
29913955d011SMarcel Moolenaar	* makefile.boot.in (bootstrap): make this the default target.
29923955d011SMarcel Moolenaar
29933955d011SMarcel Moolenaar	* Makefile.in: bump version to 3.1.19
29943955d011SMarcel Moolenaar
29953955d011SMarcel Moolenaar	* machine.sh: avoid A-Z with tr as it is bound to lose.
29963955d011SMarcel Moolenaar
29973955d011SMarcel Moolenaar2003-07-10  Simon J. Gerraty  <sjg@void.crufty.net>
29983955d011SMarcel Moolenaar
29993955d011SMarcel Moolenaar	* Merge with NetBSD make
30003955d011SMarcel Moolenaar	Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
30013955d011SMarcel Moolenaar	Plus some doc fixes.
30023955d011SMarcel Moolenaar
30033955d011SMarcel Moolenaar2003-04-27  Simon J. Gerraty  <sjg@void.crufty.net>
30043955d011SMarcel Moolenaar
30053955d011SMarcel Moolenaar	* Merge with NetBSD make
30063955d011SMarcel Moolenaar	Pick up fix for PR/1523 - don't count a library as built, if there
30073955d011SMarcel Moolenaar	is no way to build it
30083955d011SMarcel Moolenaar
30093955d011SMarcel Moolenaar	* Bump version to 3.1.18
30103955d011SMarcel Moolenaar
30113955d011SMarcel Moolenaar2003-03-23  Simon J. Gerraty  <sjg@void.crufty.net>
30123955d011SMarcel Moolenaar
30133955d011SMarcel Moolenaar	* Merge with NetBSD make
30143955d011SMarcel Moolenaar	Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT
30153955d011SMarcel Moolenaar	appears in src list.
30163955d011SMarcel Moolenaar
30173955d011SMarcel Moolenaar2003-03-21  Simon J. Gerraty  <sjg@void.crufty.net>
30183955d011SMarcel Moolenaar
30193955d011SMarcel Moolenaar	* Merge with NetBSD make (mmm 10th anniversary!)
30203955d011SMarcel Moolenaar	pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828)
30213955d011SMarcel Moolenaar	pick up -X which tells us to not export VAR=val via setenv if
30223955d011SMarcel Moolenaar	we are already doing so via MAKEFLAGS.  This saves valuable env
30233955d011SMarcel Moolenaar	space on systems like Darwin.
30243955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.17
30253955d011SMarcel Moolenaar
30263955d011SMarcel Moolenaar	* parse.c: pix up fix for suffix rules
30273955d011SMarcel Moolenaar
30283955d011SMarcel Moolenaar2003-03-06  Simon J. Gerraty  <sjg@void.crufty.net>
30293955d011SMarcel Moolenaar
30303955d011SMarcel Moolenaar	* Merge with NetBSD make.
30313955d011SMarcel Moolenaar	pick up fix for propagating -B via MAKEFLAGS.
30323955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.16
30333955d011SMarcel Moolenaar
30343955d011SMarcel Moolenaar	* Apply some patches from pkgsrc-bootstrap/bmake
30353955d011SMarcel Moolenaar	Originally by Grant Beattie <grant@netbsd.org>
30363955d011SMarcel Moolenaar	I may have missed some - since they are based on bmake-3.1.12
30373955d011SMarcel Moolenaar
30383955d011SMarcel Moolenaar2002-12-03  Simon J. Gerraty  <sjg@void.crufty.net>
30393955d011SMarcel Moolenaar
30403955d011SMarcel Moolenaar	* makefile.boot.in (bmake): update install targets for those that
30413955d011SMarcel Moolenaar	use them, also clear MAKEFLAGS when invoking bmake.boot to avoid
30423955d011SMarcel Moolenaar	havoc from gmake -w.  Thanks to Harlan Stenn <hstenn@cisco.com>.
30433955d011SMarcel Moolenaar
30443955d011SMarcel Moolenaar	* bmake.cat1: update the pre-formatted man page!
30453955d011SMarcel Moolenaar
30463955d011SMarcel Moolenaar2002-11-30  Simon J. Gerraty  <sjg@void.crufty.net>
30473955d011SMarcel Moolenaar
30483955d011SMarcel Moolenaar	* Merge with NetBSD make.
30493955d011SMarcel Moolenaar	pick up fix for premature free of pointer used in call
30503955d011SMarcel Moolenaar	to Dir_InitCur().
30513955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.15
30523955d011SMarcel Moolenaar
30533955d011SMarcel Moolenaar2002-11-26  Simon J. Gerraty  <sjg@void.crufty.net>
30543955d011SMarcel Moolenaar
30553955d011SMarcel Moolenaar	* configure.in: determine suitable value for MKSRC.
30563955d011SMarcel Moolenaar	override using --with-mksrc=PATH.
30573955d011SMarcel Moolenaar
30583955d011SMarcel Moolenaar	* machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems.
30593955d011SMarcel Moolenaar	configs(8) will use 'sun4' as an alias for 'sparc'.
30603955d011SMarcel Moolenaar
30613955d011SMarcel Moolenaar2002-11-25  Simon J. Gerraty  <sjg@void.crufty.net>
30623955d011SMarcel Moolenaar
30633955d011SMarcel Moolenaar	* Merge with NetBSD make.
30643955d011SMarcel Moolenaar	pick up ${.PATH}
30653955d011SMarcel Moolenaar	pick up fix for finding ../cat.c via .PATH when .CURDIR=..
30663955d011SMarcel Moolenaar	set MAKE_VERSION to 3.1.14
30673955d011SMarcel Moolenaar	add configure checks for killpg and sys/socket.h
30683955d011SMarcel Moolenaar
30693955d011SMarcel Moolenaar2002-09-16  Simon J. Gerraty  <sjg@void.crufty.net>
30703955d011SMarcel Moolenaar
30713955d011SMarcel Moolenaar	* tag bmake-3-1-13
30723955d011SMarcel Moolenaar
30733955d011SMarcel Moolenaar	* makefile.boot.in (bmake): use install-mk
30743955d011SMarcel Moolenaar	Also setup ./mk before trying to invoke bmake.boot incase we
30753955d011SMarcel Moolenaar	needed install-mk to create a sys.mk for us.
30763955d011SMarcel Moolenaar
30773955d011SMarcel Moolenaar	* configure.in: If we need to add -I${srcdir}/missing, make it an
30783955d011SMarcel Moolenaar	absolute path so that it works for lst.lib too.
30793955d011SMarcel Moolenaar
30803955d011SMarcel Moolenaar	* make.h: always include sys/cdefs.h since we provide one if the
30813955d011SMarcel Moolenaar	host does not.
30823955d011SMarcel Moolenaar
30833955d011SMarcel Moolenaar	* Makefile.in (install-mk):
30843955d011SMarcel Moolenaar	use MKSRC/install-mk which will do the right thing.
30853955d011SMarcel Moolenaar	use uname -p for ARCH if possible.
30863955d011SMarcel Moolenaar	since install-mk will setup links bsd.prog.mk -> prog.mk if
30873955d011SMarcel Moolenaar	needed, just .include bsd.prog.mk
30883955d011SMarcel Moolenaar
30893955d011SMarcel Moolenaar	* Merge with NetBSD make (NetBSD-1.6)
30903955d011SMarcel Moolenaar	Code is ansi-C only now.
30913955d011SMarcel Moolenaar	Bug in handling of dotLast is fixed.
30923955d011SMarcel Moolenaar	Can now assign .OBJDIR and make will reset its notions of life.
30933955d011SMarcel Moolenaar	New modifiers :tu :tl for toUpper and toLower.
30943955d011SMarcel Moolenaar
30953955d011SMarcel MoolenaarTue Oct 16 12:18:42 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
30963955d011SMarcel Moolenaar
30973955d011SMarcel Moolenaar	* Merge with NetBSD make
30983955d011SMarcel Moolenaar	pick up fix for .END failure in compat mode.
30993955d011SMarcel Moolenaar	pick up fix for extra va_end() in ParseVErrorInternal.
31003955d011SMarcel Moolenaar
31013955d011SMarcel MoolenaarThu Oct 11 13:20:06 2001  Simon J. Gerraty  <sjg@zen.crufty.net>
31023955d011SMarcel Moolenaar
31033955d011SMarcel Moolenaar	* configure.in: for systems that have sys/cdefs.h check if it is
31043955d011SMarcel Moolenaar	compatible.  If not, include the one under missing, but tell it to
31053955d011SMarcel Moolenaar	include the native one too - necessary on Linux.
31063955d011SMarcel Moolenaar
31073955d011SMarcel Moolenaar	* missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use
31083955d011SMarcel Moolenaar	include_next (for gcc) to get the native sys/cdefs.h
31093955d011SMarcel Moolenaar
31103955d011SMarcel MoolenaarTue Aug 21 02:29:34 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
31113955d011SMarcel Moolenaar
31123955d011SMarcel Moolenaar	* job.c (JobFinish): Fix an earlier merge bug that resulted in
31133955d011SMarcel Moolenaar	leaking descriptors when using -jN.
31143955d011SMarcel Moolenaar
31153955d011SMarcel Moolenaar	* job.c (JobPrintCommand): See if "curdir" exists before
31163955d011SMarcel Moolenaar	attempting to chdir().  Doing the chdir directly in make (when in
31173955d011SMarcel Moolenaar	compat mode) fails silently, so let the -jN version do the same.
31183955d011SMarcel Moolenaar	This can happen when building kernels in an object tree and
31193955d011SMarcel Moolenaar	playing clever games to reset .CURDIR.
31203955d011SMarcel Moolenaar
31213955d011SMarcel Moolenaar	* Merged with NetBSD make
31223955d011SMarcel Moolenaar	pick up .USEBEFORE
31233955d011SMarcel Moolenaar
31243955d011SMarcel MoolenaarTue Jun 26 23:45:11 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
31253955d011SMarcel Moolenaar
31263955d011SMarcel Moolenaar	* makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work.
31273955d011SMarcel Moolenaar
31283955d011SMarcel MoolenaarTue Jun 12 16:48:57 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
31293955d011SMarcel Moolenaar
31303955d011SMarcel Moolenaar	* var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
31313955d011SMarcel Moolenaar	us not to export the iterator variable when using VAR_CMD context.
31323955d011SMarcel Moolenaar
31333955d011SMarcel MoolenaarSun Jun 10 21:55:21 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
31343955d011SMarcel Moolenaar
31353955d011SMarcel Moolenaar	* job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
31363955d011SMarcel Moolenaar	its the wrong "fix".
31373955d011SMarcel Moolenaar
31383955d011SMarcel MoolenaarSat Jun  9 00:11:24 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
31393955d011SMarcel Moolenaar
31403955d011SMarcel Moolenaar	* Redesigned export of VAR_CMD's via MAKEFLAGS.
31413955d011SMarcel Moolenaar	We now simply append the variable names to .MAKEOVERRIDES, and
31423955d011SMarcel Moolenaar	handle duplicate suppression and quoting in ExportMAKEFLAGS using:
31433955d011SMarcel Moolenaar	${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
31443955d011SMarcel Moolenaar	Apart from fixing quoting bugs in previous version, this allows us
31453955d011SMarcel Moolenaar	to export vars to the environment by simply doing:
31463955d011SMarcel Moolenaar	.MAKEOVERRIDES+= PATH
31473955d011SMarcel Moolenaar	Merged again with NetBSD make, but the above is the only change.
31483955d011SMarcel Moolenaar
31493955d011SMarcel Moolenaar	* configure.in: added
31503955d011SMarcel Moolenaar	--disable-pwd-override		disable $PWD overriding getcwd()
31513955d011SMarcel Moolenaar	--disable-check-make-chdir	disable make trying to guess
31523955d011SMarcel Moolenaar		when it should automatically cd ${.CURDIR}
31533955d011SMarcel Moolenaar
31543955d011SMarcel Moolenaar	* Merge with NetBSD make, changes include:
31553955d011SMarcel Moolenaar	parse.c (ParseDoDependency): Spot that the syntax error is
31563955d011SMarcel Moolenaar	caused by an unresolved cvs/rcs conflict and say so.
31573955d011SMarcel Moolenaar	var.c: most of Var* functions now take a ctxt as 1st arg.
31583955d011SMarcel Moolenaar	now does variable substituion on rhs of sysv style modifiers.
31593955d011SMarcel Moolenaar
31603955d011SMarcel Moolenaar	* var.c (Var_Set): exporting of command line variables (VAR_CMD)
31613955d011SMarcel Moolenaar	is now done here.  We append the name='value' to .MAKEOVERRIDES
31623955d011SMarcel Moolenaar	rather than directly into MAKEFLAGS as this allows a Makefile to
31633955d011SMarcel Moolenaar	use .MAKEOVERRIDES= to disable this behaviour.  GNU make uses a
31643955d011SMarcel Moolenaar	very similar mechanism.  Note that in adding name='value' to
31653955d011SMarcel Moolenaar	.MAKEOVERRIDES we do the moral equivalent of:
31663955d011SMarcel Moolenaar	.MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
31673955d011SMarcel Moolenaar
31683955d011SMarcel MoolenaarFri Jun  1 14:08:02 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
31693955d011SMarcel Moolenaar
31703955d011SMarcel Moolenaar	* make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H
31713955d011SMarcel Moolenaar
31723955d011SMarcel Moolenaar	* Merged with NetBSD make
31733955d011SMarcel Moolenaar	make -dx can now be used to run commands via sh -x
31743955d011SMarcel Moolenaar	better error messages on exec failures.
31753955d011SMarcel Moolenaar
31763955d011SMarcel MoolenaarThu May 31 01:44:54 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
31773955d011SMarcel Moolenaar
31783955d011SMarcel Moolenaar	* Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that
31793955d011SMarcel Moolenaar	MAKE_VERSION gets updated.  Also don't use ?= for MAKE_VERSION,
31803955d011SMarcel Moolenaar	MACHINE etc otherwise they propagate from the previous bmake.
31813955d011SMarcel Moolenaar
31823955d011SMarcel Moolenaar	* configure.in (machine): allow --with-machine=generic to make
31833955d011SMarcel Moolenaar	configure use machine.sh to set MACHINE.
31843955d011SMarcel Moolenaar
31853955d011SMarcel Moolenaar	* job.c (JobInterrupt): convert to using WAIT_T and friends.
31863955d011SMarcel Moolenaar
31873955d011SMarcel Moolenaar	* Makefile.in: mention in bmake.1 that we use autoconf.
31883955d011SMarcel Moolenaar
31893955d011SMarcel Moolenaar	* make.1: mention MAKE_PRINT_VAR_ON_ERROR.
31903955d011SMarcel Moolenaar
31913955d011SMarcel MoolenaarWed May 30 23:17:18 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
31923955d011SMarcel Moolenaar
31933955d011SMarcel Moolenaar	* main.c (ReadMakefile): don't set MAKEFILE if reading ".depend"
31943955d011SMarcel Moolenaar	as that rather defeats the usefulness of ${MAKEFILE}.
31953955d011SMarcel Moolenaar
31963955d011SMarcel Moolenaar	* main.c (MainParseArgs): append command line variable assignments
31973955d011SMarcel Moolenaar	to MAKEFLAGS so that they get propagated to child make's.
31983955d011SMarcel Moolenaar	Apparently this is required POSIX behaviour?  Its useful anyway.
31993955d011SMarcel Moolenaar
32003955d011SMarcel MoolenaarTue May 29 02:20:07 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
32013955d011SMarcel Moolenaar
32023955d011SMarcel Moolenaar	* compat.c (CompatRunCommand): don't use perror() since stdio may
32033955d011SMarcel Moolenaar	cause problems in child of vfork().
32043955d011SMarcel Moolenaar
32053955d011SMarcel Moolenaar	* compat.c, main.c: Call PrintOnError() when we are going to bail.
32063955d011SMarcel Moolenaar	This routine prints out the .curdir where we stopped and will also
32073955d011SMarcel Moolenaar	display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}.
32083955d011SMarcel Moolenaar
32093955d011SMarcel Moolenaar	* main.c: add ${.newline} to hold a "\n" - sometimes handy in
32103955d011SMarcel Moolenaar	:@ expansion.
32113955d011SMarcel Moolenaar
32123955d011SMarcel Moolenaar	* var.c: VarLoopExpand: ignore addSpace if a \n is present.
32133955d011SMarcel Moolenaar
32143955d011SMarcel Moolenaar	* Added RCSid's for the files we've touched.
32153955d011SMarcel Moolenaar
32163955d011SMarcel MoolenaarThu May 24 15:41:37 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
32173955d011SMarcel Moolenaar
32183955d011SMarcel Moolenaar	* configure.in:	Thanks to some clues from mdb@juniper.net,
32193955d011SMarcel Moolenaar	added autoconf magic to control setting of MACHINE, MACHINE_ARCH
32203955d011SMarcel Moolenaar	as well as what ends up in _PATH_DEFSYSPATH.  We now have:
32213955d011SMarcel Moolenaar
32223955d011SMarcel Moolenaar  --with-machine=MACHINE  explicitly set MACHINE
32233955d011SMarcel Moolenaar  --with-force-machine=MACHINE  set FORCE_MACHINE
32243955d011SMarcel Moolenaar  --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
32253955d011SMarcel Moolenaar  --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
32263955d011SMarcel Moolenaar  --with-prefix-sys-path=PATH:DIR:LIST  prefix _PATH_PREFIX_SYSPATH
32273955d011SMarcel Moolenaar  --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
32283955d011SMarcel Moolenaar
32293955d011SMarcel Moolenaar	If _PATH_OBJDIRPREFIX is set to "no" we won't define it.
32303955d011SMarcel Moolenaar
32313955d011SMarcel Moolenaar	* makefile: added a pathetically simple makefile to drive
32323955d011SMarcel Moolenaar	bootstrapping.  Running configure by hand is more useful.
32333955d011SMarcel Moolenaar
32343955d011SMarcel Moolenaar	* Makefile.in: added MAKE_VERSION, and reworked things to be less
32353955d011SMarcel Moolenaar	dependent on NetBSD bsd.*.mk
32363955d011SMarcel Moolenaar
32373955d011SMarcel Moolenaar	* pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining
32383955d011SMarcel Moolenaar	_PATH_OBJDIRPREFIX for those that don't want a default.
32393955d011SMarcel Moolenaar	construct _PATH_DEFSYSPATH from the info we get from configure.
32403955d011SMarcel Moolenaar
32413955d011SMarcel Moolenaar	* main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION}
32423955d011SMarcel Moolenaar	if MAKE_VERSION is defined.
32433955d011SMarcel Moolenaar
32443955d011SMarcel Moolenaar	* compat.c: when we bail, print out the .CURDIR we were in.
32453955d011SMarcel Moolenaar
32463955d011SMarcel MoolenaarSat May 12 00:34:12 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
32473955d011SMarcel Moolenaar
32483955d011SMarcel Moolenaar	* Merged with NetBSD make
32493955d011SMarcel Moolenaar
32503955d011SMarcel Moolenaar	* var.c: fixed a bug in the handling of the modifier :P
32513955d011SMarcel Moolenaar	if the node as found but the path was null, we segfault trying to
32523955d011SMarcel Moolenaar	duplicate it.
32533955d011SMarcel Moolenaar
32543955d011SMarcel MoolenaarMon Mar  5 16:20:33 2001  Simon J. Gerraty  <sjg@zen.quick.com.au>
32553955d011SMarcel Moolenaar
32563955d011SMarcel Moolenaar	* Merged with NetBSD make
32573955d011SMarcel Moolenaar
32583955d011SMarcel Moolenaar	* make.c: Make_OODate's test for a library out of date was using
32593955d011SMarcel Moolenaar	cmtime where it should have used mtime (my bug).
32603955d011SMarcel Moolenaar
32613955d011SMarcel Moolenaar	* compat.c: Use perror() to tell us what really went wrong when we
32623955d011SMarcel Moolenaar	cannot exec a command.
32633955d011SMarcel Moolenaar
32643955d011SMarcel MoolenaarFri Dec 15 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
32653955d011SMarcel Moolenaar
32663955d011SMarcel Moolenaar	* Merged with NetBSD make
32673955d011SMarcel Moolenaar
32683955d011SMarcel MoolenaarSat Jun 10 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
32693955d011SMarcel Moolenaar
32703955d011SMarcel Moolenaar	* Merged with NetBSD make
32713955d011SMarcel Moolenaar
32723955d011SMarcel MoolenaarThu Jun  1 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
32733955d011SMarcel Moolenaar
32743955d011SMarcel Moolenaar	* Merged with NetBSD make
32753955d011SMarcel Moolenaar
32763955d011SMarcel MoolenaarTue May 30 10:11:08  2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
32773955d011SMarcel Moolenaar
32783955d011SMarcel Moolenaar	* Merged with NetBSD make
32793955d011SMarcel Moolenaar
32803955d011SMarcel MoolenaarThu Apr 27 00:07:47 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
32813955d011SMarcel Moolenaar
32823955d011SMarcel Moolenaar	* util.c: don't provide signal() since we use sigcompat.c
32833955d011SMarcel Moolenaar
32843955d011SMarcel Moolenaar	* Makefile.in: added a build target.
32853955d011SMarcel Moolenaar
32863955d011SMarcel Moolenaar	* var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :!
32873955d011SMarcel Moolenaar	These allow some quite clever magic.
32883955d011SMarcel Moolenaar
32893955d011SMarcel Moolenaar	* main.c (main): added support for getenv(MAKESYSPATH).
32903955d011SMarcel Moolenaar
32913955d011SMarcel MoolenaarMon Apr  2 16:25:13 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
32923955d011SMarcel Moolenaar
32933955d011SMarcel Moolenaar	* Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set.
32943955d011SMarcel Moolenaar	This avoids objdir having a different value depending on how a
32953955d011SMarcel Moolenaar	directory was reached (via command line, or subdir.mk).
32963955d011SMarcel Moolenaar
32973955d011SMarcel Moolenaar	* If FORCE_MACHINE is defined, ignore getenv("MACHINE").
32983955d011SMarcel Moolenaar
32993955d011SMarcel MoolenaarMon Apr  2 23:15:31 2000  Simon J. Gerraty  <sjg@zen.quick.com.au>
33003955d011SMarcel Moolenaar
33013955d011SMarcel Moolenaar	* Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if
33023955d011SMarcel Moolenaar	MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not.
33033955d011SMarcel Moolenaar	I've been testing this in NetBSD's make for some weeks.
33043955d011SMarcel Moolenaar
33053955d011SMarcel Moolenaar	* Turn Makefile into Makefile.in and make it useful.
33063955d011SMarcel Moolenaar
33073955d011SMarcel MoolenaarTue Feb 29 22:08:00 2000 Simon J. Gerraty  <sjg@zen.quick.com.au>
33083955d011SMarcel Moolenaar
33093955d011SMarcel Moolenaar	* Imported NetBSD's -current make(1) and resolve conflicts.
33103955d011SMarcel Moolenaar
33113955d011SMarcel Moolenaar	* Applied autoconf patches from bmake v2
33123955d011SMarcel Moolenaar
33133955d011SMarcel Moolenaar	* Imported clean code base from NetBSD-1.0
3314