summaryrefslogtreecommitdiffstats
path: root/usr.bin/make (follow)
Commit message (Collapse)AuthorAgeFilesLines
* document brk_string slightly betterespie2019-05-211-4/+6
| | | | | remove the comment about .MAKE, since that's only true when called from main, and explain about the other parameters
* fix very stupid bug.espie2019-05-211-1/+4
|
* fix thinko from tb@'s commit.espie2019-04-221-3/+3
| | | | okay tb@
* thinko, from Scott Chelohaespie2019-01-311-3/+3
|
* handle -s and -i in a uniform fashion, do not try to change the node typeespie2018-11-271-12/+4
| | | | | | | | but use the Targ_* functions correctly. This fixes an oddity in end node handling noticed by kn@ review and okay kn@
* commit again the cleanup part that didn't break anythingespie2018-11-131-12/+6
| | | | and was ok'd millert@
* back it out for now.espie2018-10-081-12/+15
|
* fix problem reported by markweston@cock.liespie2018-10-061-15/+12
| | | | | | | | | | | | | | | | | 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@
* fix indentationjsg2018-09-201-2/+2
| | | | ok krw@ millert@
* remove ambiguity; from ross l richardsonjmc2018-07-041-3/+3
|
* More NUL (not NULL) checks.zhuk2017-12-192-5/+5
| | | | With support from guenther@ and millert@; final okay espie@
* somehow, I lost that static.espie2017-12-191-2/+2
| | | | From Michal W. Bombardieri, thx
* Fix a case where we could go off the end of the buffer.millert2017-12-051-3/+6
| | | | | Crash found by Sergey Bronnikov using afl-fuzz. Based on a diff from and OK by espie@
* strip_comments is also called for dot lines, so sometimes the commentespie2017-12-051-2/+1
| | | | | | is all the line. problem reported by Sergey Bronnikov
* Remove outdated count of the number of available assignment operators.anton2017-07-301-4/+4
| | | | | | While here, add a missing paragraph. ok jmc@
* turn stupid message into a proper warning.espie2017-07-241-4/+6
| | | | | | noticed by Michael W. Bombardieri okay schwarze@
* GC old cruft.espie2017-07-243-15/+11
| | | | noticed and patch Michael W. Bombardieri
* fix two nasty out-of-bound accesses that killed (sporadically mk38 and mk38bis.espie2017-07-211-2/+6
| | | | prodded by bluhm@, okay bluhm@
* depend is deadespie2017-07-191-3/+1
|
* Also check for NUL termination at the first character of tstr inbluhm2017-07-101-2/+2
| | | | | | the error path of VarModifiers_Apply(). This prevents a sporadic crash in make's regress target t41. OK espie@
* there's no need to fork/exec to execute commentsespie2017-07-091-1/+5
| | | | okay millert@
* zap trailing spaces from the previous commits and also other trailingespie2017-06-221-13/+13
| | | | spaces
* better display of cycles in -j mode.espie2017-06-223-69/+129
| | | | | lots of tests by krw@ review and comments by pirofti@, more tweaks to come
* error out if an exists condition tests an empty path, because that makesespie2017-06-211-1/+4
| | | | | | | | zero sense. this would have caught DEPENDSFILE in gnu/cc/cc_tools okay guenther@, also tested by krw@
* use strtonum instead of strtoll to parse the argument to -jdlg2017-04-201-6/+6
| | | | ok deraadt@ benno@
* spelling fixes from michael w. bombardierijmc2017-04-191-4/+4
|
* add support for variables in the lhs of SYSV modifiers.espie2017-02-241-11/+31
| | | | | | | lack of support noted by naddy@ source, xenocara, and ports still build without a hitch. okay naddy@
* obvious protection against null pointer, because it's quite possible for cgnespie2017-01-291-1/+5
| | | | to not have a parent...
* off-by-one, leading to segfaults. Trivial fix.espie2017-01-251-2/+2
| | | | reported by jasper@
* Dedup prototype for really_kill().natano2017-01-211-2/+1
|
* Use errno to make the debug message more descriptive.natano2017-01-211-5/+3
| | | | ok deraadt
* Stop calling out to sudo/doas to kill processes. Reliance on systemderaadt2017-01-211-36/+1
| | | | | configuration to perform a racy behaviour is not wise. ok natano
* Hyphenate compound adjectives 'up-to-date', 'out-of-date' and 'well-known'tb2017-01-011-12/+12
| | | | | | if they precede the noun and omit hyphens otherwise. ok tj
* fix the remaining cases of .Xr with only one argumentschwarze2016-12-281-3/+3
|
* zap trailing whitespace;jmc2016-10-231-4/+4
|
* add !!=espie2016-10-235-18/+76
| | | | feedback and okay millert@
* small obvious cleanups:espie2016-10-2114-56/+54
| | | | | | | | - remove a lot of unnecessary casts - zap extra param that's no longer needed - add proper prototype and make function static okay natano@
* Implement the ${<D} and ${<F} variables, as documented in the manual.natano2016-10-144-12/+28
| | | | | | | | | 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
* make -t uses the "fattr" syscall utimes(2) for its touch(1) built-in.tb2016-10-121-2/+2
| | | | | | Thus, add "fattr" to the list of pledge promises. ok millert, deraadt
* Avoid two printf("%s", NULL) with 'make -d v'.tb2016-10-021-4/+8
| | | | improvements & ok espie, earlier version ok deraadt
* have sinclude/include be more compatible with sysv, handle list of filesespie2016-05-131-33/+45
| | | | small improvement and okay millert@
* remove unused variablechl2016-03-281-2/+1
| | | | ok espie@
* safer pattern: if you're interested in one child, get THAT one, don't stealespie2016-03-051-2/+2
| | | | | | | | | | 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@
* Use err(3) instead of various handrolled combinations of perror(3) andtb2016-01-041-14/+8
| | | | | | | | 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@
* fix exit status on pledge(2) failure.gsoares2015-12-291-2/+2
| | | | OK tb@ jsg@
* in case we have a parse error, dispell the target list early to avoidespie2015-12-221-3/+9
| | | | | | | | various problems. Problem noticed by jsg@, deeper patch than he suggested okay jsg@ and tb@.
* Use %zu to print size_t's rather than casting to u_long.mmcc2015-12-111-5/+5
| | | | ok espie@
* yet another feof check, just to be sure.espie2015-12-051-3/+7
|
* fix duplicate targets in target list for good: split previous groupling fixespie2015-11-293-29/+70
| | | | | | | | 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@
* unifdef MAKE_BOOTSTRAP now that Makefile.boot is gone.daniel2015-11-152-20/+2
| | | | ok espie@