summaryrefslogtreecommitdiff
path: root/usr.bin/make
AgeCommit message (Collapse)Author
2019-08-22GC some old stuffMarc Espie
okay millert@
2019-05-21document brk_string slightly betterMarc Espie
remove the comment about .MAKE, since that's only true when called from main, and explain about the other parameters
2019-05-21fix very stupid bug.Marc Espie
2019-04-22fix thinko from tb@'s commit.Marc Espie
okay tb@
2019-01-31thinko, from Scott ChelohaMarc Espie
2018-11-27handle -s and -i in a uniform fashion, do not try to change the node typeMarc Espie
but use the Targ_* functions correctly. This fixes an oddity in end node handling noticed by kn@ review and okay kn@
2018-11-13commit again the cleanup part that didn't break anythingMarc Espie
and was ok'd millert@
2018-10-08back it out for now.Marc Espie
2018-10-06fix problem reported by markweston@cock.liMarc Espie
specifically: - suffix rules for the empty suffix shouldn't be prevented from triggering by having dependencies. but this exhibits another issue: - .PHONY targets shouldn't trigger suffix rules. (also clean up an utility function) NetBSD make has got similar modernizations, but the code is entirely different by now. okay kn@, millert@
2018-09-20fix indentationJonathan Gray
ok krw@ millert@
2018-07-04remove ambiguity; from ross l richardsonJason McIntyre
2017-12-19More NUL (not NULL) checks.Vadim Zhukov
With support from guenther@ and millert@; final okay espie@
2017-12-19somehow, I lost that static.Marc Espie
From Michal W. Bombardieri, thx
2017-12-05Fix a case where we could go off the end of the buffer.Todd C. Miller
Crash found by Sergey Bronnikov using afl-fuzz. Based on a diff from and OK by espie@
2017-12-05strip_comments is also called for dot lines, so sometimes the commentMarc Espie
is all the line. problem reported by Sergey Bronnikov
2017-07-30Remove outdated count of the number of available assignment operators.anton
While here, add a missing paragraph. ok jmc@
2017-07-24turn stupid message into a proper warning.Marc Espie
noticed by Michael W. Bombardieri okay schwarze@
2017-07-24GC old cruft.Marc Espie
noticed and patch Michael W. Bombardieri
2017-07-21fix two nasty out-of-bound accesses that killed (sporadically mk38 and mk38bis.Marc Espie
prodded by bluhm@, okay bluhm@
2017-07-19depend is deadMarc Espie
2017-07-10Also check for NUL termination at the first character of tstr inAlexander Bluhm
the error path of VarModifiers_Apply(). This prevents a sporadic crash in make's regress target t41. OK espie@
2017-07-09there's no need to fork/exec to execute commentsMarc Espie
okay millert@
2017-06-22zap trailing spaces from the previous commits and also other trailingMarc Espie
spaces
2017-06-22better display of cycles in -j mode.Marc Espie
lots of tests by krw@ review and comments by pirofti@, more tweaks to come
2017-06-21error out if an exists condition tests an empty path, because that makesMarc Espie
zero sense. this would have caught DEPENDSFILE in gnu/cc/cc_tools okay guenther@, also tested by krw@
2017-04-20use strtonum instead of strtoll to parse the argument to -jDavid Gwynne
ok deraadt@ benno@
2017-04-19spelling fixes from michael w. bombardieriJason McIntyre
2017-02-24add support for variables in the lhs of SYSV modifiers.Marc Espie
lack of support noted by naddy@ source, xenocara, and ports still build without a hitch. okay naddy@
2017-01-29obvious protection against null pointer, because it's quite possible for cgnMarc Espie
to not have a parent...
2017-01-25off-by-one, leading to segfaults. Trivial fix.Marc Espie
reported by jasper@
2017-01-21Dedup prototype for really_kill().Martin Natano
2017-01-21Use errno to make the debug message more descriptive.Martin Natano
ok deraadt
2017-01-21Stop calling out to sudo/doas to kill processes. Reliance on systemTheo de Raadt
configuration to perform a racy behaviour is not wise. ok natano
2017-01-01Hyphenate compound adjectives 'up-to-date', 'out-of-date' and 'well-known'Theo Buehler
if they precede the noun and omit hyphens otherwise. ok tj
2016-12-28fix the remaining cases of .Xr with only one argumentIngo Schwarze
2016-10-23zap trailing whitespace;Jason McIntyre
2016-10-23add !!=Marc Espie
feedback and okay millert@
2016-10-21small obvious cleanups:Marc Espie
- remove a lot of unnecessary casts - zap extra param that's no longer needed - add proper prototype and make function static okay natano@
2016-10-14Implement the ${<D} and ${<F} variables, as documented in the manual.Martin Natano
They are equivalent to ${<:H} and ${<:T} repectively, however the former variants are more portable, as they are understood by GNU, FreeBSD and NetBSD make too. absence of those variables reported by Dario Niedermann <dnied at tiscali.it> ok millert espie
2016-10-12make -t uses the "fattr" syscall utimes(2) for its touch(1) built-in.Theo Buehler
Thus, add "fattr" to the list of pledge promises. ok millert, deraadt
2016-10-02Avoid two printf("%s", NULL) with 'make -d v'.Theo Buehler
improvements & ok espie, earlier version ok deraadt
2016-05-13have sinclude/include be more compatible with sysv, handle list of filesMarc Espie
small improvement and okay millert@
2016-03-28remove unused variableCharles Longeau
ok espie@
2016-03-05safer pattern: if you're interested in one child, get THAT one, don't stealMarc Espie
children from other parts of the program. In that case, there's no reason to try to catch other process. 1/ they don't exist 2/ if they did, stealing their status would be bad. okay deraadt@
2016-01-04Use err(3) instead of various handrolled combinations of perror(3) andtb
fprintf(stderr, ...) with strerror(3) and exit(3). Make sure the exit status is 2 if an error occurred. Prompted by gsoares@'s and jsg@'s audit of exit statuses after failure of pledge(2). ok gsoares@
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
OK tb@ jsg@
2015-12-22in case we have a parse error, dispell the target list early to avoidMarc Espie
various problems. Problem noticed by jsg@, deeper patch than he suggested okay jsg@ and tb@.
2015-12-11Use %zu to print size_t's rather than casting to u_long.mmcc
ok espie@
2015-12-05yet another feof check, just to be sure.Marc Espie
2015-11-29fix duplicate targets in target list for good: split previous groupling fixMarc Espie
in two. Catch 22: we have to dedup targets very early so that commands get attached correctly, but we can't figure out the grouplings heuristics until we have all commands... ok millert@