Deleted Added
full compact
Makefile (325324) Makefile (309583)
1# This file is in the public domain, so clarified as of
2# 2009-05-17 by Arthur David Olson.
3
4# Package name for the code distribution.
5PACKAGE= tzcode
6
7# Version number for the distribution, overridden in the 'tarballs' rule below.
8VERSION= unknown

--- 35 unchanged lines hidden (view full) ---

44
45# Everything gets put in subdirectories of. . .
46
47TOPDIR= /usr/local
48
49# "Compiled" time zone information is placed in the "TZDIR" directory
50# (and subdirectories).
51# Use an absolute path name for TZDIR unless you're just testing the software.
1# This file is in the public domain, so clarified as of
2# 2009-05-17 by Arthur David Olson.
3
4# Package name for the code distribution.
5PACKAGE= tzcode
6
7# Version number for the distribution, overridden in the 'tarballs' rule below.
8VERSION= unknown

--- 35 unchanged lines hidden (view full) ---

44
45# Everything gets put in subdirectories of. . .
46
47TOPDIR= /usr/local
48
49# "Compiled" time zone information is placed in the "TZDIR" directory
50# (and subdirectories).
51# Use an absolute path name for TZDIR unless you're just testing the software.
52# TZDIR_BASENAME should not contain "/" and should not be ".", ".." or empty.
53
54TZDIR_BASENAME= zoneinfo
55TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
56
57# Types to try, as an alternative to time_t. int64_t should be first.
58TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
59
60# The "tzselect", "zic", and "zdump" commands get installed in. . .

--- 7 unchanged lines hidden (view full) ---

68# Manual pages go in subdirectories of. . .
69
70MANDIR= $(TOPDIR)/man
71
72# Library functions are put in an archive in LIBDIR.
73
74LIBDIR= $(TOPDIR)/lib
75
52
53TZDIR_BASENAME= zoneinfo
54TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
55
56# Types to try, as an alternative to time_t. int64_t should be first.
57TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
58
59# The "tzselect", "zic", and "zdump" commands get installed in. . .

--- 7 unchanged lines hidden (view full) ---

