Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/deptgt-posix.mk
RevisionDateAuthorComments
 1.4  07-May-2022  rillig tests/make: document why deptgt-posix needs its own directory

As described in PR toolchain/15163, '.include <file>' first looks in the
current directory, using the system include path only as fallback.
 1.3  07-May-2022  rillig tests/make: clean up comments in test for .POSIX
 1.2  18-Apr-2022  sjg Never 'rm -rf ${TMPDIR}' when you cannot be sure what it is

Use a safer variable for a subdir of ${TMPDIR} that we know
we can remove safely.
 1.1  18-Apr-2022  rillig make: only switch to POSIX mode if '.POSIX:' is the first line

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
says that in order to make a makefile POSIX-conforming, its first
non-comment line must be the special dependency line '.POSIX:' without
any source dependencies.

Previously, make switched to POSIX mode even if such a line occurred
anywhere else, which was allowed by POSIX but was deep in the
"unspecified behavior" area. For NetBSD make, there is no big
difference since it doesn't ship any <posix.mk> file, this change mainly
affects the bmake distribution.

Previously, makefiles that contain '.POSIX:' somewhere in the middle
could fail due to <posix.mk> resetting .SUFFIXES, among other things.

Suggested by Simon J. Gerraty, who also reviewed an earlier version of
this change.

RSS XML Feed