History log of /netbsd-current/usr.bin/make/unit-tests/varmod-mtime.mk
Revision Date Author Comments
# 1.10 20-Apr-2024 rillig

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.


# 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.