67# Manual pages go in subdirectories of. . .
68
69MANDIR= $(TOPDIR)/man
70
71# Library functions are put in an archive in LIBDIR.
72
73LIBDIR= $(TOPDIR)/lib
74
76# If you want only POSIX time, with time values interpreted as
77# seconds since the epoch (not counting leap seconds), use
75# If you always want time values interpreted as "seconds since the epoch
76# (not counting leap seconds)", use
78# REDO= posix_only
77# REDO= posix_only
79# below. If you want only "right" time, with values interpreted
80# as seconds since the epoch (counting leap seconds), use
78# below. If you always want right time values interpreted as "seconds since
79# the epoch" (counting leap seconds)", use
81# REDO= right_only
82# below. If you want both sets of data available, with leap seconds not
83# counted normally, use
84# REDO= posix_right
85# below. If you want both sets of data available, with leap seconds counted
86# normally, use
87# REDO= right_posix
88# below. POSIX mandates that leap seconds not be counted; for compatibility
80# REDO= right_only
81# below. If you want both sets of data available, with leap seconds not
82# counted normally, use
83# REDO= posix_right
84# below. If you want both sets of data available, with leap seconds counted
85# normally, use
86# REDO= right_posix
87# below. POSIX mandates that leap seconds not be counted; for compatibility
89# with it, use "posix_only" or "posix_right". Use POSIX time on systems with
90# leap smearing; this can work better than unsmeared "right" time with
91# applications that are not leap second aware, and is closer to unsmeared
92# "right" time than unsmeared POSIX time is (e.g., 0.5 vs 1.0 s max error).
88# with it, use "posix_only" or "posix_right".
93
94REDO= posix_right
95
89
90REDO= posix_right
91
96# To install data in text form that has all the information of the binary data,
97# (optionally incorporating leap second information), use
98# TZDATA_TEXT= tzdata.zi leapseconds
99# To install text data without leap second information (e.g., because
100# REDO='posix_only'), use
101# TZDATA_TEXT= tzdata.zi
102# To avoid installing text data, use
103# TZDATA_TEXT=
104
105TZDATA_TEXT= leapseconds tzdata.zi
106
107# For backward-compatibility links for old zone names, use
108# BACKWARD= backward pacificnew
109# To omit these links, use
110# BACKWARD=
111
112BACKWARD= backward pacificnew
113
114# If you want out-of-scope and often-wrong data from the file 'backzone', use
115# PACKRATDATA= backzone
116# To omit this data, use
117# PACKRATDATA=
118
119PACKRATDATA=
120
92# If you want out-of-scope and often-wrong data from the file 'backzone', use
93# PACKRATDATA= backzone
94# To omit this data, use
95# PACKRATDATA=
96
97PACKRATDATA=
98
121# The name of a locale using the UTF-8 encoding, used during self-tests.
122# The tests are skipped if the name does not appear to work on this system.
123
124UTF8_LOCALE= en_US.utf8
125
126# Since "." may not be in PATH...
127
128YEARISTYPE= ./yearistype
129
130# Non-default libraries needed to link.
131LDLIBS=
132
99# Since "." may not be in PATH...
100
101YEARISTYPE= ./yearistype
102
103# Non-default libraries needed to link.
104LDLIBS=
105
133# Add the following to the end of the "CFLAGS=" line as needed to override
134# defaults specified in the source code. "-DFOO" is equivalent to "-DFOO=1".
106# Add the following to the end of the "CFLAGS=" line as needed.
135# -DBIG_BANG=-9999999LL if the Big Bang occurred at time -9999999 (see zic.c)
107# -DBIG_BANG=-9999999LL if the Big Bang occurred at time -9999999 (see zic.c)
136# -DDEPRECATE_TWO_DIGIT_YEARS for optional runtime warnings about strftime
137# formats that generate only the last two digits of year numbers
138# -DEPOCH_LOCAL if the 'time' function returns local time not UT
139# -DEPOCH_OFFSET=N if the 'time' function returns a value N greater
140# than what POSIX specifies, assuming local time is UT.
141# For example, N is 252460800 on AmigaOS.
142# -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r
108# -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r
143# -DHAVE_DECL_ENVIRON if <unistd.h> declares 'environ'
144# -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows)
109# -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows)
145# -DHAVE_GENERIC=0 if _Generic does not work
146# -DHAVE_GETTEXT if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris)
147# -DHAVE_INCOMPATIBLE_CTIME_R if your system's time.h declares
110# -DHAVE_DOS_FILE_NAMES if file names have drive specifiers etc. (MS-DOS)
111# -DHAVE_GETTEXT=1 if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris)
112# -DHAVE_INCOMPATIBLE_CTIME_R=1 if your system's time.h declares
148# ctime_r and asctime_r incompatibly with the POSIX standard
149# (Solaris when _POSIX_PTHREAD_SEMANTICS is not defined).
113# ctime_r and asctime_r incompatibly with the POSIX standard
114# (Solaris when _POSIX_PTHREAD_SEMANTICS is not defined).
150# -DHAVE_INTTYPES_H if you have a non-C99 compiler with <inttypes.h>
115# -DHAVE_INTTYPES_H=1 if you have a pre-C99 compiler with "inttypes.h"
151# -DHAVE_LINK=0 if your system lacks a link function
152# -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function
153# -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz
116# -DHAVE_LINK=0 if your system lacks a link function
117# -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function
118# -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz
119# This defaults to 1 if a working localtime_rz seems to be available.
154# localtime_rz can make zdump significantly faster, but is nonstandard.
155# -DHAVE_POSIX_DECLS=0 if your system's include files do not declare
156# functions like 'link' or variables like 'tzname' required by POSIX
120# localtime_rz can make zdump significantly faster, but is nonstandard.
121# -DHAVE_POSIX_DECLS=0 if your system's include files do not declare
122# functions like 'link' or variables like 'tzname' required by POSIX
157# -DHAVE_SNPRINTF=0 if your system lacks the snprintf function
158# -DHAVE_STDBOOL_H if you have a non-C99 compiler with <stdbool.h>
159# -DHAVE_STDINT_H if you have a non-C99 compiler with <stdint.h>
160# -DHAVE_STRFTIME_L if <time.h> declares locale_t and strftime_l
123# -DHAVE_STDINT_H=1 if you have a pre-C99 compiler with "stdint.h"
124# -DHAVE_STRFTIME_L=1 if <time.h> declares locale_t and strftime_l
125# This defaults to 0 if _POSIX_VERSION < 200809, 1 otherwise.
161# -DHAVE_STRDUP=0 if your system lacks the strdup function
162# -DHAVE_SYMLINK=0 if your system lacks the symlink function
126# -DHAVE_STRDUP=0 if your system lacks the strdup function
127# -DHAVE_SYMLINK=0 if your system lacks the symlink function
163# -DHAVE_SYS_STAT_H=0 if your compiler lacks a <sys/stat.h>
164# -DHAVE_SYS_WAIT_H=0 if your compiler lacks a <sys/wait.h>
128# -DHAVE_SYS_STAT_H=0 if your compiler lacks a "sys/stat.h"
129# -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h"
165# -DHAVE_TZSET=0 if your system lacks a tzset function
130# -DHAVE_TZSET=0 if your system lacks a tzset function
166# -DHAVE_UNISTD_H=0 if your compiler lacks a <unistd.h>
167# -Dlocale_t=XXX if your system uses XXX instead of locale_t
168# -Dssize_t=long on hosts like MS-Windows that lack ssize_t
169# -DTHREAD_SAFE to make localtime.c thread-safe, as POSIX requires;
131# -DHAVE_UNISTD_H=0 if your compiler lacks a "unistd.h" (Microsoft C++ 7?)
132# -DEPOCH_LOCAL=1 if the 'time' function returns local time not UT
133# -DEPOCH_OFFSET=N if the 'time' function returns a value N greater
134# than what POSIX specifies, assuming local time is UT.
135# For example, N is 252460800 on AmigaOS.
136# -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU=1
137# if you do not want run time warnings about formats that may cause
138# year 2000 grief
139# -Dssize_t=long on ancient hosts that lack ssize_t
140# -DTHREAD_SAFE=1 to make localtime.c thread-safe, as POSIX requires;
170# not needed by the main-program tz code, which is single-threaded.
171# Append other compiler flags as needed, e.g., -pthread on GNU/Linux.
172# -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t
141# not needed by the main-program tz code, which is single-threaded.
142# Append other compiler flags as needed, e.g., -pthread on GNU/Linux.
143# -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t
173# This is intended for internal use only; it mangles external names.
174# -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz"
175# -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory;
176# the default is system-supplied, typically "/usr/lib/locale"
177# -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified
178# DST transitions if the time zone files cannot be accessed
144# -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz"
145# -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory;
146# the default is system-supplied, typically "/usr/lib/locale"
147# -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified
148# DST transitions if the time zone files cannot be accessed
179# -DUNINIT_TRAP if reading uninitialized storage can cause problems
149# -DUNINIT_TRAP=1 if reading uninitialized storage can cause problems
180# other than simply getting garbage data
181# -DUSE_LTZ=0 to build zdump with the system time zone library
182# Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below.
183# -DZIC_MAX_ABBR_LEN_WO_WARN=3
184# (or some other number) to set the maximum time zone abbreviation length
185# that zic will accept without a warning (the default is 6)
186# $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking
150# other than simply getting garbage data
151# -DUSE_LTZ=0 to build zdump with the system time zone library
152# Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below.
153# -DZIC_MAX_ABBR_LEN_WO_WARN=3
154# (or some other number) to set the maximum time zone abbreviation length
155# that zic will accept without a warning (the default is 6)
156# $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking
187# Select instrumentation via "make GCC_INSTRUMENT='whatever'".
188GCC_INSTRUMENT = \
189 -fsanitize=undefined -fsanitize-address-use-after-scope \
190 -fsanitize-undefined-trap-on-error -fstack-protector
191GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \
192 $(GCC_INSTRUMENT) \
193 -Wall -Wextra \
194 -Walloc-size-larger-than=100000 -Warray-bounds=2 \
195 -Wbad-function-cast -Wcast-align -Wdate-time \
196 -Wdeclaration-after-statement -Wdouble-promotion \
197 -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation \
198 -Winit-self -Wjump-misses-init -Wlogical-op \
199 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
200 -Wold-style-definition -Woverlength-strings -Wpointer-arith \
201 -Wshadow -Wshift-overflow=2 -Wstrict-prototypes -Wstringop-overflow=5 \
202 -Wsuggest-attribute=const -Wsuggest-attribute=format \
203 -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure \
204 -Wtrampolines -Wundef -Wuninitialized -Wunused \
205 -Wvariadic-macros -Wvla -Wwrite-strings \
206 -Wno-address -Wno-format-nonliteral -Wno-sign-compare \
207 -Wno-type-limits -Wno-unused-parameter
157GCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-common -fstrict-aliasing \
158 -Wall -Wextra \
159 -Wbad-function-cast -Wcast-align -Wdate-time \
160 -Wdeclaration-after-statement \
161 -Wdouble-promotion \
162 -Wformat=2 -Winit-self -Wjump-misses-init \
163 -Wlogical-op -Wmissing-prototypes -Wnested-externs \
164 -Wold-style-definition -Woverlength-strings -Wpointer-arith \
165 -Wshadow -Wstrict-prototypes -Wsuggest-attribute=const \
166 -Wsuggest-attribute=format -Wsuggest-attribute=noreturn \
167 -Wsuggest-attribute=pure -Wtrampolines \
168 -Wunused -Wwrite-strings \
169 -Wno-address -Wno-format-nonliteral -Wno-sign-compare \
170 -Wno-type-limits -Wno-unused-parameter
208#
171#
172# If you want to use System V compatibility code, add
173# -DUSG_COMPAT
174# to the end of the "CFLAGS=" line. This arrange for "timezone" and "daylight"
175# variables to be kept up-to-date by the time conversion functions. Neither
176# "timezone" nor "daylight" is described in X3J11's work.
177#
209# If your system has a "GMT offset" field in its "struct tm"s
210# (or if you decide to add such a field in your system's "time.h" file),
211# add the name to a define such as
212# -DTM_GMTOFF=tm_gmtoff
213# to the end of the "CFLAGS=" line. If not defined, the code attempts to
214# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this.
215# Similarly, if your system has a "zone abbreviation" field, define
216# -DTM_ZONE=tm_zone
217# and define NO_TM_ZONE to suppress any guessing. These two fields are not
218# required by POSIX, but are widely available on GNU/Linux and BSD systems.
219#
178# If your system has a "GMT offset" field in its "struct tm"s
179# (or if you decide to add such a field in your system's "time.h" file),
180# add the name to a define such as
181# -DTM_GMTOFF=tm_gmtoff
182# to the end of the "CFLAGS=" line. If not defined, the code attempts to
183# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this.
184# Similarly, if your system has a "zone abbreviation" field, define
185# -DTM_ZONE=tm_zone
186# and define NO_TM_ZONE to suppress any guessing. These two fields are not
187# required by POSIX, but are widely available on GNU/Linux and BSD systems.
188#
220# The next batch of options control support for external variables
221# exported by tzcode. In practice these variables are less useful
222# than TM_GMTOFF and TM_ZONE. However, most of them are standardized.
223# #
224# # To omit or support the external variable "tzname", add one of:
225# # -DHAVE_TZNAME=0
226# # -DHAVE_TZNAME=1
227# # to the "CFLAGS=" line. "tzname" is required by POSIX 1988 and later.
228# # If not defined, the code attempts to guess HAVE_TZNAME from other macros.
229# # Warning: unless time_tz is also defined, HAVE_TZNAME=1 can cause
230# # crashes when combined with some platforms' standard libraries,
231# # presumably due to memory allocation issues.
232# #
233# # To omit or support the external variables "timezone" and "daylight", add
234# # -DUSG_COMPAT=0
235# # -DUSG_COMPAT=1
236# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by
237# # Unix Systems Group code and are required by POSIX 2008 (with XSI) and later.
238# # If not defined, the code attempts to guess USG_COMPAT from other macros.
239# #
240# # To support the external variable "altzone", add
241# # -DALTZONE
242# # to the end of the "CFLAGS=" line; although "altzone" appeared in
243# # System V Release 3.1 it has not been standardized.
244#
245# If you want functions that were inspired by early versions of X3J11's work,
246# add
247# -DSTD_INSPIRED
248# to the end of the "CFLAGS=" line. This arranges for the functions
249# "tzsetwall", "offtime", "timelocal", "timegm", "timeoff",
250# "posix2time", and "time2posix" to be added to the time conversion library.
251# "tzsetwall" is like "tzset" except that it arranges for local wall clock
252# time (rather than the time specified in the TZ environment variable)

