Makefile revision 1.34
11.1Smlelstv# This file is in the public domain, so clarified as of 21.1Smlelstv# 2009-05-17 by Arthur David Olson. 31.1Smlelstv 41.10Schristos# Package name for the code distribution. 51.10SchristosPACKAGE= tzcode 61.10Schristos 71.34Schristos# Version number for the distribution, overridden in the 'tarballs' rule below. 81.34SchristosVERSION= 2016g 91.9Schristos 101.9Schristos# Email address for bug reports. 111.9SchristosBUGEMAIL= tz@iana.org 121.6Schristos 131.1Smlelstv# Change the line below for your time zone (after finding the zone you want in 141.1Smlelstv# the time zone files, or adding it to a time zone file). 151.1Smlelstv# Alternately, if you discover you've got the wrong time zone, you can just 161.1Smlelstv# zic -l rightzone 171.1Smlelstv# to correct things. 181.1Smlelstv# Use the command 191.1Smlelstv# make zonenames 201.1Smlelstv# to get a list of the values you can use for LOCALTIME. 211.1Smlelstv 221.4SchristosLOCALTIME= GMT 231.1Smlelstv 241.1Smlelstv# If you want something other than Eastern United States time as a template 251.1Smlelstv# for handling POSIX-style time zone environment variables, 261.1Smlelstv# change the line below (after finding the zone you want in the 271.1Smlelstv# time zone files, or adding it to a time zone file). 281.1Smlelstv# (When a POSIX-style environment variable is handled, the rules in the 291.1Smlelstv# template file are used to determine "spring forward" and "fall back" days and 301.15Schristos# times; the environment variable itself specifies UT offsets of standard and 311.1Smlelstv# summer time.) 321.1Smlelstv# Alternately, if you discover you've got the wrong time zone, you can just 331.1Smlelstv# zic -p rightzone 341.1Smlelstv# to correct things. 351.1Smlelstv# Use the command 361.1Smlelstv# make zonenames 371.1Smlelstv# to get a list of the values you can use for POSIXRULES. 381.1Smlelstv# If you want POSIX compatibility, use "America/New_York". 391.1Smlelstv 401.1SmlelstvPOSIXRULES= America/New_York 411.1Smlelstv 421.1Smlelstv# Also see TZDEFRULESTRING below, which takes effect only 431.1Smlelstv# if the time zone files cannot be accessed. 441.1Smlelstv 451.1Smlelstv# Everything gets put in subdirectories of. . . 461.1Smlelstv 471.1SmlelstvTOPDIR= /usr/local 481.1Smlelstv 491.1Smlelstv# "Compiled" time zone information is placed in the "TZDIR" directory 501.1Smlelstv# (and subdirectories). 511.1Smlelstv# Use an absolute path name for TZDIR unless you're just testing the software. 521.1Smlelstv 531.15SchristosTZDIR_BASENAME= zoneinfo 541.15SchristosTZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME) 551.1Smlelstv 561.14Schristos# Types to try, as an alternative to time_t. int64_t should be first. 571.14SchristosTIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t 581.14Schristos 591.1Smlelstv# The "tzselect", "zic", and "zdump" commands get installed in. . . 601.1Smlelstv 611.1SmlelstvETCDIR= $(TOPDIR)/etc 621.1Smlelstv 631.1Smlelstv# If you "make INSTALL", the "date" command gets installed in. . . 641.1Smlelstv 651.1SmlelstvBINDIR= $(TOPDIR)/bin 661.1Smlelstv 671.1Smlelstv# Manual pages go in subdirectories of. . . 681.1Smlelstv 691.1SmlelstvMANDIR= $(TOPDIR)/man 701.1Smlelstv 711.1Smlelstv# Library functions are put in an archive in LIBDIR. 721.1Smlelstv 731.1SmlelstvLIBDIR= $(TOPDIR)/lib 741.1Smlelstv 751.1Smlelstv# If you always want time values interpreted as "seconds since the epoch 761.1Smlelstv# (not counting leap seconds)", use 771.1Smlelstv# REDO= posix_only 781.1Smlelstv# below. If you always want right time values interpreted as "seconds since 791.1Smlelstv# the epoch" (counting leap seconds)", use 801.1Smlelstv# REDO= right_only 811.1Smlelstv# below. If you want both sets of data available, with leap seconds not 821.1Smlelstv# counted normally, use 831.1Smlelstv# REDO= posix_right 841.1Smlelstv# below. If you want both sets of data available, with leap seconds counted 851.1Smlelstv# normally, use 861.1Smlelstv# REDO= right_posix 871.32Schristos# below. POSIX mandates that leap seconds not be counted; for compatibility 881.32Schristos# with it, use "posix_only" or "posix_right". 891.1Smlelstv 901.1SmlelstvREDO= posix_right 911.1Smlelstv 921.32Schristos# If you want out-of-scope and often-wrong data from the file 'backzone', use 931.32Schristos# PACKRATDATA= backzone 941.32Schristos# To omit this data, use 951.32Schristos# PACKRATDATA= 961.32Schristos 971.32SchristosPACKRATDATA= 981.32Schristos 991.1Smlelstv# Since "." may not be in PATH... 1001.1Smlelstv 1011.1SmlelstvYEARISTYPE= ./yearistype 1021.1Smlelstv 1031.1Smlelstv# Non-default libraries needed to link. 1041.22Schristos# Add -lintl if you want to use 'gettext' on Solaris. 1051.1SmlelstvLDLIBS= 1061.1Smlelstv 1071.1Smlelstv# Add the following to the end of the "CFLAGS=" line as needed. 1081.19Schristos# -DBIG_BANG=-9999999LL if the Big Bang occurred at time -9999999 (see zic.c) 1091.32Schristos# -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r 1101.32Schristos# -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows) 1111.14Schristos# -DHAVE_DOS_FILE_NAMES if file names have drive specifiers etc. (MS-DOS) 1121.22Schristos# -DHAVE_GETTEXT=1 if 'gettext' works (GNU, Linux, Solaris); also see LDLIBS 1131.1Smlelstv# -DHAVE_INCOMPATIBLE_CTIME_R=1 if your system's time.h declares 1141.1Smlelstv# ctime_r and asctime_r incompatibly with the POSIX standard (Solaris 8). 1151.14Schristos# -DHAVE_INTTYPES_H=1 if you have a pre-C99 compiler with "inttypes.h" 1161.16Schristos# -DHAVE_LINK=0 if your system lacks a link function 1171.23Schristos# -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function 1181.23Schristos# -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz 1191.23Schristos# This defaults to 1 if a working localtime_rz seems to be available. 1201.23Schristos# localtime_rz can make zdump significantly faster, but is nonstandard. 1211.32Schristos# -DHAVE_POSIX_DECLS=0 if your system's include files do not declare 1221.32Schristos# functions like 'link' or variables like 'tzname' required by POSIX 1231.1Smlelstv# -DHAVE_STDINT_H=1 if you have a pre-C99 compiler with "stdint.h" 1241.23Schristos# -DHAVE_STRFTIME_L=1 if <time.h> declares locale_t and strftime_l 1251.23Schristos# This defaults to 0 if _POSIX_VERSION < 200809, 1 otherwise. 1261.28Schristos# -DHAVE_STRDUP=0 if your system lacks the strdup function 1271.1Smlelstv# -DHAVE_SYMLINK=0 if your system lacks the symlink function 1281.1Smlelstv# -DHAVE_SYS_STAT_H=0 if your compiler lacks a "sys/stat.h" 1291.1Smlelstv# -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h" 1301.23Schristos# -DHAVE_TZSET=0 if your system lacks a tzset function 1311.1Smlelstv# -DHAVE_UNISTD_H=0 if your compiler lacks a "unistd.h" (Microsoft C++ 7?) 1321.14Schristos# -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU=1 1331.14Schristos# if you do not want run time warnings about formats that may cause 1341.14Schristos# year 2000 grief 1351.24Schristos# -Dssize_t=long on ancient hosts that lack ssize_t 1361.23Schristos# -DTHREAD_SAFE=1 to make localtime.c thread-safe, as POSIX requires; 1371.23Schristos# not needed by the main-program tz code, which is single-threaded. 1381.23Schristos# Append other compiler flags as needed, e.g., -pthread on GNU/Linux. 1391.14Schristos# -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t 1401.1Smlelstv# -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz" 1411.22Schristos# -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory; 1421.1Smlelstv# the default is system-supplied, typically "/usr/lib/locale" 1431.14Schristos# -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified 1441.23Schristos# -DUNINIT_TRAP=1 if reading uninitialized storage can cause problems 1451.23Schristos# other than simply getting garbage data 1461.23Schristos# -DUSE_LTZ=0 to build zdump with the system time zone library 1471.23Schristos# Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below. 1481.11Schristos# -DNO_ERROR_IN_DST_GAP=1 1491.11Schristos# if you want mktime() not to return an error in the DST gap. 1501.1Smlelstv# -DZIC_MAX_ABBR_LEN_WO_WARN=3 1511.1Smlelstv# (or some other number) to set the maximum time zone abbreviation length 1521.1Smlelstv# that zic will accept without a warning (the default is 6) 1531.30Schristos# $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking 1541.7SchristosGCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-common -fstrict-aliasing \ 1551.7Schristos -Wall -Wextra \ 1561.28Schristos -Wbad-function-cast -Wcast-align -Wdate-time \ 1571.22Schristos -Wdeclaration-after-statement \ 1581.28Schristos -Wdouble-promotion \ 1591.22Schristos -Wformat=2 -Winit-self -Wjump-misses-init \ 1601.28Schristos -Wlogical-op -Wmissing-prototypes -Wnested-externs \ 1611.28Schristos -Wold-style-definition -Woverlength-strings -Wpointer-arith \ 1621.7Schristos -Wshadow -Wstrict-prototypes -Wsuggest-attribute=const \ 1631.22Schristos -Wsuggest-attribute=format -Wsuggest-attribute=noreturn \ 1641.22Schristos -Wsuggest-attribute=pure -Wtrampolines \ 1651.28Schristos -Wunused -Wwrite-strings \ 1661.28Schristos -Wno-address -Wno-format-nonliteral -Wno-sign-compare \ 1671.28Schristos -Wno-type-limits -Wno-unused-parameter 1681.1Smlelstv# 1691.1Smlelstv# If you want to use System V compatibility code, add 1701.1Smlelstv# -DUSG_COMPAT 1711.1Smlelstv# to the end of the "CFLAGS=" line. This arrange for "timezone" and "daylight" 1721.1Smlelstv# variables to be kept up-to-date by the time conversion functions. Neither 1731.1Smlelstv# "timezone" nor "daylight" is described in X3J11's work. 1741.1Smlelstv# 1751.1Smlelstv# If your system has a "GMT offset" field in its "struct tm"s 1761.1Smlelstv# (or if you decide to add such a field in your system's "time.h" file), 1771.1Smlelstv# add the name to a define such as 1781.1Smlelstv# -DTM_GMTOFF=tm_gmtoff 1791.23Schristos# to the end of the "CFLAGS=" line. If not defined, the code attempts to 1801.23Schristos# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this. 1811.23Schristos# Similarly, if your system has a "zone abbreviation" field, define 1821.1Smlelstv# -DTM_ZONE=tm_zone 1831.23Schristos# and define NO_TM_ZONE to suppress any guessing. These two fields are not 1841.23Schristos# required by POSIX, but are widely available on GNU/Linux and BSD systems. 1851.1Smlelstv# 1861.1Smlelstv# If you want functions that were inspired by early versions of X3J11's work, 1871.1Smlelstv# add 1881.1Smlelstv# -DSTD_INSPIRED 1891.1Smlelstv# to the end of the "CFLAGS=" line. This arranges for the functions 1901.1Smlelstv# "tzsetwall", "offtime", "timelocal", "timegm", "timeoff", 1911.1Smlelstv# "posix2time", and "time2posix" to be added to the time conversion library. 1921.1Smlelstv# "tzsetwall" is like "tzset" except that it arranges for local wall clock 1931.1Smlelstv# time (rather than the time specified in the TZ environment variable) 1941.1Smlelstv# to be used. 1951.1Smlelstv# "offtime" is like "gmtime" except that it accepts a second (long) argument 1961.1Smlelstv# that gives an offset to add to the time_t when converting it. 1971.1Smlelstv# "timelocal" is equivalent to "mktime". 1981.1Smlelstv# "timegm" is like "timelocal" except that it turns a struct tm into 1991.15Schristos# a time_t using UT (rather than local time as "timelocal" does). 2001.1Smlelstv# "timeoff" is like "timegm" except that it accepts a second (long) argument 2011.1Smlelstv# that gives an offset to use when converting to a time_t. 2021.1Smlelstv# "posix2time" and "time2posix" are described in an included manual page. 2031.1Smlelstv# X3J11's work does not describe any of these functions. 2041.1Smlelstv# Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0. 2051.1Smlelstv# These functions may well disappear in future releases of the time 2061.1Smlelstv# conversion package. 2071.1Smlelstv# 2081.23Schristos# If you don't want functions that were inspired by NetBSD, add 2091.23Schristos# -DNETBSD_INSPIRED=0 2101.23Schristos# to the end of the "CFLAGS=" line. Otherwise, the functions 2111.23Schristos# "localtime_rz", "mktime_z", "tzalloc", and "tzfree" are added to the 2121.23Schristos# time library, and if STD_INSPIRED is also defined the functions 2131.23Schristos# "posix2time_z" and "time2posix_z" are added as well. 2141.23Schristos# The functions ending in "_z" (or "_rz") are like their unsuffixed 2151.23Schristos# (or suffixed-by-"_r") counterparts, except with an extra first 2161.23Schristos# argument of opaque type timezone_t that specifies the time zone. 2171.23Schristos# "tzalloc" allocates a timezone_t value, and "tzfree" frees it. 2181.23Schristos# 2191.1Smlelstv# If you want to allocate state structures in localtime, add 2201.1Smlelstv# -DALL_STATE 2211.1Smlelstv# to the end of the "CFLAGS=" line. Storage is obtained by calling malloc. 2221.1Smlelstv# 2231.1Smlelstv# If you want an "altzone" variable (a la System V Release 3.1), add 2241.1Smlelstv# -DALTZONE 2251.1Smlelstv# to the end of the "CFLAGS=" line. 2261.1Smlelstv# This variable is not described in X3J11's work. 2271.1Smlelstv# 2281.1Smlelstv# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put 2291.1Smlelstv# out by the National Institute of Standards and Technology 2301.1Smlelstv# which claims to test C and Posix conformance. If you want to pass PCTS, add 2311.1Smlelstv# -DPCTS 2321.1Smlelstv# to the end of the "CFLAGS=" line. 2331.1Smlelstv# 2341.1Smlelstv# If you want strict compliance with XPG4 as of 1994-04-09, add 2351.1Smlelstv# -DXPG4_1994_04_09 2361.1Smlelstv# to the end of the "CFLAGS=" line. This causes "strftime" to always return 2371.1Smlelstv# 53 as a week number (rather than 52 or 53) for those days in January that 2381.1Smlelstv# before the first Monday in January when a "%V" format is used and January 1 2391.1Smlelstv# falls on a Friday, Saturday, or Sunday. 2401.1Smlelstv 2411.1SmlelstvCFLAGS= 2421.1Smlelstv 2431.9Schristos# Linker flags. Default to $(LFLAGS) for backwards compatibility 2441.34Schristos# to release 2012h and earlier. 2451.9Schristos 2461.9SchristosLDFLAGS= $(LFLAGS) 2471.1Smlelstv 2481.32Schristos# For leap seconds, this Makefile uses LEAPSECONDS='-L leapseconds' in 2491.32Schristos# submake command lines. The default is no leap seconds. 2501.32Schristos 2511.32SchristosLEAPSECONDS= 2521.32Schristos 2531.32Schristos# The zic command and its arguments. 2541.32Schristos 2551.1Smlelstvzic= ./zic 2561.1SmlelstvZIC= $(zic) $(ZFLAGS) 2571.1Smlelstv 2581.15SchristosZFLAGS= 2591.15Schristos 2601.34Schristos# How to use zic to install tz binary files. 2611.32Schristos 2621.32SchristosZIC_INSTALL= $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS) 2631.32Schristos 2641.22Schristos# The name of a Posix-compliant 'awk' on your system. 2651.9SchristosAWK= awk 2661.9Schristos 2671.16Schristos# The full path name of a Posix-compliant shell, preferably one that supports 2681.16Schristos# the Korn shell's 'select' statement as an extension. 2691.16Schristos# These days, Bash is the most popular. 2701.16Schristos# It should be OK to set this to /bin/sh, on platforms where /bin/sh 2711.16Schristos# lacks 'select' or doesn't completely conform to Posix, but /bin/bash 2721.16Schristos# is typically nicer if it works. 2731.9SchristosKSHELL= /bin/bash 2741.1Smlelstv 2751.18Schristos# The path where SGML DTDs are kept and the catalog file(s) to use when 2761.34Schristos# validating. The default should work on both Debian and Red Hat. 2771.10SchristosSGML_TOPDIR= /usr 2781.9SchristosSGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd 2791.9SchristosSGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224 2801.18SchristosSGML_CATALOG_FILES= \ 2811.34Schristos $(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 2821.1Smlelstv 2831.1Smlelstv# The name, arguments and environment of a program to validate your web pages. 2841.34Schristos# See <http://openjade.sourceforge.net/doc/> for a validator, and 2851.34Schristos# <https://validator.w3.org/source/> for a validation library. 2861.1SmlelstvVALIDATE = nsgmls 2871.1SmlelstvVALIDATE_FLAGS = -s -B -wall -wno-unused-param 2881.1SmlelstvVALIDATE_ENV = \ 2891.1Smlelstv SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \ 2901.1Smlelstv SGML_SEARCH_PATH=$(SGML_SEARCH_PATH) \ 2911.1Smlelstv SP_CHARSET_FIXED=YES \ 2921.1Smlelstv SP_ENCODING=UTF-8 2931.1Smlelstv 2941.23Schristos# This expensive test requires USE_LTZ. 2951.23Schristos# To suppress it, define this macro to be empty. 2961.23SchristosCHECK_TIME_T_ALTERNATIVES = check_time_t_alternatives 2971.23Schristos 2981.22Schristos# SAFE_CHAR is a regular expression that matches a safe character. 2991.22Schristos# Some parts of this distribution are limited to safe characters; 3001.22Schristos# others can use any UTF-8 character. 3011.22Schristos# For now, the safe characters are a safe subset of ASCII. 3021.9Schristos# The caller must set the shell variable 'sharp' to the character '#', 3031.9Schristos# since Makefile macros cannot contain '#'. 3041.9Schristos# TAB_CHAR is a single tab character, in single quotes. 3051.9SchristosTAB_CHAR= ' ' 3061.22SchristosSAFE_CHARSET1= $(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@' 3071.22SchristosSAFE_CHARSET2= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`' 3081.22SchristosSAFE_CHARSET3= 'abcdefghijklmnopqrstuvwxyz{|}~' 3091.29SchristosSAFE_CHARSET= $(SAFE_CHARSET1)$(SAFE_CHARSET2)$(SAFE_CHARSET3) 3101.29SchristosSAFE_CHAR= '[]'$(SAFE_CHARSET)'-]' 3111.29Schristos 3121.29Schristos# OK_CHAR matches any character allowed in the distributed files. 3131.29Schristos# This is the same as SAFE_CHAR, except that multibyte letters are 3141.29Schristos# also allowed so that commentary can contain people's names and quote 3151.29Schristos# non-English sources. For non-letters the sources are limited to 3161.22Schristos# ASCII renderings for the convenience of maintainers whose text editors 3171.22Schristos# mishandle UTF-8 by default (e.g., XEmacs 21.4.22). 3181.29SchristosOK_CHAR= '[][:alpha:]'$(SAFE_CHARSET)'-]' 3191.22Schristos 3201.22Schristos# SAFE_LINE matches a line of safe characters. 3211.29Schristos# SAFE_SHARP_LINE is similar, except any OK character can follow '#'; 3221.22Schristos# this is so that comments can contain non-ASCII characters. 3231.29Schristos# OK_LINE matches a line of OK characters. 3241.22SchristosSAFE_LINE= '^'$(SAFE_CHAR)'*$$' 3251.29SchristosSAFE_SHARP_LINE='^'$(SAFE_CHAR)'*('$$sharp$(OK_CHAR)'*)?$$' 3261.29SchristosOK_LINE= '^'$(OK_CHAR)'*$$' 3271.9Schristos 3281.6Schristos# Flags to give 'tar' when making a distribution. 3291.6Schristos# Try to use flags appropriate for GNU tar. 3301.34SchristosGNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name 3311.6SchristosTARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \ 3321.6Schristos then echo $(GNUTARFLAGS); \ 3331.6Schristos else :; \ 3341.6Schristos fi` 3351.6Schristos 3361.6Schristos# Flags to give 'gzip' when making a distribution. 3371.21SapbGZIPFLAGS= -9 ${GZIP_N_FLAG} 3381.6Schristos 3391.1Smlelstv############################################################################### 3401.1Smlelstv 3411.29Schristos#MAKE= make 3421.29Schristos 3431.1Smlelstvcc= cc 3441.1SmlelstvCC= $(cc) -DTZDIR=\"$(TZDIR)\" 3451.1Smlelstv 3461.16SchristosAR= ar 3471.16Schristos 3481.16Schristos# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib. 3491.16SchristosRANLIB= : 3501.16Schristos 3511.28SchristosTZCOBJS= zic.o 3521.23SchristosTZDOBJS= zdump.o localtime.o asctime.o 3531.1SmlelstvDATEOBJS= date.o localtime.o strftime.o asctime.o 3541.1SmlelstvLIBSRCS= localtime.c asctime.c difftime.c 3551.1SmlelstvLIBOBJS= localtime.o asctime.o difftime.o 3561.1SmlelstvHEADERS= tzfile.h private.h 3571.28SchristosNONLIBSRCS= zic.c zdump.c 3581.1SmlelstvNEWUCBSRCS= date.c strftime.c 3591.23SchristosSOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \ 3601.34Schristos tzselect.ksh version workman.sh 3611.1SmlelstvMANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \ 3621.1Smlelstv tzfile.5 tzselect.8 zic.8 zdump.8 3631.16SchristosMANTXTS= newctime.3.txt newstrftime.3.txt newtzset.3.txt \ 3641.16Schristos time2posix.3.txt \ 3651.16Schristos tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \ 3661.16Schristos date.1.txt 3671.32SchristosCOMMON= CONTRIBUTING LICENSE Makefile NEWS README Theory 3681.32SchristosWEB_PAGES= tz-art.htm tz-how-to.html tz-link.htm 3691.23SchristosDOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES) 3701.1SmlelstvPRIMARY_YDATA= africa antarctica asia australasia \ 3711.1Smlelstv europe northamerica southamerica 3721.4SchristosYDATA= $(PRIMARY_YDATA) pacificnew etcetera backward 3731.4SchristosNDATA= systemv factory 3741.16SchristosTDATA= $(YDATA) $(NDATA) 3751.22SchristosZONETABLES= zone1970.tab zone.tab 3761.22SchristosTABDATA= iso3166.tab leapseconds $(ZONETABLES) 3771.16SchristosLEAP_DEPS= leapseconds.awk leap-seconds.list 3781.23SchristosDATA= $(YDATA) $(NDATA) backzone $(TABDATA) \ 3791.23Schristos leap-seconds.list yearistype.sh 3801.26SchristosAWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk 3811.23SchristosMISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl 3821.34SchristosTZS_YEAR= 2050 3831.34SchristosTZS= to$(TZS_YEAR).tzs 3841.34SchristosTZS_NEW= to$(TZS_YEAR)new.tzs 3851.34SchristosTZS_DEPS= $(PRIMARY_YDATA) asctime.c localtime.c \ 3861.34Schristos private.h tzfile.h zdump.c zic.c 3871.34SchristosENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) $(TZS) 3881.34Schristos 3891.34Schristos# Consult these files when deciding whether to rebuild the 'version' file. 3901.34Schristos# This list is not the same as the output of 'git ls-files', since 3911.34Schristos# .gitignore is not distributed. 3921.34SchristosVERSION_DEPS= \ 3931.34Schristos CONTRIBUTING LICENSE Makefile NEWS README Theory \ 3941.34Schristos africa antarctica asctime.c asia australasia \ 3951.34Schristos backward backzone \ 3961.34Schristos checklinks.awk checktab.awk \ 3971.34Schristos date.1 date.c difftime.c \ 3981.34Schristos etcetera europe factory iso3166.tab \ 3991.34Schristos leap-seconds.list leapseconds.awk localtime.c \ 4001.34Schristos newctime.3 newstrftime.3 newtzset.3 northamerica \ 4011.34Schristos pacificnew private.h \ 4021.34Schristos southamerica strftime.c systemv \ 4031.34Schristos time2posix.3 tz-art.htm tz-how-to.html tz-link.htm \ 4041.34Schristos tzfile.5 tzfile.h tzselect.8 tzselect.ksh \ 4051.34Schristos workman.sh yearistype.sh \ 4061.34Schristos zdump.8 zdump.c zic.8 zic.c \ 4071.34Schristos zone.tab zone1970.tab zoneinfo2tdf.pl 4081.1Smlelstv 4091.1Smlelstv# And for the benefit of csh users on systems that assume the user 4101.1Smlelstv# shell should be used to handle commands in Makefiles. . . 4111.1Smlelstv 4121.1SmlelstvSHELL= /bin/sh 4131.1Smlelstv 4141.32Schristosall: tzselect yearistype zic zdump libtz.a $(TABDATA) 4151.1Smlelstv 4161.29SchristosALL: all date $(ENCHILADA) 4171.1Smlelstv 4181.16Schristosinstall: all $(DATA) $(REDO) $(MANS) 4191.16Schristos mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \ 4201.16Schristos $(DESTDIR)$(LIBDIR) \ 4211.16Schristos $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \ 4221.16Schristos $(DESTDIR)$(MANDIR)/man8 4231.32Schristos $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES) 4241.22Schristos cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/. 4251.15Schristos cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/. 4261.16Schristos cp libtz.a $(DESTDIR)$(LIBDIR)/. 4271.16Schristos $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a 4281.16Schristos cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/. 4291.16Schristos cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/. 4301.16Schristos cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/. 4311.1Smlelstv 4321.1SmlelstvINSTALL: ALL install date.1 4331.16Schristos mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 4341.15Schristos cp date $(DESTDIR)$(BINDIR)/. 4351.16Schristos cp -f date.1 $(DESTDIR)$(MANDIR)/man1/. 4361.1Smlelstv 4371.34Schristosversion: $(VERSION_DEPS) 4381.34Schristos { V=$$(git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \ 4391.34Schristos --abbrev=7 --dirty) || \ 4401.34Schristos V=$(VERSION); } && \ 4411.34Schristos printf '%s\n' "$$V" >$@ 4421.34Schristos 4431.34Schristosversion.h: version 4441.9Schristos (echo 'static char const PKGVERSION[]="($(PACKAGE)) ";' && \ 4451.34Schristos printf 'static char const TZVERSION[]="%s";\n' \ 4461.34Schristos "$$(cat version)" && \ 4471.9Schristos echo 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";') >$@ 4481.6Schristos 4491.1Smlelstvzdump: $(TZDOBJS) 4501.9Schristos $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) 4511.1Smlelstv 4521.32Schristoszic: $(TZCOBJS) 4531.9Schristos $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) 4541.1Smlelstv 4551.1Smlelstvyearistype: yearistype.sh 4561.1Smlelstv cp yearistype.sh yearistype 4571.1Smlelstv chmod +x yearistype 4581.1Smlelstv 4591.16Schristosleapseconds: $(LEAP_DEPS) 4601.15Schristos $(AWK) -f leapseconds.awk leap-seconds.list >$@ 4611.15Schristos 4621.32Schristos# Arguments to pass to submakes of install_data. 4631.32Schristos# They can be overridden by later submake arguments. 4641.32SchristosINSTALLARGS = \ 4651.32Schristos DESTDIR=$(DESTDIR) \ 4661.32Schristos LEAPSECONDS='$(LEAPSECONDS)' \ 4671.32Schristos PACKRATDATA='$(PACKRATDATA)' \ 4681.32Schristos TZDIR=$(TZDIR) \ 4691.32Schristos YEARISTYPE=$(YEARISTYPE) \ 4701.32Schristos ZIC='$(ZIC)' 4711.32Schristos 4721.32Schristos# 'make install_data' installs one set of tz binary files. 4731.32Schristos# It can be tailored by setting LEAPSECONDS, PACKRATDATA, etc. 4741.32Schristosinstall_data: zic leapseconds yearistype $(PACKRATDATA) $(TDATA) 4751.32Schristos $(ZIC_INSTALL) $(TDATA) 4761.32Schristos $(AWK) '/^Rule/' $(TDATA) | $(ZIC_INSTALL) - $(PACKRATDATA) 4771.32Schristos 4781.32Schristosposix_only: 4791.32Schristos $(MAKE) $(INSTALLARGS) LEAPSECONDS= install_data 4801.32Schristos 4811.32Schristosright_only: 4821.32Schristos $(MAKE) $(INSTALLARGS) LEAPSECONDS='-L leapseconds' \ 4831.32Schristos install_data 4841.1Smlelstv 4851.1Smlelstv# In earlier versions of this makefile, the other two directories were 4861.1Smlelstv# subdirectories of $(TZDIR). However, this led to configuration errors. 4871.1Smlelstv# For example, with posix_right under the earlier scheme, 4881.1Smlelstv# TZ='right/Australia/Adelaide' got you localtime with leap seconds, 4891.1Smlelstv# but gmtime without leap seconds, which led to problems with applications 4901.1Smlelstv# like sendmail that subtract gmtime from localtime. 4911.1Smlelstv# Therefore, the other two directories are now siblings of $(TZDIR). 4921.1Smlelstv# You must replace all of $(TZDIR) to switch from not using leap seconds 4931.1Smlelstv# to using them, or vice versa. 4941.32Schristosright_posix: right_only 4951.15Schristos rm -fr $(DESTDIR)$(TZDIR)-leaps 4961.15Schristos ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \ 4971.32Schristos $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-leaps right_only 4981.32Schristos $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-posix posix_only 4991.15Schristos 5001.32Schristosposix_right: posix_only 5011.15Schristos rm -fr $(DESTDIR)$(TZDIR)-posix 5021.15Schristos ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \ 5031.32Schristos $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-posix posix_only 5041.32Schristos $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-leaps right_only 5051.32Schristos 5061.32Schristos# This obsolescent rule is present for backwards compatibility with 5071.32Schristos# tz releases 2014g through 2015g. It should go away eventually. 5081.32Schristosposix_packrat: 5091.32Schristos $(MAKE) $(INSTALLARGS) PACKRATDATA=backzone posix_only 5101.23Schristos 5111.1Smlelstvzones: $(REDO) 5121.1Smlelstv 5131.34Schristos$(TZS_NEW): $(TDATA) zdump zic 5141.34Schristos mkdir -p tzs.dir 5151.34Schristos $(zic) -d tzs.dir $(TDATA) 5161.34Schristos $(AWK) '/^Link/{print $$1 "\t" $$2 "\t" $$3}' \ 5171.34Schristos $(TDATA) | LC_ALL=C sort >$@.out 5181.34Schristos zones=$$($(AWK) -v wd="$$(pwd)" \ 5191.34Schristos '/^Zone/{print wd "/tzs.dir/" $$2}' $(TDATA) \ 5201.34Schristos | LC_ALL=C sort) && \ 5211.34Schristos ./zdump -i -c $(TZS_YEAR) $$zones >>$@.out 5221.34Schristos sed 's,^TZ=".*tzs\.dir/,TZ=",' $@.out >$@ 5231.34Schristos rm -fr tzs.dir $@.out 5241.34Schristos 5251.34Schristos# If $(TZS) does not already exist (e.g., old-format tarballs), create it. 5261.34Schristos# If it exists but 'make check_tzs' fails, a maintainer should inspect the 5271.34Schristos# failed output and fix the inconsistency, perhaps by running 'make force_tzs'. 5281.34Schristos$(TZS): 5291.34Schristos $(MAKE) force_tzs 5301.34Schristos 5311.34Schristosforce_tzs: $(TZS_NEW) 5321.34Schristos cp $(TZS_NEW) $(TZS) 5331.34Schristos 5341.16Schristoslibtz.a: $(LIBOBJS) 5351.16Schristos $(AR) ru $@ $(LIBOBJS) 5361.16Schristos $(RANLIB) $@ 5371.1Smlelstv 5381.1Smlelstvdate: $(DATEOBJS) 5391.9Schristos $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS) 5401.1Smlelstv 5411.34Schristostzselect: tzselect.ksh version 5421.1Smlelstv sed \ 5431.9Schristos -e 's|#!/bin/bash|#!$(KSHELL)|g' \ 5441.1Smlelstv -e 's|AWK=[^}]*|AWK=$(AWK)|g' \ 5451.9Schristos -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \ 5461.9Schristos -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \ 5471.1Smlelstv -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \ 5481.34Schristos -e 's|\(TZVERSION\)=.*|\1='"$$(cat version)"'|' \ 5491.34Schristos <$@.ksh >$@ 5501.1Smlelstv chmod +x $@ 5511.1Smlelstv 5521.26Schristoscheck: check_character_set check_white_space check_links check_sorted \ 5531.34Schristos check_tables check_tzs check_web 5541.9Schristos 5551.9Schristoscheck_character_set: $(ENCHILADA) 5561.22Schristos LC_ALL=en_US.utf8 && export LC_ALL && \ 5571.22Schristos sharp='#' && \ 5581.29Schristos ! grep -Env $(SAFE_LINE) Makefile $(MANS) date.1 $(MANTXTS) \ 5591.22Schristos $(MISC) $(SOURCES) $(WEB_PAGES) && \ 5601.23Schristos ! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \ 5611.29Schristos leapseconds yearistype.sh zone.tab && \ 5621.29Schristos ! grep -Env $(OK_LINE) $(ENCHILADA) 5631.22Schristos 5641.23Schristoscheck_white_space: $(ENCHILADA) 5651.26Schristos ! grep -En ' '$(TAB_CHAR)"|$$(printf '[\f\r\v]')" $(ENCHILADA) 5661.27Schristos ! grep -n '[[:space:]]$$' $(ENCHILADA) 5671.23Schristos 5681.23SchristosCHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; } 5691.23Schristos 5701.23Schristoscheck_sorted: backward backzone iso3166.tab zone.tab zone1970.tab 5711.23Schristos $(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu 5721.23Schristos $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu 5731.23Schristos $(AWK) '/^[^#]/ {print $$1}' iso3166.tab | LC_ALL=C sort -cu 5741.23Schristos $(AWK) '/^[^#]/ {print $$1}' zone.tab | LC_ALL=C sort -c 5751.23Schristos $(AWK) '/^[^#]/ {print substr($$0, 1, 2)}' zone1970.tab | \ 5761.23Schristos LC_ALL=C sort -c 5771.23Schristos $(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \ 5781.23Schristos LC_ALL=C sort -cu 5791.23Schristos 5801.26Schristoscheck_links: checklinks.awk $(TDATA) 5811.26Schristos $(AWK) -f checklinks.awk $(TDATA) 5821.26Schristos 5831.22Schristoscheck_tables: checktab.awk $(PRIMARY_YDATA) $(ZONETABLES) 5841.22Schristos for tab in $(ZONETABLES); do \ 5851.22Schristos $(AWK) -f checktab.awk -v zone_table=$$tab $(PRIMARY_YDATA) \ 5861.22Schristos || exit; \ 5871.22Schristos done 5881.1Smlelstv 5891.34Schristoscheck_tzs: $(TZS) $(TZS_NEW) 5901.34Schristos diff -u $(TZS) $(TZS_NEW) 5911.34Schristos 5921.1Smlelstvcheck_web: $(WEB_PAGES) 5931.1Smlelstv $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) $(WEB_PAGES) 5941.1Smlelstv 5951.14Schristosclean_misc: 5961.6Schristos rm -f core *.o *.out \ 5971.18Schristos date tzselect version.h zdump zic yearistype libtz.a 5981.14Schristosclean: clean_misc 5991.34Schristos rm -fr *.dir tzdb-*/ $(TZS_NEW) 6001.1Smlelstv 6011.1Smlelstvmaintainer-clean: clean 6021.1Smlelstv @echo 'This command is intended for maintainers to use; it' 6031.1Smlelstv @echo 'deletes files that may need special tools to rebuild.' 6041.34Schristos rm -f leapseconds version $(MANTXTS) $(TZS) *.asc *.tar.* 6051.1Smlelstv 6061.1Smlelstvnames: 6071.1Smlelstv @echo $(ENCHILADA) 6081.1Smlelstv 6091.23Schristospublic: check check_public $(CHECK_TIME_T_ALTERNATIVES) \ 6101.16Schristos tarballs signatures 6111.16Schristos 6121.16Schristosdate.1.txt: date.1 6131.16Schristosnewctime.3.txt: newctime.3 6141.16Schristosnewstrftime.3.txt: newstrftime.3 6151.16Schristosnewtzset.3.txt: newtzset.3 6161.16Schristostime2posix.3.txt: time2posix.3 6171.16Schristostzfile.5.txt: tzfile.5 6181.16Schristostzselect.8.txt: tzselect.8 6191.16Schristoszdump.8.txt: zdump.8 6201.16Schristoszic.8.txt: zic.8 6211.16Schristos 6221.16Schristos$(MANTXTS): workman.sh 6231.16Schristos LC_ALL=C sh workman.sh `expr $@ : '\(.*\)\.txt$$'` >$@ 6241.9Schristos 6251.6Schristos# Set the time stamps to those of the git repository, if available, 6261.6Schristos# and if the files have not changed since then. 6271.6Schristos# This uses GNU 'touch' syntax 'touch -d@N FILE', 6281.6Schristos# where N is the number of seconds since 1970. 6291.16Schristos# If git or GNU 'touch' is absent, don't bother to sync with git timestamps. 6301.16Schristos# Also, set the timestamp of each prebuilt file like 'leapseconds' 6311.16Schristos# to be the maximum of the files it depends on. 6321.16Schristosset-timestamps.out: $(ENCHILADA) 6331.16Schristos rm -f $@ 6341.16Schristos if files=`git ls-files $(ENCHILADA)` && \ 6351.16Schristos touch -md @1 test.out; then \ 6361.16Schristos rm -f test.out && \ 6371.16Schristos for file in $$files; do \ 6381.16Schristos if git diff --quiet $$file; then \ 6391.16Schristos time=`git log -1 --format='tformat:%ct' $$file` && \ 6401.16Schristos touch -cmd @$$time $$file; \ 6411.16Schristos else \ 6421.16Schristos echo >&2 "$$file: warning: does not match repository"; \ 6431.16Schristos fi || exit; \ 6441.16Schristos done; \ 6451.16Schristos fi 6461.16Schristos touch -cmr `ls -t $(LEAP_DEPS) | sed 1q` leapseconds 6471.16Schristos for file in `ls $(MANTXTS) | sed 's/\.txt$$//'`; do \ 6481.16Schristos touch -cmr `ls -t $$file workman.sh | sed 1q` $$file.txt || \ 6491.16Schristos exit; \ 6501.6Schristos done 6511.34Schristos touch -cmr $$(ls -t $(TZS_DEPS) | sed 1q) $(TZS) 6521.34Schristos touch -cmr $$(ls -t $(VERSION_DEPS) | sed 1q) version 6531.16Schristos touch $@ 6541.6Schristos 6551.1Smlelstv# The zics below ensure that each data file can stand on its own. 6561.1Smlelstv# We also do an all-files run to catch links to links. 6571.1Smlelstv 6581.29Schristoscheck_public: 6591.29Schristos $(MAKE) maintainer-clean 6601.29Schristos $(MAKE) "CFLAGS=$(GCC_DEBUG_FLAGS)" ALL 6611.34Schristos mkdir -p public.dir 6621.9Schristos for i in $(TDATA) ; do \ 6631.34Schristos $(zic) -v -d public.dir $$i 2>&1 || exit; \ 6641.9Schristos done 6651.34Schristos $(zic) -v -d public.dir $(TDATA) 6661.34Schristos rm -fr public.dir 6671.9Schristos 6681.14Schristos# Check that the code works under various alternative 6691.14Schristos# implementations of time_t. 6701.14Schristoscheck_time_t_alternatives: 6711.23Schristos if diff -q Makefile Makefile 2>/dev/null; then \ 6721.23Schristos quiet_option='-q'; \ 6731.23Schristos else \ 6741.23Schristos quiet_option=''; \ 6751.23Schristos fi && \ 6761.22Schristos zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \ 6771.14Schristos for type in $(TIME_T_ALTERNATIVES); do \ 6781.34Schristos mkdir -p time_t.dir/$$type && \ 6791.29Schristos $(MAKE) clean_misc && \ 6801.34Schristos $(MAKE) TOPDIR=$$(pwd)/time_t.dir/$$type \ 6811.14Schristos CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \ 6821.23Schristos REDO='$(REDO)' \ 6831.14Schristos install && \ 6841.23Schristos diff $$quiet_option -r \ 6851.34Schristos time_t.dir/int64_t/etc/zoneinfo \ 6861.34Schristos time_t.dir/$$type/etc/zoneinfo && \ 6871.14Schristos case $$type in \ 6881.14Schristos int32_t) range=-2147483648,2147483647;; \ 6891.14Schristos uint32_t) range=0,4294967296;; \ 6901.14Schristos int64_t) continue;; \ 6911.14Schristos *u*) range=0,10000000000;; \ 6921.14Schristos *) range=-10000000000,10000000000;; \ 6931.14Schristos esac && \ 6941.14Schristos echo checking $$type zones ... && \ 6951.34Schristos time_t.dir/int64_t/etc/zdump -V -t $$range $$zones \ 6961.34Schristos >time_t.dir/int64_t.out && \ 6971.34Schristos time_t.dir/$$type/etc/zdump -V -t $$range $$zones \ 6981.34Schristos >time_t.dir/$$type.out && \ 6991.34Schristos diff -u time_t.dir/int64_t.out time_t.dir/$$type.out \ 7001.14Schristos || exit; \ 7011.14Schristos done 7021.34Schristos rm -fr time_t.dir 7031.34Schristos 7041.34Schristostarballs signatures: version 7051.34Schristos $(MAKE) VERSION="$$(cat version)" $@_version 7061.14Schristos 7071.34Schristostarballs_version: tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz \ 7081.34Schristos tzdb-$(VERSION).tar.lz 7091.9Schristos 7101.16Schristostzcode$(VERSION).tar.gz: set-timestamps.out 7111.6Schristos LC_ALL=C && export LC_ALL && \ 7121.7Schristos tar $(TARFLAGS) -cf - \ 7131.23Schristos $(COMMON) $(DOCS) $(SOURCES) | \ 7141.17Sapb ${TOOL_GZIP} $(GZIPFLAGS) > $@ 7151.10Schristos 7161.16Schristostzdata$(VERSION).tar.gz: set-timestamps.out 7171.6Schristos LC_ALL=C && export LC_ALL && \ 7181.23Schristos tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \ 7191.17Sapb ${TOOL_GZIP} $(GZIPFLAGS) > $@ 7201.9Schristos 7211.34Schristostzdb-$(VERSION).tar.lz: set-timestamps.out 7221.34Schristos rm -fr tzdb-$(VERSION) 7231.34Schristos mkdir tzdb-$(VERSION) 7241.34Schristos ln $(ENCHILADA) tzdb-$(VERSION) 7251.34Schristos touch -cmr $$(ls -t tzdb-$(VERSION)/* | sed 1q) tzdb-$(VERSION) 7261.34Schristos LC_ALL=C && export LC_ALL && \ 7271.34Schristos tar $(TARFLAGS) -cf - tzdb-$(VERSION) | lzip -9 > $@ 7281.34Schristos 7291.34Schristossignatures_version: tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc \ 7301.34Schristos tzdb-$(VERSION).tar.lz.asc 7311.9Schristos 7321.9Schristostzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz 7331.9Schristos gpg --armor --detach-sign $? 7341.9Schristos 7351.9Schristostzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz 7361.9Schristos gpg --armor --detach-sign $? 7371.1Smlelstv 7381.34Schristostzdb-$(VERSION).tar.lz.asc: tzdb-$(VERSION).tar.lz 7391.34Schristos gpg --armor --detach-sign $? 7401.34Schristos 7411.1Smlelstvtypecheck: 7421.29Schristos $(MAKE) clean 7431.15Schristos for i in "long long" unsigned; \ 7441.1Smlelstv do \ 7451.29Schristos $(MAKE) CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \ 7461.1Smlelstv ./zdump -v Europe/Rome ; \ 7471.29Schristos $(MAKE) clean ; \ 7481.1Smlelstv done 7491.1Smlelstv 7501.1Smlelstvzonenames: $(TDATA) 7511.1Smlelstv @$(AWK) '/^Zone/ { print $$2 } /^Link/ { print $$3 }' $(TDATA) 7521.1Smlelstv 7531.1Smlelstvasctime.o: private.h tzfile.h 7541.1Smlelstvdate.o: private.h 7551.1Smlelstvdifftime.o: private.h 7561.1Smlelstvlocaltime.o: private.h tzfile.h 7571.23Schristosstrftime.o: private.h tzfile.h 7581.6Schristoszdump.o: version.h 7591.6Schristoszic.o: private.h tzfile.h version.h 7601.1Smlelstv 7611.1Smlelstv.KEEP_STATE: 7621.22Schristos 7631.22Schristos.PHONY: ALL INSTALL all 7641.26Schristos.PHONY: check check_character_set check_links 7651.26Schristos.PHONY: check_public check_sorted check_tables 7661.34Schristos.PHONY: check_time_t_alternatives check_tzs check_web check_white_space 7671.34Schristos.PHONY: clean clean_misc force_tzs 7681.32Schristos.PHONY: install install_data maintainer-clean names 7691.32Schristos.PHONY: posix_only posix_packrat posix_right 7701.34Schristos.PHONY: public right_only right_posix signatures signatures_version 7711.34Schristos.PHONY: tarballs tarballs_version typecheck 7721.22Schristos.PHONY: zonenames zones 773