[tz] [PATCH] Ask for POSIX-conforming ‘make’

Paul Eggert eggert at cs.ucla.edu
Wed May 31 19:52:58 UTC 2023

* Makefile (.POSIX): New target.  I discovered the need for this
when I ran ‘make -n’ and GNU Make executed recipe lines containing
$(MAKE) even though they had side effects.  When run in POSIX
mode, GNU Make won’t execute recipe lines unless they begin with ‘+’.
POSIX says the behavior of ‘make’ is undefined unless the Makefile’s
first non-comment line has a ‘.POSIX’ target.
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 8017a14e..da3ee259 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
 # Make and install tzdb code and data.
+# Request POSIX conformance; this must be the first non-comment line.
 # This file is in the public domain, so clarified as of
 # 2009-05-17 by Arthur David Olson.

More information about the tz mailing list