--- 21 unchanged lines hidden (view full) ---

274# (or suffixed-by-"_r") counterparts, except with an extra first
275# argument of opaque type timezone_t that specifies the time zone.
276# "tzalloc" allocates a timezone_t value, and "tzfree" frees it.
277#
278# If you want to allocate state structures in localtime, add
279# -DALL_STATE
280# to the end of the "CFLAGS=" line. Storage is obtained by calling malloc.
281#
189# If you want functions that were inspired by early versions of X3J11's work,
190# add
191# -DSTD_INSPIRED
192# to the end of the "CFLAGS=" line. This arranges for the functions
193# "tzsetwall", "offtime", "timelocal", "timegm", "timeoff",
194# "posix2time", and "time2posix" to be added to the time conversion library.
195# "tzsetwall" is like "tzset" except that it arranges for local wall clock
196# time (rather than the time specified in the TZ environment variable)

--- 21 unchanged lines hidden (view full) ---

218# (or suffixed-by-"_r") counterparts, except with an extra first
219# argument of opaque type timezone_t that specifies the time zone.
220# "tzalloc" allocates a timezone_t value, and "tzfree" frees it.
221#
222# If you want to allocate state structures in localtime, add
223# -DALL_STATE
224# to the end of the "CFLAGS=" line. Storage is obtained by calling malloc.
225#
226# If you want an "altzone" variable (a la System V Release 3.1), add
227# -DALTZONE
228# to the end of the "CFLAGS=" line.
229# This variable is not described in X3J11's work.
230#
282# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put
283# out by the National Institute of Standards and Technology
284# which claims to test C and Posix conformance. If you want to pass PCTS, add
285# -DPCTS
286# to the end of the "CFLAGS=" line.
287#
288# If you want strict compliance with XPG4 as of 1994-04-09, add
289# -DXPG4_1994_04_09
290# to the end of the "CFLAGS=" line. This causes "strftime" to always return
231# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put
232# out by the National Institute of Standards and Technology
233# which claims to test C and Posix conformance. If you want to pass PCTS, add
234# -DPCTS
235# to the end of the "CFLAGS=" line.
236#
237# If you want strict compliance with XPG4 as of 1994-04-09, add
238# -DXPG4_1994_04_09
239# to the end of the "CFLAGS=" line. This causes "strftime" to always return
291# 53 as a week number (rather than 52 or 53) for January days before
292# January's first Monday when a "%V" format is used and January 1
240# 53 as a week number (rather than 52 or 53) for those days in January that
241# before the first Monday in January when a "%V" format is used and January 1
293# falls on a Friday, Saturday, or Sunday.
294
295CFLAGS=
296
297# Linker flags. Default to $(LFLAGS) for backwards compatibility
298# to release 2012h and earlier.
299
300LDFLAGS= $(LFLAGS)

