Makefile revision 345670
1339630Sphilip# Make and install tzdb code and data. 2339630Sphilip 3308265Sgjb# This file is in the public domain, so clarified as of 4308265Sgjb# 2009-05-17 by Arthur David Olson. 5308265Sgjb 6308265Sgjb# Package name for the code distribution. 7308265SgjbPACKAGE= tzcode 8308265Sgjb 9308265Sgjb# Version number for the distribution, overridden in the 'tarballs' rule below. 10308265SgjbVERSION= unknown 11308265Sgjb 12308265Sgjb# Email address for bug reports. 13308265SgjbBUGEMAIL= tz@iana.org 14308265Sgjb 15345670Sphilip# DATAFORM selects the data format. 16345670Sphilip# Available formats represent essentially the same data, albeit 17345670Sphilip# possibly with minor discrepancies that users are not likely to notice. 18345670Sphilip# To get new features and the best data right away, use: 19331662Sphilip# DATAFORM= vanguard 20331662Sphilip# To wait a while before using new features, to give downstream users 21331662Sphilip# time to upgrade zic (the default), use: 22331662Sphilip# DATAFORM= main 23331662Sphilip# To wait even longer for new features, use: 24331662Sphilip# DATAFORM= rearguard 25331662SphilipDATAFORM= main 26331662Sphilip 27339630Sphilip# Change the line below for your timezone (after finding the one you want in 28339630Sphilip# one of the $(TDATA) source files, or adding it to a source file). 29339630Sphilip# Alternatively, if you discover you've got the wrong timezone, you can just 30308265Sgjb# zic -l rightzone 31308265Sgjb# to correct things. 32308265Sgjb# Use the command 33308265Sgjb# make zonenames 34308265Sgjb# to get a list of the values you can use for LOCALTIME. 35308265Sgjb 36308265SgjbLOCALTIME= GMT 37308265Sgjb 38308265Sgjb# If you want something other than Eastern United States time as a template 39345670Sphilip# for handling ruleless POSIX-style timezone environment variables, 40339630Sphilip# change the line below (after finding the timezone you want in the 41339630Sphilip# one of the $(TDATA) source files, or adding it to a source file). 42345670Sphilip# A ruleless environment setting like TZ='CST6CDT' uses the rules in the 43345670Sphilip# template file to determine "spring forward" and "fall back" days and 44308265Sgjb# times; the environment variable itself specifies UT offsets of standard and 45331662Sphilip# daylight saving time. 46339630Sphilip# Alternatively, if you discover you've got the wrong timezone, you can just 47308265Sgjb# zic -p rightzone 48308265Sgjb# to correct things. 49308265Sgjb# Use the command 50308265Sgjb# make zonenames 51308265Sgjb# to get a list of the values you can use for POSIXRULES. 52308265Sgjb 53308265SgjbPOSIXRULES= America/New_York 54308265Sgjb 55308265Sgjb# Also see TZDEFRULESTRING below, which takes effect only 56308265Sgjb# if the time zone files cannot be accessed. 57308265Sgjb 58308265Sgjb 59328475Sphilip# Installation locations. 60328475Sphilip# 61328475Sphilip# The defaults are suitable for Debian, except that if REDO is 62328475Sphilip# posix_right or right_posix then files that Debian puts under 63328475Sphilip# /usr/share/zoneinfo/posix and /usr/share/zoneinfo/right are instead 64328475Sphilip# put under /usr/share/zoneinfo-posix and /usr/share/zoneinfo-leaps, 65328475Sphilip# respectively. Problems with the Debian approach are discussed in 66328475Sphilip# the commentary for the right_posix rule (below). 67308265Sgjb 68328475Sphilip# Destination directory, which can be used for staging. 69328475Sphilip# 'make DESTDIR=/stage install' installs under /stage (e.g., to 70328475Sphilip# /stage/etc/localtime instead of to /etc/localtime). Files under 71328475Sphilip# /stage are not intended to work as-is, but can be copied by hand to 72328475Sphilip# the root directory later. If DESTDIR is empty, 'make install' does 73328475Sphilip# not stage, but installs directly into production locations. 74328475SphilipDESTDIR = 75328475Sphilip 76328475Sphilip# Everything is installed into subdirectories of TOPDIR, and used there. 77328475Sphilip# TOPDIR should be empty (meaning the root directory), 78328475Sphilip# or a directory name that does not end in "/". 79328475Sphilip# TOPDIR should be empty or an absolute name unless you're just testing. 80328475SphilipTOPDIR = 81328475Sphilip 82339630Sphilip# The default local timezone is taken from the file TZDEFAULT. 83328475SphilipTZDEFAULT = $(TOPDIR)/etc/localtime 84328475Sphilip 85328475Sphilip# The subdirectory containing installed program and data files, and 86328475Sphilip# likewise for installed files that can be shared among architectures. 87328475Sphilip# These should be relative file names. 88328475SphilipUSRDIR = usr 89328475SphilipUSRSHAREDIR = $(USRDIR)/share 90328475Sphilip 91339630Sphilip# "Compiled" timezone information is placed in the "TZDIR" directory 92308265Sgjb# (and subdirectories). 93325159Sphilip# TZDIR_BASENAME should not contain "/" and should not be ".", ".." or empty. 94308265SgjbTZDIR_BASENAME= zoneinfo 95328475SphilipTZDIR = $(TOPDIR)/$(USRSHAREDIR)/$(TZDIR_BASENAME) 96308265Sgjb 97328475Sphilip# The "tzselect" and (if you do "make INSTALL") "date" commands go in: 98328475SphilipBINDIR = $(TOPDIR)/$(USRDIR)/bin 99308265Sgjb 100328475Sphilip# The "zdump" command goes in: 101328475SphilipZDUMPDIR = $(BINDIR) 102308265Sgjb 103328475Sphilip# The "zic" command goes in: 104328475SphilipZICDIR = $(TOPDIR)/$(USRDIR)/sbin 105308265Sgjb 106308265Sgjb# Manual pages go in subdirectories of. . . 107328475SphilipMANDIR = $(TOPDIR)/$(USRSHAREDIR)/man 108308265Sgjb 109308265Sgjb# Library functions are put in an archive in LIBDIR. 110328475SphilipLIBDIR = $(TOPDIR)/$(USRDIR)/lib 111308265Sgjb 112308265Sgjb 113339630Sphilip# Types to try, as an alternative to time_t. 114339630SphilipTIME_T_ALTERNATIVES = $(TIME_T_ALTERNATIVES_HEAD) $(TIME_T_ALTERNATIVES_TAIL) 115339630SphilipTIME_T_ALTERNATIVES_HEAD = int64_t 116339630SphilipTIME_T_ALTERNATIVES_TAIL = int32_t uint32_t uint64_t 117328475Sphilip 118345670Sphilip# What kind of TZif data files to generate. (TZif is the binary time 119345670Sphilip# zone data format that zic generates; see Internet RFC 8536.) 120316349Sbapt# If you want only POSIX time, with time values interpreted as 121316349Sbapt# seconds since the epoch (not counting leap seconds), use 122308265Sgjb# REDO= posix_only 123325159Sphilip# below. If you want only "right" time, with values interpreted 124316349Sbapt# as seconds since the epoch (counting leap seconds), use 125308265Sgjb# REDO= right_only 126308265Sgjb# below. If you want both sets of data available, with leap seconds not 127308265Sgjb# counted normally, use 128308265Sgjb# REDO= posix_right 129308265Sgjb# below. If you want both sets of data available, with leap seconds counted 130308265Sgjb# normally, use 131308265Sgjb# REDO= right_posix 132308265Sgjb# below. POSIX mandates that leap seconds not be counted; for compatibility 133316349Sbapt# with it, use "posix_only" or "posix_right". Use POSIX time on systems with 134316349Sbapt# leap smearing; this can work better than unsmeared "right" time with 135316349Sbapt# applications that are not leap second aware, and is closer to unsmeared 136316349Sbapt# "right" time than unsmeared POSIX time is (e.g., 0.5 vs 1.0 s max error). 137308265Sgjb 138308265SgjbREDO= posix_right 139308265Sgjb 140339630Sphilip# To install data in text form that has all the information of the TZif data, 141325159Sphilip# (optionally incorporating leap second information), use 142325159Sphilip# TZDATA_TEXT= tzdata.zi leapseconds 143325159Sphilip# To install text data without leap second information (e.g., because 144325159Sphilip# REDO='posix_only'), use 145325159Sphilip# TZDATA_TEXT= tzdata.zi 146325159Sphilip# To avoid installing text data, use 147325159Sphilip# TZDATA_TEXT= 148325159Sphilip 149325159SphilipTZDATA_TEXT= leapseconds tzdata.zi 150325159Sphilip 151325159Sphilip# For backward-compatibility links for old zone names, use 152328475Sphilip# BACKWARD= backward 153328475Sphilip# If you also want the link US/Pacific-New, even though it is confusing 154328475Sphilip# and is planned to be removed from the database eventually, use 155325159Sphilip# BACKWARD= backward pacificnew 156325159Sphilip# To omit these links, use 157325159Sphilip# BACKWARD= 158325159Sphilip 159328475SphilipBACKWARD= backward 160325159Sphilip 161308265Sgjb# If you want out-of-scope and often-wrong data from the file 'backzone', use 162308265Sgjb# PACKRATDATA= backzone 163308265Sgjb# To omit this data, use 164308265Sgjb# PACKRATDATA= 165308265Sgjb 166308265SgjbPACKRATDATA= 167308265Sgjb 168325159Sphilip# The name of a locale using the UTF-8 encoding, used during self-tests. 169325159Sphilip# The tests are skipped if the name does not appear to work on this system. 170325159Sphilip 171325159SphilipUTF8_LOCALE= en_US.utf8 172325159Sphilip 173308265Sgjb# Since "." may not be in PATH... 174308265Sgjb 175308265SgjbYEARISTYPE= ./yearistype 176308265Sgjb 177308265Sgjb# Non-default libraries needed to link. 178308265SgjbLDLIBS= 179308265Sgjb 180325159Sphilip# Add the following to the end of the "CFLAGS=" line as needed to override 181325159Sphilip# defaults specified in the source code. "-DFOO" is equivalent to "-DFOO=1". 182325159Sphilip# -DDEPRECATE_TWO_DIGIT_YEARS for optional runtime warnings about strftime 183325159Sphilip# formats that generate only the last two digits of year numbers 184325159Sphilip# -DEPOCH_LOCAL if the 'time' function returns local time not UT 185325159Sphilip# -DEPOCH_OFFSET=N if the 'time' function returns a value N greater 186325159Sphilip# than what POSIX specifies, assuming local time is UT. 187325159Sphilip# For example, N is 252460800 on AmigaOS. 188308265Sgjb# -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r 189325159Sphilip# -DHAVE_DECL_ENVIRON if <unistd.h> declares 'environ' 190308265Sgjb# -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows) 191325159Sphilip# -DHAVE_GENERIC=0 if _Generic does not work 192325159Sphilip# -DHAVE_GETTEXT if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris) 193325159Sphilip# -DHAVE_INCOMPATIBLE_CTIME_R if your system's time.h declares 194308265Sgjb# ctime_r and asctime_r incompatibly with the POSIX standard 195308265Sgjb# (Solaris when _POSIX_PTHREAD_SEMANTICS is not defined). 196325159Sphilip# -DHAVE_INTTYPES_H if you have a non-C99 compiler with <inttypes.h> 197308265Sgjb# -DHAVE_LINK=0 if your system lacks a link function 198308265Sgjb# -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function 199308265Sgjb# -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz 200308265Sgjb# localtime_rz can make zdump significantly faster, but is nonstandard. 201308265Sgjb# -DHAVE_POSIX_DECLS=0 if your system's include files do not declare 202308265Sgjb# functions like 'link' or variables like 'tzname' required by POSIX 203325159Sphilip# -DHAVE_SNPRINTF=0 if your system lacks the snprintf function 204325159Sphilip# -DHAVE_STDBOOL_H if you have a non-C99 compiler with <stdbool.h> 205325159Sphilip# -DHAVE_STDINT_H if you have a non-C99 compiler with <stdint.h> 206325159Sphilip# -DHAVE_STRFTIME_L if <time.h> declares locale_t and strftime_l 207308265Sgjb# -DHAVE_STRDUP=0 if your system lacks the strdup function 208331662Sphilip# -DHAVE_STRTOLL=0 if your system lacks the strtoll function 209308265Sgjb# -DHAVE_SYMLINK=0 if your system lacks the symlink function 210325159Sphilip# -DHAVE_SYS_STAT_H=0 if your compiler lacks a <sys/stat.h> 211325159Sphilip# -DHAVE_SYS_WAIT_H=0 if your compiler lacks a <sys/wait.h> 212308265Sgjb# -DHAVE_TZSET=0 if your system lacks a tzset function 213325159Sphilip# -DHAVE_UNISTD_H=0 if your compiler lacks a <unistd.h> 214325159Sphilip# -Dlocale_t=XXX if your system uses XXX instead of locale_t 215331662Sphilip# -DRESERVE_STD_EXT_IDS if your platform reserves standard identifiers 216331662Sphilip# with external linkage, e.g., applications cannot define 'localtime'. 217325159Sphilip# -Dssize_t=long on hosts like MS-Windows that lack ssize_t 218331662Sphilip# -DSUPPRESS_TZDIR to not prepend TZDIR to file names; this has 219331662Sphilip# security implications and is not recommended for general use 220325159Sphilip# -DTHREAD_SAFE to make localtime.c thread-safe, as POSIX requires; 221308265Sgjb# not needed by the main-program tz code, which is single-threaded. 222308265Sgjb# Append other compiler flags as needed, e.g., -pthread on GNU/Linux. 223308265Sgjb# -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t 224325159Sphilip# This is intended for internal use only; it mangles external names. 225308265Sgjb# -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz" 226308265Sgjb# -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory; 227308265Sgjb# the default is system-supplied, typically "/usr/lib/locale" 228308265Sgjb# -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified 229308265Sgjb# DST transitions if the time zone files cannot be accessed 230325159Sphilip# -DUNINIT_TRAP if reading uninitialized storage can cause problems 231308265Sgjb# other than simply getting garbage data 232308265Sgjb# -DUSE_LTZ=0 to build zdump with the system time zone library 233308265Sgjb# Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below. 234308265Sgjb# -DZIC_MAX_ABBR_LEN_WO_WARN=3 235308265Sgjb# (or some other number) to set the maximum time zone abbreviation length 236308265Sgjb# that zic will accept without a warning (the default is 6) 237308265Sgjb# $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking 238325159Sphilip# Select instrumentation via "make GCC_INSTRUMENT='whatever'". 239325159SphilipGCC_INSTRUMENT = \ 240325159Sphilip -fsanitize=undefined -fsanitize-address-use-after-scope \ 241325159Sphilip -fsanitize-undefined-trap-on-error -fstack-protector 242325159SphilipGCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ 243325159Sphilip $(GCC_INSTRUMENT) \ 244325159Sphilip -Wall -Wextra \ 245325159Sphilip -Walloc-size-larger-than=100000 -Warray-bounds=2 \ 246333312Sphilip -Wbad-function-cast -Wcast-align=strict -Wdate-time \ 247325159Sphilip -Wdeclaration-after-statement -Wdouble-promotion \ 248325159Sphilip -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation \ 249325159Sphilip -Winit-self -Wjump-misses-init -Wlogical-op \ 250325159Sphilip -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ 251325159Sphilip -Wold-style-definition -Woverlength-strings -Wpointer-arith \ 252333312Sphilip -Wshadow -Wshift-overflow=2 -Wstrict-prototypes -Wstringop-overflow=4 \ 253333312Sphilip -Wstringop-truncation -Wsuggest-attribute=cold \ 254325159Sphilip -Wsuggest-attribute=const -Wsuggest-attribute=format \ 255333312Sphilip -Wsuggest-attribute=malloc \ 256325159Sphilip -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure \ 257325159Sphilip -Wtrampolines -Wundef -Wuninitialized -Wunused \ 258325159Sphilip -Wvariadic-macros -Wvla -Wwrite-strings \ 259325159Sphilip -Wno-address -Wno-format-nonliteral -Wno-sign-compare \ 260325159Sphilip -Wno-type-limits -Wno-unused-parameter 261308265Sgjb# 262308265Sgjb# If your system has a "GMT offset" field in its "struct tm"s 263308265Sgjb# (or if you decide to add such a field in your system's "time.h" file), 264308265Sgjb# add the name to a define such as 265308265Sgjb# -DTM_GMTOFF=tm_gmtoff 266308265Sgjb# to the end of the "CFLAGS=" line. If not defined, the code attempts to 267308265Sgjb# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this. 268308265Sgjb# Similarly, if your system has a "zone abbreviation" field, define 269308265Sgjb# -DTM_ZONE=tm_zone 270308265Sgjb# and define NO_TM_ZONE to suppress any guessing. These two fields are not 271308265Sgjb# required by POSIX, but are widely available on GNU/Linux and BSD systems. 272308265Sgjb# 273325159Sphilip# The next batch of options control support for external variables 274325159Sphilip# exported by tzcode. In practice these variables are less useful 275325159Sphilip# than TM_GMTOFF and TM_ZONE. However, most of them are standardized. 276325159Sphilip# # 277325159Sphilip# # To omit or support the external variable "tzname", add one of: 278325159Sphilip# # -DHAVE_TZNAME=0 279325159Sphilip# # -DHAVE_TZNAME=1 280325159Sphilip# # to the "CFLAGS=" line. "tzname" is required by POSIX 1988 and later. 281325159Sphilip# # If not defined, the code attempts to guess HAVE_TZNAME from other macros. 282325159Sphilip# # Warning: unless time_tz is also defined, HAVE_TZNAME=1 can cause 283325159Sphilip# # crashes when combined with some platforms' standard libraries, 284325159Sphilip# # presumably due to memory allocation issues. 285325159Sphilip# # 286325159Sphilip# # To omit or support the external variables "timezone" and "daylight", add 287325159Sphilip# # -DUSG_COMPAT=0 288325159Sphilip# # -DUSG_COMPAT=1 289325159Sphilip# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by 290325159Sphilip# # Unix Systems Group code and are required by POSIX 2008 (with XSI) and later. 291325159Sphilip# # If not defined, the code attempts to guess USG_COMPAT from other macros. 292325159Sphilip# # 293325159Sphilip# # To support the external variable "altzone", add 294325159Sphilip# # -DALTZONE 295325159Sphilip# # to the end of the "CFLAGS=" line; although "altzone" appeared in 296325159Sphilip# # System V Release 3.1 it has not been standardized. 297325159Sphilip# 298308265Sgjb# If you want functions that were inspired by early versions of X3J11's work, 299308265Sgjb# add 300308265Sgjb# -DSTD_INSPIRED 301308265Sgjb# to the end of the "CFLAGS=" line. This arranges for the functions 302308265Sgjb# "tzsetwall", "offtime", "timelocal", "timegm", "timeoff", 303308265Sgjb# "posix2time", and "time2posix" to be added to the time conversion library. 304308265Sgjb# "tzsetwall" is like "tzset" except that it arranges for local wall clock 305339630Sphilip# time (rather than the timezone specified in the TZ environment variable) 306308265Sgjb# to be used. 307308265Sgjb# "offtime" is like "gmtime" except that it accepts a second (long) argument 308308265Sgjb# that gives an offset to add to the time_t when converting it. 309308265Sgjb# "timelocal" is equivalent to "mktime". 310308265Sgjb# "timegm" is like "timelocal" except that it turns a struct tm into 311308265Sgjb# a time_t using UT (rather than local time as "timelocal" does). 312308265Sgjb# "timeoff" is like "timegm" except that it accepts a second (long) argument 313308265Sgjb# that gives an offset to use when converting to a time_t. 314308265Sgjb# "posix2time" and "time2posix" are described in an included manual page. 315308265Sgjb# X3J11's work does not describe any of these functions. 316308265Sgjb# Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0. 317308265Sgjb# These functions may well disappear in future releases of the time 318308265Sgjb# conversion package. 319308265Sgjb# 320308265Sgjb# If you don't want functions that were inspired by NetBSD, add 321308265Sgjb# -DNETBSD_INSPIRED=0 322308265Sgjb# to the end of the "CFLAGS=" line. Otherwise, the functions 323308265Sgjb# "localtime_rz", "mktime_z", "tzalloc", and "tzfree" are added to the 324308265Sgjb# time library, and if STD_INSPIRED is also defined the functions 325308265Sgjb# "posix2time_z" and "time2posix_z" are added as well. 326308265Sgjb# The functions ending in "_z" (or "_rz") are like their unsuffixed 327308265Sgjb# (or suffixed-by-"_r") counterparts, except with an extra first 328339630Sphilip# argument of opaque type timezone_t that specifies the timezone. 329308265Sgjb# "tzalloc" allocates a timezone_t value, and "tzfree" frees it. 330308265Sgjb# 331308265Sgjb# If you want to allocate state structures in localtime, add 332308265Sgjb# -DALL_STATE 333308265Sgjb# to the end of the "CFLAGS=" line. Storage is obtained by calling malloc. 334308265Sgjb# 335308265Sgjb# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put 336308265Sgjb# out by the National Institute of Standards and Technology 337308265Sgjb# which claims to test C and Posix conformance. If you want to pass PCTS, add 338308265Sgjb# -DPCTS 339308265Sgjb# to the end of the "CFLAGS=" line. 340308265Sgjb# 341308265Sgjb# If you want strict compliance with XPG4 as of 1994-04-09, add 342308265Sgjb# -DXPG4_1994_04_09 343308265Sgjb# to the end of the "CFLAGS=" line. This causes "strftime" to always return 344325159Sphilip# 53 as a week number (rather than 52 or 53) for January days before 345325159Sphilip# January's first Monday when a "%V" format is used and January 1 346308265Sgjb# falls on a Friday, Saturday, or Sunday. 347308265Sgjb 348308265SgjbCFLAGS= 349308265Sgjb 350308265Sgjb# Linker flags. Default to $(LFLAGS) for backwards compatibility 351308265Sgjb# to release 2012h and earlier. 352308265Sgjb 353308265SgjbLDFLAGS= $(LFLAGS) 354308265Sgjb 355308265Sgjb# For leap seconds, this Makefile uses LEAPSECONDS='-L leapseconds' in 356308265Sgjb# submake command lines. The default is no leap seconds. 357308265Sgjb 358308265SgjbLEAPSECONDS= 359308265Sgjb 360308265Sgjb# The zic command and its arguments. 361308265Sgjb 362308265Sgjbzic= ./zic 363308265SgjbZIC= $(zic) $(ZFLAGS) 364308265Sgjb 365345670Sphilip# To shrink the size of installed TZif files, 366345670Sphilip# append "-r @N" to omit data before N-seconds-after-the-Epoch. 367345670Sphilip# See the zic man page for more about -r. 368308265SgjbZFLAGS= 369308265Sgjb 370339630Sphilip# How to use zic to install TZif files. 371308265Sgjb 372328475SphilipZIC_INSTALL= $(ZIC) -d '$(DESTDIR)$(TZDIR)' $(LEAPSECONDS) 373308265Sgjb 374308265Sgjb# The name of a Posix-compliant 'awk' on your system. 375339630Sphilip# Older 'mawk' versions, such as the 'mawk' in Ubuntu 16.04, might dump core; 376339630Sphilip# on Ubuntu you can work around this with 377339630Sphilip# AWK= gawk 378308265SgjbAWK= awk 379308265Sgjb 380308265Sgjb# The full path name of a Posix-compliant shell, preferably one that supports 381308265Sgjb# the Korn shell's 'select' statement as an extension. 382308265Sgjb# These days, Bash is the most popular. 383308265Sgjb# It should be OK to set this to /bin/sh, on platforms where /bin/sh 384308265Sgjb# lacks 'select' or doesn't completely conform to Posix, but /bin/bash 385308265Sgjb# is typically nicer if it works. 386308265SgjbKSHELL= /bin/bash 387308265Sgjb 388342668Sphilip# Name of curl <https://curl.haxx.se/>, used for HTML validation. 389342668SphilipCURL= curl 390342668Sphilip 391308265Sgjb# The path where SGML DTDs are kept and the catalog file(s) to use when 392342668Sphilip# validating HTML 4.01. The default should work on both Debian and Red Hat. 393308265SgjbSGML_TOPDIR= /usr 394308265SgjbSGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd 395308265SgjbSGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224 396308265SgjbSGML_CATALOG_FILES= \ 397308265Sgjb $(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 398308265Sgjb 399342668Sphilip# The name, arguments and environment of a program to validate HTML 4.01. 400308265Sgjb# See <http://openjade.sourceforge.net/doc/> for a validator, and 401308265Sgjb# <https://validator.w3.org/source/> for a validation library. 402325159Sphilip# Set VALIDATE=':' if you do not have such a program. 403308265SgjbVALIDATE = nsgmls 404308265SgjbVALIDATE_FLAGS = -s -B -wall -wno-unused-param 405308265SgjbVALIDATE_ENV = \ 406328475Sphilip SGML_CATALOG_FILES='$(SGML_CATALOG_FILES)' \ 407328475Sphilip SGML_SEARCH_PATH='$(SGML_SEARCH_PATH)' \ 408308265Sgjb SP_CHARSET_FIXED=YES \ 409308265Sgjb SP_ENCODING=UTF-8 410308265Sgjb 411308265Sgjb# This expensive test requires USE_LTZ. 412308265Sgjb# To suppress it, define this macro to be empty. 413308265SgjbCHECK_TIME_T_ALTERNATIVES = check_time_t_alternatives 414308265Sgjb 415308265Sgjb# SAFE_CHAR is a regular expression that matches a safe character. 416308265Sgjb# Some parts of this distribution are limited to safe characters; 417308265Sgjb# others can use any UTF-8 character. 418308265Sgjb# For now, the safe characters are a safe subset of ASCII. 419308265Sgjb# The caller must set the shell variable 'sharp' to the character '#', 420308265Sgjb# since Makefile macros cannot contain '#'. 421308265Sgjb# TAB_CHAR is a single tab character, in single quotes. 422308265SgjbTAB_CHAR= ' ' 423308265SgjbSAFE_CHARSET1= $(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@' 424308265SgjbSAFE_CHARSET2= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`' 425308265SgjbSAFE_CHARSET3= 'abcdefghijklmnopqrstuvwxyz{|}~' 426308265SgjbSAFE_CHARSET= $(SAFE_CHARSET1)$(SAFE_CHARSET2)$(SAFE_CHARSET3) 427308265SgjbSAFE_CHAR= '[]'$(SAFE_CHARSET)'-]' 428308265Sgjb 429339630Sphilip# These characters are Latin-1, and so are likely to be displayable 430339630Sphilip# even in editors with limited character sets. 431339630SphilipUNUSUAL_OK_LATIN_1 = �������������� 432339630Sphilip# This IPA symbol is represented in Unicode as the composition of 433339630Sphilip# U+0075 and U+032F, and U+032F is not considered alphabetic by some 434339630Sphilip# grep implementations that do not grok composition. 435339630SphilipUNUSUAL_OK_IPA = u�� 436331662Sphilip# Non-ASCII non-letters that OK_CHAR allows, as these characters are 437339630Sphilip# useful in commentary. 438339630SphilipUNUSUAL_OK_CHARSET= $(UNUSUAL_OK_LATIN_1)$(UNUSUAL_OK_IPA) 439331662Sphilip 440308265Sgjb# OK_CHAR matches any character allowed in the distributed files. 441331662Sphilip# This is the same as SAFE_CHAR, except that UNUSUAL_OK_CHARSET and 442331662Sphilip# multibyte letters are also allowed so that commentary can contain a 443331662Sphilip# few safe symbols and people's names and can quote non-English sources. 444331662Sphilip# Other non-letters are limited to ASCII renderings for the 445331662Sphilip# convenience of maintainers using XEmacs 21.5.34, which by default 446331662Sphilip# mishandles Unicode characters U+0100 and greater. 447331662SphilipOK_CHAR= '[][:alpha:]$(UNUSUAL_OK_CHARSET)'$(SAFE_CHARSET)'-]' 448308265Sgjb 449308265Sgjb# SAFE_LINE matches a line of safe characters. 450308265Sgjb# SAFE_SHARP_LINE is similar, except any OK character can follow '#'; 451308265Sgjb# this is so that comments can contain non-ASCII characters. 452308265Sgjb# OK_LINE matches a line of OK characters. 453308265SgjbSAFE_LINE= '^'$(SAFE_CHAR)'*$$' 454308265SgjbSAFE_SHARP_LINE='^'$(SAFE_CHAR)'*('$$sharp$(OK_CHAR)'*)?$$' 455308265SgjbOK_LINE= '^'$(OK_CHAR)'*$$' 456308265Sgjb 457308265Sgjb# Flags to give 'tar' when making a distribution. 458308265Sgjb# Try to use flags appropriate for GNU tar. 459308265SgjbGNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name 460308265SgjbTARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \ 461308265Sgjb then echo $(GNUTARFLAGS); \ 462308265Sgjb else :; \ 463308265Sgjb fi` 464308265Sgjb 465308265Sgjb# Flags to give 'gzip' when making a distribution. 466308265SgjbGZIPFLAGS= -9n 467308265Sgjb 468308265Sgjb############################################################################### 469308265Sgjb 470308265Sgjb#MAKE= make 471308265Sgjb 472308265Sgjbcc= cc 473328475SphilipCC= $(cc) -DTZDIR='"$(TZDIR)"' 474308265Sgjb 475308265SgjbAR= ar 476308265Sgjb 477308265Sgjb# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib. 478308265SgjbRANLIB= : 479308265Sgjb 480308265SgjbTZCOBJS= zic.o 481325159SphilipTZDOBJS= zdump.o localtime.o asctime.o strftime.o 482308265SgjbDATEOBJS= date.o localtime.o strftime.o asctime.o 483308265SgjbLIBSRCS= localtime.c asctime.c difftime.c 484308265SgjbLIBOBJS= localtime.o asctime.o difftime.o 485308265SgjbHEADERS= tzfile.h private.h 486308265SgjbNONLIBSRCS= zic.c zdump.c 487308265SgjbNEWUCBSRCS= date.c strftime.c 488308265SgjbSOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \ 489308265Sgjb tzselect.ksh workman.sh 490308265SgjbMANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \ 491308265Sgjb tzfile.5 tzselect.8 zic.8 zdump.8 492308265SgjbMANTXTS= newctime.3.txt newstrftime.3.txt newtzset.3.txt \ 493308265Sgjb time2posix.3.txt \ 494308265Sgjb tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \ 495308265Sgjb date.1.txt 496325159SphilipCOMMON= calendars CONTRIBUTING LICENSE Makefile \ 497325159Sphilip NEWS README theory.html version 498328475SphilipWEB_PAGES= tz-art.html tz-how-to.html tz-link.html 499345670SphilipCHECK_WEB_PAGES=check_theory.html check_tz-art.html \ 500345670Sphilip check_tz-how-to.html check_tz-link.html 501308265SgjbDOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES) 502308265SgjbPRIMARY_YDATA= africa antarctica asia australasia \ 503308265Sgjb europe northamerica southamerica 504328475SphilipYDATA= $(PRIMARY_YDATA) etcetera 505308265SgjbNDATA= systemv factory 506328475SphilipTDATA_TO_CHECK= $(YDATA) $(NDATA) backward pacificnew 507328475SphilipTDATA= $(YDATA) $(NDATA) $(BACKWARD) 508308265SgjbZONETABLES= zone1970.tab zone.tab 509325159SphilipTABDATA= iso3166.tab $(TZDATA_TEXT) $(ZONETABLES) 510308265SgjbLEAP_DEPS= leapseconds.awk leap-seconds.list 511331662SphilipTZDATA_ZI_DEPS= ziguard.awk zishrink.awk version $(TDATA) $(PACKRATDATA) 512331662SphilipDSTDATA_ZI_DEPS= ziguard.awk $(TDATA) $(PACKRATDATA) 513328475SphilipDATA= $(TDATA_TO_CHECK) backzone iso3166.tab leap-seconds.list \ 514325159Sphilip leapseconds yearistype.sh $(ZONETABLES) 515331662SphilipAWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk \ 516331662Sphilip ziguard.awk zishrink.awk 517308265SgjbMISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl 518308265SgjbTZS_YEAR= 2050 519339630SphilipTZS_CUTOFF_FLAG= -c $(TZS_YEAR) 520308265SgjbTZS= to$(TZS_YEAR).tzs 521308265SgjbTZS_NEW= to$(TZS_YEAR)new.tzs 522308265SgjbTZS_DEPS= $(PRIMARY_YDATA) asctime.c localtime.c \ 523308265Sgjb private.h tzfile.h zdump.c zic.c 524339630Sphilip# EIGHT_YARDS is just a yard short of the whole ENCHILADA. 525339630SphilipEIGHT_YARDS = $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) tzdata.zi 526339630SphilipENCHILADA = $(EIGHT_YARDS) $(TZS) 527308265Sgjb 528308265Sgjb# Consult these files when deciding whether to rebuild the 'version' file. 529308265Sgjb# This list is not the same as the output of 'git ls-files', since 530308265Sgjb# .gitignore is not distributed. 531308265SgjbVERSION_DEPS= \ 532325159Sphilip calendars CONTRIBUTING LICENSE Makefile NEWS README \ 533308265Sgjb africa antarctica asctime.c asia australasia \ 534308265Sgjb backward backzone \ 535308265Sgjb checklinks.awk checktab.awk \ 536308265Sgjb date.1 date.c difftime.c \ 537308265Sgjb etcetera europe factory iso3166.tab \ 538308265Sgjb leap-seconds.list leapseconds.awk localtime.c \ 539308265Sgjb newctime.3 newstrftime.3 newtzset.3 northamerica \ 540308265Sgjb pacificnew private.h \ 541325159Sphilip southamerica strftime.c systemv theory.html \ 542328475Sphilip time2posix.3 tz-art.html tz-how-to.html tz-link.html \ 543308265Sgjb tzfile.5 tzfile.h tzselect.8 tzselect.ksh \ 544308265Sgjb workman.sh yearistype.sh \ 545308265Sgjb zdump.8 zdump.c zic.8 zic.c \ 546333312Sphilip ziguard.awk zishrink.awk \ 547308265Sgjb zone.tab zone1970.tab zoneinfo2tdf.pl 548308265Sgjb 549308265Sgjb# And for the benefit of csh users on systems that assume the user 550308265Sgjb# shell should be used to handle commands in Makefiles. . . 551308265Sgjb 552308265SgjbSHELL= /bin/sh 553308265Sgjb 554331662Sphilipall: tzselect yearistype zic zdump libtz.a $(TABDATA) \ 555331662Sphilip vanguard.zi main.zi rearguard.zi 556308265Sgjb 557308265SgjbALL: all date $(ENCHILADA) 558308265Sgjb 559308265Sgjbinstall: all $(DATA) $(REDO) $(MANS) 560328475Sphilip mkdir -p '$(DESTDIR)$(BINDIR)' \ 561328475Sphilip '$(DESTDIR)$(ZDUMPDIR)' '$(DESTDIR)$(ZICDIR)' \ 562328475Sphilip '$(DESTDIR)$(LIBDIR)' \ 563328475Sphilip '$(DESTDIR)$(MANDIR)/man3' '$(DESTDIR)$(MANDIR)/man5' \ 564328475Sphilip '$(DESTDIR)$(MANDIR)/man8' 565328475Sphilip $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES) \ 566328475Sphilip -t '$(DESTDIR)$(TZDEFAULT)' 567328475Sphilip cp -f $(TABDATA) '$(DESTDIR)$(TZDIR)/.' 568328475Sphilip cp tzselect '$(DESTDIR)$(BINDIR)/.' 569328475Sphilip cp zdump '$(DESTDIR)$(ZDUMPDIR)/.' 570328475Sphilip cp zic '$(DESTDIR)$(ZICDIR)/.' 571328475Sphilip cp libtz.a '$(DESTDIR)$(LIBDIR)/.' 572328475Sphilip $(RANLIB) '$(DESTDIR)$(LIBDIR)/libtz.a' 573328475Sphilip cp -f newctime.3 newtzset.3 '$(DESTDIR)$(MANDIR)/man3/.' 574328475Sphilip cp -f tzfile.5 '$(DESTDIR)$(MANDIR)/man5/.' 575328475Sphilip cp -f tzselect.8 zdump.8 zic.8 '$(DESTDIR)$(MANDIR)/man8/.' 576308265Sgjb 577308265SgjbINSTALL: ALL install date.1 578328475Sphilip mkdir -p '$(DESTDIR)$(BINDIR)' '$(DESTDIR)$(MANDIR)/man1' 579328475Sphilip cp date '$(DESTDIR)$(BINDIR)/.' 580328475Sphilip cp -f date.1 '$(DESTDIR)$(MANDIR)/man1/.' 581308265Sgjb 582308265Sgjbversion: $(VERSION_DEPS) 583308265Sgjb { (type git) >/dev/null 2>&1 && \ 584308265Sgjb V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \ 585308265Sgjb --abbrev=7 --dirty` || \ 586328475Sphilip V='$(VERSION)'; } && \ 587308265Sgjb printf '%s\n' "$$V" >$@.out 588308265Sgjb mv $@.out $@ 589308265Sgjb 590339630Sphilip# These files can be tailored by setting BACKWARD and PACKRATDATA. 591331662Sphilipvanguard.zi main.zi rearguard.zi: $(DSTDATA_ZI_DEPS) 592333312Sphilip $(AWK) -v DATAFORM=`expr $@ : '\(.*\).zi'` -f ziguard.awk \ 593333312Sphilip $(TDATA) $(PACKRATDATA) >$@.out 594331662Sphilip mv $@.out $@ 595339630Sphilip# This file has a version comment that attempts to capture any tailoring 596339630Sphilip# via BACKWARD, DATAFORM, PACKRATDATA, and REDO. 597339630Sphiliptzdata.zi: $(DATAFORM).zi version zishrink.awk 598328475Sphilip version=`sed 1q version` && \ 599339630Sphilip LC_ALL=C $(AWK) \ 600339630Sphilip -v dataform='$(DATAFORM)' \ 601339630Sphilip -v deps='$(DSTDATA_ZI_DEPS) zishrink.awk' \ 602339630Sphilip -v redo='$(REDO)' \ 603339630Sphilip -v version="$$version" \ 604339630Sphilip -f zishrink.awk \ 605331662Sphilip $(DATAFORM).zi >$@.out 606325159Sphilip mv $@.out $@ 607325159Sphilip 608308265Sgjbversion.h: version 609308265Sgjb VERSION=`cat version` && printf '%s\n' \ 610308265Sgjb 'static char const PKGVERSION[]="($(PACKAGE)) ";' \ 611308265Sgjb "static char const TZVERSION[]=\"$$VERSION\";" \ 612308265Sgjb 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";' \ 613308265Sgjb >$@.out 614308265Sgjb mv $@.out $@ 615308265Sgjb 616308265Sgjbzdump: $(TZDOBJS) 617308265Sgjb $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) 618308265Sgjb 619308265Sgjbzic: $(TZCOBJS) 620308265Sgjb $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) 621308265Sgjb 622308265Sgjbyearistype: yearistype.sh 623308265Sgjb cp yearistype.sh yearistype 624308265Sgjb chmod +x yearistype 625308265Sgjb 626308265Sgjbleapseconds: $(LEAP_DEPS) 627308265Sgjb $(AWK) -f leapseconds.awk leap-seconds.list >$@.out 628308265Sgjb mv $@.out $@ 629308265Sgjb 630308265Sgjb# Arguments to pass to submakes of install_data. 631308265Sgjb# They can be overridden by later submake arguments. 632308265SgjbINSTALLARGS = \ 633328475Sphilip BACKWARD='$(BACKWARD)' \ 634328475Sphilip DESTDIR='$(DESTDIR)' \ 635308265Sgjb LEAPSECONDS='$(LEAPSECONDS)' \ 636308265Sgjb PACKRATDATA='$(PACKRATDATA)' \ 637328475Sphilip TZDEFAULT='$(TZDEFAULT)' \ 638328475Sphilip TZDIR='$(TZDIR)' \ 639328475Sphilip YEARISTYPE='$(YEARISTYPE)' \ 640308265Sgjb ZIC='$(ZIC)' 641308265Sgjb 642339630SphilipINSTALL_DATA_DEPS = zic leapseconds yearistype tzdata.zi 643339630Sphilip 644339630Sphilip# 'make install_data' installs one set of TZif files. 645339630Sphilipinstall_data: $(INSTALL_DATA_DEPS) 646325159Sphilip $(ZIC_INSTALL) tzdata.zi 647308265Sgjb 648339630Sphilipposix_only: $(INSTALL_DATA_DEPS) 649308265Sgjb $(MAKE) $(INSTALLARGS) LEAPSECONDS= install_data 650308265Sgjb 651339630Sphilipright_only: $(INSTALL_DATA_DEPS) 652308265Sgjb $(MAKE) $(INSTALLARGS) LEAPSECONDS='-L leapseconds' \ 653308265Sgjb install_data 654308265Sgjb 655308265Sgjb# In earlier versions of this makefile, the other two directories were 656308265Sgjb# subdirectories of $(TZDIR). However, this led to configuration errors. 657308265Sgjb# For example, with posix_right under the earlier scheme, 658308265Sgjb# TZ='right/Australia/Adelaide' got you localtime with leap seconds, 659308265Sgjb# but gmtime without leap seconds, which led to problems with applications 660308265Sgjb# like sendmail that subtract gmtime from localtime. 661308265Sgjb# Therefore, the other two directories are now siblings of $(TZDIR). 662308265Sgjb# You must replace all of $(TZDIR) to switch from not using leap seconds 663308265Sgjb# to using them, or vice versa. 664308265Sgjbright_posix: right_only 665328475Sphilip rm -fr '$(DESTDIR)$(TZDIR)-leaps' 666328475Sphilip ln -s '$(TZDIR_BASENAME)' '$(DESTDIR)$(TZDIR)-leaps' || \ 667328475Sphilip $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-leaps' right_only 668328475Sphilip $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-posix' posix_only 669308265Sgjb 670308265Sgjbposix_right: posix_only 671328475Sphilip rm -fr '$(DESTDIR)$(TZDIR)-posix' 672328475Sphilip ln -s '$(TZDIR_BASENAME)' '$(DESTDIR)$(TZDIR)-posix' || \ 673328475Sphilip $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-posix' posix_only 674328475Sphilip $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-leaps' right_only 675308265Sgjb 676308265Sgjb# This obsolescent rule is present for backwards compatibility with 677308265Sgjb# tz releases 2014g through 2015g. It should go away eventually. 678339630Sphilipposix_packrat: $(INSTALL_DATA_DEPS) 679308265Sgjb $(MAKE) $(INSTALLARGS) PACKRATDATA=backzone posix_only 680308265Sgjb 681308265Sgjbzones: $(REDO) 682308265Sgjb 683331662Sphilip# dummy.zd is not a real file; it is mentioned here only so that the 684331662Sphilip# top-level 'make' does not have a syntax error. 685331662SphilipZDS = dummy.zd 686331662Sphilip# Rule used only by submakes invoked by the $(TZS_NEW) rule. 687331662Sphilip# It is separate so that GNU 'make -j' can run instances in parallel. 688331662Sphilip$(ZDS): zdump 689339630Sphilip ./zdump -i $(TZS_CUTOFF_FLAG) '$(wd)/'$$(expr $@ : '\(.*\).zd') \ 690339630Sphilip >$@ 691331662Sphilip 692339630SphilipTZS_NEW_DEPS = tzdata.zi zdump zic 693339630Sphilip$(TZS_NEW): $(TZS_NEW_DEPS) 694339630Sphilip rm -fr tzs$(TZS_YEAR).dir 695339630Sphilip mkdir tzs$(TZS_YEAR).dir 696339630Sphilip $(zic) -d tzs$(TZS_YEAR).dir tzdata.zi 697325159Sphilip $(AWK) '/^L/{print "Link\t" $$2 "\t" $$3}' \ 698325159Sphilip tzdata.zi | LC_ALL=C sort >$@.out 699308265Sgjb wd=`pwd` && \ 700339630Sphilip x=`$(AWK) '/^Z/{print "tzs$(TZS_YEAR).dir/" $$2 ".zd"}' \ 701339630Sphilip tzdata.zi \ 702331662Sphilip | LC_ALL=C sort -t . -k 2,2` && \ 703339630Sphilip set x $$x && \ 704331662Sphilip shift && \ 705331662Sphilip ZDS=$$* && \ 706339630Sphilip $(MAKE) wd="$$wd" TZS_CUTOFF_FLAG="$(TZS_CUTOFF_FLAG)" \ 707339630Sphilip ZDS="$$ZDS" $$ZDS && \ 708339630Sphilip sed 's,^TZ=".*\.dir/,TZ=",' $$ZDS >>$@.out 709339630Sphilip rm -fr tzs$(TZS_YEAR).dir 710331662Sphilip mv $@.out $@ 711308265Sgjb 712339630Sphilip# If $(TZS) exists but 'make check_tzs' fails, a maintainer should inspect the 713308265Sgjb# failed output and fix the inconsistency, perhaps by running 'make force_tzs'. 714308265Sgjb$(TZS): 715339630Sphilip touch $@ 716308265Sgjb 717308265Sgjbforce_tzs: $(TZS_NEW) 718308265Sgjb cp $(TZS_NEW) $(TZS) 719308265Sgjb 720308265Sgjblibtz.a: $(LIBOBJS) 721309792Sbapt rm -f $@ 722309792Sbapt $(AR) -rc $@ $(LIBOBJS) 723308265Sgjb $(RANLIB) $@ 724308265Sgjb 725308265Sgjbdate: $(DATEOBJS) 726308265Sgjb $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS) 727308265Sgjb 728308265Sgjbtzselect: tzselect.ksh version 729308265Sgjb VERSION=`cat version` && sed \ 730308265Sgjb -e 's|#!/bin/bash|#!$(KSHELL)|g' \ 731308265Sgjb -e 's|AWK=[^}]*|AWK=$(AWK)|g' \ 732308265Sgjb -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \ 733308265Sgjb -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \ 734308265Sgjb -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \ 735308265Sgjb -e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \ 736308265Sgjb <$@.ksh >$@.out 737308265Sgjb chmod +x $@.out 738308265Sgjb mv $@.out $@ 739308265Sgjb 740325159Sphilipcheck: check_character_set check_white_space check_links \ 741325159Sphilip check_name_lengths check_sorted \ 742325159Sphilip check_tables check_web check_zishrink check_tzs 743308265Sgjb 744308265Sgjbcheck_character_set: $(ENCHILADA) 745325159Sphilip test ! '$(UTF8_LOCALE)' || \ 746325159Sphilip ! printf 'A\304\200B\n' | \ 747325159Sphilip LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 || { \ 748325159Sphilip LC_ALL='$(UTF8_LOCALE)' && export LC_ALL && \ 749308265Sgjb sharp='#' && \ 750308265Sgjb ! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \ 751308265Sgjb $(MISC) $(SOURCES) $(WEB_PAGES) \ 752331662Sphilip CONTRIBUTING LICENSE README \ 753325159Sphilip version tzdata.zi && \ 754339630Sphilip ! grep -Env $(SAFE_LINE)'|^UNUSUAL_OK_'$(OK_CHAR)'*$$' \ 755331662Sphilip Makefile && \ 756328475Sphilip ! grep -Env $(SAFE_SHARP_LINE) $(TDATA_TO_CHECK) backzone \ 757308265Sgjb leapseconds yearistype.sh zone.tab && \ 758325159Sphilip ! grep -Env $(OK_LINE) $(ENCHILADA); \ 759325159Sphilip } 760339630Sphilip touch $@ 761308265Sgjb 762308265Sgjbcheck_white_space: $(ENCHILADA) 763308265Sgjb patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \ 764339630Sphilip ! grep -En "$$pat" \ 765339630Sphilip $$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list) 766328475Sphilip ! grep -n '[[:space:]]$$' \ 767328475Sphilip $$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list) 768339630Sphilip touch $@ 769308265Sgjb 770325159SphilipPRECEDES_FILE_NAME = ^(Zone|Link[[:space:]]+[^[:space:]]+)[[:space:]]+ 771325159SphilipFILE_NAME_COMPONENT_TOO_LONG = \ 772325159Sphilip $(PRECEDES_FILE_NAME)[^[:space:]]*[^/[:space:]]{15} 773325159Sphilip 774328475Sphilipcheck_name_lengths: $(TDATA_TO_CHECK) backzone 775328475Sphilip ! grep -En '$(FILE_NAME_COMPONENT_TOO_LONG)' \ 776328475Sphilip $(TDATA_TO_CHECK) backzone 777339630Sphilip touch $@ 778325159Sphilip 779308265SgjbCHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; } 780308265Sgjb 781308265Sgjbcheck_sorted: backward backzone iso3166.tab zone.tab zone1970.tab 782308265Sgjb $(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu 783308265Sgjb $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu 784308265Sgjb $(AWK) '/^[^#]/ {print $$1}' iso3166.tab | LC_ALL=C sort -cu 785308265Sgjb $(AWK) '/^[^#]/ {print $$1}' zone.tab | LC_ALL=C sort -c 786308265Sgjb $(AWK) '/^[^#]/ {print substr($$0, 1, 2)}' zone1970.tab | \ 787308265Sgjb LC_ALL=C sort -c 788308265Sgjb $(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \ 789308265Sgjb LC_ALL=C sort -cu 790339630Sphilip touch $@ 791308265Sgjb 792331662Sphilipcheck_links: checklinks.awk $(TDATA_TO_CHECK) tzdata.zi 793328475Sphilip $(AWK) -f checklinks.awk $(TDATA_TO_CHECK) 794325159Sphilip $(AWK) -f checklinks.awk tzdata.zi 795339630Sphilip touch $@ 796308265Sgjb 797308265Sgjbcheck_tables: checktab.awk $(PRIMARY_YDATA) $(ZONETABLES) 798308265Sgjb for tab in $(ZONETABLES); do \ 799308265Sgjb $(AWK) -f checktab.awk -v zone_table=$$tab $(PRIMARY_YDATA) \ 800308265Sgjb || exit; \ 801308265Sgjb done 802339630Sphilip touch $@ 803308265Sgjb 804308265Sgjbcheck_tzs: $(TZS) $(TZS_NEW) 805339630Sphilip if test -s $(TZS); then \ 806339630Sphilip diff -u $(TZS) $(TZS_NEW); \ 807339630Sphilip else \ 808339630Sphilip cp $(TZS_NEW) $(TZS); \ 809339630Sphilip fi 810339630Sphilip touch $@ 811308265Sgjb 812342668Sphilipcheck_web: $(CHECK_WEB_PAGES) 813345670Sphilipcheck_theory.html: theory.html 814342668Sphilipcheck_tz-art.html: tz-art.html 815342668Sphilipcheck_tz-link.html: tz-link.html 816345670Sphilipcheck_theory.html check_tz-art.html check_tz-link.html: 817342668Sphilip $(CURL) -sS --url https://validator.w3.org/nu/ -F out=gnu \ 818342668Sphilip -F file=@$$(expr $@ : 'check_\(.*\)') -o $@.out && \ 819342668Sphilip test ! -s $@.out || { cat $@.out; exit 1; } 820342668Sphilip mv $@.out $@ 821342668Sphilipcheck_tz-how-to.html: tz-how-to.html 822325159Sphilip $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) tz-how-to.html 823339630Sphilip touch $@ 824308265Sgjb 825331662Sphilip# Check that zishrink.awk does not alter the data, and that ziguard.awk 826331662Sphilip# preserves main-format data. 827339630Sphilipcheck_zishrink: check_zishrink_posix check_zishrink_right 828339630Sphilipcheck_zishrink_posix check_zishrink_right: \ 829339630Sphilip zic leapseconds $(PACKRATDATA) $(TDATA) $(DATAFORM).zi tzdata.zi 830339630Sphilip rm -fr $@.dir $@-t.dir $@-shrunk.dir 831339630Sphilip mkdir $@.dir $@-t.dir $@-shrunk.dir 832339630Sphilip case $@ in \ 833339630Sphilip *_right) leap='-L leapseconds';; \ 834339630Sphilip *) leap=;; \ 835339630Sphilip esac && \ 836339630Sphilip $(ZIC) $$leap -d $@.dir $(DATAFORM).zi && \ 837339630Sphilip $(ZIC) $$leap -d $@-shrunk.dir tzdata.zi && \ 838331662Sphilip case $(DATAFORM) in \ 839331662Sphilip main) \ 840339630Sphilip $(ZIC) $$leap -d $@-t.dir $(TDATA) && \ 841331662Sphilip $(AWK) '/^Rule/' $(TDATA) | \ 842339630Sphilip $(ZIC) $$leap -d $@-t.dir - $(PACKRATDATA) && \ 843339630Sphilip diff -r $@.dir $@-t.dir;; \ 844339630Sphilip esac 845339630Sphilip diff -r $@.dir $@-shrunk.dir 846339630Sphilip rm -fr $@.dir $@-t.dir $@-shrunk.dir 847339630Sphilip touch $@ 848325159Sphilip 849308265Sgjbclean_misc: 850345670Sphilip rm -fr check_*.dir 851339630Sphilip rm -f *.o *.out $(TIME_T_ALTERNATIVES) \ 852339630Sphilip check_* core typecheck_* \ 853308265Sgjb date tzselect version.h zdump zic yearistype libtz.a 854308265Sgjbclean: clean_misc 855345670Sphilip rm -fr *.dir tzdb-*/ 856345670Sphilip rm -f *.zi $(TZS_NEW) 857308265Sgjb 858308265Sgjbmaintainer-clean: clean 859308265Sgjb @echo 'This command is intended for maintainers to use; it' 860308265Sgjb @echo 'deletes files that may need special tools to rebuild.' 861308265Sgjb rm -f leapseconds version $(MANTXTS) $(TZS) *.asc *.tar.* 862308265Sgjb 863308265Sgjbnames: 864308265Sgjb @echo $(ENCHILADA) 865308265Sgjb 866308265Sgjbpublic: check check_public $(CHECK_TIME_T_ALTERNATIVES) \ 867308265Sgjb tarballs signatures 868308265Sgjb 869308265Sgjbdate.1.txt: date.1 870308265Sgjbnewctime.3.txt: newctime.3 871308265Sgjbnewstrftime.3.txt: newstrftime.3 872308265Sgjbnewtzset.3.txt: newtzset.3 873308265Sgjbtime2posix.3.txt: time2posix.3 874308265Sgjbtzfile.5.txt: tzfile.5 875308265Sgjbtzselect.8.txt: tzselect.8 876308265Sgjbzdump.8.txt: zdump.8 877308265Sgjbzic.8.txt: zic.8 878308265Sgjb 879308265Sgjb$(MANTXTS): workman.sh 880308265Sgjb LC_ALL=C sh workman.sh `expr $@ : '\(.*\)\.txt$$'` >$@.out 881308265Sgjb mv $@.out $@ 882308265Sgjb 883339630Sphilip# Set the timestamps to those of the git repository, if available, 884308265Sgjb# and if the files have not changed since then. 885308265Sgjb# This uses GNU 'touch' syntax 'touch -d@N FILE', 886308265Sgjb# where N is the number of seconds since 1970. 887308265Sgjb# If git or GNU 'touch' is absent, don't bother to sync with git timestamps. 888308265Sgjb# Also, set the timestamp of each prebuilt file like 'leapseconds' 889308265Sgjb# to be the maximum of the files it depends on. 890339630Sphilipset-timestamps.out: $(EIGHT_YARDS) 891308265Sgjb rm -f $@ 892308265Sgjb if (type git) >/dev/null 2>&1 && \ 893339630Sphilip files=`git ls-files $(EIGHT_YARDS)` && \ 894308265Sgjb touch -md @1 test.out; then \ 895308265Sgjb rm -f test.out && \ 896308265Sgjb for file in $$files; do \ 897308265Sgjb if git diff --quiet $$file; then \ 898308265Sgjb time=`git log -1 --format='tformat:%ct' $$file` && \ 899308265Sgjb touch -cmd @$$time $$file; \ 900308265Sgjb else \ 901308265Sgjb echo >&2 "$$file: warning: does not match repository"; \ 902308265Sgjb fi || exit; \ 903308265Sgjb done; \ 904308265Sgjb fi 905308265Sgjb touch -cmr `ls -t $(LEAP_DEPS) | sed 1q` leapseconds 906308265Sgjb for file in `ls $(MANTXTS) | sed 's/\.txt$$//'`; do \ 907308265Sgjb touch -cmr `ls -t $$file workman.sh | sed 1q` $$file.txt || \ 908308265Sgjb exit; \ 909308265Sgjb done 910325159Sphilip touch -cmr `ls -t $(TZDATA_ZI_DEPS) | sed 1q` tzdata.zi 911308265Sgjb touch -cmr `ls -t $(VERSION_DEPS) | sed 1q` version 912308265Sgjb touch $@ 913339630Sphilipset-tzs-timestamp.out: $(TZS) 914339630Sphilip touch -cmr `ls -t $(TZS_DEPS) | sed 1q` $(TZS) 915339630Sphilip touch $@ 916308265Sgjb 917308265Sgjb# The zics below ensure that each data file can stand on its own. 918308265Sgjb# We also do an all-files run to catch links to links. 919308265Sgjb 920339630Sphilipcheck_public: $(VERSION_DEPS) 921339630Sphilip rm -fr public.dir 922339630Sphilip mkdir public.dir 923339630Sphilip ln $(VERSION_DEPS) public.dir 924339630Sphilip cd public.dir && $(MAKE) CFLAGS='$(GCC_DEBUG_FLAGS)' ALL 925339630Sphilip for i in $(TDATA_TO_CHECK) public.dir/tzdata.zi; do \ 926339630Sphilip public.dir/zic -v -d public.dir/zoneinfo $$i 2>&1 || exit; \ 927308265Sgjb done 928339630Sphilip public.dir/zic -v -d public.dir/zoneinfo-all $(TDATA_TO_CHECK) 929308265Sgjb rm -fr public.dir 930339630Sphilip touch $@ 931308265Sgjb 932308265Sgjb# Check that the code works under various alternative 933308265Sgjb# implementations of time_t. 934339630Sphilipcheck_time_t_alternatives: $(TIME_T_ALTERNATIVES) 935339630Sphilip$(TIME_T_ALTERNATIVES_TAIL): $(TIME_T_ALTERNATIVES_HEAD) 936339630Sphilip$(TIME_T_ALTERNATIVES): $(VERSION_DEPS) 937339630Sphilip rm -fr $@.dir 938339630Sphilip mkdir $@.dir 939339630Sphilip ln $(VERSION_DEPS) $@.dir 940339630Sphilip case $@ in \ 941339630Sphilip int32_t) range=-2147483648,2147483648;; \ 942339630Sphilip u*) range=0,4294967296;; \ 943339630Sphilip *) range=-4294967296,4294967296;; \ 944339630Sphilip esac && \ 945339630Sphilip wd=`pwd` && \ 946339630Sphilip zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \ 947339630Sphilip if test $@ = $(TIME_T_ALTERNATIVES_HEAD); then \ 948339630Sphilip range_target=; \ 949308265Sgjb else \ 950339630Sphilip range_target=to$$range.tzs; \ 951308265Sgjb fi && \ 952339630Sphilip (cd $@.dir && \ 953339630Sphilip $(MAKE) TOPDIR="$$wd/$@.dir" \ 954339630Sphilip CFLAGS='$(CFLAGS) -Dtime_tz='"'$@'" \ 955308265Sgjb REDO='$(REDO)' \ 956339630Sphilip D=$$wd/$@.dir \ 957339630Sphilip TZS_YEAR="$$range" TZS_CUTOFF_FLAG="-t $$range" \ 958339630Sphilip install $$range_target) && \ 959339630Sphilip test $@ = $(TIME_T_ALTERNATIVES_HEAD) || { \ 960339630Sphilip (cd $(TIME_T_ALTERNATIVES_HEAD).dir && \ 961339630Sphilip $(MAKE) TOPDIR="$$wd/$@.dir" \ 962339630Sphilip TZS_YEAR="$$range" TZS_CUTOFF_FLAG="-t $$range" \ 963339630Sphilip D=$$wd/$@.dir \ 964339630Sphilip to$$range.tzs) && \ 965339630Sphilip diff -u $(TIME_T_ALTERNATIVES_HEAD).dir/to$$range.tzs \ 966339630Sphilip $@.dir/to$$range.tzs && \ 967339630Sphilip if diff -q Makefile Makefile 2>/dev/null; then \ 968339630Sphilip quiet_option='-q'; \ 969339630Sphilip else \ 970339630Sphilip quiet_option=''; \ 971339630Sphilip fi && \ 972339630Sphilip diff $$quiet_option -r $(TIME_T_ALTERNATIVES_HEAD).dir/etc \ 973339630Sphilip $@.dir/etc && \ 974339630Sphilip diff $$quiet_option -r \ 975339630Sphilip $(TIME_T_ALTERNATIVES_HEAD).dir/usr/share \ 976339630Sphilip $@.dir/usr/share; \ 977339630Sphilip } 978339630Sphilip touch $@ 979308265Sgjb 980333312SphilipTRADITIONAL_ASC = \ 981333312Sphilip tzcode$(VERSION).tar.gz.asc \ 982333312Sphilip tzdata$(VERSION).tar.gz.asc 983339630SphilipREARGUARD_ASC = \ 984339630Sphilip tzdata$(VERSION)-rearguard.tar.gz.asc 985339630SphilipALL_ASC = $(TRADITIONAL_ASC) $(REARGUARD_ASC) \ 986333312Sphilip tzdb-$(VERSION).tar.lz.asc 987333312Sphilip 988339630Sphiliptarballs rearguard_tarballs traditional_tarballs \ 989339630Sphilipsignatures rearguard_signatures traditional_signatures: \ 990339630Sphilip version set-timestamps.out rearguard.zi 991308265Sgjb VERSION=`cat version` && \ 992308265Sgjb $(MAKE) VERSION="$$VERSION" $@_version 993308265Sgjb 994331662Sphilip# These *_version rules are intended for use if VERSION is set by some 995331662Sphilip# other means. Ordinarily these rules are used only by the above 996331662Sphilip# non-_version rules, which set VERSION on the 'make' command line. 997339630Sphiliptarballs_version: traditional_tarballs_version rearguard_tarballs_version \ 998333312Sphilip tzdb-$(VERSION).tar.lz 999339630Sphiliprearguard_tarballs_version: \ 1000339630Sphilip tzdata$(VERSION)-rearguard.tar.gz 1001308265Sgjbtraditional_tarballs_version: \ 1002308265Sgjb tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz 1003333312Sphilipsignatures_version: $(ALL_ASC) 1004339630Sphiliprearguard_signatures_version: $(REARGUARD_ASC) 1005333312Sphiliptraditional_signatures_version: $(TRADITIONAL_ASC) 1006308265Sgjb 1007308265Sgjbtzcode$(VERSION).tar.gz: set-timestamps.out 1008308265Sgjb LC_ALL=C && export LC_ALL && \ 1009308265Sgjb tar $(TARFLAGS) -cf - \ 1010308265Sgjb $(COMMON) $(DOCS) $(SOURCES) | \ 1011308265Sgjb gzip $(GZIPFLAGS) >$@.out 1012308265Sgjb mv $@.out $@ 1013308265Sgjb 1014308265Sgjbtzdata$(VERSION).tar.gz: set-timestamps.out 1015308265Sgjb LC_ALL=C && export LC_ALL && \ 1016308265Sgjb tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \ 1017308265Sgjb gzip $(GZIPFLAGS) >$@.out 1018308265Sgjb mv $@.out $@ 1019308265Sgjb 1020333312Sphiliptzdata$(VERSION)-rearguard.tar.gz: rearguard.zi set-timestamps.out 1021333312Sphilip rm -fr tzdata$(VERSION)-rearguard.dir 1022333312Sphilip mkdir tzdata$(VERSION)-rearguard.dir 1023333312Sphilip ln $(COMMON) $(DATA) $(MISC) tzdata$(VERSION)-rearguard.dir 1024333312Sphilip cd tzdata$(VERSION)-rearguard.dir && \ 1025333312Sphilip rm -f $(TDATA) $(PACKRATDATA) version 1026333312Sphilip for f in $(TDATA) $(PACKRATDATA); do \ 1027333312Sphilip rearf=tzdata$(VERSION)-rearguard.dir/$$f; \ 1028333312Sphilip $(AWK) -v DATAFORM=rearguard -f ziguard.awk $$f >$$rearf && \ 1029333312Sphilip touch -cmr `ls -t ziguard.awk $$f` $$rearf || exit; \ 1030333312Sphilip done 1031333312Sphilip sed '1s/$$/-rearguard/' \ 1032333312Sphilip <version >tzdata$(VERSION)-rearguard.dir/version 1033333312Sphilip touch -cmr version tzdata$(VERSION)-rearguard.dir/version 1034333312Sphilip LC_ALL=C && export LC_ALL && \ 1035333312Sphilip (cd tzdata$(VERSION)-rearguard.dir && \ 1036333312Sphilip tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \ 1037333312Sphilip gzip $(GZIPFLAGS)) >$@.out 1038333312Sphilip mv $@.out $@ 1039333312Sphilip 1040339630Sphiliptzdb-$(VERSION).tar.lz: set-timestamps.out set-tzs-timestamp.out 1041308265Sgjb rm -fr tzdb-$(VERSION) 1042308265Sgjb mkdir tzdb-$(VERSION) 1043308265Sgjb ln $(ENCHILADA) tzdb-$(VERSION) 1044308265Sgjb touch -cmr `ls -t tzdb-$(VERSION)/* | sed 1q` tzdb-$(VERSION) 1045308265Sgjb LC_ALL=C && export LC_ALL && \ 1046308265Sgjb tar $(TARFLAGS) -cf - tzdb-$(VERSION) | lzip -9 >$@.out 1047308265Sgjb mv $@.out $@ 1048308265Sgjb 1049308265Sgjbtzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz 1050308265Sgjbtzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz 1051333312Sphiliptzdata$(VERSION)-rearguard.tar.gz.asc: tzdata$(VERSION)-rearguard.tar.gz 1052308265Sgjbtzdb-$(VERSION).tar.lz.asc: tzdb-$(VERSION).tar.lz 1053333312Sphilip$(ALL_ASC): 1054339630Sphilip gpg2 --armor --detach-sign $? 1055308265Sgjb 1056339630SphilipTYPECHECK_CFLAGS = $(CFLAGS) -DTYPECHECK -D__time_t_defined -D_TIME_T 1057339630Sphiliptypecheck: typecheck_long_long typecheck_unsigned 1058339630Sphiliptypecheck_long_long typecheck_unsigned: $(VERSION_DEPS) 1059339630Sphilip rm -fr $@.dir 1060339630Sphilip mkdir $@.dir 1061339630Sphilip ln $(VERSION_DEPS) $@.dir 1062339630Sphilip cd $@.dir && \ 1063339630Sphilip case $@ in \ 1064339630Sphilip *_long_long) i="long long";; \ 1065339630Sphilip *_unsigned ) i="unsigned" ;; \ 1066339630Sphilip esac && \ 1067339630Sphilip typecheck_cflags='' && \ 1068339630Sphilip $(MAKE) \ 1069339630Sphilip CFLAGS="$(TYPECHECK_CFLAGS) \"-Dtime_t=$$i\"" \ 1070339630Sphilip TOPDIR="`pwd`" \ 1071339630Sphilip install 1072339630Sphilip $@.dir/zdump -i -c 1970,1971 Europe/Rome 1073339630Sphilip touch $@ 1074308265Sgjb 1075325159Sphilipzonenames: tzdata.zi 1076325159Sphilip @$(AWK) '/^Z/ { print $$2 } /^L/ { print $$3 }' tzdata.zi 1077308265Sgjb 1078308265Sgjbasctime.o: private.h tzfile.h 1079308265Sgjbdate.o: private.h 1080308265Sgjbdifftime.o: private.h 1081308265Sgjblocaltime.o: private.h tzfile.h 1082308265Sgjbstrftime.o: private.h tzfile.h 1083308265Sgjbzdump.o: version.h 1084308265Sgjbzic.o: private.h tzfile.h version.h 1085308265Sgjb 1086308265Sgjb.KEEP_STATE: 1087308265Sgjb 1088308265Sgjb.PHONY: ALL INSTALL all 1089339630Sphilip.PHONY: check check_time_t_alternatives 1090342668Sphilip.PHONY: check_web check_zishrink 1091331662Sphilip.PHONY: clean clean_misc dummy.zd force_tzs 1092308265Sgjb.PHONY: install install_data maintainer-clean names 1093339630Sphilip.PHONY: posix_only posix_packrat posix_right public 1094339630Sphilip.PHONY: rearguard_signatures rearguard_signatures_version 1095339630Sphilip.PHONY: rearguard_tarballs rearguard_tarballs_version 1096339630Sphilip.PHONY: right_only right_posix signatures signatures_version 1097331662Sphilip.PHONY: tarballs tarballs_version 1098331662Sphilip.PHONY: traditional_signatures traditional_signatures_version 1099331662Sphilip.PHONY: traditional_tarballs traditional_tarballs_version 1100331662Sphilip.PHONY: typecheck 1101308265Sgjb.PHONY: zonenames zones 1102331662Sphilip.PHONY: $(ZDS) 1103