[tz] [PROPOSED 1/5] New Makefile macro BACKWARD
Paul Eggert
eggert at cs.ucla.edu
Wed May 24 05:19:20 UTC 2017
* NEWS: Document this.
* Makefile (BACKWARD): New macro.
(YDATA, INSTALLARGS): Use it.
---
Makefile | 10 +++++++++-
NEWS | 4 ++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c62d46f..6373920 100644
--- a/Makefile
+++ b/Makefile
@@ -92,6 +92,13 @@ LIBDIR= $(TOPDIR)/lib
REDO= posix_right
+# For backward-compatibility links for old zone names, use
+# BACKWARD= backward pacificnew
+# To omit these links, use
+# BACKWARD=
+
+BACKWARD= backward pacificnew
+
# If you want out-of-scope and often-wrong data from the file 'backzone', use
# PACKRATDATA= backzone
# To omit this data, use
@@ -384,7 +391,7 @@ WEB_PAGES= tz-art.htm tz-how-to.html tz-link.htm
DOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
PRIMARY_YDATA= africa antarctica asia australasia \
europe northamerica southamerica
-YDATA= $(PRIMARY_YDATA) pacificnew etcetera backward
+YDATA= $(PRIMARY_YDATA) etcetera $(BACKWARD)
NDATA= systemv factory
TDATA= $(YDATA) $(NDATA)
ZONETABLES= zone1970.tab zone.tab
@@ -482,6 +489,7 @@ leapseconds: $(LEAP_DEPS)
# Arguments to pass to submakes of install_data.
# They can be overridden by later submake arguments.
INSTALLARGS = \
+ BACKWARD=$(BACKWARD) \
DESTDIR=$(DESTDIR) \
LEAPSECONDS='$(LEAPSECONDS)' \
PACKRATDATA='$(PACKRATDATA)' \
diff --git a/NEWS b/NEWS
index 4e8091b..dcd49eb 100644
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,10 @@ Unreleased, experimental changes
in civil timekeeping. (Thanks to Robert Elz and Bradley White for
noticing glitches in the code that uncovered this problem.)
+ 'make BACKWARD=' now suppresses backward-compatibility names
+ like 'US/Pacific' that are defined in the 'backward' and
+ 'pacificnew' files.
+
Several minor changes have been made to the code to make it a
bit easier to port to MS-Windows. (Thanks to Kees Dekker for
reporting the problems.)
--
2.9.4
More information about the tz
mailing list