--- 7 unchanged lines hidden (view full) ---

308
309zic= ./zic
310ZIC= $(zic) $(ZFLAGS)
311
312ZFLAGS=
313
314# How to use zic to install tz binary files.
315
242# falls on a Friday, Saturday, or Sunday.
243
244CFLAGS=
245
246# Linker flags. Default to $(LFLAGS) for backwards compatibility
247# to release 2012h and earlier.
248
249LDFLAGS= $(LFLAGS)

--- 7 unchanged lines hidden (view full) ---

257
258zic= ./zic
259ZIC= $(zic) $(ZFLAGS)
260
261ZFLAGS=
262
263# How to use zic to install tz binary files.
264
316ZIC_INSTALL= $(ZIC) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS)
265ZIC_INSTALL= $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS)
317
318# The name of a Posix-compliant 'awk' on your system.
319AWK= awk
320
321# The full path name of a Posix-compliant shell, preferably one that supports
322# the Korn shell's 'select' statement as an extension.
323# These days, Bash is the most popular.
324# It should be OK to set this to /bin/sh, on platforms where /bin/sh

--- 7 unchanged lines hidden (view full) ---

332SGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd
333SGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224
334SGML_CATALOG_FILES= \
335 $(SGML_TOPDIR)/share/doc/w3-recs/html/www.w3.org/TR/1999/REC-html401-19991224/HTML4.cat:$(SGML_TOPDIR)/share/sgml/html/4.01/HTML4.cat
336
337# The name, arguments and environment of a program to validate your web pages.
338# See <http://openjade.sourceforge.net/doc/> for a validator, and
339# <https://validator.w3.org/source/> for a validation library.
266
267# The name of a Posix-compliant 'awk' on your system.
268AWK= awk
269
270# The full path name of a Posix-compliant shell, preferably one that supports
271# the Korn shell's 'select' statement as an extension.
272# These days, Bash is the most popular.
273# It should be OK to set this to /bin/sh, on platforms where /bin/sh

--- 7 unchanged lines hidden (view full) ---

281SGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd
282SGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224
283SGML_CATALOG_FILES= \
284 $(SGML_TOPDIR)/share/doc/w3-recs/html/www.w3.org/TR/1999/REC-html401-19991224/HTML4.cat:$(SGML_TOPDIR)/share/sgml/html/4.01/HTML4.cat
285
286# The name, arguments and environment of a program to validate your web pages.
287# See <http://openjade.sourceforge.net/doc/> for a validator, and
288# <https://validator.w3.org/source/> for a validation library.
340# Set VALIDATE=':' if you do not have such a program.
341VALIDATE = nsgmls
342VALIDATE_FLAGS = -s -B -wall -wno-unused-param
343VALIDATE_ENV = \
344 SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \
345 SGML_SEARCH_PATH=$(SGML_SEARCH_PATH) \
346 SP_CHARSET_FIXED=YES \
347 SP_ENCODING=UTF-8
348

--- 50 unchanged lines hidden (view full) ---

399CC= $(cc) -DTZDIR=\"$(TZDIR)\"
400
401AR= ar
402
403# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib.
404RANLIB= :
405
406TZCOBJS= zic.o
289VALIDATE = nsgmls
290VALIDATE_FLAGS = -s -B -wall -wno-unused-param
291VALIDATE_ENV = \
292 SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \
293 SGML_SEARCH_PATH=$(SGML_SEARCH_PATH) \
294 SP_CHARSET_FIXED=YES \
295 SP_ENCODING=UTF-8
296

--- 50 unchanged lines hidden (view full) ---

