1309574Sglebius# This file is in the public domain, so clarified as of 2309574Sglebius# 2009-05-17 by Arthur David Olson. 3309574Sglebius 4309574Sglebius# Package name for the code distribution. 5309574SglebiusPACKAGE= tzcode 6309574Sglebius 7309574Sglebius# Version number for the distribution, overridden in the 'tarballs' rule below. 8309574SglebiusVERSION= unknown 9309574Sglebius 10309574Sglebius# Email address for bug reports. 11309574SglebiusBUGEMAIL= tz@iana.org 12309574Sglebius 13309574Sglebius# Change the line below for your time zone (after finding the zone you want in 14309574Sglebius# the time zone files, or adding it to a time zone file). 15309574Sglebius# Alternately, if you discover you've got the wrong time zone, you can just 16309574Sglebius# zic -l rightzone 17309574Sglebius# to correct things. 18309574Sglebius# Use the command 19309574Sglebius# make zonenames 20309574Sglebius# to get a list of the values you can use for LOCALTIME. 21309574Sglebius 22309574SglebiusLOCALTIME= GMT 23309574Sglebius 24309574Sglebius# If you want something other than Eastern United States time as a template 25309574Sglebius# for handling POSIX-style time zone environment variables, 26309574Sglebius# change the line below (after finding the zone you want in the 27309574Sglebius# time zone files, or adding it to a time zone file). 28309574Sglebius# (When a POSIX-style environment variable is handled, the rules in the 29309574Sglebius# template file are used to determine "spring forward" and "fall back" days and 30309574Sglebius# times; the environment variable itself specifies UT offsets of standard and 31309574Sglebius# summer time.) 32309574Sglebius# Alternately, if you discover you've got the wrong time zone, you can just 33309574Sglebius# zic -p rightzone 34309574Sglebius# to correct things. 35309574Sglebius# Use the command 36309574Sglebius# make zonenames 37309574Sglebius# to get a list of the values you can use for POSIXRULES. 38309574Sglebius# If you want POSIX compatibility, use "America/New_York". 39309574Sglebius 40309574SglebiusPOSIXRULES= America/New_York 41309574Sglebius 42309574Sglebius# Also see TZDEFRULESTRING below, which takes effect only 43309574Sglebius# if the time zone files cannot be accessed. 44309574Sglebius 45309574Sglebius# Everything gets put in subdirectories of. . . 46309574Sglebius 47309574SglebiusTOPDIR= /usr/local 48309574Sglebius 49309574Sglebius# "Compiled" time zone information is placed in the "TZDIR" directory 50309574Sglebius# (and subdirectories). 51309574Sglebius# Use an absolute path name for TZDIR unless you're just testing the software. 52309574Sglebius 53309574SglebiusTZDIR_BASENAME= zoneinfo 54309574SglebiusTZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME) 55309574Sglebius 56309574Sglebius# Types to try, as an alternative to time_t. int64_t should be first. 57309574SglebiusTIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t 58309574Sglebius 59309574Sglebius# The "tzselect", "zic", and "zdump" commands get installed in. . . 60309574Sglebius 61309574SglebiusETCDIR= $(TOPDIR)/etc 62309574Sglebius 63309574Sglebius# If you "make INSTALL", the "date" command gets installed in. . . 64309574Sglebius 65309574SglebiusBINDIR= $(TOPDIR)/bin 66309574Sglebius 67309574Sglebius# Manual pages go in subdirectories of. . . 68309574Sglebius 69309574SglebiusMANDIR= $(TOPDIR)/man 70309574Sglebius 71309574Sglebius# Library functions are put in an archive in LIBDIR. 72309574Sglebius 73309574SglebiusLIBDIR= $(TOPDIR)/lib 74309574Sglebius 75309574Sglebius# If you always want time values interpreted as "seconds since the epoch 76309574Sglebius# (not counting leap seconds)", use 77309574Sglebius# REDO= posix_only 78309574Sglebius# below. If you always want right time values interpreted as "seconds since 79309574Sglebius# the epoch" (counting leap seconds)", use 80309574Sglebius# REDO= right_only 81309574Sglebius# below. If you want both sets of data available, with leap seconds not 82309574Sglebius# counted normally, use 83309574Sglebius# REDO= posix_right 84309574Sglebius# below. If you want both sets of data available, with leap seconds counted 85309574Sglebius# normally, use 86309574Sglebius# REDO= right_posix 87309574Sglebius# below. POSIX mandates that leap seconds not be counted; for compatibility 88309574Sglebius# with it, use "posix_only" or "posix_right". 89309574Sglebius 90309574SglebiusREDO= posix_right 91309574Sglebius 92309574Sglebius# If you want out-of-scope and often-wrong data from the file 'backzone', use 93309574Sglebius# PACKRATDATA= backzone 94309574Sglebius# To omit this data, use 95309574Sglebius# PACKRATDATA= 96309574Sglebius 97309574SglebiusPACKRATDATA= 98309574Sglebius 99309574Sglebius# Since "." may not be in PATH... 100309574Sglebius 101309574SglebiusYEARISTYPE= ./yearistype 102309574Sglebius 103309574Sglebius# Non-default libraries needed to link. 104309574SglebiusLDLIBS= 105309574Sglebius 106309574Sglebius# Add the following to the end of the "CFLAGS=" line as needed. 107309574Sglebius# -DBIG_BANG=-9999999LL if the Big Bang occurred at time -9999999 (see zic.c) 108309574Sglebius# -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r 109309574Sglebius# -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows) 110309574Sglebius# -DHAVE_DOS_FILE_NAMES if file names have drive specifiers etc. (MS-DOS) 111309574Sglebius# -DHAVE_GETTEXT=1 if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris) 112309574Sglebius# -DHAVE_INCOMPATIBLE_CTIME_R=1 if your system's time.h declares 113309574Sglebius# ctime_r and asctime_r incompatibly with the POSIX standard 114309574Sglebius# (Solaris when _POSIX_PTHREAD_SEMANTICS is not defined). 115309574Sglebius# -DHAVE_INTTYPES_H=1 if you have a pre-C99 compiler with "inttypes.h" 116309574Sglebius# -DHAVE_LINK=0 if your system lacks a link function 117309574Sglebius# -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function 118309574Sglebius# -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz 119309574Sglebius# This defaults to 1 if a working localtime_rz seems to be available. 120309574Sglebius# localtime_rz can make zdump significantly faster, but is nonstandard. 121309574Sglebius# -DHAVE_POSIX_DECLS=0 if your system's include files do not declare 122309574Sglebius# functions like 'link' or variables like 'tzname' required by POSIX 123309574Sglebius# -DHAVE_STDINT_H=1 if you have a pre-C99 compiler with "stdint.h" 124309574Sglebius# -DHAVE_STRFTIME_L=1 if <time.h> declares locale_t and strftime_l 125309574Sglebius# This defaults to 0 if _POSIX_VERSION < 200809, 1 otherwise. 126309574Sglebius# -DHAVE_STRDUP=0 if your system lacks the strdup function 127309574Sglebius# -DHAVE_SYMLINK=0 if your system lacks the symlink function 128309574Sglebius# -DHAVE_SYS_STAT_H=0 if your compiler lacks a "sys/stat.h" 129309574Sglebius# -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h" 130309574Sglebius# -DHAVE_TZSET=0 if your system lacks a tzset function 131309574Sglebius# -DHAVE_UNISTD_H=0 if your compiler lacks a "unistd.h" (Microsoft C++ 7?) 132309574Sglebius# -DEPOCH_LOCAL=1 if the 'time' function returns local time not UT 133309574Sglebius# -DEPOCH_OFFSET=N if the 'time' function returns a value N greater 134309574Sglebius# than what POSIX specifies, assuming local time is UT. 135309574Sglebius# For example, N is 252460800 on AmigaOS. 136309574Sglebius# -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU=1 137309574Sglebius# if you do not want run time warnings about formats that may cause 138309574Sglebius# year 2000 grief 139309574Sglebius# -Dssize_t=long on ancient hosts that lack ssize_t 140309574Sglebius# -DTHREAD_SAFE=1 to make localtime.c thread-safe, as POSIX requires; 141309574Sglebius# not needed by the main-program tz code, which is single-threaded. 142309574Sglebius# Append other compiler flags as needed, e.g., -pthread on GNU/Linux. 143309574Sglebius# -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t 144309574Sglebius# -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz" 145309574Sglebius# -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory; 146309574Sglebius# the default is system-supplied, typically "/usr/lib/locale" 147309574Sglebius# -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified 148309574Sglebius# DST transitions if the time zone files cannot be accessed 149309574Sglebius# -DUNINIT_TRAP=1 if reading uninitialized storage can cause problems 150309574Sglebius# other than simply getting garbage data 151309574Sglebius# -DUSE_LTZ=0 to build zdump with the system time zone library 152309574Sglebius# Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below. 153309574Sglebius# -DZIC_MAX_ABBR_LEN_WO_WARN=3 154309574Sglebius# (or some other number) to set the maximum time zone abbreviation length 155309574Sglebius# that zic will accept without a warning (the default is 6) 156309574Sglebius# $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking 157309574SglebiusGCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-common -fstrict-aliasing \ 158309574Sglebius -Wall -Wextra \ 159309574Sglebius -Wbad-function-cast -Wcast-align -Wdate-time \ 160309574Sglebius -Wdeclaration-after-statement \ 161309574Sglebius -Wdouble-promotion \ 162309574Sglebius -Wformat=2 -Winit-self -Wjump-misses-init \ 163309574Sglebius -Wlogical-op -Wmissing-prototypes -Wnested-externs \ 164309574Sglebius -Wold-style-definition -Woverlength-strings -Wpointer-arith \ 165309574Sglebius -Wshadow -Wstrict-prototypes -Wsuggest-attribute=const \ 166309574Sglebius -Wsuggest-attribute=format -Wsuggest-attribute=noreturn \ 167309574Sglebius -Wsuggest-attribute=pure -Wtrampolines \ 168309574Sglebius -Wunused -Wwrite-strings \ 169309574Sglebius -Wno-address -Wno-format-nonliteral -Wno-sign-compare \ 170309574Sglebius -Wno-type-limits -Wno-unused-parameter 171309574Sglebius# 172309574Sglebius# If you want to use System V compatibility code, add 173309574Sglebius# -DUSG_COMPAT 174309574Sglebius# to the end of the "CFLAGS=" line. This arrange for "timezone" and "daylight" 175309574Sglebius# variables to be kept up-to-date by the time conversion functions. Neither 176309574Sglebius# "timezone" nor "daylight" is described in X3J11's work. 177309574Sglebius# 178309574Sglebius# If your system has a "GMT offset" field in its "struct tm"s 179309574Sglebius# (or if you decide to add such a field in your system's "time.h" file), 180309574Sglebius# add the name to a define such as 181309574Sglebius# -DTM_GMTOFF=tm_gmtoff 182309574Sglebius# to the end of the "CFLAGS=" line. If not defined, the code attempts to 183309574Sglebius# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this. 184309574Sglebius# Similarly, if your system has a "zone abbreviation" field, define 185309574Sglebius# -DTM_ZONE=tm_zone 186309574Sglebius# and define NO_TM_ZONE to suppress any guessing. These two fields are not 187309574Sglebius# required by POSIX, but are widely available on GNU/Linux and BSD systems. 188309574Sglebius# 189309574Sglebius# If you want functions that were inspired by early versions of X3J11's work, 190309574Sglebius# add 191309574Sglebius# -DSTD_INSPIRED 192309574Sglebius# to the end of the "CFLAGS=" line. This arranges for the functions 193309574Sglebius# "tzsetwall", "offtime", "timelocal", "timegm", "timeoff", 194309574Sglebius# "posix2time", and "time2posix" to be added to the time conversion library. 195309574Sglebius# "tzsetwall" is like "tzset" except that it arranges for local wall clock 196309574Sglebius# time (rather than the time specified in the TZ environment variable) 197309574Sglebius# to be used. 198309574Sglebius# "offtime" is like "gmtime" except that it accepts a second (long) argument 199309574Sglebius# that gives an offset to add to the time_t when converting it. 200309574Sglebius# "timelocal" is equivalent to "mktime". 201309574Sglebius# "timegm" is like "timelocal" except that it turns a struct tm into 202309574Sglebius# a time_t using UT (rather than local time as "timelocal" does). 203309574Sglebius# "timeoff" is like "timegm" except that it accepts a second (long) argument 204309574Sglebius# that gives an offset to use when converting to a time_t. 205309574Sglebius# "posix2time" and "time2posix" are described in an included manual page. 206309574Sglebius# X3J11's work does not describe any of these functions. 207309574Sglebius# Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0. 208309574Sglebius# These functions may well disappear in future releases of the time 209309574Sglebius# conversion package. 210309574Sglebius# 211309574Sglebius# If you don't want functions that were inspired by NetBSD, add 212309574Sglebius# -DNETBSD_INSPIRED=0 213309574Sglebius# to the end of the "CFLAGS=" line. Otherwise, the functions 214309574Sglebius# "localtime_rz", "mktime_z", "tzalloc", and "tzfree" are added to the 215309574Sglebius# time library, and if STD_INSPIRED is also defined the functions 216309574Sglebius# "posix2time_z" and "time2posix_z" are added as well. 217309574Sglebius# The functions ending in "_z" (or "_rz") are like their unsuffixed 218309574Sglebius# (or suffixed-by-"_r") counterparts, except with an extra first 219309574Sglebius# argument of opaque type timezone_t that specifies the time zone. 220309574Sglebius# "tzalloc" allocates a timezone_t value, and "tzfree" frees it. 221309574Sglebius# 222309574Sglebius# If you want to allocate state structures in localtime, add 223309574Sglebius# -DALL_STATE 224309574Sglebius# to the end of the "CFLAGS=" line. Storage is obtained by calling malloc. 225309574Sglebius# 226309574Sglebius# If you want an "altzone" variable (a la System V Release 3.1), add 227309574Sglebius# -DALTZONE 228309574Sglebius# to the end of the "CFLAGS=" line. 229309574Sglebius# This variable is not described in X3J11's work. 230309574Sglebius# 231309574Sglebius# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put 232309574Sglebius# out by the National Institute of Standards and Technology 233309574Sglebius# which claims to test C and Posix conformance. If you want to pass PCTS, add 234309574Sglebius# -DPCTS 235309574Sglebius# to the end of the "CFLAGS=" line. 236309574Sglebius# 237309574Sglebius# If you want strict compliance with XPG4 as of 1994-04-09, add 238309574Sglebius# -DXPG4_1994_04_09 239309574Sglebius# to the end of the "CFLAGS=" line. This causes "strftime" to always return 240309574Sglebius# 53 as a week number (rather than 52 or 53) for those days in January that 241309574Sglebius# before the first Monday in January when a "%V" format is used and January 1 242309574Sglebius# falls on a Friday, Saturday, or Sunday. 243309574Sglebius 244309574SglebiusCFLAGS= 245309574Sglebius 246309574Sglebius# Linker flags. Default to $(LFLAGS) for backwards compatibility 247309574Sglebius# to release 2012h and earlier. 248309574Sglebius 249309574SglebiusLDFLAGS= $(LFLAGS) 250309574Sglebius 251309574Sglebius# For leap seconds, this Makefile uses LEAPSECONDS='-L leapseconds' in 252309574Sglebius# submake command lines. The default is no leap seconds. 253309574Sglebius 254309574SglebiusLEAPSECONDS= 255309574Sglebius 256309574Sglebius# The zic command and its arguments. 257309574Sglebius 258309574Sglebiuszic= ./zic 259309574SglebiusZIC= $(zic) $(ZFLAGS) 260309574Sglebius 261309574SglebiusZFLAGS= 262309574Sglebius 263309574Sglebius# How to use zic to install tz binary files. 264309574Sglebius 265309574SglebiusZIC_INSTALL= $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS) 266309574Sglebius 267309574Sglebius# The name of a Posix-compliant 'awk' on your system. 268309574SglebiusAWK= awk 269309574Sglebius 270309574Sglebius# The full path name of a Posix-compliant shell, preferably one that supports 271309574Sglebius# the Korn shell's 'select' statement as an extension. 272309574Sglebius# These days, Bash is the most popular. 273309574Sglebius# It should be OK to set this to /bin/sh, on platforms where /bin/sh 274309574Sglebius# lacks 'select' or doesn't completely conform to Posix, but /bin/bash 275309574Sglebius# is typically nicer if it works. 276309574SglebiusKSHELL= /bin/bash 277309574Sglebius 278309574Sglebius# The path where SGML DTDs are kept and the catalog file(s) to use when 279309574Sglebius# validating. The default should work on both Debian and Red Hat. 280309574SglebiusSGML_TOPDIR= /usr 281309574SglebiusSGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd 282309574SglebiusSGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224 283309574SglebiusSGML_CATALOG_FILES= \ 284309574Sglebius $(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 285309574Sglebius 286309574Sglebius# The name, arguments and environment of a program to validate your web pages. 287309574Sglebius# See <http://openjade.sourceforge.net/doc/> for a validator, and 288309574Sglebius# <https://validator.w3.org/source/> for a validation library. 289309574SglebiusVALIDATE = nsgmls 290309574SglebiusVALIDATE_FLAGS = -s -B -wall -wno-unused-param 291309574SglebiusVALIDATE_ENV = \ 292309574Sglebius SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \ 293309574Sglebius SGML_SEARCH_PATH=$(SGML_SEARCH_PATH) \ 294309574Sglebius SP_CHARSET_FIXED=YES \ 295309574Sglebius SP_ENCODING=UTF-8 296309574Sglebius 297309574Sglebius# This expensive test requires USE_LTZ. 298309574Sglebius# To suppress it, define this macro to be empty. 299309574SglebiusCHECK_TIME_T_ALTERNATIVES = check_time_t_alternatives 300309574Sglebius 301309574Sglebius# SAFE_CHAR is a regular expression that matches a safe character. 302309574Sglebius# Some parts of this distribution are limited to safe characters; 303309574Sglebius# others can use any UTF-8 character. 304309574Sglebius# For now, the safe characters are a safe subset of ASCII. 305309574Sglebius# The caller must set the shell variable 'sharp' to the character '#', 306309574Sglebius# since Makefile macros cannot contain '#'. 307309574Sglebius# TAB_CHAR is a single tab character, in single quotes. 308309574SglebiusTAB_CHAR= ' ' 309309574SglebiusSAFE_CHARSET1= $(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@' 310309574SglebiusSAFE_CHARSET2= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`' 311309574SglebiusSAFE_CHARSET3= 'abcdefghijklmnopqrstuvwxyz{|}~' 312309574SglebiusSAFE_CHARSET= $(SAFE_CHARSET1)$(SAFE_CHARSET2)$(SAFE_CHARSET3) 313309574SglebiusSAFE_CHAR= '[]'$(SAFE_CHARSET)'-]' 314309574Sglebius 315309574Sglebius# OK_CHAR matches any character allowed in the distributed files. 316309574Sglebius# This is the same as SAFE_CHAR, except that multibyte letters are 317309574Sglebius# also allowed so that commentary can contain people's names and quote 318309574Sglebius# non-English sources. For non-letters the sources are limited to 319309574Sglebius# ASCII renderings for the convenience of maintainers whose text editors 320309574Sglebius# mishandle UTF-8 by default (e.g., XEmacs 21.4.22). 321309574SglebiusOK_CHAR= '[][:alpha:]'$(SAFE_CHARSET)'-]' 322309574Sglebius 323309574Sglebius# SAFE_LINE matches a line of safe characters. 324309574Sglebius# SAFE_SHARP_LINE is similar, except any OK character can follow '#'; 325309574Sglebius# this is so that comments can contain non-ASCII characters. 326309574Sglebius# OK_LINE matches a line of OK characters. 327309574SglebiusSAFE_LINE= '^'$(SAFE_CHAR)'*$$' 328309574SglebiusSAFE_SHARP_LINE='^'$(SAFE_CHAR)'*('$$sharp$(OK_CHAR)'*)?$$' 329309574SglebiusOK_LINE= '^'$(OK_CHAR)'*$$' 330309574Sglebius 331309574Sglebius# Flags to give 'tar' when making a distribution. 332309574Sglebius# Try to use flags appropriate for GNU tar. 333309574SglebiusGNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name 334309574SglebiusTARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \ 335309574Sglebius then echo $(GNUTARFLAGS); \ 336309574Sglebius else :; \ 337309574Sglebius fi` 338309574Sglebius 339309574Sglebius# Flags to give 'gzip' when making a distribution. 340309574SglebiusGZIPFLAGS= -9n 341309574Sglebius 342309574Sglebius############################################################################### 343309574Sglebius 344309574Sglebius#MAKE= make 345309574Sglebius 346309574Sglebiuscc= cc 347309574SglebiusCC= $(cc) -DTZDIR=\"$(TZDIR)\" 348309574Sglebius 349309574SglebiusAR= ar 350309574Sglebius 351309574Sglebius# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib. 352309574SglebiusRANLIB= : 353309574Sglebius 354309574SglebiusTZCOBJS= zic.o 355309574SglebiusTZDOBJS= zdump.o localtime.o asctime.o 356309574SglebiusDATEOBJS= date.o localtime.o strftime.o asctime.o 357309574SglebiusLIBSRCS= localtime.c asctime.c difftime.c 358309574SglebiusLIBOBJS= localtime.o asctime.o difftime.o 359309574SglebiusHEADERS= tzfile.h private.h 360309574SglebiusNONLIBSRCS= zic.c zdump.c 361309574SglebiusNEWUCBSRCS= date.c strftime.c 362309574SglebiusSOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \ 363309574Sglebius tzselect.ksh workman.sh 364309574SglebiusMANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \ 365309574Sglebius tzfile.5 tzselect.8 zic.8 zdump.8 366309574SglebiusMANTXTS= newctime.3.txt newstrftime.3.txt newtzset.3.txt \ 367309574Sglebius time2posix.3.txt \ 368309574Sglebius tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \ 369309574Sglebius date.1.txt 370309574SglebiusCOMMON= CONTRIBUTING LICENSE Makefile NEWS README Theory version 371309574SglebiusWEB_PAGES= tz-art.htm tz-how-to.html tz-link.htm 372309574SglebiusDOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES) 373309574SglebiusPRIMARY_YDATA= africa antarctica asia australasia \ 374309574Sglebius europe northamerica southamerica 375309574SglebiusYDATA= $(PRIMARY_YDATA) pacificnew etcetera backward 376309574SglebiusNDATA= systemv factory 377309574SglebiusTDATA= $(YDATA) $(NDATA) 378309574SglebiusZONETABLES= zone1970.tab zone.tab 379309574SglebiusTABDATA= iso3166.tab leapseconds $(ZONETABLES) 380309574SglebiusLEAP_DEPS= leapseconds.awk leap-seconds.list 381309574SglebiusDATA= $(YDATA) $(NDATA) backzone $(TABDATA) \ 382309574Sglebius leap-seconds.list yearistype.sh 383309574SglebiusAWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk 384309574SglebiusMISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl 385309574SglebiusTZS_YEAR= 2050 386309574SglebiusTZS= to$(TZS_YEAR).tzs 387309574SglebiusTZS_NEW= to$(TZS_YEAR)new.tzs 388309574SglebiusTZS_DEPS= $(PRIMARY_YDATA) asctime.c localtime.c \ 389309574Sglebius private.h tzfile.h zdump.c zic.c 390309574SglebiusENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) $(TZS) 391309574Sglebius 392309574Sglebius# Consult these files when deciding whether to rebuild the 'version' file. 393309574Sglebius# This list is not the same as the output of 'git ls-files', since 394309574Sglebius# .gitignore is not distributed. 395309574SglebiusVERSION_DEPS= \ 396309574Sglebius CONTRIBUTING LICENSE Makefile NEWS README Theory \ 397309574Sglebius africa antarctica asctime.c asia australasia \ 398309574Sglebius backward backzone \ 399309574Sglebius checklinks.awk checktab.awk \ 400309574Sglebius date.1 date.c difftime.c \ 401309574Sglebius etcetera europe factory iso3166.tab \ 402309574Sglebius leap-seconds.list leapseconds.awk localtime.c \ 403309574Sglebius newctime.3 newstrftime.3 newtzset.3 northamerica \ 404309574Sglebius pacificnew private.h \ 405309574Sglebius southamerica strftime.c systemv \ 406309574Sglebius time2posix.3 tz-art.htm tz-how-to.html tz-link.htm \ 407309574Sglebius tzfile.5 tzfile.h tzselect.8 tzselect.ksh \ 408309574Sglebius workman.sh yearistype.sh \ 409309574Sglebius zdump.8 zdump.c zic.8 zic.c \ 410309574Sglebius zone.tab zone1970.tab zoneinfo2tdf.pl 411309574Sglebius 412309574Sglebius# And for the benefit of csh users on systems that assume the user 413309574Sglebius# shell should be used to handle commands in Makefiles. . . 414309574Sglebius 415309574SglebiusSHELL= /bin/sh 416309574Sglebius 417309574Sglebiusall: tzselect yearistype zic zdump libtz.a $(TABDATA) 418309574Sglebius 419309574SglebiusALL: all date $(ENCHILADA) 420309574Sglebius 421309574Sglebiusinstall: all $(DATA) $(REDO) $(MANS) 422309574Sglebius mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \ 423309574Sglebius $(DESTDIR)$(LIBDIR) \ 424309574Sglebius $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \ 425309574Sglebius $(DESTDIR)$(MANDIR)/man8 426309574Sglebius $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES) 427309574Sglebius cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/. 428309574Sglebius cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/. 429309574Sglebius cp libtz.a $(DESTDIR)$(LIBDIR)/. 430309574Sglebius $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a 431309574Sglebius cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/. 432309574Sglebius cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/. 433309574Sglebius cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/. 434309574Sglebius 435309574SglebiusINSTALL: ALL install date.1 436309574Sglebius mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 437309574Sglebius cp date $(DESTDIR)$(BINDIR)/. 438309574Sglebius cp -f date.1 $(DESTDIR)$(MANDIR)/man1/. 439309574Sglebius 440309574Sglebiusversion: $(VERSION_DEPS) 441309574Sglebius { (type git) >/dev/null 2>&1 && \ 442309574Sglebius V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \ 443309574Sglebius --abbrev=7 --dirty` || \ 444309574Sglebius V=$(VERSION); } && \ 445309574Sglebius printf '%s\n' "$$V" >$@.out 446309574Sglebius mv $@.out $@ 447309574Sglebius 448309574Sglebiusversion.h: version 449309574Sglebius VERSION=`cat version` && printf '%s\n' \ 450309574Sglebius 'static char const PKGVERSION[]="($(PACKAGE)) ";' \ 451309574Sglebius "static char const TZVERSION[]=\"$$VERSION\";" \ 452309574Sglebius 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";' \ 453309574Sglebius >$@.out 454309574Sglebius mv $@.out $@ 455309574Sglebius 456309574Sglebiuszdump: $(TZDOBJS) 457309574Sglebius $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) 458309574Sglebius 459309574Sglebiuszic: $(TZCOBJS) 460309574Sglebius $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) 461309574Sglebius 462309574Sglebiusyearistype: yearistype.sh 463309574Sglebius cp yearistype.sh yearistype 464309574Sglebius chmod +x yearistype 465309574Sglebius 466309574Sglebiusleapseconds: $(LEAP_DEPS) 467309574Sglebius $(AWK) -f leapseconds.awk leap-seconds.list >$@.out 468309574Sglebius mv $@.out $@ 469309574Sglebius 470309574Sglebius# Arguments to pass to submakes of install_data. 471309574Sglebius# They can be overridden by later submake arguments. 472309574SglebiusINSTALLARGS = \ 473309574Sglebius DESTDIR=$(DESTDIR) \ 474309574Sglebius LEAPSECONDS='$(LEAPSECONDS)' \ 475309574Sglebius PACKRATDATA='$(PACKRATDATA)' \ 476309574Sglebius TZDIR=$(TZDIR) \ 477309574Sglebius YEARISTYPE=$(YEARISTYPE) \ 478309574Sglebius ZIC='$(ZIC)' 479309574Sglebius 480309574Sglebius# 'make install_data' installs one set of tz binary files. 481309574Sglebius# It can be tailored by setting LEAPSECONDS, PACKRATDATA, etc. 482309574Sglebiusinstall_data: zic leapseconds yearistype $(PACKRATDATA) $(TDATA) 483309574Sglebius $(ZIC_INSTALL) $(TDATA) 484309574Sglebius $(AWK) '/^Rule/' $(TDATA) | $(ZIC_INSTALL) - $(PACKRATDATA) 485309574Sglebius 486309574Sglebiusposix_only: 487309574Sglebius $(MAKE) $(INSTALLARGS) LEAPSECONDS= install_data 488309574Sglebius 489309574Sglebiusright_only: 490309574Sglebius $(MAKE) $(INSTALLARGS) LEAPSECONDS='-L leapseconds' \ 491309574Sglebius install_data 492309574Sglebius 493309574Sglebius# In earlier versions of this makefile, the other two directories were 494309574Sglebius# subdirectories of $(TZDIR). However, this led to configuration errors. 495309574Sglebius# For example, with posix_right under the earlier scheme, 496309574Sglebius# TZ='right/Australia/Adelaide' got you localtime with leap seconds, 497309574Sglebius# but gmtime without leap seconds, which led to problems with applications 498309574Sglebius# like sendmail that subtract gmtime from localtime. 499309574Sglebius# Therefore, the other two directories are now siblings of $(TZDIR). 500309574Sglebius# You must replace all of $(TZDIR) to switch from not using leap seconds 501309574Sglebius# to using them, or vice versa. 502309574Sglebiusright_posix: right_only 503309574Sglebius rm -fr $(DESTDIR)$(TZDIR)-leaps 504309574Sglebius ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \ 505309574Sglebius $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-leaps right_only 506309574Sglebius $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-posix posix_only 507309574Sglebius 508309574Sglebiusposix_right: posix_only 509309574Sglebius rm -fr $(DESTDIR)$(TZDIR)-posix 510309574Sglebius ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \ 511309574Sglebius $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-posix posix_only 512309574Sglebius $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-leaps right_only 513309574Sglebius 514309574Sglebius# This obsolescent rule is present for backwards compatibility with 515309574Sglebius# tz releases 2014g through 2015g. It should go away eventually. 516309574Sglebiusposix_packrat: 517309574Sglebius $(MAKE) $(INSTALLARGS) PACKRATDATA=backzone posix_only 518309574Sglebius 519309574Sglebiuszones: $(REDO) 520309574Sglebius 521309574Sglebius$(TZS_NEW): $(TDATA) zdump zic 522309574Sglebius mkdir -p tzs.dir 523309574Sglebius $(zic) -d tzs.dir $(TDATA) 524309574Sglebius $(AWK) '/^Link/{print $$1 "\t" $$2 "\t" $$3}' \ 525309574Sglebius $(TDATA) | LC_ALL=C sort >$@.out 526309574Sglebius wd=`pwd` && \ 527309574Sglebius zones=`$(AWK) -v wd="$$wd" \ 528309574Sglebius '/^Zone/{print wd "/tzs.dir/" $$2}' $(TDATA) \ 529309574Sglebius | LC_ALL=C sort` && \ 530309574Sglebius ./zdump -i -c $(TZS_YEAR) $$zones >>$@.out 531309574Sglebius sed 's,^TZ=".*tzs\.dir/,TZ=",' $@.out >$@.sed.out 532309574Sglebius rm -fr tzs.dir $@.out 533309574Sglebius mv $@.sed.out $@ 534309574Sglebius 535309574Sglebius# If $(TZS) does not already exist (e.g., old-format tarballs), create it. 536309574Sglebius# If it exists but 'make check_tzs' fails, a maintainer should inspect the 537309574Sglebius# failed output and fix the inconsistency, perhaps by running 'make force_tzs'. 538309574Sglebius$(TZS): 539309574Sglebius $(MAKE) force_tzs 540309574Sglebius 541309574Sglebiusforce_tzs: $(TZS_NEW) 542309574Sglebius cp $(TZS_NEW) $(TZS) 543309574Sglebius 544309574Sglebiuslibtz.a: $(LIBOBJS) 545309574Sglebius $(AR) ru $@ $(LIBOBJS) 546309574Sglebius $(RANLIB) $@ 547309574Sglebius 548309574Sglebiusdate: $(DATEOBJS) 549309574Sglebius $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS) 550309574Sglebius 551309574Sglebiustzselect: tzselect.ksh version 552309574Sglebius VERSION=`cat version` && sed \ 553309574Sglebius -e 's|#!/bin/bash|#!$(KSHELL)|g' \ 554309574Sglebius -e 's|AWK=[^}]*|AWK=$(AWK)|g' \ 555309574Sglebius -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \ 556309574Sglebius -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \ 557309574Sglebius -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \ 558309574Sglebius -e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \ 559309574Sglebius <$@.ksh >$@.out 560309574Sglebius chmod +x $@.out 561309574Sglebius mv $@.out $@ 562309574Sglebius 563309574Sglebiuscheck: check_character_set check_white_space check_links check_sorted \ 564309574Sglebius check_tables check_tzs check_web 565309574Sglebius 566309574Sglebiuscheck_character_set: $(ENCHILADA) 567309574Sglebius LC_ALL=en_US.utf8 && export LC_ALL && \ 568309574Sglebius sharp='#' && \ 569309574Sglebius ! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \ 570309574Sglebius $(MISC) $(SOURCES) $(WEB_PAGES) \ 571309574Sglebius CONTRIBUTING LICENSE Makefile README version && \ 572309574Sglebius ! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \ 573309574Sglebius leapseconds yearistype.sh zone.tab && \ 574309574Sglebius ! grep -Env $(OK_LINE) $(ENCHILADA) 575309574Sglebius 576309574Sglebiuscheck_white_space: $(ENCHILADA) 577309574Sglebius patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \ 578309574Sglebius ! grep -En "$$pat" $(ENCHILADA) 579309574Sglebius ! grep -n '[[:space:]]$$' $(ENCHILADA) 580309574Sglebius 581309574SglebiusCHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; } 582309574Sglebius 583309574Sglebiuscheck_sorted: backward backzone iso3166.tab zone.tab zone1970.tab 584309574Sglebius $(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu 585309574Sglebius $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu 586309574Sglebius $(AWK) '/^[^#]/ {print $$1}' iso3166.tab | LC_ALL=C sort -cu 587309574Sglebius $(AWK) '/^[^#]/ {print $$1}' zone.tab | LC_ALL=C sort -c 588309574Sglebius $(AWK) '/^[^#]/ {print substr($$0, 1, 2)}' zone1970.tab | \ 589309574Sglebius LC_ALL=C sort -c 590309574Sglebius $(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \ 591309574Sglebius LC_ALL=C sort -cu 592309574Sglebius 593309574Sglebiuscheck_links: checklinks.awk $(TDATA) 594309574Sglebius $(AWK) -f checklinks.awk $(TDATA) 595309574Sglebius 596309574Sglebiuscheck_tables: checktab.awk $(PRIMARY_YDATA) $(ZONETABLES) 597309574Sglebius for tab in $(ZONETABLES); do \ 598309574Sglebius $(AWK) -f checktab.awk -v zone_table=$$tab $(PRIMARY_YDATA) \ 599309574Sglebius || exit; \ 600309574Sglebius done 601309574Sglebius 602309574Sglebiuscheck_tzs: $(TZS) $(TZS_NEW) 603309574Sglebius diff -u $(TZS) $(TZS_NEW) 604309574Sglebius 605309574Sglebiuscheck_web: $(WEB_PAGES) 606309574Sglebius $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) $(WEB_PAGES) 607309574Sglebius 608309574Sglebiusclean_misc: 609309574Sglebius rm -f core *.o *.out \ 610309574Sglebius date tzselect version.h zdump zic yearistype libtz.a 611309574Sglebiusclean: clean_misc 612309574Sglebius rm -fr *.dir tzdb-*/ $(TZS_NEW) 613309574Sglebius 614309574Sglebiusmaintainer-clean: clean 615309574Sglebius @echo 'This command is intended for maintainers to use; it' 616309574Sglebius @echo 'deletes files that may need special tools to rebuild.' 617309574Sglebius rm -f leapseconds version $(MANTXTS) $(TZS) *.asc *.tar.* 618309574Sglebius 619309574Sglebiusnames: 620309574Sglebius @echo $(ENCHILADA) 621309574Sglebius 622309574Sglebiuspublic: check check_public $(CHECK_TIME_T_ALTERNATIVES) \ 623309574Sglebius tarballs signatures 624309574Sglebius 625309574Sglebiusdate.1.txt: date.1 626309574Sglebiusnewctime.3.txt: newctime.3 627309574Sglebiusnewstrftime.3.txt: newstrftime.3 628309574Sglebiusnewtzset.3.txt: newtzset.3 629309574Sglebiustime2posix.3.txt: time2posix.3 630309574Sglebiustzfile.5.txt: tzfile.5 631309574Sglebiustzselect.8.txt: tzselect.8 632309574Sglebiuszdump.8.txt: zdump.8 633309574Sglebiuszic.8.txt: zic.8 634309574Sglebius 635309574Sglebius$(MANTXTS): workman.sh 636309574Sglebius LC_ALL=C sh workman.sh `expr $@ : '\(.*\)\.txt$$'` >$@.out 637309574Sglebius mv $@.out $@ 638309574Sglebius 639309574Sglebius# Set the time stamps to those of the git repository, if available, 640309574Sglebius# and if the files have not changed since then. 641309574Sglebius# This uses GNU 'touch' syntax 'touch -d@N FILE', 642309574Sglebius# where N is the number of seconds since 1970. 643309574Sglebius# If git or GNU 'touch' is absent, don't bother to sync with git timestamps. 644309574Sglebius# Also, set the timestamp of each prebuilt file like 'leapseconds' 645309574Sglebius# to be the maximum of the files it depends on. 646309574Sglebiusset-timestamps.out: $(ENCHILADA) 647309574Sglebius rm -f $@ 648309574Sglebius if (type git) >/dev/null 2>&1 && \ 649309574Sglebius files=`git ls-files $(ENCHILADA)` && \ 650309574Sglebius touch -md @1 test.out; then \ 651309574Sglebius rm -f test.out && \ 652309574Sglebius for file in $$files; do \ 653309574Sglebius if git diff --quiet $$file; then \ 654309574Sglebius time=`git log -1 --format='tformat:%ct' $$file` && \ 655309574Sglebius touch -cmd @$$time $$file; \ 656309574Sglebius else \ 657309574Sglebius echo >&2 "$$file: warning: does not match repository"; \ 658309574Sglebius fi || exit; \ 659309574Sglebius done; \ 660309574Sglebius fi 661309574Sglebius touch -cmr `ls -t $(LEAP_DEPS) | sed 1q` leapseconds 662309574Sglebius for file in `ls $(MANTXTS) | sed 's/\.txt$$//'`; do \ 663309574Sglebius touch -cmr `ls -t $$file workman.sh | sed 1q` $$file.txt || \ 664309574Sglebius exit; \ 665309574Sglebius done 666309574Sglebius touch -cmr `ls -t $(TZS_DEPS) | sed 1q` $(TZS) 667309574Sglebius touch -cmr `ls -t $(VERSION_DEPS) | sed 1q` version 668309574Sglebius touch $@ 669309574Sglebius 670309574Sglebius# The zics below ensure that each data file can stand on its own. 671309574Sglebius# We also do an all-files run to catch links to links. 672309574Sglebius 673309574Sglebiuscheck_public: 674309574Sglebius $(MAKE) maintainer-clean 675309574Sglebius $(MAKE) "CFLAGS=$(GCC_DEBUG_FLAGS)" ALL 676309574Sglebius mkdir -p public.dir 677309574Sglebius for i in $(TDATA) ; do \ 678309574Sglebius $(zic) -v -d public.dir $$i 2>&1 || exit; \ 679309574Sglebius done 680309574Sglebius $(zic) -v -d public.dir $(TDATA) 681309574Sglebius rm -fr public.dir 682309574Sglebius 683309574Sglebius# Check that the code works under various alternative 684309574Sglebius# implementations of time_t. 685309574Sglebiuscheck_time_t_alternatives: 686309574Sglebius if diff -q Makefile Makefile 2>/dev/null; then \ 687309574Sglebius quiet_option='-q'; \ 688309574Sglebius else \ 689309574Sglebius quiet_option=''; \ 690309574Sglebius fi && \ 691309574Sglebius wd=`pwd` && \ 692309574Sglebius zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \ 693309574Sglebius for type in $(TIME_T_ALTERNATIVES); do \ 694309574Sglebius mkdir -p time_t.dir/$$type && \ 695309574Sglebius $(MAKE) clean_misc && \ 696309574Sglebius $(MAKE) TOPDIR="$$wd/time_t.dir/$$type" \ 697309574Sglebius CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \ 698309574Sglebius REDO='$(REDO)' \ 699309574Sglebius install && \ 700309574Sglebius diff $$quiet_option -r \ 701309574Sglebius time_t.dir/int64_t/etc/zoneinfo \ 702309574Sglebius time_t.dir/$$type/etc/zoneinfo && \ 703309574Sglebius case $$type in \ 704309574Sglebius int32_t) range=-2147483648,2147483647;; \ 705309574Sglebius uint32_t) range=0,4294967296;; \ 706309574Sglebius int64_t) continue;; \ 707309574Sglebius *u*) range=0,10000000000;; \ 708309574Sglebius *) range=-10000000000,10000000000;; \ 709309574Sglebius esac && \ 710309574Sglebius echo checking $$type zones ... && \ 711309574Sglebius time_t.dir/int64_t/etc/zdump -V -t $$range $$zones \ 712309574Sglebius >time_t.dir/int64_t.out && \ 713309574Sglebius time_t.dir/$$type/etc/zdump -V -t $$range $$zones \ 714309574Sglebius >time_t.dir/$$type.out && \ 715309574Sglebius diff -u time_t.dir/int64_t.out time_t.dir/$$type.out \ 716309574Sglebius || exit; \ 717309574Sglebius done 718309574Sglebius rm -fr time_t.dir 719309574Sglebius 720309574Sglebiustarballs traditional_tarballs signatures traditional_signatures: version 721309574Sglebius VERSION=`cat version` && \ 722309574Sglebius $(MAKE) VERSION="$$VERSION" $@_version 723309574Sglebius 724309574Sglebiustarballs_version: traditional_tarballs_version tzdb-$(VERSION).tar.lz 725309574Sglebiustraditional_tarballs_version: \ 726309574Sglebius tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz 727309574Sglebiussignatures_version: traditional_signatures_version tzdb-$(VERSION).tar.lz.asc 728309574Sglebiustraditional_signatures_version: \ 729309574Sglebius tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc \ 730309574Sglebius 731309574Sglebiustzcode$(VERSION).tar.gz: set-timestamps.out 732309574Sglebius LC_ALL=C && export LC_ALL && \ 733309574Sglebius tar $(TARFLAGS) -cf - \ 734309574Sglebius $(COMMON) $(DOCS) $(SOURCES) | \ 735309574Sglebius gzip $(GZIPFLAGS) >$@.out 736309574Sglebius mv $@.out $@ 737309574Sglebius 738309574Sglebiustzdata$(VERSION).tar.gz: set-timestamps.out 739309574Sglebius LC_ALL=C && export LC_ALL && \ 740309574Sglebius tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \ 741309574Sglebius gzip $(GZIPFLAGS) >$@.out 742309574Sglebius mv $@.out $@ 743309574Sglebius 744309574Sglebiustzdb-$(VERSION).tar.lz: set-timestamps.out 745309574Sglebius rm -fr tzdb-$(VERSION) 746309574Sglebius mkdir tzdb-$(VERSION) 747309574Sglebius ln $(ENCHILADA) tzdb-$(VERSION) 748309574Sglebius touch -cmr `ls -t tzdb-$(VERSION)/* | sed 1q` tzdb-$(VERSION) 749309574Sglebius LC_ALL=C && export LC_ALL && \ 750309574Sglebius tar $(TARFLAGS) -cf - tzdb-$(VERSION) | lzip -9 >$@.out 751309574Sglebius mv $@.out $@ 752309574Sglebius 753309574Sglebiustzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz 754309574Sglebius gpg --armor --detach-sign $? 755309574Sglebius 756309574Sglebiustzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz 757309574Sglebius gpg --armor --detach-sign $? 758309574Sglebius 759309574Sglebiustzdb-$(VERSION).tar.lz.asc: tzdb-$(VERSION).tar.lz 760309574Sglebius gpg --armor --detach-sign $? 761309574Sglebius 762309574Sglebiustypecheck: 763309574Sglebius $(MAKE) clean 764309574Sglebius for i in "long long" unsigned; \ 765309574Sglebius do \ 766309574Sglebius $(MAKE) CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \ 767309574Sglebius ./zdump -v Europe/Rome ; \ 768309574Sglebius $(MAKE) clean ; \ 769309574Sglebius done 770309574Sglebius 771309574Sglebiuszonenames: $(TDATA) 772309574Sglebius @$(AWK) '/^Zone/ { print $$2 } /^Link/ { print $$3 }' $(TDATA) 773309574Sglebius 774309574Sglebiusasctime.o: private.h tzfile.h 775309574Sglebiusdate.o: private.h 776309574Sglebiusdifftime.o: private.h 777309574Sglebiuslocaltime.o: private.h tzfile.h 778309574Sglebiusstrftime.o: private.h tzfile.h 779309574Sglebiuszdump.o: version.h 780309574Sglebiuszic.o: private.h tzfile.h version.h 781309574Sglebius 782309574Sglebius.KEEP_STATE: 783309574Sglebius 784309574Sglebius.PHONY: ALL INSTALL all 785309574Sglebius.PHONY: check check_character_set check_links 786309574Sglebius.PHONY: check_public check_sorted check_tables 787309574Sglebius.PHONY: check_time_t_alternatives check_tzs check_web check_white_space 788309574Sglebius.PHONY: clean clean_misc force_tzs 789309574Sglebius.PHONY: install install_data maintainer-clean names 790309574Sglebius.PHONY: posix_only posix_packrat posix_right 791309574Sglebius.PHONY: public right_only right_posix signatures signatures_version 792309574Sglebius.PHONY: tarballs tarballs_version typecheck 793309574Sglebius.PHONY: zonenames zones 794