summaryrefslogtreecommitdiff
path: root/usr.bin/make
AgeCommit message (Collapse)Author
2021-04-30Pull up following revision(s) (requested by mrg in ticket #1263):martin
bin/pax/options.c: revision 1.119 usr.bin/config/scan.l: revision 1.32 usr.bin/make/main.c: revision 1.274 bin/pax/extern.h: revision 1.60 usr.bin/config/defs.h: revision 1.106 usr.bin/make/make.h: revision 1.105 sbin/newfs_udf/udf_create.c: revision 1.27 (patch) sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch) usr.bin/config/main.c: revision 1.100 Avoid depending on common symbols.
2019-04-09ParseDoDependency: free paths rather than assertsjg
PR: 52737 Reviewed by: christos
2019-02-16make(1): minor grammar fixes in BUGS sectiongutteridge
2019-02-04- use -Wno-error=format-truncationmrg
2019-02-03- add or adjust /* FALLTHROUGH */ where appropriatemrg
- add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
2018-12-22ParseVErrorInternal: use .PARSEDIR andsjg
apply realpath(3) if not absolute, and use .PARSEFILE for consitent results. Reviewed by: christos
2018-12-21unexport-env: avoid SEGFAULT if MAKELEVEL not in envsjg
2018-12-17PR/53796: Valery Ushakov: make prints wrong makefile path in an error messagechristos
Use ${.CURDIR} if ${.PARSEDIR} is not absolute.
2018-12-16use %s formats to avoid -flag confusion (from sjg)christos
2018-12-16Use printf instead of echo since we can't portably use \ in string (from sjg@)christos
http://pubs.opengroup.org/onlinepubs/009695399/utilities/echo.html
2018-07-12Fix previous: cached_stats() returning < 0 means that the file is not found,christos
not that it was found in the cache, and centralize reporting.
2018-07-12Remove duplicate code in make(1)'s dir.c.reinoud
When the cached_stats() code was added, some old logic stayed around that implements the cached_stats() too.
2018-06-10use SUBDIR.roff suggested by uwe@christos
2018-05-27- Introduce :q modifier for make variables and make it double escape $'s sochristos
that passing variables to recursive makes with :q works as expected. - Revert :Q to work as before. - Adjust makefiles that use recursive make to use :q Discussed on tech-toolchain@ XXX: pullup 8
2018-05-24Since ${MAKE} converts $$ -> $ during parsing we need to put it back tochristos
preserve the original variable value with :Q. XXX: pullup-8
2018-05-24unit test for $ underquoting in :Q modifierchristos
2018-05-13Just skip polling job token pipe.sjg
The sigchld pipe ensures no busy wait. PR: 53285 Reviewed by:
2018-05-13PR/53285: Andreas Gustafsson: Build times tripled with make/job.c 1.193christos
Revert previous: 2018.05.12.15.14.49/bracket.db:build_wall_time=4896.09 2018.05.12.18.17.04/bracket.db:build_wall_time=16268.98
2018-05-12Skip setting wantToken.sjg
polling the job token pipe adds a lot of overhead for little gain. For now, just leave wantToken=0 And avoid busy waiting when no tokens are available and no jobs are running. Reviewed by: christos
2018-04-05Appease the compiler gods; yes I know what I am doing adding to a literalchristos
string.
2018-04-05Be more selective about detecting a SYSV include as opposed to a dependencychristos
line. Dependency lines should contain a '::' operator or ':<space>'.
2018-04-02Fix bad markup.dholland
2018-02-22Avoid calling sysconf for every file loaded.sjg
At start of a meta build this can be measurable overhead. Patch from bdrewery at freebsd.org
2018-02-18Var_Set: avoid SIGSEGV if val is NULLsjg
A NULL val is handled gracefully (by VarAdd) when var is not previously set, so we ought not crash the second time. PR: 53034
2018-02-13Avoid unused variable warningsjg
2018-02-12Do not treat .info as warning for -Wsjg
Reported by: lwhsu at FreeBSD.org
2018-02-08Typos.dholland
2017-12-08Ensure VAR+=val on command line is handled correctlysjg
If VAR is not previously set, call Var_Set to deal with the special case of VAR_CMD. If VAR is previously set, and ctxt is VAR_CMD we should do the update even if VAR_FROM_CMD is set.
2017-11-18Do not append to variable set on command linesjg
POSIX requires that variables set on the command line be immutable. Var_Append needs to pass FIND_CMD and skip append if found variable has VAR_FROM_CMD flag set.
2017-10-28Ignore empty MAKEOBJDIRsjg
Otherwise we end up with .OBJDIR = ${.CURDIR}/ which is quivalent, but fails the typial .if ${.OBJDIR} == ${.CURDIR}
2017-10-08Ensure consistent results on different platforms.sjg
With cycle.1.99 being written to stdout and make: Graph cycles through `cycle.2.*` to stderr, the order in which they are captured varies on some platforms. By redirecting stderr through the same pipe as stdout we get more consistent result.
2017-08-10Avoid full path meta file names for subdir of .OBJDIRsjg
2017-07-20Make compat.c handle SIGINT etc more like job.csjg
If there is a running child, pass the signal on, and wait for it to exit before we self-terminate. Reviewed by: christos
2017-07-09Ensure that command output is always followed by newline,sjg
even when filemon is not being used. Tweak MAKE_META_IGNORE_PATTERNS matching to avoid using path name with :L as it does not handle ':' in path names. fgetLine: an extra check to avoid shrinking the buffer.
2017-07-03Remove workaround for ancient HTML generation code.wiz
2017-06-22Improve description of -V. Can probably be improved further.dholland
2017-06-22Whitespace fixes.wiz
2017-06-22Document what the magic variable .MAKE.EXPAND_VARIABLES actually does.dholland
2017-06-19Add -v variable that always expands variables; restore -V the way it was.christos
2017-06-19make the code look like to 1.266christos
2017-06-19Remove previous variable expansion code; sjg had already added the code tochristos
do it. Note that the manual page already documents this behavior and does not need to change: -dV -V VAR: prints the raw variable -V VAR: prints the expanded variable
2017-06-17a variable that starts with \\ is not expanded.christos
2017-06-17simplifychristos
2017-06-17-V: try to expand the variable again if the value contains a variable.christos
2017-06-17move some code out of the gigantic main function; no functional change.christos
2017-05-31Don't prefix include guards by _, suggested by riastradhmaya
2017-05-31The previous change might actually be less generic.maya
prepend by _MAKE, to be sure.
2017-05-31Use less generic include guardsmaya
2017-05-10Main_SetObjdir: ensure buf2 is in scopesjg
2017-04-21Str_Match: fix closure tests for [^] and add unit-test.sjg