347CC= $(cc) -DTZDIR=\"$(TZDIR)\"
348
349AR= ar
350
351# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib.
352RANLIB= :
353
354TZCOBJS= zic.o
407TZDOBJS= zdump.o localtime.o asctime.o strftime.o
355TZDOBJS= zdump.o localtime.o asctime.o
408DATEOBJS= date.o localtime.o strftime.o asctime.o
409LIBSRCS= localtime.c asctime.c difftime.c
410LIBOBJS= localtime.o asctime.o difftime.o
411HEADERS= tzfile.h private.h
412NONLIBSRCS= zic.c zdump.c
413NEWUCBSRCS= date.c strftime.c
414SOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \
415 tzselect.ksh workman.sh
416MANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \
417 tzfile.5 tzselect.8 zic.8 zdump.8
418MANTXTS= newctime.3.txt newstrftime.3.txt newtzset.3.txt \
419 time2posix.3.txt \
420 tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \
421 date.1.txt
356DATEOBJS= date.o localtime.o strftime.o asctime.o
357LIBSRCS= localtime.c asctime.c difftime.c
358LIBOBJS= localtime.o asctime.o difftime.o
359HEADERS= tzfile.h private.h
360NONLIBSRCS= zic.c zdump.c
361NEWUCBSRCS= date.c strftime.c
362SOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \
363 tzselect.ksh workman.sh
364MANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \
365 tzfile.5 tzselect.8 zic.8 zdump.8
366MANTXTS= newctime.3.txt newstrftime.3.txt newtzset.3.txt \
367 time2posix.3.txt \
368 tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \
369 date.1.txt
422COMMON= calendars CONTRIBUTING LICENSE Makefile \
423 NEWS README theory.html version
370COMMON= CONTRIBUTING LICENSE Makefile NEWS README Theory version
424WEB_PAGES= tz-art.htm tz-how-to.html tz-link.htm
425DOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
426PRIMARY_YDATA= africa antarctica asia australasia \
427 europe northamerica southamerica
371WEB_PAGES= tz-art.htm tz-how-to.html tz-link.htm
372DOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
373PRIMARY_YDATA= africa antarctica asia australasia \
374 europe northamerica southamerica
428YDATA= $(PRIMARY_YDATA) etcetera $(BACKWARD)
375YDATA= $(PRIMARY_YDATA) pacificnew etcetera backward
429NDATA= systemv factory
430TDATA= $(YDATA) $(NDATA)
431ZONETABLES= zone1970.tab zone.tab
376NDATA= systemv factory
377TDATA= $(YDATA) $(NDATA)
378ZONETABLES= zone1970.tab zone.tab
432TABDATA= iso3166.tab $(TZDATA_TEXT) $(ZONETABLES)
379TABDATA= iso3166.tab leapseconds $(ZONETABLES)
433LEAP_DEPS= leapseconds.awk leap-seconds.list
380LEAP_DEPS= leapseconds.awk leap-seconds.list
434TZDATA_ZI_DEPS= zishrink.awk $(TDATA) $(PACKRATDATA)
435DATA= $(YDATA) $(NDATA) backzone iso3166.tab leap-seconds.list \
436 leapseconds yearistype.sh $(ZONETABLES)
437AWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk zishrink.awk
381DATA= $(YDATA) $(NDATA) backzone $(TABDATA) \
382 leap-seconds.list yearistype.sh
383AWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk
438MISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl
439TZS_YEAR= 2050
440TZS= to$(TZS_YEAR).tzs
441TZS_NEW= to$(TZS_YEAR)new.tzs
442TZS_DEPS= $(PRIMARY_YDATA) asctime.c localtime.c \
443 private.h tzfile.h zdump.c zic.c
384MISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl
385TZS_YEAR= 2050
386TZS= to$(TZS_YEAR).tzs
387TZS_NEW= to$(TZS_YEAR)new.tzs
388TZS_DEPS= $(PRIMARY_YDATA) asctime.c localtime.c \
389 private.h tzfile.h zdump.c zic.c
444ENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) $(TZS) tzdata.zi
390ENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) $(TZS)
445
446# Consult these files when deciding whether to rebuild the 'version' file.
447# This list is not the same as the output of 'git ls-files', since
448# .gitignore is not distributed.
449VERSION_DEPS= \
391
392# Consult these files when deciding whether to rebuild the 'version' file.
393# This list is not the same as the output of 'git ls-files', since
394# .gitignore is not distributed.
395VERSION_DEPS= \
450 calendars CONTRIBUTING LICENSE Makefile NEWS README \
396 CONTRIBUTING LICENSE Makefile NEWS README Theory \
451 africa antarctica asctime.c asia australasia \
452 backward backzone \
453 checklinks.awk checktab.awk \
454 date.1 date.c difftime.c \
455 etcetera europe factory iso3166.tab \
456 leap-seconds.list leapseconds.awk localtime.c \
457 newctime.3 newstrftime.3 newtzset.3 northamerica \
458 pacificnew private.h \
397 africa antarctica asctime.c asia australasia \
398 backward backzone \
399 checklinks.awk checktab.awk \
400 date.1 date.c difftime.c \
401 etcetera europe factory iso3166.tab \
402 leap-seconds.list leapseconds.awk localtime.c \
403 newctime.3 newstrftime.3 newtzset.3 northamerica \
404 pacificnew private.h \
459 southamerica strftime.c systemv theory.html \
405 southamerica strftime.c systemv \
460 time2posix.3 tz-art.htm tz-how-to.html tz-link.htm \
461 tzfile.5 tzfile.h tzselect.8 tzselect.ksh \
462 workman.sh yearistype.sh \
463 zdump.8 zdump.c zic.8 zic.c \
464 zone.tab zone1970.tab zoneinfo2tdf.pl
465
466# And for the benefit of csh users on systems that assume the user
467# shell should be used to handle commands in Makefiles. . .

--- 5 unchanged lines hidden (view full) ---

473ALL: all date $(ENCHILADA)
474
475install: all $(DATA) $(REDO) $(MANS)
476 mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
477 $(DESTDIR)$(LIBDIR) \
478 $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
479 $(DESTDIR)$(MANDIR)/man8
480 $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES)
406 time2posix.3 tz-art.htm tz-how-to.html tz-link.htm \
407 tzfile.5 tzfile.h tzselect.8 tzselect.ksh \
408 workman.sh yearistype.sh \
409 zdump.8 zdump.c zic.8 zic.c \
410 zone.tab zone1970.tab zoneinfo2tdf.pl
411
412# And for the benefit of csh users on systems that assume the user
413# shell should be used to handle commands in Makefiles. . .

--- 5 unchanged lines hidden (view full) ---

419ALL: all date $(ENCHILADA)
420
421install: all $(DATA) $(REDO) $(MANS)
422 mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
423 $(DESTDIR)$(LIBDIR) \
424 $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
425 $(DESTDIR)$(MANDIR)/man8
426 $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES)
481 cp -f $(TABDATA) $(DESTDIR)$(TZDIR)/.
427 cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
482 cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
483 cp libtz.a $(DESTDIR)$(LIBDIR)/.
484 $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
485 cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
486 cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
487 cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
488
489INSTALL: ALL install date.1

--- 4 unchanged lines hidden (view full) ---

494version: $(VERSION_DEPS)
495 { (type git) >/dev/null 2>&1 && \
496 V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \
497 --abbrev=7 --dirty` || \
498 V=$(VERSION); } && \
499 printf '%s\n' "$$V" >$@.out
500 mv $@.out $@
501
428 cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
429 cp libtz.a $(DESTDIR)$(LIBDIR)/.
430 $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
431 cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
432 cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
433 cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
434
435INSTALL: ALL install date.1

--- 4 unchanged lines hidden (view full) ---

440version: $(VERSION_DEPS)
441 { (type git) >/dev/null 2>&1 && \
442 V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \
443 --abbrev=7 --dirty` || \
444 V=$(VERSION); } && \
445 printf '%s\n' "$$V" >$@.out
446 mv $@.out $@
447
502# This file can be tailored by setting BACKWARD, PACKRATDATA, etc.
503tzdata.zi: $(TZDATA_ZI_DEPS)
504 LC_ALL=C $(AWK) -f zishrink.awk $(TDATA) $(PACKRATDATA) >$@.out
505 mv $@.out $@
506
507version.h: version
508 VERSION=`cat version` && printf '%s\n' \
509 'static char const PKGVERSION[]="($(PACKAGE)) ";' \
510 "static char const TZVERSION[]=\"$$VERSION\";" \
511 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";' \
512 >$@.out
513 mv $@.out $@
514

