1ba2b2efdSGlen Barber# This file is in the public domain, so clarified as of 2ba2b2efdSGlen Barber# 2009-05-17 by Arthur David Olson. 3ba2b2efdSGlen Barber 4ba2b2efdSGlen Barber# Package name for the code distribution. 5ba2b2efdSGlen BarberPACKAGE= tzcode 6ba2b2efdSGlen Barber 7ba2b2efdSGlen Barber# Version number for the distribution, overridden in the 'tarballs' rule below. 8ba2b2efdSGlen BarberVERSION= unknown 9ba2b2efdSGlen Barber 10ba2b2efdSGlen Barber# Email address for bug reports. 11ba2b2efdSGlen BarberBUGEMAIL= tz@iana.org 12ba2b2efdSGlen Barber 13ba2b2efdSGlen Barber# Change the line below for your time zone (after finding the zone you want in 14ba2b2efdSGlen Barber# the time zone files, or adding it to a time zone file). 15ba2b2efdSGlen Barber# Alternately, if you discover you've got the wrong time zone, you can just 16ba2b2efdSGlen Barber# zic -l rightzone 17ba2b2efdSGlen Barber# to correct things. 18ba2b2efdSGlen Barber# Use the command 19ba2b2efdSGlen Barber# make zonenames 20ba2b2efdSGlen Barber# to get a list of the values you can use for LOCALTIME. 21ba2b2efdSGlen Barber 22ba2b2efdSGlen BarberLOCALTIME= GMT 23ba2b2efdSGlen Barber 24ba2b2efdSGlen Barber# If you want something other than Eastern United States time as a template 25ba2b2efdSGlen Barber# for handling POSIX-style time zone environment variables, 26ba2b2efdSGlen Barber# change the line below (after finding the zone you want in the 27ba2b2efdSGlen Barber# time zone files, or adding it to a time zone file). 28ba2b2efdSGlen Barber# (When a POSIX-style environment variable is handled, the rules in the 29ba2b2efdSGlen Barber# template file are used to determine "spring forward" and "fall back" days and 30ba2b2efdSGlen Barber# times; the environment variable itself specifies UT offsets of standard and 31ba2b2efdSGlen Barber# summer time.) 32ba2b2efdSGlen Barber# Alternately, if you discover you've got the wrong time zone, you can just 33ba2b2efdSGlen Barber# zic -p rightzone 34ba2b2efdSGlen Barber# to correct things. 35ba2b2efdSGlen Barber# Use the command 36ba2b2efdSGlen Barber# make zonenames 37ba2b2efdSGlen Barber# to get a list of the values you can use for POSIXRULES. 38ba2b2efdSGlen Barber# If you want POSIX compatibility, use "America/New_York". 39ba2b2efdSGlen Barber 40ba2b2efdSGlen BarberPOSIXRULES= America/New_York 41ba2b2efdSGlen Barber 42ba2b2efdSGlen Barber# Also see TZDEFRULESTRING below, which takes effect only 43ba2b2efdSGlen Barber# if the time zone files cannot be accessed. 44ba2b2efdSGlen Barber 45ba2b2efdSGlen Barber# Everything gets put in subdirectories of. . . 46ba2b2efdSGlen Barber 47ba2b2efdSGlen BarberTOPDIR= /usr/local 48ba2b2efdSGlen Barber 49ba2b2efdSGlen Barber# "Compiled" time zone information is placed in the "TZDIR" directory 50ba2b2efdSGlen Barber# (and subdirectories). 51ba2b2efdSGlen Barber# Use an absolute path name for TZDIR unless you're just testing the software. 52*8d7edd17SPhilip Paeps# TZDIR_BASENAME should not contain "/" and should not be ".", ".." or empty. 53ba2b2efdSGlen Barber 54ba2b2efdSGlen BarberTZDIR_BASENAME= zoneinfo 55ba2b2efdSGlen BarberTZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME) 56ba2b2efdSGlen Barber 57ba2b2efdSGlen Barber# Types to try, as an alternative to time_t. int64_t should be first. 58ba2b2efdSGlen BarberTIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t 59ba2b2efdSGlen Barber 60ba2b2efdSGlen Barber# The "tzselect", "zic", and "zdump" commands get installed in. . . 61ba2b2efdSGlen Barber 62ba2b2efdSGlen BarberETCDIR= $(TOPDIR)/etc 63ba2b2efdSGlen Barber 64ba2b2efdSGlen Barber# If you "make INSTALL", the "date" command gets installed in. . . 65ba2b2efdSGlen Barber 66ba2b2efdSGlen BarberBINDIR= $(TOPDIR)/bin 67ba2b2efdSGlen Barber 68ba2b2efdSGlen Barber# Manual pages go in subdirectories of. . . 69ba2b2efdSGlen Barber 70ba2b2efdSGlen BarberMANDIR= $(TOPDIR)/man 71ba2b2efdSGlen Barber 72ba2b2efdSGlen Barber# Library functions are put in an archive in LIBDIR. 73ba2b2efdSGlen Barber 74ba2b2efdSGlen BarberLIBDIR= $(TOPDIR)/lib 75ba2b2efdSGlen Barber 76dc135c6eSBaptiste Daroussin# If you want only POSIX time, with time values interpreted as 77dc135c6eSBaptiste Daroussin# seconds since the epoch (not counting leap seconds), use 78ba2b2efdSGlen Barber# REDO= posix_only 79*8d7edd17SPhilip Paeps# below. If you want only "right" time, with values interpreted 80dc135c6eSBaptiste Daroussin# as seconds since the epoch (counting leap seconds), use 81ba2b2efdSGlen Barber# REDO= right_only 82ba2b2efdSGlen Barber# below. If you want both sets of data available, with leap seconds not 83ba2b2efdSGlen Barber# counted normally, use 84ba2b2efdSGlen Barber# REDO= posix_right 85ba2b2efdSGlen Barber# below. If you want both sets of data available, with leap seconds counted 86ba2b2efdSGlen Barber# normally, use 87ba2b2efdSGlen Barber# REDO= right_posix 88ba2b2efdSGlen Barber# below. POSIX mandates that leap seconds not be counted; for compatibility 89dc135c6eSBaptiste Daroussin# with it, use "posix_only" or "posix_right". Use POSIX time on systems with 90dc135c6eSBaptiste Daroussin# leap smearing; this can work better than unsmeared "right" time with 91dc135c6eSBaptiste Daroussin# applications that are not leap second aware, and is closer to unsmeared 92dc135c6eSBaptiste Daroussin# "right" time than unsmeared POSIX time is (e.g., 0.5 vs 1.0 s max error). 93ba2b2efdSGlen Barber 94ba2b2efdSGlen BarberREDO= posix_right 95ba2b2efdSGlen Barber 96*8d7edd17SPhilip Paeps# To install data in text form that has all the information of the binary data, 97*8d7edd17SPhilip Paeps# (optionally incorporating leap second information), use 98*8d7edd17SPhilip Paeps# TZDATA_TEXT= tzdata.zi leapseconds 99*8d7edd17SPhilip Paeps# To install text data without leap second information (e.g., because 100*8d7edd17SPhilip Paeps# REDO='posix_only'), use 101*8d7edd17SPhilip Paeps# TZDATA_TEXT= tzdata.zi 102*8d7edd17SPhilip Paeps# To avoid installing text data, use 103*8d7edd17SPhilip Paeps# TZDATA_TEXT= 104*8d7edd17SPhilip Paeps 105*8d7edd17SPhilip PaepsTZDATA_TEXT= leapseconds tzdata.zi 106*8d7edd17SPhilip Paeps 107*8d7edd17SPhilip Paeps# For backward-compatibility links for old zone names, use 108*8d7edd17SPhilip Paeps# BACKWARD= backward pacificnew 109*8d7edd17SPhilip Paeps# To omit these links, use 110*8d7edd17SPhilip Paeps# BACKWARD= 111*8d7edd17SPhilip Paeps 112*8d7edd17SPhilip PaepsBACKWARD= backward pacificnew 113*8d7edd17SPhilip Paeps 114ba2b2efdSGlen Barber# If you want out-of-scope and often-wrong data from the file 'backzone', use 115ba2b2efdSGlen Barber# PACKRATDATA= backzone 116ba2b2efdSGlen Barber# To omit this data, use 117ba2b2efdSGlen Barber# PACKRATDATA= 118ba2b2efdSGlen Barber 119ba2b2efdSGlen BarberPACKRATDATA= 120ba2b2efdSGlen Barber 121*8d7edd17SPhilip Paeps# The name of a locale using the UTF-8 encoding, used during self-tests. 122*8d7edd17SPhilip Paeps# The tests are skipped if the name does not appear to work on this system. 123*8d7edd17SPhilip Paeps 124*8d7edd17SPhilip PaepsUTF8_LOCALE= en_US.utf8 125*8d7edd17SPhilip Paeps 126ba2b2efdSGlen Barber# Since "." may not be in PATH... 127ba2b2efdSGlen Barber 128ba2b2efdSGlen BarberYEARISTYPE= ./yearistype 129ba2b2efdSGlen Barber 130ba2b2efdSGlen Barber# Non-default libraries needed to link. 131ba2b2efdSGlen BarberLDLIBS= 132ba2b2efdSGlen Barber 133*8d7edd17SPhilip Paeps# Add the following to the end of the "CFLAGS=" line as needed to override 134*8d7edd17SPhilip Paeps# defaults specified in the source code. "-DFOO" is equivalent to "-DFOO=1". 135ba2b2efdSGlen Barber# -DBIG_BANG=-9999999LL if the Big Bang occurred at time -9999999 (see zic.c) 136*8d7edd17SPhilip Paeps# -DDEPRECATE_TWO_DIGIT_YEARS for optional runtime warnings about strftime 137*8d7edd17SPhilip Paeps# formats that generate only the last two digits of year numbers 138*8d7edd17SPhilip Paeps# -DEPOCH_LOCAL if the 'time' function returns local time not UT 139ba2b2efdSGlen Barber# -DEPOCH_OFFSET=N if the 'time' function returns a value N greater 140ba2b2efdSGlen Barber# than what POSIX specifies, assuming local time is UT. 141ba2b2efdSGlen Barber# For example, N is 252460800 on AmigaOS. 142*8d7edd17SPhilip Paeps# -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r 143*8d7edd17SPhilip Paeps# -DHAVE_DECL_ENVIRON if <unistd.h> declares 'environ' 144*8d7edd17SPhilip Paeps# -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows) 145*8d7edd17SPhilip Paeps# -DHAVE_GENERIC=0 if _Generic does not work 146*8d7edd17SPhilip Paeps# -DHAVE_GETTEXT if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris) 147*8d7edd17SPhilip Paeps# -DHAVE_INCOMPATIBLE_CTIME_R if your system's time.h declares 148*8d7edd17SPhilip Paeps# ctime_r and asctime_r incompatibly with the POSIX standard 149*8d7edd17SPhilip Paeps# (Solaris when _POSIX_PTHREAD_SEMANTICS is not defined). 150*8d7edd17SPhilip Paeps# -DHAVE_INTTYPES_H if you have a non-C99 compiler with <inttypes.h> 151*8d7edd17SPhilip Paeps# -DHAVE_LINK=0 if your system lacks a link function 152*8d7edd17SPhilip Paeps# -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function 153*8d7edd17SPhilip Paeps# -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz 154*8d7edd17SPhilip Paeps# localtime_rz can make zdump significantly faster, but is nonstandard. 155*8d7edd17SPhilip Paeps# -DHAVE_POSIX_DECLS=0 if your system's include files do not declare 156*8d7edd17SPhilip Paeps# functions like 'link' or variables like 'tzname' required by POSIX 157*8d7edd17SPhilip Paeps# -DHAVE_SNPRINTF=0 if your system lacks the snprintf function 158*8d7edd17SPhilip Paeps# -DHAVE_STDBOOL_H if you have a non-C99 compiler with <stdbool.h> 159*8d7edd17SPhilip Paeps# -DHAVE_STDINT_H if you have a non-C99 compiler with <stdint.h> 160*8d7edd17SPhilip Paeps# -DHAVE_STRFTIME_L if <time.h> declares locale_t and strftime_l 161*8d7edd17SPhilip Paeps# -DHAVE_STRDUP=0 if your system lacks the strdup function 162*8d7edd17SPhilip Paeps# -DHAVE_SYMLINK=0 if your system lacks the symlink function 163*8d7edd17SPhilip Paeps# -DHAVE_SYS_STAT_H=0 if your compiler lacks a <sys/stat.h> 164*8d7edd17SPhilip Paeps# -DHAVE_SYS_WAIT_H=0 if your compiler lacks a <sys/wait.h> 165*8d7edd17SPhilip Paeps# -DHAVE_TZSET=0 if your system lacks a tzset function 166*8d7edd17SPhilip Paeps# -DHAVE_UNISTD_H=0 if your compiler lacks a <unistd.h> 167*8d7edd17SPhilip Paeps# -Dlocale_t=XXX if your system uses XXX instead of locale_t 168*8d7edd17SPhilip Paeps# -Dssize_t=long on hosts like MS-Windows that lack ssize_t 169*8d7edd17SPhilip Paeps# -DTHREAD_SAFE to make localtime.c thread-safe, as POSIX requires; 170ba2b2efdSGlen Barber# not needed by the main-program tz code, which is single-threaded. 171ba2b2efdSGlen Barber# Append other compiler flags as needed, e.g., -pthread on GNU/Linux. 172ba2b2efdSGlen Barber# -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t 173*8d7edd17SPhilip Paeps# This is intended for internal use only; it mangles external names. 174ba2b2efdSGlen Barber# -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz" 175ba2b2efdSGlen Barber# -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory; 176ba2b2efdSGlen Barber# the default is system-supplied, typically "/usr/lib/locale" 177ba2b2efdSGlen Barber# -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified 178ba2b2efdSGlen Barber# DST transitions if the time zone files cannot be accessed 179*8d7edd17SPhilip Paeps# -DUNINIT_TRAP if reading uninitialized storage can cause problems 180ba2b2efdSGlen Barber# other than simply getting garbage data 181ba2b2efdSGlen Barber# -DUSE_LTZ=0 to build zdump with the system time zone library 182ba2b2efdSGlen Barber# Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below. 183ba2b2efdSGlen Barber# -DZIC_MAX_ABBR_LEN_WO_WARN=3 184ba2b2efdSGlen Barber# (or some other number) to set the maximum time zone abbreviation length 185ba2b2efdSGlen Barber# that zic will accept without a warning (the default is 6) 186ba2b2efdSGlen Barber# $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking 187*8d7edd17SPhilip Paeps# Select instrumentation via "make GCC_INSTRUMENT='whatever'". 188*8d7edd17SPhilip PaepsGCC_INSTRUMENT = \ 189*8d7edd17SPhilip Paeps -fsanitize=undefined -fsanitize-address-use-after-scope \ 190*8d7edd17SPhilip Paeps -fsanitize-undefined-trap-on-error -fstack-protector 191*8d7edd17SPhilip PaepsGCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ 192*8d7edd17SPhilip Paeps $(GCC_INSTRUMENT) \ 193ba2b2efdSGlen Barber -Wall -Wextra \ 194*8d7edd17SPhilip Paeps -Walloc-size-larger-than=100000 -Warray-bounds=2 \ 195ba2b2efdSGlen Barber -Wbad-function-cast -Wcast-align -Wdate-time \ 196*8d7edd17SPhilip Paeps -Wdeclaration-after-statement -Wdouble-promotion \ 197*8d7edd17SPhilip Paeps -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation \ 198*8d7edd17SPhilip Paeps -Winit-self -Wjump-misses-init -Wlogical-op \ 199*8d7edd17SPhilip Paeps -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ 200ba2b2efdSGlen Barber -Wold-style-definition -Woverlength-strings -Wpointer-arith \ 201*8d7edd17SPhilip Paeps -Wshadow -Wshift-overflow=2 -Wstrict-prototypes -Wstringop-overflow=5 \ 202*8d7edd17SPhilip Paeps -Wsuggest-attribute=const -Wsuggest-attribute=format \ 203*8d7edd17SPhilip Paeps -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure \ 204*8d7edd17SPhilip Paeps -Wtrampolines -Wundef -Wuninitialized -Wunused \ 205*8d7edd17SPhilip Paeps -Wvariadic-macros -Wvla -Wwrite-strings \ 206ba2b2efdSGlen Barber -Wno-address -Wno-format-nonliteral -Wno-sign-compare \ 207ba2b2efdSGlen Barber -Wno-type-limits -Wno-unused-parameter 208ba2b2efdSGlen Barber# 209ba2b2efdSGlen Barber# If your system has a "GMT offset" field in its "struct tm"s 210ba2b2efdSGlen Barber# (or if you decide to add such a field in your system's "time.h" file), 211ba2b2efdSGlen Barber# add the name to a define such as 212ba2b2efdSGlen Barber# -DTM_GMTOFF=tm_gmtoff 213ba2b2efdSGlen Barber# to the end of the "CFLAGS=" line. If not defined, the code attempts to 214ba2b2efdSGlen Barber# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this. 215ba2b2efdSGlen Barber# Similarly, if your system has a "zone abbreviation" field, define 216ba2b2efdSGlen Barber# -DTM_ZONE=tm_zone 217ba2b2efdSGlen Barber# and define NO_TM_ZONE to suppress any guessing. These two fields are not 218ba2b2efdSGlen Barber# required by POSIX, but are widely available on GNU/Linux and BSD systems. 219ba2b2efdSGlen Barber# 220*8d7edd17SPhilip Paeps# The next batch of options control support for external variables 221*8d7edd17SPhilip Paeps# exported by tzcode. In practice these variables are less useful 222*8d7edd17SPhilip Paeps# than TM_GMTOFF and TM_ZONE. However, most of them are standardized. 223*8d7edd17SPhilip Paeps# # 224*8d7edd17SPhilip Paeps# # To omit or support the external variable "tzname", add one of: 225*8d7edd17SPhilip Paeps# # -DHAVE_TZNAME=0 226*8d7edd17SPhilip Paeps# # -DHAVE_TZNAME=1 227*8d7edd17SPhilip Paeps# # to the "CFLAGS=" line. "tzname" is required by POSIX 1988 and later. 228*8d7edd17SPhilip Paeps# # If not defined, the code attempts to guess HAVE_TZNAME from other macros. 229*8d7edd17SPhilip Paeps# # Warning: unless time_tz is also defined, HAVE_TZNAME=1 can cause 230*8d7edd17SPhilip Paeps# # crashes when combined with some platforms' standard libraries, 231*8d7edd17SPhilip Paeps# # presumably due to memory allocation issues. 232*8d7edd17SPhilip Paeps# # 233*8d7edd17SPhilip Paeps# # To omit or support the external variables "timezone" and "daylight", add 234*8d7edd17SPhilip Paeps# # -DUSG_COMPAT=0 235*8d7edd17SPhilip Paeps# # -DUSG_COMPAT=1 236*8d7edd17SPhilip Paeps# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by 237*8d7edd17SPhilip Paeps# # Unix Systems Group code and are required by POSIX 2008 (with XSI) and later. 238*8d7edd17SPhilip Paeps# # If not defined, the code attempts to guess USG_COMPAT from other macros. 239*8d7edd17SPhilip Paeps# # 240*8d7edd17SPhilip Paeps# # To support the external variable "altzone", add 241*8d7edd17SPhilip Paeps# # -DALTZONE 242*8d7edd17SPhilip Paeps# # to the end of the "CFLAGS=" line; although "altzone" appeared in 243*8d7edd17SPhilip Paeps# # System V Release 3.1 it has not been standardized. 244*8d7edd17SPhilip Paeps# 245ba2b2efdSGlen Barber# If you want functions that were inspired by early versions of X3J11's work, 246ba2b2efdSGlen Barber# add 247ba2b2efdSGlen Barber# -DSTD_INSPIRED 248ba2b2efdSGlen Barber# to the end of the "CFLAGS=" line. This arranges for the functions 249ba2b2efdSGlen Barber# "tzsetwall", "offtime", "timelocal", "timegm", "timeoff", 250ba2b2efdSGlen Barber# "posix2time", and "time2posix" to be added to the time conversion library. 251ba2b2efdSGlen Barber# "tzsetwall" is like "tzset" except that it arranges for local wall clock 252ba2b2efdSGlen Barber# time (rather than the time specified in the TZ environment variable) 253ba2b2efdSGlen Barber# to be used. 254ba2b2efdSGlen Barber# "offtime" is like "gmtime" except that it accepts a second (long) argument 255ba2b2efdSGlen Barber# that gives an offset to add to the time_t when converting it. 256ba2b2efdSGlen Barber# "timelocal" is equivalent to "mktime". 257ba2b2efdSGlen Barber# "timegm" is like "timelocal" except that it turns a struct tm into 258ba2b2efdSGlen Barber# a time_t using UT (rather than local time as "timelocal" does). 259ba2b2efdSGlen Barber# "timeoff" is like "timegm" except that it accepts a second (long) argument 260ba2b2efdSGlen Barber# that gives an offset to use when converting to a time_t. 261ba2b2efdSGlen Barber# "posix2time" and "time2posix" are described in an included manual page. 262ba2b2efdSGlen Barber# X3J11's work does not describe any of these functions. 263ba2b2efdSGlen Barber# Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0. 264ba2b2efdSGlen Barber# These functions may well disappear in future releases of the time 265ba2b2efdSGlen Barber# conversion package. 266ba2b2efdSGlen Barber# 267ba2b2efdSGlen Barber# If you don't want functions that were inspired by NetBSD, add 268ba2b2efdSGlen Barber# -DNETBSD_INSPIRED=0 269ba2b2efdSGlen Barber# to the end of the "CFLAGS=" line. Otherwise, the functions 270ba2b2efdSGlen Barber# "localtime_rz", "mktime_z", "tzalloc", and "tzfree" are added to the 271ba2b2efdSGlen Barber# time library, and if STD_INSPIRED is also defined the functions 272ba2b2efdSGlen Barber# "posix2time_z" and "time2posix_z" are added as well. 273ba2b2efdSGlen Barber# The functions ending in "_z" (or "_rz") are like their unsuffixed 274ba2b2efdSGlen Barber# (or suffixed-by-"_r") counterparts, except with an extra first 275ba2b2efdSGlen Barber# argument of opaque type timezone_t that specifies the time zone. 276ba2b2efdSGlen Barber# "tzalloc" allocates a timezone_t value, and "tzfree" frees it. 277ba2b2efdSGlen Barber# 278ba2b2efdSGlen Barber# If you want to allocate state structures in localtime, add 279ba2b2efdSGlen Barber# -DALL_STATE 280ba2b2efdSGlen Barber# to the end of the "CFLAGS=" line. Storage is obtained by calling malloc. 281ba2b2efdSGlen Barber# 282ba2b2efdSGlen Barber# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put 283ba2b2efdSGlen Barber# out by the National Institute of Standards and Technology 284ba2b2efdSGlen Barber# which claims to test C and Posix conformance. If you want to pass PCTS, add 285ba2b2efdSGlen Barber# -DPCTS 286ba2b2efdSGlen Barber# to the end of the "CFLAGS=" line. 287ba2b2efdSGlen Barber# 288ba2b2efdSGlen Barber# If you want strict compliance with XPG4 as of 1994-04-09, add 289ba2b2efdSGlen Barber# -DXPG4_1994_04_09 290ba2b2efdSGlen Barber# to the end of the "CFLAGS=" line. This causes "strftime" to always return 291*8d7edd17SPhilip Paeps# 53 as a week number (rather than 52 or 53) for January days before 292*8d7edd17SPhilip Paeps# January's first Monday when a "%V" format is used and January 1 293ba2b2efdSGlen Barber# falls on a Friday, Saturday, or Sunday. 294ba2b2efdSGlen Barber 295ba2b2efdSGlen BarberCFLAGS= 296ba2b2efdSGlen Barber 297ba2b2efdSGlen Barber# Linker flags. Default to $(LFLAGS) for backwards compatibility 298ba2b2efdSGlen Barber# to release 2012h and earlier. 299ba2b2efdSGlen Barber 300ba2b2efdSGlen BarberLDFLAGS= $(LFLAGS) 301ba2b2efdSGlen Barber 302ba2b2efdSGlen Barber# For leap seconds, this Makefile uses LEAPSECONDS='-L leapseconds' in 303ba2b2efdSGlen Barber# submake command lines. The default is no leap seconds. 304ba2b2efdSGlen Barber 305ba2b2efdSGlen BarberLEAPSECONDS= 306ba2b2efdSGlen Barber 307ba2b2efdSGlen Barber# The zic command and its arguments. 308ba2b2efdSGlen Barber 309ba2b2efdSGlen Barberzic= ./zic 310ba2b2efdSGlen BarberZIC= $(zic) $(ZFLAGS) 311ba2b2efdSGlen Barber 312ba2b2efdSGlen BarberZFLAGS= 313ba2b2efdSGlen Barber 314ba2b2efdSGlen Barber# How to use zic to install tz binary files. 315ba2b2efdSGlen Barber 316*8d7edd17SPhilip PaepsZIC_INSTALL= $(ZIC) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS) 317ba2b2efdSGlen Barber 318ba2b2efdSGlen Barber# The name of a Posix-compliant 'awk' on your system. 319ba2b2efdSGlen BarberAWK= awk 320ba2b2efdSGlen Barber 321ba2b2efdSGlen Barber# The full path name of a Posix-compliant shell, preferably one that supports 322ba2b2efdSGlen Barber# the Korn shell's 'select' statement as an extension. 323ba2b2efdSGlen Barber# These days, Bash is the most popular. 324ba2b2efdSGlen Barber# It should be OK to set this to /bin/sh, on platforms where /bin/sh 325ba2b2efdSGlen Barber# lacks 'select' or doesn't completely conform to Posix, but /bin/bash 326ba2b2efdSGlen Barber# is typically nicer if it works. 327ba2b2efdSGlen BarberKSHELL= /bin/bash 328ba2b2efdSGlen Barber 329ba2b2efdSGlen Barber# The path where SGML DTDs are kept and the catalog file(s) to use when 330ba2b2efdSGlen Barber# validating. The default should work on both Debian and Red Hat. 331ba2b2efdSGlen BarberSGML_TOPDIR= /usr 332ba2b2efdSGlen BarberSGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd 333ba2b2efdSGlen BarberSGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224 334ba2b2efdSGlen BarberSGML_CATALOG_FILES= \ 335ba2b2efdSGlen Barber $(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 336ba2b2efdSGlen Barber 337ba2b2efdSGlen Barber# The name, arguments and environment of a program to validate your web pages. 338ba2b2efdSGlen Barber# See <http://openjade.sourceforge.net/doc/> for a validator, and 339ba2b2efdSGlen Barber# <https://validator.w3.org/source/> for a validation library. 340*8d7edd17SPhilip Paeps# Set VALIDATE=':' if you do not have such a program. 341ba2b2efdSGlen BarberVALIDATE = nsgmls 342ba2b2efdSGlen BarberVALIDATE_FLAGS = -s -B -wall -wno-unused-param 343ba2b2efdSGlen BarberVALIDATE_ENV = \ 344ba2b2efdSGlen Barber SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \ 345ba2b2efdSGlen Barber SGML_SEARCH_PATH=$(SGML_SEARCH_PATH) \ 346ba2b2efdSGlen Barber SP_CHARSET_FIXED=YES \ 347ba2b2efdSGlen Barber SP_ENCODING=UTF-8 348ba2b2efdSGlen Barber 349ba2b2efdSGlen Barber# This expensive test requires USE_LTZ. 350ba2b2efdSGlen Barber# To suppress it, define this macro to be empty. 351ba2b2efdSGlen BarberCHECK_TIME_T_ALTERNATIVES = check_time_t_alternatives 352ba2b2efdSGlen Barber 353ba2b2efdSGlen Barber# SAFE_CHAR is a regular expression that matches a safe character. 354ba2b2efdSGlen Barber# Some parts of this distribution are limited to safe characters; 355ba2b2efdSGlen Barber# others can use any UTF-8 character. 356ba2b2efdSGlen Barber# For now, the safe characters are a safe subset of ASCII. 357ba2b2efdSGlen Barber# The caller must set the shell variable 'sharp' to the character '#', 358ba2b2efdSGlen Barber# since Makefile macros cannot contain '#'. 359ba2b2efdSGlen Barber# TAB_CHAR is a single tab character, in single quotes. 360ba2b2efdSGlen BarberTAB_CHAR= ' ' 361ba2b2efdSGlen BarberSAFE_CHARSET1= $(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@' 362ba2b2efdSGlen BarberSAFE_CHARSET2= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`' 363ba2b2efdSGlen BarberSAFE_CHARSET3= 'abcdefghijklmnopqrstuvwxyz{|}~' 364ba2b2efdSGlen BarberSAFE_CHARSET= $(SAFE_CHARSET1)$(SAFE_CHARSET2)$(SAFE_CHARSET3) 365ba2b2efdSGlen BarberSAFE_CHAR= '[]'$(SAFE_CHARSET)'-]' 366ba2b2efdSGlen Barber 367ba2b2efdSGlen Barber# OK_CHAR matches any character allowed in the distributed files. 368ba2b2efdSGlen Barber# This is the same as SAFE_CHAR, except that multibyte letters are 369ba2b2efdSGlen Barber# also allowed so that commentary can contain people's names and quote 370ba2b2efdSGlen Barber# non-English sources. For non-letters the sources are limited to 371ba2b2efdSGlen Barber# ASCII renderings for the convenience of maintainers whose text editors 372ba2b2efdSGlen Barber# mishandle UTF-8 by default (e.g., XEmacs 21.4.22). 373ba2b2efdSGlen BarberOK_CHAR= '[][:alpha:]'$(SAFE_CHARSET)'-]' 374ba2b2efdSGlen Barber 375ba2b2efdSGlen Barber# SAFE_LINE matches a line of safe characters. 376ba2b2efdSGlen Barber# SAFE_SHARP_LINE is similar, except any OK character can follow '#'; 377ba2b2efdSGlen Barber# this is so that comments can contain non-ASCII characters. 378ba2b2efdSGlen Barber# OK_LINE matches a line of OK characters. 379ba2b2efdSGlen BarberSAFE_LINE= '^'$(SAFE_CHAR)'*$$' 380ba2b2efdSGlen BarberSAFE_SHARP_LINE='^'$(SAFE_CHAR)'*('$$sharp$(OK_CHAR)'*)?$$' 381ba2b2efdSGlen BarberOK_LINE= '^'$(OK_CHAR)'*$$' 382ba2b2efdSGlen Barber 383ba2b2efdSGlen Barber# Flags to give 'tar' when making a distribution. 384ba2b2efdSGlen Barber# Try to use flags appropriate for GNU tar. 385ba2b2efdSGlen BarberGNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name 386ba2b2efdSGlen BarberTARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \ 387ba2b2efdSGlen Barber then echo $(GNUTARFLAGS); \ 388ba2b2efdSGlen Barber else :; \ 389ba2b2efdSGlen Barber fi` 390ba2b2efdSGlen Barber 391ba2b2efdSGlen Barber# Flags to give 'gzip' when making a distribution. 392ba2b2efdSGlen BarberGZIPFLAGS= -9n 393ba2b2efdSGlen Barber 394ba2b2efdSGlen Barber############################################################################### 395ba2b2efdSGlen Barber 396ba2b2efdSGlen Barber#MAKE= make 397ba2b2efdSGlen Barber 398ba2b2efdSGlen Barbercc= cc 399ba2b2efdSGlen BarberCC= $(cc) -DTZDIR=\"$(TZDIR)\" 400ba2b2efdSGlen Barber 401ba2b2efdSGlen BarberAR= ar 402ba2b2efdSGlen Barber 403ba2b2efdSGlen Barber# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib. 404ba2b2efdSGlen BarberRANLIB= : 405ba2b2efdSGlen Barber 406ba2b2efdSGlen BarberTZCOBJS= zic.o 407*8d7edd17SPhilip PaepsTZDOBJS= zdump.o localtime.o asctime.o strftime.o 408ba2b2efdSGlen BarberDATEOBJS= date.o localtime.o strftime.o asctime.o 409ba2b2efdSGlen BarberLIBSRCS= localtime.c asctime.c difftime.c 410ba2b2efdSGlen BarberLIBOBJS= localtime.o asctime.o difftime.o 411ba2b2efdSGlen BarberHEADERS= tzfile.h private.h 412ba2b2efdSGlen BarberNONLIBSRCS= zic.c zdump.c 413ba2b2efdSGlen BarberNEWUCBSRCS= date.c strftime.c 414ba2b2efdSGlen BarberSOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \ 415ba2b2efdSGlen Barber tzselect.ksh workman.sh 416ba2b2efdSGlen BarberMANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \ 417ba2b2efdSGlen Barber tzfile.5 tzselect.8 zic.8 zdump.8 418ba2b2efdSGlen BarberMANTXTS= newctime.3.txt newstrftime.3.txt newtzset.3.txt \ 419ba2b2efdSGlen Barber time2posix.3.txt \ 420ba2b2efdSGlen Barber tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \ 421ba2b2efdSGlen Barber date.1.txt 422*8d7edd17SPhilip PaepsCOMMON= calendars CONTRIBUTING LICENSE Makefile \ 423*8d7edd17SPhilip Paeps NEWS README theory.html version 424ba2b2efdSGlen BarberWEB_PAGES= tz-art.htm tz-how-to.html tz-link.htm 425ba2b2efdSGlen BarberDOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES) 426ba2b2efdSGlen BarberPRIMARY_YDATA= africa antarctica asia australasia \ 427ba2b2efdSGlen Barber europe northamerica southamerica 428*8d7edd17SPhilip PaepsYDATA= $(PRIMARY_YDATA) etcetera $(BACKWARD) 429ba2b2efdSGlen BarberNDATA= systemv factory 430ba2b2efdSGlen BarberTDATA= $(YDATA) $(NDATA) 431ba2b2efdSGlen BarberZONETABLES= zone1970.tab zone.tab 432*8d7edd17SPhilip PaepsTABDATA= iso3166.tab $(TZDATA_TEXT) $(ZONETABLES) 433ba2b2efdSGlen BarberLEAP_DEPS= leapseconds.awk leap-seconds.list 434*8d7edd17SPhilip PaepsTZDATA_ZI_DEPS= zishrink.awk $(TDATA) $(PACKRATDATA) 435*8d7edd17SPhilip PaepsDATA= $(YDATA) $(NDATA) backzone iso3166.tab leap-seconds.list \ 436*8d7edd17SPhilip Paeps leapseconds yearistype.sh $(ZONETABLES) 437*8d7edd17SPhilip PaepsAWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk zishrink.awk 438ba2b2efdSGlen BarberMISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl 439ba2b2efdSGlen BarberTZS_YEAR= 2050 440ba2b2efdSGlen BarberTZS= to$(TZS_YEAR).tzs 441ba2b2efdSGlen BarberTZS_NEW= to$(TZS_YEAR)new.tzs 442ba2b2efdSGlen BarberTZS_DEPS= $(PRIMARY_YDATA) asctime.c localtime.c \ 443ba2b2efdSGlen Barber private.h tzfile.h zdump.c zic.c 444*8d7edd17SPhilip PaepsENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) $(TZS) tzdata.zi 445ba2b2efdSGlen Barber 446ba2b2efdSGlen Barber# Consult these files when deciding whether to rebuild the 'version' file. 447ba2b2efdSGlen Barber# This list is not the same as the output of 'git ls-files', since 448ba2b2efdSGlen Barber# .gitignore is not distributed. 449ba2b2efdSGlen BarberVERSION_DEPS= \ 450*8d7edd17SPhilip Paeps calendars CONTRIBUTING LICENSE Makefile NEWS README \ 451ba2b2efdSGlen Barber africa antarctica asctime.c asia australasia \ 452ba2b2efdSGlen Barber backward backzone \ 453ba2b2efdSGlen Barber checklinks.awk checktab.awk \ 454ba2b2efdSGlen Barber date.1 date.c difftime.c \ 455ba2b2efdSGlen Barber etcetera europe factory iso3166.tab \ 456ba2b2efdSGlen Barber leap-seconds.list leapseconds.awk localtime.c \ 457ba2b2efdSGlen Barber newctime.3 newstrftime.3 newtzset.3 northamerica \ 458ba2b2efdSGlen Barber pacificnew private.h \ 459*8d7edd17SPhilip Paeps southamerica strftime.c systemv theory.html \ 460ba2b2efdSGlen Barber time2posix.3 tz-art.htm tz-how-to.html tz-link.htm \ 461ba2b2efdSGlen Barber tzfile.5 tzfile.h tzselect.8 tzselect.ksh \ 462ba2b2efdSGlen Barber workman.sh yearistype.sh \ 463ba2b2efdSGlen Barber zdump.8 zdump.c zic.8 zic.c \ 464ba2b2efdSGlen Barber zone.tab zone1970.tab zoneinfo2tdf.pl 465ba2b2efdSGlen Barber 466ba2b2efdSGlen Barber# And for the benefit of csh users on systems that assume the user 467ba2b2efdSGlen Barber# shell should be used to handle commands in Makefiles. . . 468ba2b2efdSGlen Barber 469ba2b2efdSGlen BarberSHELL= /bin/sh 470ba2b2efdSGlen Barber 471ba2b2efdSGlen Barberall: tzselect yearistype zic zdump libtz.a $(TABDATA) 472ba2b2efdSGlen Barber 473ba2b2efdSGlen BarberALL: all date $(ENCHILADA) 474ba2b2efdSGlen Barber 475ba2b2efdSGlen Barberinstall: all $(DATA) $(REDO) $(MANS) 476ba2b2efdSGlen Barber mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \ 477ba2b2efdSGlen Barber $(DESTDIR)$(LIBDIR) \ 478ba2b2efdSGlen Barber $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \ 479ba2b2efdSGlen Barber $(DESTDIR)$(MANDIR)/man8 480ba2b2efdSGlen Barber $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES) 481*8d7edd17SPhilip Paeps cp -f $(TABDATA) $(DESTDIR)$(TZDIR)/. 482ba2b2efdSGlen Barber cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/. 483ba2b2efdSGlen Barber cp libtz.a $(DESTDIR)$(LIBDIR)/. 484ba2b2efdSGlen Barber $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a 485ba2b2efdSGlen Barber cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/. 486ba2b2efdSGlen Barber cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/. 487ba2b2efdSGlen Barber cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/. 488ba2b2efdSGlen Barber 489ba2b2efdSGlen BarberINSTALL: ALL install date.1 490ba2b2efdSGlen Barber mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 491ba2b2efdSGlen Barber cp date $(DESTDIR)$(BINDIR)/. 492ba2b2efdSGlen Barber cp -f date.1 $(DESTDIR)$(MANDIR)/man1/. 493ba2b2efdSGlen Barber 494ba2b2efdSGlen Barberversion: $(VERSION_DEPS) 495ba2b2efdSGlen Barber { (type git) >/dev/null 2>&1 && \ 496ba2b2efdSGlen Barber V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \ 497ba2b2efdSGlen Barber --abbrev=7 --dirty` || \ 498ba2b2efdSGlen Barber V=$(VERSION); } && \ 499ba2b2efdSGlen Barber printf '%s\n' "$$V" >$@.out 500ba2b2efdSGlen Barber mv $@.out $@ 501ba2b2efdSGlen Barber 502*8d7edd17SPhilip Paeps# This file can be tailored by setting BACKWARD, PACKRATDATA, etc. 503*8d7edd17SPhilip Paepstzdata.zi: $(TZDATA_ZI_DEPS) 504*8d7edd17SPhilip Paeps LC_ALL=C $(AWK) -f zishrink.awk $(TDATA) $(PACKRATDATA) >$@.out 505*8d7edd17SPhilip Paeps mv $@.out $@ 506*8d7edd17SPhilip Paeps 507ba2b2efdSGlen Barberversion.h: version 508ba2b2efdSGlen Barber VERSION=`cat version` && printf '%s\n' \ 509ba2b2efdSGlen Barber 'static char const PKGVERSION[]="($(PACKAGE)) ";' \ 510ba2b2efdSGlen Barber "static char const TZVERSION[]=\"$$VERSION\";" \ 511ba2b2efdSGlen Barber 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";' \ 512ba2b2efdSGlen Barber >$@.out 513ba2b2efdSGlen Barber mv $@.out $@ 514ba2b2efdSGlen Barber 515ba2b2efdSGlen Barberzdump: $(TZDOBJS) 516ba2b2efdSGlen Barber $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) 517ba2b2efdSGlen Barber 518ba2b2efdSGlen Barberzic: $(TZCOBJS) 519ba2b2efdSGlen Barber $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) 520ba2b2efdSGlen Barber 521ba2b2efdSGlen Barberyearistype: yearistype.sh 522ba2b2efdSGlen Barber cp yearistype.sh yearistype 523ba2b2efdSGlen Barber chmod +x yearistype 524ba2b2efdSGlen Barber 525ba2b2efdSGlen Barberleapseconds: $(LEAP_DEPS) 526ba2b2efdSGlen Barber $(AWK) -f leapseconds.awk leap-seconds.list >$@.out 527ba2b2efdSGlen Barber mv $@.out $@ 528ba2b2efdSGlen Barber 529ba2b2efdSGlen Barber# Arguments to pass to submakes of install_data. 530ba2b2efdSGlen Barber# They can be overridden by later submake arguments. 531ba2b2efdSGlen BarberINSTALLARGS = \ 532*8d7edd17SPhilip Paeps BACKWARD=$(BACKWARD) \ 533ba2b2efdSGlen Barber DESTDIR=$(DESTDIR) \ 534ba2b2efdSGlen Barber LEAPSECONDS='$(LEAPSECONDS)' \ 535ba2b2efdSGlen Barber PACKRATDATA='$(PACKRATDATA)' \ 536ba2b2efdSGlen Barber TZDIR=$(TZDIR) \ 537ba2b2efdSGlen Barber YEARISTYPE=$(YEARISTYPE) \ 538ba2b2efdSGlen Barber ZIC='$(ZIC)' 539ba2b2efdSGlen Barber 540ba2b2efdSGlen Barber# 'make install_data' installs one set of tz binary files. 541*8d7edd17SPhilip Paepsinstall_data: zic leapseconds yearistype tzdata.zi 542*8d7edd17SPhilip Paeps $(ZIC_INSTALL) tzdata.zi 543ba2b2efdSGlen Barber 544ba2b2efdSGlen Barberposix_only: 545ba2b2efdSGlen Barber $(MAKE) $(INSTALLARGS) LEAPSECONDS= install_data 546ba2b2efdSGlen Barber 547ba2b2efdSGlen Barberright_only: 548ba2b2efdSGlen Barber $(MAKE) $(INSTALLARGS) LEAPSECONDS='-L leapseconds' \ 549ba2b2efdSGlen Barber install_data 550ba2b2efdSGlen Barber 551ba2b2efdSGlen Barber# In earlier versions of this makefile, the other two directories were 552ba2b2efdSGlen Barber# subdirectories of $(TZDIR). However, this led to configuration errors. 553ba2b2efdSGlen Barber# For example, with posix_right under the earlier scheme, 554ba2b2efdSGlen Barber# TZ='right/Australia/Adelaide' got you localtime with leap seconds, 555ba2b2efdSGlen Barber# but gmtime without leap seconds, which led to problems with applications 556ba2b2efdSGlen Barber# like sendmail that subtract gmtime from localtime. 557ba2b2efdSGlen Barber# Therefore, the other two directories are now siblings of $(TZDIR). 558ba2b2efdSGlen Barber# You must replace all of $(TZDIR) to switch from not using leap seconds 559ba2b2efdSGlen Barber# to using them, or vice versa. 560ba2b2efdSGlen Barberright_posix: right_only 561ba2b2efdSGlen Barber rm -fr $(DESTDIR)$(TZDIR)-leaps 562ba2b2efdSGlen Barber ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \ 563ba2b2efdSGlen Barber $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-leaps right_only 564ba2b2efdSGlen Barber $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-posix posix_only 565ba2b2efdSGlen Barber 566ba2b2efdSGlen Barberposix_right: posix_only 567ba2b2efdSGlen Barber rm -fr $(DESTDIR)$(TZDIR)-posix 568ba2b2efdSGlen Barber ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \ 569ba2b2efdSGlen Barber $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-posix posix_only 570ba2b2efdSGlen Barber $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-leaps right_only 571ba2b2efdSGlen Barber 572ba2b2efdSGlen Barber# This obsolescent rule is present for backwards compatibility with 573ba2b2efdSGlen Barber# tz releases 2014g through 2015g. It should go away eventually. 574ba2b2efdSGlen Barberposix_packrat: 575ba2b2efdSGlen Barber $(MAKE) $(INSTALLARGS) PACKRATDATA=backzone posix_only 576ba2b2efdSGlen Barber 577ba2b2efdSGlen Barberzones: $(REDO) 578ba2b2efdSGlen Barber 579*8d7edd17SPhilip Paeps$(TZS_NEW): tzdata.zi zdump zic 580ba2b2efdSGlen Barber mkdir -p tzs.dir 581*8d7edd17SPhilip Paeps $(zic) -d tzs.dir tzdata.zi 582*8d7edd17SPhilip Paeps $(AWK) '/^L/{print "Link\t" $$2 "\t" $$3}' \ 583*8d7edd17SPhilip Paeps tzdata.zi | LC_ALL=C sort >$@.out 584ba2b2efdSGlen Barber wd=`pwd` && \ 585ba2b2efdSGlen Barber zones=`$(AWK) -v wd="$$wd" \ 586*8d7edd17SPhilip Paeps '/^Z/{print wd "/tzs.dir/" $$2}' tzdata.zi \ 587ba2b2efdSGlen Barber | LC_ALL=C sort` && \ 588ba2b2efdSGlen Barber ./zdump -i -c $(TZS_YEAR) $$zones >>$@.out 589ba2b2efdSGlen Barber sed 's,^TZ=".*tzs\.dir/,TZ=",' $@.out >$@.sed.out 590ba2b2efdSGlen Barber rm -fr tzs.dir $@.out 591ba2b2efdSGlen Barber mv $@.sed.out $@ 592ba2b2efdSGlen Barber 593ba2b2efdSGlen Barber# If $(TZS) does not already exist (e.g., old-format tarballs), create it. 594ba2b2efdSGlen Barber# If it exists but 'make check_tzs' fails, a maintainer should inspect the 595ba2b2efdSGlen Barber# failed output and fix the inconsistency, perhaps by running 'make force_tzs'. 596ba2b2efdSGlen Barber$(TZS): 597ba2b2efdSGlen Barber $(MAKE) force_tzs 598ba2b2efdSGlen Barber 599ba2b2efdSGlen Barberforce_tzs: $(TZS_NEW) 600ba2b2efdSGlen Barber cp $(TZS_NEW) $(TZS) 601ba2b2efdSGlen Barber 602ba2b2efdSGlen Barberlibtz.a: $(LIBOBJS) 603e350c46aSBaptiste Daroussin rm -f $@ 604e350c46aSBaptiste Daroussin $(AR) -rc $@ $(LIBOBJS) 605ba2b2efdSGlen Barber $(RANLIB) $@ 606ba2b2efdSGlen Barber 607ba2b2efdSGlen Barberdate: $(DATEOBJS) 608ba2b2efdSGlen Barber $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS) 609ba2b2efdSGlen Barber 610ba2b2efdSGlen Barbertzselect: tzselect.ksh version 611ba2b2efdSGlen Barber VERSION=`cat version` && sed \ 612ba2b2efdSGlen Barber -e 's|#!/bin/bash|#!$(KSHELL)|g' \ 613ba2b2efdSGlen Barber -e 's|AWK=[^}]*|AWK=$(AWK)|g' \ 614ba2b2efdSGlen Barber -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \ 615ba2b2efdSGlen Barber -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \ 616ba2b2efdSGlen Barber -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \ 617ba2b2efdSGlen Barber -e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \ 618ba2b2efdSGlen Barber <$@.ksh >$@.out 619ba2b2efdSGlen Barber chmod +x $@.out 620ba2b2efdSGlen Barber mv $@.out $@ 621ba2b2efdSGlen Barber 622*8d7edd17SPhilip Paepscheck: check_character_set check_white_space check_links \ 623*8d7edd17SPhilip Paeps check_name_lengths check_sorted \ 624*8d7edd17SPhilip Paeps check_tables check_web check_zishrink check_tzs 625ba2b2efdSGlen Barber 626ba2b2efdSGlen Barbercheck_character_set: $(ENCHILADA) 627*8d7edd17SPhilip Paeps test ! '$(UTF8_LOCALE)' || \ 628*8d7edd17SPhilip Paeps ! printf 'A\304\200B\n' | \ 629*8d7edd17SPhilip Paeps LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 || { \ 630*8d7edd17SPhilip Paeps LC_ALL='$(UTF8_LOCALE)' && export LC_ALL && \ 631ba2b2efdSGlen Barber sharp='#' && \ 632ba2b2efdSGlen Barber ! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \ 633ba2b2efdSGlen Barber $(MISC) $(SOURCES) $(WEB_PAGES) \ 634*8d7edd17SPhilip Paeps CONTRIBUTING LICENSE Makefile README \ 635*8d7edd17SPhilip Paeps version tzdata.zi && \ 636ba2b2efdSGlen Barber ! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \ 637ba2b2efdSGlen Barber leapseconds yearistype.sh zone.tab && \ 638*8d7edd17SPhilip Paeps ! grep -Env $(OK_LINE) $(ENCHILADA); \ 639*8d7edd17SPhilip Paeps } 640ba2b2efdSGlen Barber 641ba2b2efdSGlen Barbercheck_white_space: $(ENCHILADA) 642ba2b2efdSGlen Barber patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \ 643ba2b2efdSGlen Barber ! grep -En "$$pat" $(ENCHILADA) 644ba2b2efdSGlen Barber ! grep -n '[[:space:]]$$' $(ENCHILADA) 645ba2b2efdSGlen Barber 646*8d7edd17SPhilip PaepsPRECEDES_FILE_NAME = ^(Zone|Link[[:space:]]+[^[:space:]]+)[[:space:]]+ 647*8d7edd17SPhilip PaepsFILE_NAME_COMPONENT_TOO_LONG = \ 648*8d7edd17SPhilip Paeps $(PRECEDES_FILE_NAME)[^[:space:]]*[^/[:space:]]{15} 649*8d7edd17SPhilip Paeps 650*8d7edd17SPhilip Paepscheck_name_lengths: $(TDATA) backzone 651*8d7edd17SPhilip Paeps ! grep -En '$(FILE_NAME_COMPONENT_TOO_LONG)' $(TDATA) backzone 652*8d7edd17SPhilip Paeps 653ba2b2efdSGlen BarberCHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; } 654ba2b2efdSGlen Barber 655ba2b2efdSGlen Barbercheck_sorted: backward backzone iso3166.tab zone.tab zone1970.tab 656ba2b2efdSGlen Barber $(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu 657ba2b2efdSGlen Barber $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu 658ba2b2efdSGlen Barber $(AWK) '/^[^#]/ {print $$1}' iso3166.tab | LC_ALL=C sort -cu 659ba2b2efdSGlen Barber $(AWK) '/^[^#]/ {print $$1}' zone.tab | LC_ALL=C sort -c 660ba2b2efdSGlen Barber $(AWK) '/^[^#]/ {print substr($$0, 1, 2)}' zone1970.tab | \ 661ba2b2efdSGlen Barber LC_ALL=C sort -c 662ba2b2efdSGlen Barber $(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \ 663ba2b2efdSGlen Barber LC_ALL=C sort -cu 664ba2b2efdSGlen Barber 665ba2b2efdSGlen Barbercheck_links: checklinks.awk $(TDATA) 666ba2b2efdSGlen Barber $(AWK) -f checklinks.awk $(TDATA) 667*8d7edd17SPhilip Paeps $(AWK) -f checklinks.awk tzdata.zi 668ba2b2efdSGlen Barber 669ba2b2efdSGlen Barbercheck_tables: checktab.awk $(PRIMARY_YDATA) $(ZONETABLES) 670ba2b2efdSGlen Barber for tab in $(ZONETABLES); do \ 671ba2b2efdSGlen Barber $(AWK) -f checktab.awk -v zone_table=$$tab $(PRIMARY_YDATA) \ 672ba2b2efdSGlen Barber || exit; \ 673ba2b2efdSGlen Barber done 674ba2b2efdSGlen Barber 675ba2b2efdSGlen Barbercheck_tzs: $(TZS) $(TZS_NEW) 676ba2b2efdSGlen Barber diff -u $(TZS) $(TZS_NEW) 677ba2b2efdSGlen Barber 678*8d7edd17SPhilip Paeps# This checks only the HTML 4.01 strict page. 679*8d7edd17SPhilip Paeps# To check the the other pages, use <https://validator.w3.org/>. 680*8d7edd17SPhilip Paepscheck_web: tz-how-to.html 681*8d7edd17SPhilip Paeps $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) tz-how-to.html 682*8d7edd17SPhilip Paeps 683*8d7edd17SPhilip Paeps# Check that tzdata.zi generates the same binary data that its sources do. 684*8d7edd17SPhilip Paepscheck_zishrink: tzdata.zi zic leapseconds $(PACKRATDATA) $(TDATA) 685*8d7edd17SPhilip Paeps for type in posix right; do \ 686*8d7edd17SPhilip Paeps mkdir -p time_t.dir/$$type time_t.dir/$$type-shrunk && \ 687*8d7edd17SPhilip Paeps case $$type in \ 688*8d7edd17SPhilip Paeps right) leap='-L leapseconds';; \ 689*8d7edd17SPhilip Paeps *) leap=;; \ 690*8d7edd17SPhilip Paeps esac && \ 691*8d7edd17SPhilip Paeps $(ZIC) $$leap -d time_t.dir/$$type $(TDATA) && \ 692*8d7edd17SPhilip Paeps $(AWK) '/^Rule/' $(TDATA) | \ 693*8d7edd17SPhilip Paeps $(ZIC) $$leap -d time_t.dir/$$type - $(PACKRATDATA) && \ 694*8d7edd17SPhilip Paeps $(ZIC) $$leap -d time_t.dir/$$type-shrunk tzdata.zi && \ 695*8d7edd17SPhilip Paeps diff -r time_t.dir/$$type time_t.dir/$$type-shrunk || exit; \ 696*8d7edd17SPhilip Paeps done 697*8d7edd17SPhilip Paeps rm -fr time_t.dir 698ba2b2efdSGlen Barber 699ba2b2efdSGlen Barberclean_misc: 700ba2b2efdSGlen Barber rm -f core *.o *.out \ 701ba2b2efdSGlen Barber date tzselect version.h zdump zic yearistype libtz.a 702ba2b2efdSGlen Barberclean: clean_misc 703*8d7edd17SPhilip Paeps rm -fr *.dir tzdata.zi tzdb-*/ $(TZS_NEW) 704ba2b2efdSGlen Barber 705ba2b2efdSGlen Barbermaintainer-clean: clean 706ba2b2efdSGlen Barber @echo 'This command is intended for maintainers to use; it' 707ba2b2efdSGlen Barber @echo 'deletes files that may need special tools to rebuild.' 708ba2b2efdSGlen Barber rm -f leapseconds version $(MANTXTS) $(TZS) *.asc *.tar.* 709ba2b2efdSGlen Barber 710ba2b2efdSGlen Barbernames: 711ba2b2efdSGlen Barber @echo $(ENCHILADA) 712ba2b2efdSGlen Barber 713ba2b2efdSGlen Barberpublic: check check_public $(CHECK_TIME_T_ALTERNATIVES) \ 714ba2b2efdSGlen Barber tarballs signatures 715ba2b2efdSGlen Barber 716ba2b2efdSGlen Barberdate.1.txt: date.1 717ba2b2efdSGlen Barbernewctime.3.txt: newctime.3 718ba2b2efdSGlen Barbernewstrftime.3.txt: newstrftime.3 719ba2b2efdSGlen Barbernewtzset.3.txt: newtzset.3 720ba2b2efdSGlen Barbertime2posix.3.txt: time2posix.3 721ba2b2efdSGlen Barbertzfile.5.txt: tzfile.5 722ba2b2efdSGlen Barbertzselect.8.txt: tzselect.8 723ba2b2efdSGlen Barberzdump.8.txt: zdump.8 724ba2b2efdSGlen Barberzic.8.txt: zic.8 725ba2b2efdSGlen Barber 726ba2b2efdSGlen Barber$(MANTXTS): workman.sh 727ba2b2efdSGlen Barber LC_ALL=C sh workman.sh `expr $@ : '\(.*\)\.txt$$'` >$@.out 728ba2b2efdSGlen Barber mv $@.out $@ 729ba2b2efdSGlen Barber 730ba2b2efdSGlen Barber# Set the time stamps to those of the git repository, if available, 731ba2b2efdSGlen Barber# and if the files have not changed since then. 732ba2b2efdSGlen Barber# This uses GNU 'touch' syntax 'touch -d@N FILE', 733ba2b2efdSGlen Barber# where N is the number of seconds since 1970. 734ba2b2efdSGlen Barber# If git or GNU 'touch' is absent, don't bother to sync with git timestamps. 735ba2b2efdSGlen Barber# Also, set the timestamp of each prebuilt file like 'leapseconds' 736ba2b2efdSGlen Barber# to be the maximum of the files it depends on. 737ba2b2efdSGlen Barberset-timestamps.out: $(ENCHILADA) 738ba2b2efdSGlen Barber rm -f $@ 739ba2b2efdSGlen Barber if (type git) >/dev/null 2>&1 && \ 740ba2b2efdSGlen Barber files=`git ls-files $(ENCHILADA)` && \ 741ba2b2efdSGlen Barber touch -md @1 test.out; then \ 742ba2b2efdSGlen Barber rm -f test.out && \ 743ba2b2efdSGlen Barber for file in $$files; do \ 744ba2b2efdSGlen Barber if git diff --quiet $$file; then \ 745ba2b2efdSGlen Barber time=`git log -1 --format='tformat:%ct' $$file` && \ 746ba2b2efdSGlen Barber touch -cmd @$$time $$file; \ 747ba2b2efdSGlen Barber else \ 748ba2b2efdSGlen Barber echo >&2 "$$file: warning: does not match repository"; \ 749ba2b2efdSGlen Barber fi || exit; \ 750ba2b2efdSGlen Barber done; \ 751ba2b2efdSGlen Barber fi 752ba2b2efdSGlen Barber touch -cmr `ls -t $(LEAP_DEPS) | sed 1q` leapseconds 753ba2b2efdSGlen Barber for file in `ls $(MANTXTS) | sed 's/\.txt$$//'`; do \ 754ba2b2efdSGlen Barber touch -cmr `ls -t $$file workman.sh | sed 1q` $$file.txt || \ 755ba2b2efdSGlen Barber exit; \ 756ba2b2efdSGlen Barber done 757*8d7edd17SPhilip Paeps touch -cmr `ls -t $(TZDATA_ZI_DEPS) | sed 1q` tzdata.zi 758ba2b2efdSGlen Barber touch -cmr `ls -t $(TZS_DEPS) | sed 1q` $(TZS) 759ba2b2efdSGlen Barber touch -cmr `ls -t $(VERSION_DEPS) | sed 1q` version 760ba2b2efdSGlen Barber touch $@ 761ba2b2efdSGlen Barber 762ba2b2efdSGlen Barber# The zics below ensure that each data file can stand on its own. 763ba2b2efdSGlen Barber# We also do an all-files run to catch links to links. 764ba2b2efdSGlen Barber 765ba2b2efdSGlen Barbercheck_public: 766ba2b2efdSGlen Barber $(MAKE) maintainer-clean 767ba2b2efdSGlen Barber $(MAKE) "CFLAGS=$(GCC_DEBUG_FLAGS)" ALL 768ba2b2efdSGlen Barber mkdir -p public.dir 769*8d7edd17SPhilip Paeps for i in $(TDATA) tzdata.zi; do \ 770ba2b2efdSGlen Barber $(zic) -v -d public.dir $$i 2>&1 || exit; \ 771ba2b2efdSGlen Barber done 772ba2b2efdSGlen Barber $(zic) -v -d public.dir $(TDATA) 773ba2b2efdSGlen Barber rm -fr public.dir 774ba2b2efdSGlen Barber 775ba2b2efdSGlen Barber# Check that the code works under various alternative 776ba2b2efdSGlen Barber# implementations of time_t. 777ba2b2efdSGlen Barbercheck_time_t_alternatives: 778ba2b2efdSGlen Barber if diff -q Makefile Makefile 2>/dev/null; then \ 779ba2b2efdSGlen Barber quiet_option='-q'; \ 780ba2b2efdSGlen Barber else \ 781ba2b2efdSGlen Barber quiet_option=''; \ 782ba2b2efdSGlen Barber fi && \ 783ba2b2efdSGlen Barber wd=`pwd` && \ 784ba2b2efdSGlen Barber zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \ 785ba2b2efdSGlen Barber for type in $(TIME_T_ALTERNATIVES); do \ 786ba2b2efdSGlen Barber mkdir -p time_t.dir/$$type && \ 787ba2b2efdSGlen Barber $(MAKE) clean_misc && \ 788ba2b2efdSGlen Barber $(MAKE) TOPDIR="$$wd/time_t.dir/$$type" \ 789ba2b2efdSGlen Barber CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \ 790ba2b2efdSGlen Barber REDO='$(REDO)' \ 791ba2b2efdSGlen Barber install && \ 792ba2b2efdSGlen Barber diff $$quiet_option -r \ 793ba2b2efdSGlen Barber time_t.dir/int64_t/etc/zoneinfo \ 794ba2b2efdSGlen Barber time_t.dir/$$type/etc/zoneinfo && \ 795ba2b2efdSGlen Barber case $$type in \ 796ba2b2efdSGlen Barber int32_t) range=-2147483648,2147483647;; \ 797ba2b2efdSGlen Barber uint32_t) range=0,4294967296;; \ 798ba2b2efdSGlen Barber int64_t) continue;; \ 799ba2b2efdSGlen Barber *u*) range=0,10000000000;; \ 800ba2b2efdSGlen Barber *) range=-10000000000,10000000000;; \ 801ba2b2efdSGlen Barber esac && \ 802ba2b2efdSGlen Barber echo checking $$type zones ... && \ 803ba2b2efdSGlen Barber time_t.dir/int64_t/etc/zdump -V -t $$range $$zones \ 804ba2b2efdSGlen Barber >time_t.dir/int64_t.out && \ 805ba2b2efdSGlen Barber time_t.dir/$$type/etc/zdump -V -t $$range $$zones \ 806ba2b2efdSGlen Barber >time_t.dir/$$type.out && \ 807ba2b2efdSGlen Barber diff -u time_t.dir/int64_t.out time_t.dir/$$type.out \ 808ba2b2efdSGlen Barber || exit; \ 809ba2b2efdSGlen Barber done 810ba2b2efdSGlen Barber rm -fr time_t.dir 811ba2b2efdSGlen Barber 812ba2b2efdSGlen Barbertarballs traditional_tarballs signatures traditional_signatures: version 813ba2b2efdSGlen Barber VERSION=`cat version` && \ 814ba2b2efdSGlen Barber $(MAKE) VERSION="$$VERSION" $@_version 815ba2b2efdSGlen Barber 816ba2b2efdSGlen Barbertarballs_version: traditional_tarballs_version tzdb-$(VERSION).tar.lz 817ba2b2efdSGlen Barbertraditional_tarballs_version: \ 818ba2b2efdSGlen Barber tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz 819ba2b2efdSGlen Barbersignatures_version: traditional_signatures_version tzdb-$(VERSION).tar.lz.asc 820ba2b2efdSGlen Barbertraditional_signatures_version: \ 821ba2b2efdSGlen Barber tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc \ 822ba2b2efdSGlen Barber 823ba2b2efdSGlen Barbertzcode$(VERSION).tar.gz: set-timestamps.out 824ba2b2efdSGlen Barber LC_ALL=C && export LC_ALL && \ 825ba2b2efdSGlen Barber tar $(TARFLAGS) -cf - \ 826ba2b2efdSGlen Barber $(COMMON) $(DOCS) $(SOURCES) | \ 827ba2b2efdSGlen Barber gzip $(GZIPFLAGS) >$@.out 828ba2b2efdSGlen Barber mv $@.out $@ 829ba2b2efdSGlen Barber 830ba2b2efdSGlen Barbertzdata$(VERSION).tar.gz: set-timestamps.out 831ba2b2efdSGlen Barber LC_ALL=C && export LC_ALL && \ 832ba2b2efdSGlen Barber tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \ 833ba2b2efdSGlen Barber gzip $(GZIPFLAGS) >$@.out 834ba2b2efdSGlen Barber mv $@.out $@ 835ba2b2efdSGlen Barber 836ba2b2efdSGlen Barbertzdb-$(VERSION).tar.lz: set-timestamps.out 837ba2b2efdSGlen Barber rm -fr tzdb-$(VERSION) 838ba2b2efdSGlen Barber mkdir tzdb-$(VERSION) 839ba2b2efdSGlen Barber ln $(ENCHILADA) tzdb-$(VERSION) 840ba2b2efdSGlen Barber touch -cmr `ls -t tzdb-$(VERSION)/* | sed 1q` tzdb-$(VERSION) 841ba2b2efdSGlen Barber LC_ALL=C && export LC_ALL && \ 842ba2b2efdSGlen Barber tar $(TARFLAGS) -cf - tzdb-$(VERSION) | lzip -9 >$@.out 843ba2b2efdSGlen Barber mv $@.out $@ 844ba2b2efdSGlen Barber 845ba2b2efdSGlen Barbertzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz 846ba2b2efdSGlen Barber gpg --armor --detach-sign $? 847ba2b2efdSGlen Barber 848ba2b2efdSGlen Barbertzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz 849ba2b2efdSGlen Barber gpg --armor --detach-sign $? 850ba2b2efdSGlen Barber 851ba2b2efdSGlen Barbertzdb-$(VERSION).tar.lz.asc: tzdb-$(VERSION).tar.lz 852ba2b2efdSGlen Barber gpg --armor --detach-sign $? 853ba2b2efdSGlen Barber 854ba2b2efdSGlen Barbertypecheck: 855ba2b2efdSGlen Barber $(MAKE) clean 856ba2b2efdSGlen Barber for i in "long long" unsigned; \ 857ba2b2efdSGlen Barber do \ 858ba2b2efdSGlen Barber $(MAKE) CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \ 859ba2b2efdSGlen Barber ./zdump -v Europe/Rome ; \ 860ba2b2efdSGlen Barber $(MAKE) clean ; \ 861ba2b2efdSGlen Barber done 862ba2b2efdSGlen Barber 863*8d7edd17SPhilip Paepszonenames: tzdata.zi 864*8d7edd17SPhilip Paeps @$(AWK) '/^Z/ { print $$2 } /^L/ { print $$3 }' tzdata.zi 865ba2b2efdSGlen Barber 866ba2b2efdSGlen Barberasctime.o: private.h tzfile.h 867ba2b2efdSGlen Barberdate.o: private.h 868ba2b2efdSGlen Barberdifftime.o: private.h 869ba2b2efdSGlen Barberlocaltime.o: private.h tzfile.h 870ba2b2efdSGlen Barberstrftime.o: private.h tzfile.h 871ba2b2efdSGlen Barberzdump.o: version.h 872ba2b2efdSGlen Barberzic.o: private.h tzfile.h version.h 873ba2b2efdSGlen Barber 874ba2b2efdSGlen Barber.KEEP_STATE: 875ba2b2efdSGlen Barber 876ba2b2efdSGlen Barber.PHONY: ALL INSTALL all 877ba2b2efdSGlen Barber.PHONY: check check_character_set check_links 878ba2b2efdSGlen Barber.PHONY: check_public check_sorted check_tables 879ba2b2efdSGlen Barber.PHONY: check_time_t_alternatives check_tzs check_web check_white_space 880*8d7edd17SPhilip Paeps.PHONY: check_zishrink 881ba2b2efdSGlen Barber.PHONY: clean clean_misc force_tzs 882ba2b2efdSGlen Barber.PHONY: install install_data maintainer-clean names 883ba2b2efdSGlen Barber.PHONY: posix_only posix_packrat posix_right 884ba2b2efdSGlen Barber.PHONY: public right_only right_posix signatures signatures_version 885ba2b2efdSGlen Barber.PHONY: tarballs tarballs_version typecheck 886ba2b2efdSGlen Barber.PHONY: zonenames zones 887