History log of /src/usr.bin/make/unit-tests/varmod-mtime.mk
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.17 28-Jun-2025 rillig

make: consistently use double quotes in error messages

Previously, some error messages used single quotes, very few used
backticks or parentheses, most already used double quotes.

While here, reword a few error messages to be clearer or more consistent
with related error messages.


# 1.16 12-Jun-2025 rillig

make: use a common style for unexpected error messages

In enomem, report the actual error instead of a fixed ENOMEM.


# 1.15 29-Mar-2025 rillig

make: add ":" to error message about unknown modifier

In the manual page, the modifiers are listed with a preceding ":", so
use the same pattern in the error message. This removes an inconsistency
between the error messages "Unknown modifier" and "Bad modifier".


# 1.14 11-Jan-2025 rillig

make: omit redundant follow-up message "Malformed conditional"

If there is a parse error or an evaluation error during the conditional,
the conditional is already mentioned in the "while evaluating condition"
line, so there's no reason to repeat it once again.

Same for the "Bad condition" message from the '?:' modifier.


# 1.13 29-Aug-2024 rillig

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.


# 1.12 06-Aug-2024 rillig

make: in error message about conditionals, use single quotes

Single quotes are used less often in the conditionals themselves, which
leads to fewer confusions.


# 1.11 04-Jul-2024 rillig

make: add more context information to error messages

In case of a parse error or evaluation error, print the variable value
in addition to the variable name, to see the effects of previous
expression modifiers.

In nested make calls, print the current directory at the bottom of a
stack trace, as that information is otherwise hard to get in a parallel
build spanning multiple directories.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.10 20-Apr-2024 rillig

branches: 1.10.2;
make: provide more context information for parse/evaluate errors


# 1.9 17-Dec-2023 rillig

tests/make: extend tests for include guards and empty expressions


# 1.8 19-Nov-2023 rillig

tests/make: cover all code paths for the ':mtime' modifier


# 1.7 19-Nov-2023 rillig

make: produce more accurate error message for invalid ':mtime' argument


# 1.6 19-Nov-2023 rillig

tests/make: test non-integer fallback in ':mtime' modifier


# 1.5 19-Aug-2023 rillig

tests/make: document bug in ':gmtime' with '%s'


# 1.4 19-Aug-2023 sjg

varmod-mtime.mk: use :localtime for %s

Add a comment to explain why ${%s:L:localtime} should be used to get
a value that matches time(3).


# 1.3 17-Aug-2023 rillig

make: be strict when parsing the argument of the ':mtime' modifier


# 1.2 17-Aug-2023 rillig

tests/make: extend tests for the ':mtime' modifier


# 1.1 09-May-2023 sjg

make: add :mtime to provide mtime of file

The value of the variable is passed to stat(2)
and st_mtime is new value.
An optional arg can be used if stat(2) fails, otherwise
the current time is used.

See varmod-mtime.mk for usage examples.