--- 9 unchanged lines hidden (view full) ---

524
525leapseconds: $(LEAP_DEPS)
526 $(AWK) -f leapseconds.awk leap-seconds.list >$@.out
527 mv $@.out $@
528
529# Arguments to pass to submakes of install_data.
530# They can be overridden by later submake arguments.
531INSTALLARGS = \
448version.h: version
449 VERSION=`cat version` && printf '%s\n' \
450 'static char const PKGVERSION[]="($(PACKAGE)) ";' \
451 "static char const TZVERSION[]=\"$$VERSION\";" \
452 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";' \
453 >$@.out
454 mv $@.out $@
455

--- 9 unchanged lines hidden (view full) ---

465
466leapseconds: $(LEAP_DEPS)
467 $(AWK) -f leapseconds.awk leap-seconds.list >$@.out
468 mv $@.out $@
469
470# Arguments to pass to submakes of install_data.
471# They can be overridden by later submake arguments.
472INSTALLARGS = \
532 BACKWARD=$(BACKWARD) \
533 DESTDIR=$(DESTDIR) \
534 LEAPSECONDS='$(LEAPSECONDS)' \
535 PACKRATDATA='$(PACKRATDATA)' \
536 TZDIR=$(TZDIR) \
537 YEARISTYPE=$(YEARISTYPE) \
538 ZIC='$(ZIC)'
539
540# 'make install_data' installs one set of tz binary files.
473 DESTDIR=$(DESTDIR) \
474 LEAPSECONDS='$(LEAPSECONDS)' \
475 PACKRATDATA='$(PACKRATDATA)' \
476 TZDIR=$(TZDIR) \
477 YEARISTYPE=$(YEARISTYPE) \
478 ZIC='$(ZIC)'
479
480# 'make install_data' installs one set of tz binary files.
541install_data: zic leapseconds yearistype tzdata.zi
542 $(ZIC_INSTALL) tzdata.zi
481# It can be tailored by setting LEAPSECONDS, PACKRATDATA, etc.
482install_data: zic leapseconds yearistype $(PACKRATDATA) $(TDATA)
483 $(ZIC_INSTALL) $(TDATA)
484 $(AWK) '/^Rule/' $(TDATA) | $(ZIC_INSTALL) - $(PACKRATDATA)
543
544posix_only:
545 $(MAKE) $(INSTALLARGS) LEAPSECONDS= install_data
546
547right_only:
548 $(MAKE) $(INSTALLARGS) LEAPSECONDS='-L leapseconds' \
549 install_data
550

--- 20 unchanged lines hidden (view full) ---

571
572# This obsolescent rule is present for backwards compatibility with
573# tz releases 2014g through 2015g. It should go away eventually.
574posix_packrat:
575 $(MAKE) $(INSTALLARGS) PACKRATDATA=backzone posix_only
576
577zones: $(REDO)
578
485
486posix_only:
487 $(MAKE) $(INSTALLARGS) LEAPSECONDS= install_data
488
489right_only:
490 $(MAKE) $(INSTALLARGS) LEAPSECONDS='-L leapseconds' \
491 install_data
492

--- 20 unchanged lines hidden (view full) ---

