History log of /netbsd-src/usr.bin/make/make.h (Results 1 – 25 of 349)
Revision Date Author Comments
# 1557cacd 19-Jan-2025 rillig <rillig@NetBSD.org>

make: fix code coverage counts

See tests/usr.bin/gcov/t_gcov.sh.


# b640f735 11-Jan-2025 rillig <rillig@NetBSD.org>

make: replace "Malformed conditional" with "Variable is undefined"

Evaluating a conditional such as ".if ${UNDEF}" produced a "Malformed
conditional" error, even though the form of the conditional w

make: replace "Malformed conditional" with "Variable is undefined"

Evaluating a conditional such as ".if ${UNDEF}" produced a "Malformed
conditional" error, even though the form of the conditional was correct,
it was the content of the variable that was wrong.

Replace this message with the more accurate "Variable is undefined",
revealing which of the possibly many variables is actually undefined.

show more ...


# 224a1fcf 29-Aug-2024 rillig <rillig@NetBSD.org>

make: reduce line length in error messages

The error messages for deeply nested parse errors were hard to decipher,
due to the large amount of text. Split these messages into individual
lines, just

make: reduce line length in error messages

The error messages for deeply nested parse errors were hard to decipher,
due to the large amount of text. Split these messages into individual
lines, just as in the backtrace for .include files and .for loops. This
unified backtrace makes the output more uniform.

show more ...


# afb29b5b 27-Aug-2024 rillig <rillig@NetBSD.org>

make: treat recursive variables non-fatally

A recursive variable is no worse than an unknown modifier, so treat them
in the same way by continuing parsing until the end of the makefile.


# 4eab6938 25-Aug-2024 rillig <rillig@NetBSD.org>

make: add more context to error message about recursive variables


# 89abe86d 11-Jul-2024 sjg <sjg@NetBSD.org>

Compat_RunCommand use tempfile if cmd too big

Extract the logic recently added to Cmd_Exec to handle
long commands via temp file to Cmd_Argv,
so it can also be leveraged by Compat_RunCommand

Review

Compat_RunCommand use tempfile if cmd too big

Extract the logic recently added to Cmd_Exec to handle
long commands via temp file to Cmd_Argv,
so it can also be leveraged by Compat_RunCommand

Reviewed by: christos

show more ...


# 92d2787a 09-Jul-2024 rillig <rillig@NetBSD.org>

make: error out on parse/evaluation errors in shell commands

The expression ${VAR:X} has an unknown modifier ':X'. Previously, this
expression errored out when the expression was evaluated at parse

make: error out on parse/evaluation errors in shell commands

The expression ${VAR:X} has an unknown modifier ':X'. Previously, this
expression errored out when the expression was evaluated at parse time,
but not when the expression was evaluated when generating the commands
to bring a target up to date. The errors were previously reported, they
didn't affect the exit status, though.

Now, errors in expressions are handled in the same way, regardless of
the time at which they are evaluated.

show more ...


# f9d700b7 07-Jul-2024 rillig <rillig@NetBSD.org>

make: move initialization of variable scopes to targ.c

The variable scopes are freed by Targ_End, so initialize them there as
well. Separate printing statistics and freeing memory, which makes
Var_

make: move initialization of variable scopes to targ.c

The variable scopes are freed by Targ_End, so initialize them there as
well. Separate printing statistics and freeing memory, which makes
Var_End unnecessary.

show more ...


# ad6e61b1 07-Jul-2024 rillig <rillig@NetBSD.org>

make: only generate code for cleanup functions in CLEANUP mode


# e0ae0af9 05-Jul-2024 rillig <rillig@NetBSD.org>

make: reduce lint-specific comments about ARGSUSED


# 1810f1e1 15-Jun-2024 rillig <rillig@NetBSD.org>

make: clean up collection of context information for error messages


# 0c336a8c 02-Jun-2024 rillig <rillig@NetBSD.org>

make: sync VarEvalMode constant names with their debug log names


# cdcc95b1 01-Jun-2024 sjg <sjg@NetBSD.org>

make: add .export-all

An explicit syntax for exporting all global variables is much safer
than allowing .export with no argument to do the same.

Add .export-all and have .export with no argument th

make: add .export-all

An explicit syntax for exporting all global variables is much safer
than allowing .export with no argument to do the same.

Add .export-all and have .export with no argument throw a warning saying
to use .export-all

Reviewed by: rillig

show more ...


# f8e06659 01-Jun-2024 rillig <rillig@NetBSD.org>

make: remove unused VARE_EVAL_KEEP_DOLLAR


# 734fc802 25-May-2024 rillig <rillig@NetBSD.org>

make: fix memory leak for command strings


# dd76681b 25-May-2024 rillig <rillig@NetBSD.org>

make: fix a few more memory leaks


# 696821dd 07-May-2024 sjg <sjg@NetBSD.org>

make: all command line overrides go in .MAKEOVERRIDES

Not all variables that start with '.' are internals,
and unless they are explicitly flagged as internal should go
into .MAKEOVERRIDES

Update va

make: all command line overrides go in .MAKEOVERRIDES

Not all variables that start with '.' are internals,
and unless they are explicitly flagged as internal should go
into .MAKEOVERRIDES

Update varname-dot-makeoverrides to check this.

Also avoid using SCOPE_CMDLINE when ReadOnly will do.

show more ...


# c453a669 27-Apr-2024 rillig <rillig@NetBSD.org>

make: clean up, test .NOPATH

Trim down the comments in the archive module, as they mainly repeated
the code. Trim down the binary code size in the archive module, as it
is rarely used.

In Var_Pars

make: clean up, test .NOPATH

Trim down the comments in the archive module, as they mainly repeated
the code. Trim down the binary code size in the archive module, as it
is rarely used.

In Var_Parse, delay two variable assignments until they are actually
needed.

show more ...


# 3f936286 23-Apr-2024 rillig <rillig@NetBSD.org>

make: clean up comments, code and tests


# 873c42ef 20-Apr-2024 rillig <rillig@NetBSD.org>

make: provide more context information for parse/evaluate errors


# b52179ab 10-Mar-2024 sjg <sjg@NetBSD.org>

make: record exit status in GNode

SetErrorVars can now set .ERROR_EXIT which allows
a .ERROR target to ignore the case of .ERROR_EXIT == 6
which means failure happened elsewhere.

Reviewed by:


# 5b28ac6c 01-Mar-2024 sjg <sjg@NetBSD.org>

make: export target scope values

Pass target scope to Var_ReexportVars so that a target process
will see the correct values in its env.
We must then mark any Global scope variable as unexported
so t

make: export target scope values

Pass target scope to Var_ReexportVars so that a target process
will see the correct values in its env.
We must then mark any Global scope variable as unexported
so targets without local value get the Global one.

show more ...


# 9bb158b5 17-Dec-2023 rillig <rillig@NetBSD.org>

make: clean up unused return value of str2Lst_Append

No functional change.


# 713aa52b 02-Nov-2023 rillig <rillig@NetBSD.org>

make: inline a single-line cross-file function

No functional change.


# 81b5cd66 10-Sep-2023 rillig <rillig@NetBSD.org>

make: remove redundant 'extern' from function declaration


12345678910>>...14