513
514# This obsolescent rule is present for backwards compatibility with
515# tz releases 2014g through 2015g. It should go away eventually.
516posix_packrat:
517 $(MAKE) $(INSTALLARGS) PACKRATDATA=backzone posix_only
518
519zones: $(REDO)
520
579$(TZS_NEW): tzdata.zi zdump zic
521$(TZS_NEW): $(TDATA) zdump zic
580 mkdir -p tzs.dir
522 mkdir -p tzs.dir
581 $(zic) -d tzs.dir tzdata.zi
582 $(AWK) '/^L/{print "Link\t" $$2 "\t" $$3}' \
583 tzdata.zi | LC_ALL=C sort >$@.out
523 $(zic) -d tzs.dir $(TDATA)
524 $(AWK) '/^Link/{print $$1 "\t" $$2 "\t" $$3}' \
525 $(TDATA) | LC_ALL=C sort >$@.out
584 wd=`pwd` && \
585 zones=`$(AWK) -v wd="$$wd" \
526 wd=`pwd` && \
527 zones=`$(AWK) -v wd="$$wd" \
586 '/^Z/{print wd "/tzs.dir/" $$2}' tzdata.zi \
528 '/^Zone/{print wd "/tzs.dir/" $$2}' $(TDATA) \
587 | LC_ALL=C sort` && \
588 ./zdump -i -c $(TZS_YEAR) $$zones >>$@.out
589 sed 's,^TZ=".*tzs\.dir/,TZ=",' $@.out >$@.sed.out
590 rm -fr tzs.dir $@.out
591 mv $@.sed.out $@
592
593# If $(TZS) does not already exist (e.g., old-format tarballs), create it.
594# If it exists but 'make check_tzs' fails, a maintainer should inspect the
595# failed output and fix the inconsistency, perhaps by running 'make force_tzs'.
596$(TZS):
597 $(MAKE) force_tzs
598
599force_tzs: $(TZS_NEW)
600 cp $(TZS_NEW) $(TZS)
601
602libtz.a: $(LIBOBJS)
529 | LC_ALL=C sort` && \
530 ./zdump -i -c $(TZS_YEAR) $$zones >>$@.out
531 sed 's,^TZ=".*tzs\.dir/,TZ=",' $@.out >$@.sed.out
532 rm -fr tzs.dir $@.out
533 mv $@.sed.out $@
534
535# If $(TZS) does not already exist (e.g., old-format tarballs), create it.
536# If it exists but 'make check_tzs' fails, a maintainer should inspect the
537# failed output and fix the inconsistency, perhaps by running 'make force_tzs'.
538$(TZS):
539 $(MAKE) force_tzs
540
541force_tzs: $(TZS_NEW)
542 cp $(TZS_NEW) $(TZS)
543
544libtz.a: $(LIBOBJS)
603 rm -f $@
604 $(AR) -rc $@ $(LIBOBJS)
545 $(AR) ru $@ $(LIBOBJS)
605 $(RANLIB) $@
606
607date: $(DATEOBJS)
608 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS)
609
610tzselect: tzselect.ksh version
611 VERSION=`cat version` && sed \
612 -e 's|#!/bin/bash|#!$(KSHELL)|g' \
613 -e 's|AWK=[^}]*|AWK=$(AWK)|g' \
614 -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
615 -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
616 -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
617 -e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \
618 <$@.ksh >$@.out
619 chmod +x $@.out
620 mv $@.out $@
621
546 $(RANLIB) $@
547
548date: $(DATEOBJS)
549 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS)
550
551tzselect: tzselect.ksh version
552 VERSION=`cat version` && sed \
553 -e 's|#!/bin/bash|#!$(KSHELL)|g' \
554 -e 's|AWK=[^}]*|AWK=$(AWK)|g' \
555 -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
556 -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
557 -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
558 -e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \
559 <$@.ksh >$@.out
560 chmod +x $@.out
561 mv $@.out $@
562
622check: check_character_set check_white_space check_links \
623 check_name_lengths check_sorted \
624 check_tables check_web check_zishrink check_tzs
563check: check_character_set check_white_space check_links check_sorted \
564 check_tables check_tzs check_web
625
626check_character_set: $(ENCHILADA)
565
566check_character_set: $(ENCHILADA)
627 test ! '$(UTF8_LOCALE)' || \
628 ! printf 'A\304\200B\n' | \
629 LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 || { \
630 LC_ALL='$(UTF8_LOCALE)' && export LC_ALL && \
567 LC_ALL=en_US.utf8 && export LC_ALL && \
631 sharp='#' && \
632 ! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \
633 $(MISC) $(SOURCES) $(WEB_PAGES) \
568 sharp='#' && \
569 ! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \
570 $(MISC) $(SOURCES) $(WEB_PAGES) \
634 CONTRIBUTING LICENSE Makefile README \
635 version tzdata.zi && \
571 CONTRIBUTING LICENSE Makefile README version && \
636 ! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \
637 leapseconds yearistype.sh zone.tab && \
572 ! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \
573 leapseconds yearistype.sh zone.tab && \
638 ! grep -Env $(OK_LINE) $(ENCHILADA); \
639 }
574 ! grep -Env $(OK_LINE) $(ENCHILADA)
640
641check_white_space: $(ENCHILADA)
642 patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \
643 ! grep -En "$$pat" $(ENCHILADA)
644 ! grep -n '[[:space:]]$$' $(ENCHILADA)
645
575
576check_white_space: $(ENCHILADA)
577 patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \
578 ! grep -En "$$pat" $(ENCHILADA)
579 ! grep -n '[[:space:]]$$' $(ENCHILADA)
580
646PRECEDES_FILE_NAME = ^(Zone|Link[[:space:]]+[^[:space:]]+)[[:space:]]+
647FILE_NAME_COMPONENT_TOO_LONG = \
648 $(PRECEDES_FILE_NAME)[^[:space:]]*[^/[:space:]]{15}
649
650check_name_lengths: $(TDATA) backzone
651 ! grep -En '$(FILE_NAME_COMPONENT_TOO_LONG)' $(TDATA) backzone
652
653CHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; }
654
655check_sorted: backward backzone iso3166.tab zone.tab zone1970.tab
656 $(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu
657 $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu
658 $(AWK) '/^[^#]/ {print $$1}' iso3166.tab | LC_ALL=C sort -cu
659 $(AWK) '/^[^#]/ {print $$1}' zone.tab | LC_ALL=C sort -c
660 $(AWK) '/^[^#]/ {print substr($$0, 1, 2)}' zone1970.tab | \
661 LC_ALL=C sort -c
662 $(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \
663 LC_ALL=C sort -cu
664
665check_links: checklinks.awk $(TDATA)
666 $(AWK) -f checklinks.awk $(TDATA)
581CHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; }
582
583check_sorted: backward backzone iso3166.tab zone.tab zone1970.tab
584 $(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu
585 $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu
586 $(AWK) '/^[^#]/ {print $$1}' iso3166.tab | LC_ALL=C sort -cu
587 $(AWK) '/^[^#]/ {print $$1}' zone.tab | LC_ALL=C sort -c
588 $(AWK) '/^[^#]/ {print substr($$0, 1, 2)}' zone1970.tab | \
589 LC_ALL=C sort -c
590 $(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \
591 LC_ALL=C sort -cu
592
593check_links: checklinks.awk $(TDATA)
594 $(AWK) -f checklinks.awk $(TDATA)
667 $(AWK) -f checklinks.awk tzdata.zi
668
669check_tables: checktab.awk $(PRIMARY_YDATA) $(ZONETABLES)
670 for tab in $(ZONETABLES); do \
671 $(AWK) -f checktab.awk -v zone_table=$$tab $(PRIMARY_YDATA) \
672 || exit; \
673 done
674
675check_tzs: $(TZS) $(TZS_NEW)
676 diff -u $(TZS) $(TZS_NEW)
677
595
596check_tables: checktab.awk $(PRIMARY_YDATA) $(ZONETABLES)
597 for tab in $(ZONETABLES); do \
598 $(AWK) -f checktab.awk -v zone_table=$$tab $(PRIMARY_YDATA) \
599 || exit; \
600 done
601
602check_tzs: $(TZS) $(TZS_NEW)
603 diff -u $(TZS) $(TZS_NEW)
604
678# This checks only the HTML 4.01 strict page.
679# To check the the other pages, use <https://validator.w3.org/>.
680check_web: tz-how-to.html
681 $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) tz-how-to.html
605check_web: $(WEB_PAGES)
606 $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) $(WEB_PAGES)
682
607
683# Check that tzdata.zi generates the same binary data that its sources do.
684check_zishrink: tzdata.zi zic leapseconds $(PACKRATDATA) $(TDATA)
685 for type in posix right; do \
686 mkdir -p time_t.dir/$$type time_t.dir/$$type-shrunk && \
687 case $$type in \
688 right) leap='-L leapseconds';; \
689 *) leap=;; \
690 esac && \
691 $(ZIC) $$leap -d time_t.dir/$$type $(TDATA) && \
692 $(AWK) '/^Rule/' $(TDATA) | \
693 $(ZIC) $$leap -d time_t.dir/$$type - $(PACKRATDATA) && \
694 $(ZIC) $$leap -d time_t.dir/$$type-shrunk tzdata.zi && \
695 diff -r time_t.dir/$$type time_t.dir/$$type-shrunk || exit; \
696 done
697 rm -fr time_t.dir
698
699clean_misc:
700 rm -f core *.o *.out \
701 date tzselect version.h zdump zic yearistype libtz.a
702clean: clean_misc
608clean_misc:
609 rm -f core *.o *.out \
610 date tzselect version.h zdump zic yearistype libtz.a
611clean: clean_misc
703 rm -fr *.dir tzdata.zi tzdb-*/ $(TZS_NEW)
612 rm -fr *.dir tzdb-*/ $(TZS_NEW)
704
705maintainer-clean: clean
706 @echo 'This command is intended for maintainers to use; it'
707 @echo 'deletes files that may need special tools to rebuild.'
708 rm -f leapseconds version $(MANTXTS) $(TZS) *.asc *.tar.*
709
710names:
711 @echo $(ENCHILADA)

--- 37 unchanged lines hidden (view full) ---

749 fi || exit; \
750 done; \
751 fi
752 touch -cmr `ls -t $(LEAP_DEPS) | sed 1q` leapseconds
753 for file in `ls $(MANTXTS) | sed 's/\.txt$$//'`; do \
754 touch -cmr `ls -t $$file workman.sh | sed 1q` $$file.txt || \
755 exit; \
756 done
613
614maintainer-clean: clean
615 @echo 'This command is intended for maintainers to use; it'
616 @echo 'deletes files that may need special tools to rebuild.'
617 rm -f leapseconds version $(MANTXTS) $(TZS) *.asc *.tar.*
618
619names:
620 @echo $(ENCHILADA)

--- 37 unchanged lines hidden (view full) ---

658 fi || exit; \
659 done; \
660 fi
661 touch -cmr `ls -t $(LEAP_DEPS) | sed 1q` leapseconds
662 for file in `ls $(MANTXTS) | sed 's/\.txt$$//'`; do \
663 touch -cmr `ls -t $$file workman.sh | sed 1q` $$file.txt || \
664 exit; \
665 done
757 touch -cmr `ls -t $(TZDATA_ZI_DEPS) | sed 1q` tzdata.zi
758 touch -cmr `ls -t $(TZS_DEPS) | sed 1q` $(TZS)
759 touch -cmr `ls -t $(VERSION_DEPS) | sed 1q` version
760 touch $@
761
762# The zics below ensure that each data file can stand on its own.
763# We also do an all-files run to catch links to links.
764
765check_public:
766 $(MAKE) maintainer-clean
767 $(MAKE) "CFLAGS=$(GCC_DEBUG_FLAGS)" ALL
768 mkdir -p public.dir
666 touch -cmr `ls -t $(TZS_DEPS) | sed 1q` $(TZS)
667 touch -cmr `ls -t $(VERSION_DEPS) | sed 1q` version
668 touch $@
669
670# The zics below ensure that each data file can stand on its own.
671# We also do an all-files run to catch links to links.
672
673check_public:
674 $(MAKE) maintainer-clean
675 $(MAKE) "CFLAGS=$(GCC_DEBUG_FLAGS)" ALL
676 mkdir -p public.dir
769 for i in $(TDATA) tzdata.zi; do \
677 for i in $(TDATA) ; do \
770 $(zic) -v -d public.dir $$i 2>&1 || exit; \
771 done
772 $(zic) -v -d public.dir $(TDATA)
773 rm -fr public.dir
774
775# Check that the code works under various alternative
776# implementations of time_t.
777check_time_t_alternatives:

--- 77 unchanged lines hidden (view full) ---

855 $(MAKE) clean
856 for i in "long long" unsigned; \
857 do \
858 $(MAKE) CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \
859 ./zdump -v Europe/Rome ; \
860 $(MAKE) clean ; \
861 done
862
678 $(zic) -v -d public.dir $$i 2>&1 || exit; \
679 done
680 $(zic) -v -d public.dir $(TDATA)
681 rm -fr public.dir
682
683# Check that the code works under various alternative
684# implementations of time_t.
685check_time_t_alternatives:

--- 77 unchanged lines hidden (view full) ---

763 $(MAKE) clean
764 for i in "long long" unsigned; \
765 do \
766 $(MAKE) CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \
767 ./zdump -v Europe/Rome ; \
768 $(MAKE) clean ; \
769 done
770
863zonenames: tzdata.zi
864 @$(AWK) '/^Z/ { print $$2 } /^L/ { print $$3 }' tzdata.zi
771zonenames: $(TDATA)
772 @$(AWK) '/^Zone/ { print $$2 } /^Link/ { print $$3 }' $(TDATA)
865
866asctime.o: private.h tzfile.h
867date.o: private.h
868difftime.o: private.h
869localtime.o: private.h tzfile.h
870strftime.o: private.h tzfile.h
871zdump.o: version.h
872zic.o: private.h tzfile.h version.h
873
874.KEEP_STATE:
875
876.PHONY: ALL INSTALL all
877.PHONY: check check_character_set check_links
878.PHONY: check_public check_sorted check_tables
879.PHONY: check_time_t_alternatives check_tzs check_web check_white_space
773
774asctime.o: private.h tzfile.h
775date.o: private.h
776difftime.o: private.h
777localtime.o: private.h tzfile.h
778strftime.o: private.h tzfile.h
779zdump.o: version.h
780zic.o: private.h tzfile.h version.h
781
782.KEEP_STATE:
783
784.PHONY: ALL INSTALL all
785.PHONY: check check_character_set check_links
786.PHONY: check_public check_sorted check_tables
787.PHONY: check_time_t_alternatives check_tzs check_web check_white_space
880.PHONY: check_zishrink
881.PHONY: clean clean_misc force_tzs
882.PHONY: install install_data maintainer-clean names
883.PHONY: posix_only posix_packrat posix_right
884.PHONY: public right_only right_posix signatures signatures_version
885.PHONY: tarballs tarballs_version typecheck
886.PHONY: zonenames zones
788.PHONY: clean clean_misc force_tzs
789.PHONY: install install_data maintainer-clean names
790.PHONY: posix_only posix_packrat posix_right
791.PHONY: public right_only right_posix signatures signatures_version
792.PHONY: tarballs tarballs_version typecheck
793.PHONY: zonenames zones