Makefile revision 1.41
11.41Schristos# Make and install tzdb code and data.
21.41Schristos
31.1Smlelstv# This file is in the public domain, so clarified as of
41.1Smlelstv# 2009-05-17 by Arthur David Olson.
51.1Smlelstv
61.10Schristos# Package name for the code distribution.
71.10SchristosPACKAGE=	tzcode
81.10Schristos
91.34Schristos# Version number for the distribution, overridden in the 'tarballs' rule below.
101.35SchristosVERSION=	unknown
111.9Schristos
121.9Schristos# Email address for bug reports.
131.9SchristosBUGEMAIL=	tz@iana.org
141.6Schristos
151.40Schristos# Choose source data features.  To get new features right away, use:
161.40Schristos#	DATAFORM=	vanguard
171.40Schristos# To wait a while before using new features, to give downstream users
181.40Schristos# time to upgrade zic (the default), use:
191.40Schristos#	DATAFORM=	main
201.40Schristos# To wait even longer for new features, use:
211.40Schristos#	DATAFORM=	rearguard
221.40SchristosDATAFORM=		main
231.40Schristos
241.41Schristos# Change the line below for your timezone (after finding the one you want in
251.41Schristos# one of the $(TDATA) source files, or adding it to a source file).
261.41Schristos# Alternatively, if you discover you've got the wrong timezone, you can just
271.1Smlelstv#	zic -l rightzone
281.1Smlelstv# to correct things.
291.1Smlelstv# Use the command
301.1Smlelstv#	make zonenames
311.1Smlelstv# to get a list of the values you can use for LOCALTIME.
321.1Smlelstv
331.4SchristosLOCALTIME=	GMT
341.1Smlelstv
351.1Smlelstv# If you want something other than Eastern United States time as a template
361.41Schristos# for handling POSIX-style timezone environment variables,
371.41Schristos# change the line below (after finding the timezone you want in the
381.41Schristos# one of the $(TDATA) source files, or adding it to a source file).
391.40Schristos# When a POSIX-style environment variable is handled, the rules in the
401.1Smlelstv# template file are used to determine "spring forward" and "fall back" days and
411.15Schristos# times; the environment variable itself specifies UT offsets of standard and
421.40Schristos# daylight saving time.
431.41Schristos# Alternatively, if you discover you've got the wrong timezone, you can just
441.1Smlelstv#	zic -p rightzone
451.1Smlelstv# to correct things.
461.1Smlelstv# Use the command
471.1Smlelstv#	make zonenames
481.1Smlelstv# to get a list of the values you can use for POSIXRULES.
491.1Smlelstv# If you want POSIX compatibility, use "America/New_York".
501.1Smlelstv
511.1SmlelstvPOSIXRULES=	America/New_York
521.1Smlelstv
531.1Smlelstv# Also see TZDEFRULESTRING below, which takes effect only
541.1Smlelstv# if the time zone files cannot be accessed.
551.1Smlelstv
561.1Smlelstv
571.39Schristos# Installation locations.
581.39Schristos#
591.39Schristos# The defaults are suitable for Debian, except that if REDO is
601.39Schristos# posix_right or right_posix then files that Debian puts under
611.39Schristos# /usr/share/zoneinfo/posix and /usr/share/zoneinfo/right are instead
621.39Schristos# put under /usr/share/zoneinfo-posix and /usr/share/zoneinfo-leaps,
631.39Schristos# respectively.  Problems with the Debian approach are discussed in
641.39Schristos# the commentary for the right_posix rule (below).
651.39Schristos
661.39Schristos# Destination directory, which can be used for staging.
671.39Schristos# 'make DESTDIR=/stage install' installs under /stage (e.g., to
681.39Schristos# /stage/etc/localtime instead of to /etc/localtime).  Files under
691.39Schristos# /stage are not intended to work as-is, but can be copied by hand to
701.39Schristos# the root directory later.  If DESTDIR is empty, 'make install' does
711.39Schristos# not stage, but installs directly into production locations.
721.39SchristosDESTDIR =
731.39Schristos
741.39Schristos# Everything is installed into subdirectories of TOPDIR, and used there.
751.39Schristos# TOPDIR should be empty (meaning the root directory),
761.39Schristos# or a directory name that does not end in "/".
771.39Schristos# TOPDIR should be empty or an absolute name unless you're just testing.
781.39SchristosTOPDIR =
791.39Schristos
801.41Schristos# The default local timezone is taken from the file TZDEFAULT.
811.39SchristosTZDEFAULT = $(TOPDIR)/etc/localtime
821.39Schristos
831.39Schristos# The subdirectory containing installed program and data files, and
841.39Schristos# likewise for installed files that can be shared among architectures.
851.39Schristos# These should be relative file names.
861.39SchristosUSRDIR = usr
871.39SchristosUSRSHAREDIR = $(USRDIR)/share
881.1Smlelstv
891.41Schristos# "Compiled" timezone information is placed in the "TZDIR" directory
901.1Smlelstv# (and subdirectories).
911.38Schristos# TZDIR_BASENAME should not contain "/" and should not be ".", ".." or empty.
921.15SchristosTZDIR_BASENAME=	zoneinfo
931.39SchristosTZDIR = $(TOPDIR)/$(USRSHAREDIR)/$(TZDIR_BASENAME)
941.1Smlelstv
951.39Schristos# The "tzselect" and (if you do "make INSTALL") "date" commands go in:
961.39SchristosBINDIR = $(TOPDIR)/$(USRDIR)/bin
971.1Smlelstv
981.39Schristos# The "zdump" command goes in:
991.39SchristosZDUMPDIR = $(BINDIR)
1001.1Smlelstv
1011.39Schristos# The "zic" command goes in:
1021.39SchristosZICDIR = $(TOPDIR)/$(USRDIR)/sbin
1031.1Smlelstv
1041.1Smlelstv# Manual pages go in subdirectories of. . .
1051.39SchristosMANDIR = $(TOPDIR)/$(USRSHAREDIR)/man
1061.1Smlelstv
1071.39Schristos# Library functions are put in an archive in LIBDIR.
1081.39SchristosLIBDIR = $(TOPDIR)/$(USRDIR)/lib
1091.1Smlelstv
1101.1Smlelstv
1111.41Schristos# Types to try, as an alternative to time_t.
1121.41SchristosTIME_T_ALTERNATIVES = $(TIME_T_ALTERNATIVES_HEAD) $(TIME_T_ALTERNATIVES_TAIL)
1131.41SchristosTIME_T_ALTERNATIVES_HEAD = int64_t
1141.41SchristosTIME_T_ALTERNATIVES_TAIL = int32_t uint32_t uint64_t
1151.1Smlelstv
1161.41Schristos# What kind of TZif data files to generate.
1171.41Schristos# (TZif is the binary time zone data format that zic generates.)
1181.37Schristos# If you want only POSIX time, with time values interpreted as
1191.37Schristos# seconds since the epoch (not counting leap seconds), use
1201.1Smlelstv#	REDO=		posix_only
1211.38Schristos# below.  If you want only "right" time, with values interpreted
1221.37Schristos# as seconds since the epoch (counting leap seconds), use
1231.1Smlelstv#	REDO=		right_only
1241.1Smlelstv# below.  If you want both sets of data available, with leap seconds not
1251.1Smlelstv# counted normally, use
1261.1Smlelstv#	REDO=		posix_right
1271.1Smlelstv# below.  If you want both sets of data available, with leap seconds counted
1281.1Smlelstv# normally, use
1291.1Smlelstv#	REDO=		right_posix
1301.32Schristos# below.  POSIX mandates that leap seconds not be counted; for compatibility
1311.37Schristos# with it, use "posix_only" or "posix_right".  Use POSIX time on systems with
1321.37Schristos# leap smearing; this can work better than unsmeared "right" time with
1331.37Schristos# applications that are not leap second aware, and is closer to unsmeared
1341.37Schristos# "right" time than unsmeared POSIX time is (e.g., 0.5 vs 1.0 s max error).
1351.1Smlelstv
1361.1SmlelstvREDO=		posix_right
1371.1Smlelstv
1381.41Schristos# To install data in text form that has all the information of the TZif data,
1391.38Schristos# (optionally incorporating leap second information), use
1401.38Schristos#	TZDATA_TEXT=	tzdata.zi leapseconds
1411.38Schristos# To install text data without leap second information (e.g., because
1421.38Schristos# REDO='posix_only'), use
1431.38Schristos#	TZDATA_TEXT=	tzdata.zi
1441.38Schristos# To avoid installing text data, use
1451.38Schristos#	TZDATA_TEXT=
1461.38Schristos
1471.38SchristosTZDATA_TEXT=	leapseconds tzdata.zi
1481.38Schristos
1491.38Schristos# For backward-compatibility links for old zone names, use
1501.39Schristos#	BACKWARD=	backward
1511.39Schristos# If you also want the link US/Pacific-New, even though it is confusing
1521.39Schristos# and is planned to be removed from the database eventually, use
1531.38Schristos#	BACKWARD=	backward pacificnew
1541.38Schristos# To omit these links, use
1551.38Schristos#	BACKWARD=
1561.38Schristos
1571.39SchristosBACKWARD=	backward
1581.38Schristos
1591.32Schristos# If you want out-of-scope and often-wrong data from the file 'backzone', use
1601.32Schristos#	PACKRATDATA=	backzone
1611.32Schristos# To omit this data, use
1621.32Schristos#	PACKRATDATA=
1631.32Schristos
1641.32SchristosPACKRATDATA=
1651.32Schristos
1661.38Schristos# The name of a locale using the UTF-8 encoding, used during self-tests.
1671.38Schristos# The tests are skipped if the name does not appear to work on this system.
1681.38Schristos
1691.38SchristosUTF8_LOCALE=	en_US.utf8
1701.38Schristos
1711.1Smlelstv# Since "." may not be in PATH...
1721.1Smlelstv
1731.1SmlelstvYEARISTYPE=	./yearistype
1741.1Smlelstv
1751.1Smlelstv# Non-default libraries needed to link.
1761.1SmlelstvLDLIBS=
1771.1Smlelstv
1781.38Schristos# Add the following to the end of the "CFLAGS=" line as needed to override
1791.38Schristos# defaults specified in the source code.  "-DFOO" is equivalent to "-DFOO=1".
1801.38Schristos#  -DDEPRECATE_TWO_DIGIT_YEARS for optional runtime warnings about strftime
1811.38Schristos#	formats that generate only the last two digits of year numbers
1821.38Schristos#  -DEPOCH_LOCAL if the 'time' function returns local time not UT
1831.38Schristos#  -DEPOCH_OFFSET=N if the 'time' function returns a value N greater
1841.38Schristos#	than what POSIX specifies, assuming local time is UT.
1851.38Schristos#	For example, N is 252460800 on AmigaOS.
1861.32Schristos#  -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r
1871.38Schristos#  -DHAVE_DECL_ENVIRON if <unistd.h> declares 'environ'
1881.32Schristos#  -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows)
1891.38Schristos#  -DHAVE_GENERIC=0 if _Generic does not work
1901.38Schristos#  -DHAVE_GETTEXT if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris)
1911.38Schristos#  -DHAVE_INCOMPATIBLE_CTIME_R if your system's time.h declares
1921.35Schristos#	ctime_r and asctime_r incompatibly with the POSIX standard
1931.35Schristos#	(Solaris when _POSIX_PTHREAD_SEMANTICS is not defined).
1941.38Schristos#  -DHAVE_INTTYPES_H if you have a non-C99 compiler with <inttypes.h>
1951.16Schristos#  -DHAVE_LINK=0 if your system lacks a link function
1961.23Schristos#  -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function
1971.23Schristos#  -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz
1981.23Schristos#	localtime_rz can make zdump significantly faster, but is nonstandard.
1991.32Schristos#  -DHAVE_POSIX_DECLS=0 if your system's include files do not declare
2001.32Schristos#	functions like 'link' or variables like 'tzname' required by POSIX
2011.38Schristos#  -DHAVE_SNPRINTF=0 if your system lacks the snprintf function
2021.38Schristos#  -DHAVE_STDBOOL_H if you have a non-C99 compiler with <stdbool.h>
2031.38Schristos#  -DHAVE_STDINT_H if you have a non-C99 compiler with <stdint.h>
2041.38Schristos#  -DHAVE_STRFTIME_L if <time.h> declares locale_t and strftime_l
2051.28Schristos#  -DHAVE_STRDUP=0 if your system lacks the strdup function
2061.40Schristos#  -DHAVE_STRTOLL=0 if your system lacks the strtoll function
2071.1Smlelstv#  -DHAVE_SYMLINK=0 if your system lacks the symlink function
2081.38Schristos#  -DHAVE_SYS_STAT_H=0 if your compiler lacks a <sys/stat.h>
2091.38Schristos#  -DHAVE_SYS_WAIT_H=0 if your compiler lacks a <sys/wait.h>
2101.23Schristos#  -DHAVE_TZSET=0 if your system lacks a tzset function
2111.38Schristos#  -DHAVE_UNISTD_H=0 if your compiler lacks a <unistd.h>
2121.38Schristos#  -Dlocale_t=XXX if your system uses XXX instead of locale_t
2131.40Schristos#  -DRESERVE_STD_EXT_IDS if your platform reserves standard identifiers
2141.40Schristos#	with external linkage, e.g., applications cannot define 'localtime'.
2151.38Schristos#  -Dssize_t=long on hosts like MS-Windows that lack ssize_t
2161.40Schristos#  -DSUPPRESS_TZDIR to not prepend TZDIR to file names; this has
2171.40Schristos#	security implications and is not recommended for general use
2181.38Schristos#  -DTHREAD_SAFE to make localtime.c thread-safe, as POSIX requires;
2191.23Schristos#	not needed by the main-program tz code, which is single-threaded.
2201.23Schristos#	Append other compiler flags as needed, e.g., -pthread on GNU/Linux.
2211.14Schristos#  -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t
2221.38Schristos#	This is intended for internal use only; it mangles external names.
2231.1Smlelstv#  -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz"
2241.22Schristos#  -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory;
2251.1Smlelstv#	the default is system-supplied, typically "/usr/lib/locale"
2261.14Schristos#  -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified
2271.38Schristos#	DST transitions if the time zone files cannot be accessed
2281.38Schristos#  -DUNINIT_TRAP if reading uninitialized storage can cause problems
2291.23Schristos#	other than simply getting garbage data
2301.23Schristos#  -DUSE_LTZ=0 to build zdump with the system time zone library
2311.23Schristos#	Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below.
2321.1Smlelstv#  -DZIC_MAX_ABBR_LEN_WO_WARN=3
2331.1Smlelstv#	(or some other number) to set the maximum time zone abbreviation length
2341.1Smlelstv#	that zic will accept without a warning (the default is 6)
2351.30Schristos#  $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking
2361.38Schristos# Select instrumentation via "make GCC_INSTRUMENT='whatever'".
2371.38SchristosGCC_INSTRUMENT = \
2381.38Schristos  -fsanitize=undefined -fsanitize-address-use-after-scope \
2391.38Schristos  -fsanitize-undefined-trap-on-error -fstack-protector
2401.38SchristosGCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \
2411.38Schristos  $(GCC_INSTRUMENT) \
2421.38Schristos  -Wall -Wextra \
2431.38Schristos  -Walloc-size-larger-than=100000 -Warray-bounds=2 \
2441.40Schristos  -Wbad-function-cast -Wcast-align=strict -Wdate-time \
2451.38Schristos  -Wdeclaration-after-statement -Wdouble-promotion \
2461.38Schristos  -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation \
2471.38Schristos  -Winit-self -Wjump-misses-init -Wlogical-op \
2481.38Schristos  -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
2491.38Schristos  -Wold-style-definition -Woverlength-strings -Wpointer-arith \
2501.40Schristos  -Wshadow -Wshift-overflow=2 -Wstrict-prototypes -Wstringop-overflow=4 \
2511.40Schristos  -Wstringop-truncation -Wsuggest-attribute=cold \
2521.38Schristos  -Wsuggest-attribute=const -Wsuggest-attribute=format \
2531.40Schristos  -Wsuggest-attribute=malloc \
2541.38Schristos  -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure \
2551.38Schristos  -Wtrampolines -Wundef -Wuninitialized -Wunused \
2561.38Schristos  -Wvariadic-macros -Wvla -Wwrite-strings \
2571.38Schristos  -Wno-address -Wno-format-nonliteral -Wno-sign-compare \
2581.38Schristos  -Wno-type-limits -Wno-unused-parameter
2591.1Smlelstv#
2601.1Smlelstv# If your system has a "GMT offset" field in its "struct tm"s
2611.1Smlelstv# (or if you decide to add such a field in your system's "time.h" file),
2621.1Smlelstv# add the name to a define such as
2631.1Smlelstv#	-DTM_GMTOFF=tm_gmtoff
2641.23Schristos# to the end of the "CFLAGS=" line.  If not defined, the code attempts to
2651.23Schristos# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this.
2661.23Schristos# Similarly, if your system has a "zone abbreviation" field, define
2671.1Smlelstv#	-DTM_ZONE=tm_zone
2681.23Schristos# and define NO_TM_ZONE to suppress any guessing.  These two fields are not
2691.23Schristos# required by POSIX, but are widely available on GNU/Linux and BSD systems.
2701.1Smlelstv#
2711.38Schristos# The next batch of options control support for external variables
2721.38Schristos# exported by tzcode.  In practice these variables are less useful
2731.38Schristos# than TM_GMTOFF and TM_ZONE.  However, most of them are standardized.
2741.38Schristos# #
2751.38Schristos# # To omit or support the external variable "tzname", add one of:
2761.38Schristos# #	-DHAVE_TZNAME=0
2771.38Schristos# #	-DHAVE_TZNAME=1
2781.38Schristos# # to the "CFLAGS=" line.  "tzname" is required by POSIX 1988 and later.
2791.38Schristos# # If not defined, the code attempts to guess HAVE_TZNAME from other macros.
2801.38Schristos# # Warning: unless time_tz is also defined, HAVE_TZNAME=1 can cause
2811.38Schristos# # crashes when combined with some platforms' standard libraries,
2821.38Schristos# # presumably due to memory allocation issues.
2831.38Schristos# #
2841.38Schristos# # To omit or support the external variables "timezone" and "daylight", add
2851.38Schristos# #	-DUSG_COMPAT=0
2861.38Schristos# #	-DUSG_COMPAT=1
2871.38Schristos# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by
2881.38Schristos# # Unix Systems Group code and are required by POSIX 2008 (with XSI) and later.
2891.38Schristos# # If not defined, the code attempts to guess USG_COMPAT from other macros.
2901.38Schristos# #
2911.38Schristos# # To support the external variable "altzone", add
2921.38Schristos# #	-DALTZONE
2931.38Schristos# # to the end of the "CFLAGS=" line; although "altzone" appeared in
2941.38Schristos# # System V Release 3.1 it has not been standardized.
2951.38Schristos#
2961.1Smlelstv# If you want functions that were inspired by early versions of X3J11's work,
2971.1Smlelstv# add
2981.1Smlelstv#	-DSTD_INSPIRED
2991.1Smlelstv# to the end of the "CFLAGS=" line.  This arranges for the functions
3001.1Smlelstv# "tzsetwall", "offtime", "timelocal", "timegm", "timeoff",
3011.1Smlelstv# "posix2time", and "time2posix" to be added to the time conversion library.
3021.1Smlelstv# "tzsetwall" is like "tzset" except that it arranges for local wall clock
3031.41Schristos# time (rather than the timezone specified in the TZ environment variable)
3041.1Smlelstv# to be used.
3051.1Smlelstv# "offtime" is like "gmtime" except that it accepts a second (long) argument
3061.1Smlelstv# that gives an offset to add to the time_t when converting it.
3071.1Smlelstv# "timelocal" is equivalent to "mktime".
3081.1Smlelstv# "timegm" is like "timelocal" except that it turns a struct tm into
3091.15Schristos# a time_t using UT (rather than local time as "timelocal" does).
3101.1Smlelstv# "timeoff" is like "timegm" except that it accepts a second (long) argument
3111.1Smlelstv# that gives an offset to use when converting to a time_t.
3121.1Smlelstv# "posix2time" and "time2posix" are described in an included manual page.
3131.1Smlelstv# X3J11's work does not describe any of these functions.
3141.1Smlelstv# Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0.
3151.1Smlelstv# These functions may well disappear in future releases of the time
3161.1Smlelstv# conversion package.
3171.1Smlelstv#
3181.23Schristos# If you don't want functions that were inspired by NetBSD, add
3191.23Schristos#	-DNETBSD_INSPIRED=0
3201.23Schristos# to the end of the "CFLAGS=" line.  Otherwise, the functions
3211.23Schristos# "localtime_rz", "mktime_z", "tzalloc", and "tzfree" are added to the
3221.23Schristos# time library, and if STD_INSPIRED is also defined the functions
3231.23Schristos# "posix2time_z" and "time2posix_z" are added as well.
3241.23Schristos# The functions ending in "_z" (or "_rz") are like their unsuffixed
3251.23Schristos# (or suffixed-by-"_r") counterparts, except with an extra first
3261.41Schristos# argument of opaque type timezone_t that specifies the timezone.
3271.23Schristos# "tzalloc" allocates a timezone_t value, and "tzfree" frees it.
3281.23Schristos#
3291.1Smlelstv# If you want to allocate state structures in localtime, add
3301.1Smlelstv#	-DALL_STATE
3311.1Smlelstv# to the end of the "CFLAGS=" line.  Storage is obtained by calling malloc.
3321.1Smlelstv#
3331.1Smlelstv# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put
3341.1Smlelstv# out by the National Institute of Standards and Technology
3351.1Smlelstv# which claims to test C and Posix conformance.  If you want to pass PCTS, add
3361.1Smlelstv#	-DPCTS
3371.1Smlelstv# to the end of the "CFLAGS=" line.
3381.1Smlelstv#
3391.1Smlelstv# If you want strict compliance with XPG4 as of 1994-04-09, add
3401.1Smlelstv#	-DXPG4_1994_04_09
3411.1Smlelstv# to the end of the "CFLAGS=" line.  This causes "strftime" to always return
3421.38Schristos# 53 as a week number (rather than 52 or 53) for January days before
3431.38Schristos# January's first Monday when a "%V" format is used and January 1
3441.1Smlelstv# falls on a Friday, Saturday, or Sunday.
3451.1Smlelstv
3461.1SmlelstvCFLAGS=
3471.1Smlelstv
3481.9Schristos# Linker flags.  Default to $(LFLAGS) for backwards compatibility
3491.34Schristos# to release 2012h and earlier.
3501.9Schristos
3511.9SchristosLDFLAGS=	$(LFLAGS)
3521.1Smlelstv
3531.32Schristos# For leap seconds, this Makefile uses LEAPSECONDS='-L leapseconds' in
3541.32Schristos# submake command lines.  The default is no leap seconds.
3551.32Schristos
3561.32SchristosLEAPSECONDS=
3571.32Schristos
3581.32Schristos# The zic command and its arguments.
3591.32Schristos
3601.1Smlelstvzic=		./zic
3611.1SmlelstvZIC=		$(zic) $(ZFLAGS)
3621.1Smlelstv
3631.15SchristosZFLAGS=
3641.15Schristos
3651.41Schristos# How to use zic to install TZif files.
3661.32Schristos
3671.39SchristosZIC_INSTALL=	$(ZIC) -d '$(DESTDIR)$(TZDIR)' $(LEAPSECONDS)
3681.32Schristos
3691.22Schristos# The name of a Posix-compliant 'awk' on your system.
3701.41Schristos# Older 'mawk' versions, such as the 'mawk' in Ubuntu 16.04, might dump core;
3711.41Schristos# on Ubuntu you can work around this with
3721.41Schristos#	AWK=		gawk
3731.9SchristosAWK=		awk
3741.9Schristos
3751.16Schristos# The full path name of a Posix-compliant shell, preferably one that supports
3761.16Schristos# the Korn shell's 'select' statement as an extension.
3771.16Schristos# These days, Bash is the most popular.
3781.16Schristos# It should be OK to set this to /bin/sh, on platforms where /bin/sh
3791.16Schristos# lacks 'select' or doesn't completely conform to Posix, but /bin/bash
3801.16Schristos# is typically nicer if it works.
3811.9SchristosKSHELL=		/bin/bash
3821.1Smlelstv
3831.18Schristos# The path where SGML DTDs are kept and the catalog file(s) to use when
3841.34Schristos# validating.  The default should work on both Debian and Red Hat.
3851.10SchristosSGML_TOPDIR= /usr
3861.9SchristosSGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd
3871.9SchristosSGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224
3881.18SchristosSGML_CATALOG_FILES= \
3891.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
3901.1Smlelstv
3911.1Smlelstv# The name, arguments and environment of a program to validate your web pages.
3921.34Schristos# See <http://openjade.sourceforge.net/doc/> for a validator, and
3931.34Schristos# <https://validator.w3.org/source/> for a validation library.
3941.38Schristos# Set VALIDATE=':' if you do not have such a program.
3951.1SmlelstvVALIDATE = nsgmls
3961.1SmlelstvVALIDATE_FLAGS = -s -B -wall -wno-unused-param
3971.1SmlelstvVALIDATE_ENV = \
3981.39Schristos  SGML_CATALOG_FILES='$(SGML_CATALOG_FILES)' \
3991.39Schristos  SGML_SEARCH_PATH='$(SGML_SEARCH_PATH)' \
4001.1Smlelstv  SP_CHARSET_FIXED=YES \
4011.1Smlelstv  SP_ENCODING=UTF-8
4021.1Smlelstv
4031.23Schristos# This expensive test requires USE_LTZ.
4041.23Schristos# To suppress it, define this macro to be empty.
4051.23SchristosCHECK_TIME_T_ALTERNATIVES = check_time_t_alternatives
4061.23Schristos
4071.22Schristos# SAFE_CHAR is a regular expression that matches a safe character.
4081.22Schristos# Some parts of this distribution are limited to safe characters;
4091.22Schristos# others can use any UTF-8 character.
4101.22Schristos# For now, the safe characters are a safe subset of ASCII.
4111.9Schristos# The caller must set the shell variable 'sharp' to the character '#',
4121.9Schristos# since Makefile macros cannot contain '#'.
4131.9Schristos# TAB_CHAR is a single tab character, in single quotes.
4141.9SchristosTAB_CHAR=	'	'
4151.22SchristosSAFE_CHARSET1=	$(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@'
4161.22SchristosSAFE_CHARSET2=	'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`'
4171.22SchristosSAFE_CHARSET3=	'abcdefghijklmnopqrstuvwxyz{|}~'
4181.29SchristosSAFE_CHARSET=	$(SAFE_CHARSET1)$(SAFE_CHARSET2)$(SAFE_CHARSET3)
4191.29SchristosSAFE_CHAR=	'[]'$(SAFE_CHARSET)'-]'
4201.29Schristos
4211.41Schristos# These characters are Latin-1, and so are likely to be displayable
4221.41Schristos# even in editors with limited character sets.
4231.41SchristosUNUSUAL_OK_LATIN_1 = «°±»½¾×
4241.41Schristos# This IPA symbol is represented in Unicode as the composition of
4251.41Schristos# U+0075 and U+032F, and U+032F is not considered alphabetic by some
4261.41Schristos# grep implementations that do not grok composition.
4271.41SchristosUNUSUAL_OK_IPA = u̯
4281.40Schristos# Non-ASCII non-letters that OK_CHAR allows, as these characters are
4291.41Schristos# useful in commentary.
4301.41SchristosUNUSUAL_OK_CHARSET= $(UNUSUAL_OK_LATIN_1)$(UNUSUAL_OK_IPA)
4311.40Schristos
4321.29Schristos# OK_CHAR matches any character allowed in the distributed files.
4331.40Schristos# This is the same as SAFE_CHAR, except that UNUSUAL_OK_CHARSET and
4341.40Schristos# multibyte letters are also allowed so that commentary can contain a
4351.40Schristos# few safe symbols and people's names and can quote non-English sources.
4361.40Schristos# Other non-letters are limited to ASCII renderings for the
4371.40Schristos# convenience of maintainers using XEmacs 21.5.34, which by default
4381.40Schristos# mishandles Unicode characters U+0100 and greater.
4391.40SchristosOK_CHAR=	'[][:alpha:]$(UNUSUAL_OK_CHARSET)'$(SAFE_CHARSET)'-]'
4401.22Schristos
4411.22Schristos# SAFE_LINE matches a line of safe characters.
4421.29Schristos# SAFE_SHARP_LINE is similar, except any OK character can follow '#';
4431.22Schristos# this is so that comments can contain non-ASCII characters.
4441.29Schristos# OK_LINE matches a line of OK characters.
4451.22SchristosSAFE_LINE=	'^'$(SAFE_CHAR)'*$$'
4461.29SchristosSAFE_SHARP_LINE='^'$(SAFE_CHAR)'*('$$sharp$(OK_CHAR)'*)?$$'
4471.29SchristosOK_LINE=	'^'$(OK_CHAR)'*$$'
4481.9Schristos
4491.6Schristos# Flags to give 'tar' when making a distribution.
4501.6Schristos# Try to use flags appropriate for GNU tar.
4511.34SchristosGNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name
4521.6SchristosTARFLAGS=	`if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \
4531.6Schristos		 then echo $(GNUTARFLAGS); \
4541.6Schristos		 else :; \
4551.6Schristos		 fi`
4561.6Schristos
4571.6Schristos# Flags to give 'gzip' when making a distribution.
4581.38SchristosGZIPFLAGS=	-9n
4591.6Schristos
4601.1Smlelstv###############################################################################
4611.1Smlelstv
4621.29Schristos#MAKE=		make
4631.29Schristos
4641.1Smlelstvcc=		cc
4651.39SchristosCC=		$(cc) -DTZDIR='"$(TZDIR)"'
4661.1Smlelstv
4671.16SchristosAR=		ar
4681.16Schristos
4691.16Schristos# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib.
4701.16SchristosRANLIB=		:
4711.16Schristos
4721.28SchristosTZCOBJS=	zic.o
4731.38SchristosTZDOBJS=	zdump.o localtime.o asctime.o strftime.o
4741.1SmlelstvDATEOBJS=	date.o localtime.o strftime.o asctime.o
4751.1SmlelstvLIBSRCS=	localtime.c asctime.c difftime.c
4761.1SmlelstvLIBOBJS=	localtime.o asctime.o difftime.o
4771.1SmlelstvHEADERS=	tzfile.h private.h
4781.28SchristosNONLIBSRCS=	zic.c zdump.c
4791.1SmlelstvNEWUCBSRCS=	date.c strftime.c
4801.23SchristosSOURCES=	$(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \
4811.35Schristos			tzselect.ksh workman.sh
4821.1SmlelstvMANS=		newctime.3 newstrftime.3 newtzset.3 time2posix.3 \
4831.1Smlelstv			tzfile.5 tzselect.8 zic.8 zdump.8
4841.16SchristosMANTXTS=	newctime.3.txt newstrftime.3.txt newtzset.3.txt \
4851.16Schristos			time2posix.3.txt \
4861.16Schristos			tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \
4871.16Schristos			date.1.txt
4881.38SchristosCOMMON=		calendars CONTRIBUTING LICENSE Makefile \
4891.38Schristos			NEWS README theory.html version
4901.39SchristosWEB_PAGES=	tz-art.html tz-how-to.html tz-link.html
4911.23SchristosDOCS=		$(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
4921.1SmlelstvPRIMARY_YDATA=	africa antarctica asia australasia \
4931.1Smlelstv		europe northamerica southamerica
4941.39SchristosYDATA=		$(PRIMARY_YDATA) etcetera
4951.4SchristosNDATA=		systemv factory
4961.39SchristosTDATA_TO_CHECK=	$(YDATA) $(NDATA) backward pacificnew
4971.39SchristosTDATA=		$(YDATA) $(NDATA) $(BACKWARD)
4981.22SchristosZONETABLES=	zone1970.tab zone.tab
4991.38SchristosTABDATA=	iso3166.tab $(TZDATA_TEXT) $(ZONETABLES)
5001.16SchristosLEAP_DEPS=	leapseconds.awk leap-seconds.list
5011.40SchristosTZDATA_ZI_DEPS=	ziguard.awk zishrink.awk version $(TDATA) $(PACKRATDATA)
5021.40SchristosDSTDATA_ZI_DEPS= ziguard.awk $(TDATA) $(PACKRATDATA)
5031.39SchristosDATA=		$(TDATA_TO_CHECK) backzone iso3166.tab leap-seconds.list \
5041.38Schristos			leapseconds yearistype.sh $(ZONETABLES)
5051.40SchristosAWK_SCRIPTS=	checklinks.awk checktab.awk leapseconds.awk \
5061.40Schristos			ziguard.awk zishrink.awk
5071.23SchristosMISC=		$(AWK_SCRIPTS) zoneinfo2tdf.pl
5081.34SchristosTZS_YEAR=	2050
5091.41SchristosTZS_CUTOFF_FLAG=	-c $(TZS_YEAR)
5101.34SchristosTZS=		to$(TZS_YEAR).tzs
5111.34SchristosTZS_NEW=	to$(TZS_YEAR)new.tzs
5121.34SchristosTZS_DEPS=	$(PRIMARY_YDATA) asctime.c localtime.c \
5131.34Schristos			private.h tzfile.h zdump.c zic.c
5141.41Schristos# EIGHT_YARDS is just a yard short of the whole ENCHILADA.
5151.41SchristosEIGHT_YARDS = $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) tzdata.zi
5161.41SchristosENCHILADA = $(EIGHT_YARDS) $(TZS)
5171.34Schristos
5181.34Schristos# Consult these files when deciding whether to rebuild the 'version' file.
5191.34Schristos# This list is not the same as the output of 'git ls-files', since
5201.34Schristos# .gitignore is not distributed.
5211.34SchristosVERSION_DEPS= \
5221.38Schristos		calendars CONTRIBUTING LICENSE Makefile NEWS README \
5231.34Schristos		africa antarctica asctime.c asia australasia \
5241.34Schristos		backward backzone \
5251.34Schristos		checklinks.awk checktab.awk \
5261.34Schristos		date.1 date.c difftime.c \
5271.34Schristos		etcetera europe factory iso3166.tab \
5281.34Schristos		leap-seconds.list leapseconds.awk localtime.c \
5291.34Schristos		newctime.3 newstrftime.3 newtzset.3 northamerica \
5301.34Schristos		pacificnew private.h \
5311.38Schristos		southamerica strftime.c systemv theory.html \
5321.39Schristos		time2posix.3 tz-art.html tz-how-to.html tz-link.html \
5331.34Schristos		tzfile.5 tzfile.h tzselect.8 tzselect.ksh \
5341.34Schristos		workman.sh yearistype.sh \
5351.34Schristos		zdump.8 zdump.c zic.8 zic.c \
5361.40Schristos		ziguard.awk zishrink.awk \
5371.34Schristos		zone.tab zone1970.tab zoneinfo2tdf.pl
5381.1Smlelstv
5391.1Smlelstv# And for the benefit of csh users on systems that assume the user
5401.1Smlelstv# shell should be used to handle commands in Makefiles. . .
5411.1Smlelstv
5421.1SmlelstvSHELL=		/bin/sh
5431.1Smlelstv
5441.40Schristosall:		tzselect yearistype zic zdump libtz.a $(TABDATA) \
5451.40Schristos		  vanguard.zi main.zi rearguard.zi
5461.1Smlelstv
5471.29SchristosALL:		all date $(ENCHILADA)
5481.1Smlelstv
5491.16Schristosinstall:	all $(DATA) $(REDO) $(MANS)
5501.39Schristos		mkdir -p '$(DESTDIR)$(BINDIR)' \
5511.39Schristos			'$(DESTDIR)$(ZDUMPDIR)' '$(DESTDIR)$(ZICDIR)' \
5521.39Schristos			'$(DESTDIR)$(LIBDIR)' \
5531.39Schristos			'$(DESTDIR)$(MANDIR)/man3' '$(DESTDIR)$(MANDIR)/man5' \
5541.39Schristos			'$(DESTDIR)$(MANDIR)/man8'
5551.39Schristos		$(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES) \
5561.39Schristos			-t '$(DESTDIR)$(TZDEFAULT)'
5571.39Schristos		cp -f $(TABDATA) '$(DESTDIR)$(TZDIR)/.'
5581.39Schristos		cp tzselect '$(DESTDIR)$(BINDIR)/.'
5591.39Schristos		cp zdump '$(DESTDIR)$(ZDUMPDIR)/.'
5601.39Schristos		cp zic '$(DESTDIR)$(ZICDIR)/.'
5611.39Schristos		cp libtz.a '$(DESTDIR)$(LIBDIR)/.'
5621.39Schristos		$(RANLIB) '$(DESTDIR)$(LIBDIR)/libtz.a'
5631.39Schristos		cp -f newctime.3 newtzset.3 '$(DESTDIR)$(MANDIR)/man3/.'
5641.39Schristos		cp -f tzfile.5 '$(DESTDIR)$(MANDIR)/man5/.'
5651.39Schristos		cp -f tzselect.8 zdump.8 zic.8 '$(DESTDIR)$(MANDIR)/man8/.'
5661.1Smlelstv
5671.1SmlelstvINSTALL:	ALL install date.1
5681.39Schristos		mkdir -p '$(DESTDIR)$(BINDIR)' '$(DESTDIR)$(MANDIR)/man1'
5691.39Schristos		cp date '$(DESTDIR)$(BINDIR)/.'
5701.39Schristos		cp -f date.1 '$(DESTDIR)$(MANDIR)/man1/.'
5711.1Smlelstv
5721.34Schristosversion:	$(VERSION_DEPS)
5731.35Schristos		{ (type git) >/dev/null 2>&1 && \
5741.35Schristos		  V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \
5751.35Schristos				--abbrev=7 --dirty` || \
5761.39Schristos		  V='$(VERSION)'; } && \
5771.35Schristos		printf '%s\n' "$$V" >$@.out
5781.35Schristos		mv $@.out $@
5791.34Schristos
5801.41Schristos# These files can be tailored by setting BACKWARD and PACKRATDATA.
5811.40Schristosvanguard.zi main.zi rearguard.zi: $(DSTDATA_ZI_DEPS)
5821.40Schristos		$(AWK) -v DATAFORM=`expr $@ : '\(.*\).zi'` -f ziguard.awk \
5831.40Schristos		  $(TDATA) $(PACKRATDATA) >$@.out
5841.40Schristos		mv $@.out $@
5851.41Schristos# This file has a version comment that attempts to capture any tailoring
5861.41Schristos# via BACKWARD, DATAFORM, PACKRATDATA, and REDO.
5871.41Schristostzdata.zi:	$(DATAFORM).zi version zishrink.awk
5881.39Schristos		version=`sed 1q version` && \
5891.41Schristos		  LC_ALL=C $(AWK) \
5901.41Schristos		    -v dataform='$(DATAFORM)' \
5911.41Schristos		    -v deps='$(DSTDATA_ZI_DEPS) zishrink.awk' \
5921.41Schristos		    -v redo='$(REDO)' \
5931.41Schristos		    -v version="$$version" \
5941.41Schristos		    -f zishrink.awk \
5951.40Schristos		    $(DATAFORM).zi >$@.out
5961.38Schristos		mv $@.out $@
5971.38Schristos
5981.34Schristosversion.h:	version
5991.35Schristos		VERSION=`cat version` && printf '%s\n' \
6001.35Schristos		  'static char const PKGVERSION[]="($(PACKAGE)) ";' \
6011.35Schristos		  "static char const TZVERSION[]=\"$$VERSION\";" \
6021.35Schristos		  'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";' \
6031.35Schristos		  >$@.out
6041.35Schristos		mv $@.out $@
6051.6Schristos
6061.1Smlelstvzdump:		$(TZDOBJS)
6071.9Schristos		$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS)
6081.1Smlelstv
6091.32Schristoszic:		$(TZCOBJS)
6101.9Schristos		$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS)
6111.1Smlelstv
6121.1Smlelstvyearistype:	yearistype.sh
6131.1Smlelstv		cp yearistype.sh yearistype
6141.1Smlelstv		chmod +x yearistype
6151.1Smlelstv
6161.16Schristosleapseconds:	$(LEAP_DEPS)
6171.35Schristos		$(AWK) -f leapseconds.awk leap-seconds.list >$@.out
6181.35Schristos		mv $@.out $@
6191.15Schristos
6201.32Schristos# Arguments to pass to submakes of install_data.
6211.32Schristos# They can be overridden by later submake arguments.
6221.32SchristosINSTALLARGS = \
6231.39Schristos BACKWARD='$(BACKWARD)' \
6241.39Schristos DESTDIR='$(DESTDIR)' \
6251.32Schristos LEAPSECONDS='$(LEAPSECONDS)' \
6261.32Schristos PACKRATDATA='$(PACKRATDATA)' \
6271.39Schristos TZDEFAULT='$(TZDEFAULT)' \
6281.39Schristos TZDIR='$(TZDIR)' \
6291.39Schristos YEARISTYPE='$(YEARISTYPE)' \
6301.32Schristos ZIC='$(ZIC)'
6311.32Schristos
6321.41SchristosINSTALL_DATA_DEPS = zic leapseconds yearistype tzdata.zi
6331.41Schristos
6341.41Schristos# 'make install_data' installs one set of TZif files.
6351.41Schristosinstall_data: $(INSTALL_DATA_DEPS)
6361.38Schristos		$(ZIC_INSTALL) tzdata.zi
6371.32Schristos
6381.41Schristosposix_only: $(INSTALL_DATA_DEPS)
6391.32Schristos		$(MAKE) $(INSTALLARGS) LEAPSECONDS= install_data
6401.32Schristos
6411.41Schristosright_only: $(INSTALL_DATA_DEPS)
6421.32Schristos		$(MAKE) $(INSTALLARGS) LEAPSECONDS='-L leapseconds' \
6431.32Schristos			install_data
6441.1Smlelstv
6451.1Smlelstv# In earlier versions of this makefile, the other two directories were
6461.1Smlelstv# subdirectories of $(TZDIR).  However, this led to configuration errors.
6471.1Smlelstv# For example, with posix_right under the earlier scheme,
6481.1Smlelstv# TZ='right/Australia/Adelaide' got you localtime with leap seconds,
6491.1Smlelstv# but gmtime without leap seconds, which led to problems with applications
6501.1Smlelstv# like sendmail that subtract gmtime from localtime.
6511.1Smlelstv# Therefore, the other two directories are now siblings of $(TZDIR).
6521.1Smlelstv# You must replace all of $(TZDIR) to switch from not using leap seconds
6531.1Smlelstv# to using them, or vice versa.
6541.32Schristosright_posix:	right_only
6551.39Schristos		rm -fr '$(DESTDIR)$(TZDIR)-leaps'
6561.39Schristos		ln -s '$(TZDIR_BASENAME)' '$(DESTDIR)$(TZDIR)-leaps' || \
6571.39Schristos		  $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-leaps' right_only
6581.39Schristos		$(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-posix' posix_only
6591.15Schristos
6601.32Schristosposix_right:	posix_only
6611.39Schristos		rm -fr '$(DESTDIR)$(TZDIR)-posix'
6621.39Schristos		ln -s '$(TZDIR_BASENAME)' '$(DESTDIR)$(TZDIR)-posix' || \
6631.39Schristos		  $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-posix' posix_only
6641.39Schristos		$(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-leaps' right_only
6651.32Schristos
6661.32Schristos# This obsolescent rule is present for backwards compatibility with
6671.32Schristos# tz releases 2014g through 2015g.  It should go away eventually.
6681.41Schristosposix_packrat: $(INSTALL_DATA_DEPS)
6691.32Schristos		$(MAKE) $(INSTALLARGS) PACKRATDATA=backzone posix_only
6701.23Schristos
6711.1Smlelstvzones:		$(REDO)
6721.1Smlelstv
6731.40Schristos# dummy.zd is not a real file; it is mentioned here only so that the
6741.40Schristos# top-level 'make' does not have a syntax error.
6751.40SchristosZDS = dummy.zd
6761.40Schristos# Rule used only by submakes invoked by the $(TZS_NEW) rule.
6771.40Schristos# It is separate so that GNU 'make -j' can run instances in parallel.
6781.40Schristos$(ZDS): zdump
6791.41Schristos		./zdump -i $(TZS_CUTOFF_FLAG) '$(wd)/'$$(expr $@ : '\(.*\).zd') \
6801.41Schristos		  >$@
6811.40Schristos
6821.41SchristosTZS_NEW_DEPS = tzdata.zi zdump zic
6831.41Schristos$(TZS_NEW): $(TZS_NEW_DEPS)
6841.41Schristos		rm -fr tzs$(TZS_YEAR).dir
6851.41Schristos		mkdir tzs$(TZS_YEAR).dir
6861.41Schristos		$(zic) -d tzs$(TZS_YEAR).dir tzdata.zi
6871.38Schristos		$(AWK) '/^L/{print "Link\t" $$2 "\t" $$3}' \
6881.38Schristos		   tzdata.zi | LC_ALL=C sort >$@.out
6891.35Schristos		wd=`pwd` && \
6901.41Schristos		x=`$(AWK) '/^Z/{print "tzs$(TZS_YEAR).dir/" $$2 ".zd"}' \
6911.41Schristos				tzdata.zi \
6921.40Schristos			| LC_ALL=C sort -t . -k 2,2` && \
6931.41Schristos		set x $$x && \
6941.40Schristos		shift && \
6951.40Schristos		ZDS=$$* && \
6961.41Schristos		$(MAKE) wd="$$wd" TZS_CUTOFF_FLAG="$(TZS_CUTOFF_FLAG)" \
6971.41Schristos		  ZDS="$$ZDS" $$ZDS && \
6981.41Schristos		sed 's,^TZ=".*\.dir/,TZ=",' $$ZDS >>$@.out
6991.41Schristos		rm -fr tzs$(TZS_YEAR).dir
7001.40Schristos		mv $@.out $@
7011.34Schristos
7021.41Schristos# If $(TZS) exists but 'make check_tzs' fails, a maintainer should inspect the
7031.34Schristos# failed output and fix the inconsistency, perhaps by running 'make force_tzs'.
7041.34Schristos$(TZS):
7051.41Schristos		touch $@
7061.34Schristos
7071.34Schristosforce_tzs:	$(TZS_NEW)
7081.34Schristos		cp $(TZS_NEW) $(TZS)
7091.34Schristos
7101.16Schristoslibtz.a:	$(LIBOBJS)
7111.37Schristos		rm -f $@
7121.37Schristos		$(AR) -rc $@ $(LIBOBJS)
7131.16Schristos		$(RANLIB) $@
7141.1Smlelstv
7151.1Smlelstvdate:		$(DATEOBJS)
7161.9Schristos		$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS)
7171.1Smlelstv
7181.34Schristostzselect:	tzselect.ksh version
7191.35Schristos		VERSION=`cat version` && sed \
7201.9Schristos			-e 's|#!/bin/bash|#!$(KSHELL)|g' \
7211.1Smlelstv			-e 's|AWK=[^}]*|AWK=$(AWK)|g' \
7221.9Schristos			-e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
7231.9Schristos			-e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
7241.1Smlelstv			-e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
7251.35Schristos			-e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \
7261.35Schristos			<$@.ksh >$@.out
7271.35Schristos		chmod +x $@.out
7281.35Schristos		mv $@.out $@
7291.1Smlelstv
7301.38Schristoscheck:		check_character_set check_white_space check_links \
7311.38Schristos		  check_name_lengths check_sorted \
7321.38Schristos		  check_tables check_web check_zishrink check_tzs
7331.9Schristos
7341.9Schristoscheck_character_set: $(ENCHILADA)
7351.38Schristos	test ! '$(UTF8_LOCALE)' || \
7361.38Schristos	! printf 'A\304\200B\n' | \
7371.38Schristos	  LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 || { \
7381.38Schristos		LC_ALL='$(UTF8_LOCALE)' && export LC_ALL && \
7391.22Schristos		sharp='#' && \
7401.35Schristos		! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \
7411.35Schristos			$(MISC) $(SOURCES) $(WEB_PAGES) \
7421.40Schristos			CONTRIBUTING LICENSE README \
7431.38Schristos			version tzdata.zi && \
7441.41Schristos		! grep -Env $(SAFE_LINE)'|^UNUSUAL_OK_'$(OK_CHAR)'*$$' \
7451.40Schristos			Makefile && \
7461.39Schristos		! grep -Env $(SAFE_SHARP_LINE) $(TDATA_TO_CHECK) backzone \
7471.29Schristos			leapseconds yearistype.sh zone.tab && \
7481.38Schristos		! grep -Env $(OK_LINE) $(ENCHILADA); \
7491.38Schristos	}
7501.41Schristos	touch $@
7511.22Schristos
7521.23Schristoscheck_white_space: $(ENCHILADA)
7531.35Schristos		patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \
7541.41Schristos		! grep -En "$$pat" \
7551.41Schristos			$$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list)
7561.39Schristos		! grep -n '[[:space:]]$$' \
7571.39Schristos			$$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list)
7581.41Schristos		touch $@
7591.23Schristos
7601.38SchristosPRECEDES_FILE_NAME = ^(Zone|Link[[:space:]]+[^[:space:]]+)[[:space:]]+
7611.38SchristosFILE_NAME_COMPONENT_TOO_LONG = \
7621.38Schristos  $(PRECEDES_FILE_NAME)[^[:space:]]*[^/[:space:]]{15}
7631.38Schristos
7641.39Schristoscheck_name_lengths: $(TDATA_TO_CHECK) backzone
7651.39Schristos		! grep -En '$(FILE_NAME_COMPONENT_TOO_LONG)' \
7661.39Schristos			$(TDATA_TO_CHECK) backzone
7671.41Schristos		touch $@
7681.38Schristos
7691.23SchristosCHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; }
7701.23Schristos
7711.23Schristoscheck_sorted: backward backzone iso3166.tab zone.tab zone1970.tab
7721.23Schristos		$(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu
7731.23Schristos		$(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu
7741.23Schristos		$(AWK) '/^[^#]/ {print $$1}' iso3166.tab | LC_ALL=C sort -cu
7751.23Schristos		$(AWK) '/^[^#]/ {print $$1}' zone.tab | LC_ALL=C sort -c
7761.23Schristos		$(AWK) '/^[^#]/ {print substr($$0, 1, 2)}' zone1970.tab | \
7771.23Schristos		  LC_ALL=C sort -c
7781.23Schristos		$(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \
7791.23Schristos		  LC_ALL=C sort -cu
7801.41Schristos		touch $@
7811.23Schristos
7821.40Schristoscheck_links:	checklinks.awk $(TDATA_TO_CHECK) tzdata.zi
7831.39Schristos		$(AWK) -f checklinks.awk $(TDATA_TO_CHECK)
7841.38Schristos		$(AWK) -f checklinks.awk tzdata.zi
7851.41Schristos		touch $@
7861.26Schristos
7871.22Schristoscheck_tables:	checktab.awk $(PRIMARY_YDATA) $(ZONETABLES)
7881.22Schristos		for tab in $(ZONETABLES); do \
7891.22Schristos		  $(AWK) -f checktab.awk -v zone_table=$$tab $(PRIMARY_YDATA) \
7901.22Schristos		    || exit; \
7911.22Schristos		done
7921.41Schristos		touch $@
7931.1Smlelstv
7941.34Schristoscheck_tzs:	$(TZS) $(TZS_NEW)
7951.41Schristos		if test -s $(TZS); then \
7961.41Schristos		  diff -u $(TZS) $(TZS_NEW); \
7971.41Schristos		else \
7981.41Schristos		  cp $(TZS_NEW) $(TZS); \
7991.41Schristos		fi
8001.41Schristos		touch $@
8011.34Schristos
8021.38Schristos# This checks only the HTML 4.01 strict page.
8031.38Schristos# To check the the other pages, use <https://validator.w3.org/>.
8041.38Schristoscheck_web:	tz-how-to.html
8051.38Schristos		$(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) tz-how-to.html
8061.41Schristos		touch $@
8071.38Schristos
8081.40Schristos# Check that zishrink.awk does not alter the data, and that ziguard.awk
8091.40Schristos# preserves main-format data.
8101.41Schristoscheck_zishrink: check_zishrink_posix check_zishrink_right
8111.41Schristoscheck_zishrink_posix check_zishrink_right: \
8121.41Schristos  zic leapseconds $(PACKRATDATA) $(TDATA) $(DATAFORM).zi tzdata.zi
8131.41Schristos		rm -fr $@.dir $@-t.dir $@-shrunk.dir
8141.41Schristos		mkdir $@.dir $@-t.dir $@-shrunk.dir
8151.41Schristos		case $@ in \
8161.41Schristos		  *_right) leap='-L leapseconds';; \
8171.41Schristos		  *) leap=;; \
8181.41Schristos		esac && \
8191.41Schristos		  $(ZIC) $$leap -d $@.dir $(DATAFORM).zi && \
8201.41Schristos		  $(ZIC) $$leap -d $@-shrunk.dir tzdata.zi && \
8211.40Schristos		  case $(DATAFORM) in \
8221.40Schristos		    main) \
8231.41Schristos		      $(ZIC) $$leap -d $@-t.dir $(TDATA) && \
8241.40Schristos		      $(AWK) '/^Rule/' $(TDATA) | \
8251.41Schristos			$(ZIC) $$leap -d $@-t.dir - $(PACKRATDATA) && \
8261.41Schristos		      diff -r $@.dir $@-t.dir;; \
8271.41Schristos		  esac
8281.41Schristos		diff -r $@.dir $@-shrunk.dir
8291.41Schristos		rm -fr $@.dir $@-t.dir $@-shrunk.dir
8301.41Schristos		touch $@
8311.1Smlelstv
8321.14Schristosclean_misc:
8331.41Schristos		rm -f *.o *.out $(TIME_T_ALTERNATIVES) \
8341.41Schristos		  check_* core typecheck_* \
8351.18Schristos		  date tzselect version.h zdump zic yearistype libtz.a
8361.14Schristosclean:		clean_misc
8371.40Schristos		rm -fr *.dir *.zi tzdb-*/ $(TZS_NEW)
8381.1Smlelstv
8391.1Smlelstvmaintainer-clean: clean
8401.1Smlelstv		@echo 'This command is intended for maintainers to use; it'
8411.1Smlelstv		@echo 'deletes files that may need special tools to rebuild.'
8421.34Schristos		rm -f leapseconds version $(MANTXTS) $(TZS) *.asc *.tar.*
8431.1Smlelstv
8441.1Smlelstvnames:
8451.1Smlelstv		@echo $(ENCHILADA)
8461.1Smlelstv
8471.23Schristospublic:		check check_public $(CHECK_TIME_T_ALTERNATIVES) \
8481.16Schristos		tarballs signatures
8491.16Schristos
8501.16Schristosdate.1.txt:	date.1
8511.16Schristosnewctime.3.txt:	newctime.3
8521.16Schristosnewstrftime.3.txt: newstrftime.3
8531.16Schristosnewtzset.3.txt:	newtzset.3
8541.16Schristostime2posix.3.txt: time2posix.3
8551.16Schristostzfile.5.txt:	tzfile.5
8561.16Schristostzselect.8.txt:	tzselect.8
8571.16Schristoszdump.8.txt:	zdump.8
8581.16Schristoszic.8.txt:	zic.8
8591.16Schristos
8601.16Schristos$(MANTXTS):	workman.sh
8611.35Schristos		LC_ALL=C sh workman.sh `expr $@ : '\(.*\)\.txt$$'` >$@.out
8621.35Schristos		mv $@.out $@
8631.9Schristos
8641.41Schristos# Set the timestamps to those of the git repository, if available,
8651.6Schristos# and if the files have not changed since then.
8661.6Schristos# This uses GNU 'touch' syntax 'touch -d@N FILE',
8671.6Schristos# where N is the number of seconds since 1970.
8681.16Schristos# If git or GNU 'touch' is absent, don't bother to sync with git timestamps.
8691.16Schristos# Also, set the timestamp of each prebuilt file like 'leapseconds'
8701.16Schristos# to be the maximum of the files it depends on.
8711.41Schristosset-timestamps.out: $(EIGHT_YARDS)
8721.16Schristos		rm -f $@
8731.35Schristos		if (type git) >/dev/null 2>&1 && \
8741.41Schristos		   files=`git ls-files $(EIGHT_YARDS)` && \
8751.16Schristos		   touch -md @1 test.out; then \
8761.16Schristos		  rm -f test.out && \
8771.16Schristos		  for file in $$files; do \
8781.16Schristos		    if git diff --quiet $$file; then \
8791.16Schristos		      time=`git log -1 --format='tformat:%ct' $$file` && \
8801.16Schristos		      touch -cmd @$$time $$file; \
8811.16Schristos		    else \
8821.16Schristos		      echo >&2 "$$file: warning: does not match repository"; \
8831.16Schristos		    fi || exit; \
8841.16Schristos		  done; \
8851.16Schristos		fi
8861.16Schristos		touch -cmr `ls -t $(LEAP_DEPS) | sed 1q` leapseconds
8871.16Schristos		for file in `ls $(MANTXTS) | sed 's/\.txt$$//'`; do \
8881.16Schristos		  touch -cmr `ls -t $$file workman.sh | sed 1q` $$file.txt || \
8891.16Schristos		    exit; \
8901.6Schristos		done
8911.38Schristos		touch -cmr `ls -t $(TZDATA_ZI_DEPS) | sed 1q` tzdata.zi
8921.41Schristos		touch -cmr `ls -t $(VERSION_DEPS) | sed 1q` version
8931.41Schristos		touch $@
8941.41Schristosset-tzs-timestamp.out: $(TZS)
8951.35Schristos		touch -cmr `ls -t $(TZS_DEPS) | sed 1q` $(TZS)
8961.16Schristos		touch $@
8971.6Schristos
8981.1Smlelstv# The zics below ensure that each data file can stand on its own.
8991.1Smlelstv# We also do an all-files run to catch links to links.
9001.1Smlelstv
9011.41Schristoscheck_public: $(VERSION_DEPS)
9021.41Schristos		rm -fr public.dir
9031.41Schristos		mkdir public.dir
9041.41Schristos		ln $(VERSION_DEPS) public.dir
9051.41Schristos		cd public.dir && $(MAKE) CFLAGS='$(GCC_DEBUG_FLAGS)' ALL
9061.41Schristos		for i in $(TDATA_TO_CHECK) public.dir/tzdata.zi; do \
9071.41Schristos		  public.dir/zic -v -d public.dir/zoneinfo $$i 2>&1 || exit; \
9081.9Schristos		done
9091.41Schristos		public.dir/zic -v -d public.dir/zoneinfo-all $(TDATA_TO_CHECK)
9101.34Schristos		rm -fr public.dir
9111.41Schristos		touch $@
9121.9Schristos
9131.14Schristos# Check that the code works under various alternative
9141.14Schristos# implementations of time_t.
9151.41Schristoscheck_time_t_alternatives: $(TIME_T_ALTERNATIVES)
9161.41Schristos$(TIME_T_ALTERNATIVES_TAIL): $(TIME_T_ALTERNATIVES_HEAD)
9171.41Schristos$(TIME_T_ALTERNATIVES): $(VERSION_DEPS)
9181.41Schristos		rm -fr $@.dir
9191.41Schristos		mkdir $@.dir
9201.41Schristos		ln $(VERSION_DEPS) $@.dir
9211.41Schristos		case $@ in \
9221.41Schristos		  int32_t) range=-2147483648,2147483648;; \
9231.41Schristos		  u*) range=0,4294967296;; \
9241.41Schristos		  *) range=-4294967296,4294967296;; \
9251.41Schristos		esac && \
9261.41Schristos		wd=`pwd` && \
9271.41Schristos		zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \
9281.41Schristos		if test $@ = $(TIME_T_ALTERNATIVES_HEAD); then \
9291.41Schristos		  range_target=; \
9301.23Schristos		else \
9311.41Schristos		  range_target=to$$range.tzs; \
9321.23Schristos		fi && \
9331.41Schristos		(cd $@.dir && \
9341.41Schristos		  $(MAKE) TOPDIR="$$wd/$@.dir" \
9351.41Schristos		    CFLAGS='$(CFLAGS) -Dtime_tz='"'$@'" \
9361.23Schristos		    REDO='$(REDO)' \
9371.41Schristos			D=$$wd/$@.dir \
9381.41Schristos		    TZS_YEAR="$$range" TZS_CUTOFF_FLAG="-t $$range" \
9391.41Schristos		    install $$range_target) && \
9401.41Schristos		test $@ = $(TIME_T_ALTERNATIVES_HEAD) || { \
9411.41Schristos		  (cd $(TIME_T_ALTERNATIVES_HEAD).dir && \
9421.41Schristos		    $(MAKE) TOPDIR="$$wd/$@.dir" \
9431.41Schristos		      TZS_YEAR="$$range" TZS_CUTOFF_FLAG="-t $$range" \
9441.41Schristos			D=$$wd/$@.dir \
9451.41Schristos		      to$$range.tzs) && \
9461.41Schristos		  diff -u $(TIME_T_ALTERNATIVES_HEAD).dir/to$$range.tzs \
9471.41Schristos			  $@.dir/to$$range.tzs && \
9481.41Schristos		  if diff -q Makefile Makefile 2>/dev/null; then \
9491.41Schristos		    quiet_option='-q'; \
9501.41Schristos		  else \
9511.41Schristos		    quiet_option=''; \
9521.41Schristos		  fi && \
9531.41Schristos		    diff $$quiet_option -r $(TIME_T_ALTERNATIVES_HEAD).dir/etc \
9541.41Schristos					   $@.dir/etc && \
9551.41Schristos		    diff $$quiet_option -r \
9561.41Schristos		      $(TIME_T_ALTERNATIVES_HEAD).dir/usr/share \
9571.41Schristos		      $@.dir/usr/share; \
9581.41Schristos		}
9591.41Schristos		touch $@
9601.34Schristos
9611.40SchristosTRADITIONAL_ASC = \
9621.40Schristos  tzcode$(VERSION).tar.gz.asc \
9631.40Schristos  tzdata$(VERSION).tar.gz.asc
9641.41SchristosREARGUARD_ASC = \
9651.41Schristos  tzdata$(VERSION)-rearguard.tar.gz.asc
9661.41SchristosALL_ASC = $(TRADITIONAL_ASC) $(REARGUARD_ASC) \
9671.40Schristos  tzdb-$(VERSION).tar.lz.asc
9681.40Schristos
9691.41Schristostarballs rearguard_tarballs traditional_tarballs \
9701.41Schristossignatures rearguard_signatures traditional_signatures: \
9711.41Schristos  version set-timestamps.out rearguard.zi
9721.35Schristos		VERSION=`cat version` && \
9731.35Schristos		$(MAKE) VERSION="$$VERSION" $@_version
9741.35Schristos
9751.40Schristos# These *_version rules are intended for use if VERSION is set by some
9761.40Schristos# other means.  Ordinarily these rules are used only by the above
9771.40Schristos# non-_version rules, which set VERSION on the 'make' command line.
9781.41Schristostarballs_version: traditional_tarballs_version rearguard_tarballs_version \
9791.40Schristos  tzdb-$(VERSION).tar.lz
9801.41Schristosrearguard_tarballs_version: \
9811.41Schristos  tzdata$(VERSION)-rearguard.tar.gz
9821.38Schristostraditional_tarballs_version: \
9831.38Schristos  tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz
9841.40Schristossignatures_version: $(ALL_ASC)
9851.41Schristosrearguard_signatures_version: $(REARGUARD_ASC)
9861.40Schristostraditional_signatures_version: $(TRADITIONAL_ASC)
9871.9Schristos
9881.16Schristostzcode$(VERSION).tar.gz: set-timestamps.out
9891.6Schristos		LC_ALL=C && export LC_ALL && \
9901.7Schristos		tar $(TARFLAGS) -cf - \
9911.23Schristos		    $(COMMON) $(DOCS) $(SOURCES) | \
9921.38Schristos		  gzip $(GZIPFLAGS) >$@.out
9931.35Schristos		mv $@.out $@
9941.10Schristos
9951.16Schristostzdata$(VERSION).tar.gz: set-timestamps.out
9961.6Schristos		LC_ALL=C && export LC_ALL && \
9971.23Schristos		tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \
9981.38Schristos		  gzip $(GZIPFLAGS) >$@.out
9991.35Schristos		mv $@.out $@
10001.9Schristos
10011.40Schristostzdata$(VERSION)-rearguard.tar.gz: rearguard.zi set-timestamps.out
10021.40Schristos		rm -fr tzdata$(VERSION)-rearguard.dir
10031.40Schristos		mkdir tzdata$(VERSION)-rearguard.dir
10041.40Schristos		ln $(COMMON) $(DATA) $(MISC) tzdata$(VERSION)-rearguard.dir
10051.40Schristos		cd tzdata$(VERSION)-rearguard.dir && \
10061.40Schristos		  rm -f $(TDATA) $(PACKRATDATA) version
10071.40Schristos		for f in $(TDATA) $(PACKRATDATA); do \
10081.40Schristos		  rearf=tzdata$(VERSION)-rearguard.dir/$$f; \
10091.40Schristos		  $(AWK) -v DATAFORM=rearguard -f ziguard.awk $$f >$$rearf && \
10101.40Schristos		  touch -cmr `ls -t ziguard.awk $$f` $$rearf || exit; \
10111.40Schristos		done
10121.40Schristos		sed '1s/$$/-rearguard/' \
10131.40Schristos		  <version >tzdata$(VERSION)-rearguard.dir/version
10141.40Schristos		touch -cmr version tzdata$(VERSION)-rearguard.dir/version
10151.40Schristos		LC_ALL=C && export LC_ALL && \
10161.40Schristos		  (cd tzdata$(VERSION)-rearguard.dir && \
10171.40Schristos		   tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \
10181.40Schristos		     gzip $(GZIPFLAGS)) >$@.out
10191.40Schristos		mv $@.out $@
10201.40Schristos
10211.41Schristostzdb-$(VERSION).tar.lz: set-timestamps.out set-tzs-timestamp.out
10221.34Schristos		rm -fr tzdb-$(VERSION)
10231.34Schristos		mkdir tzdb-$(VERSION)
10241.34Schristos		ln $(ENCHILADA) tzdb-$(VERSION)
10251.35Schristos		touch -cmr `ls -t tzdb-$(VERSION)/* | sed 1q` tzdb-$(VERSION)
10261.34Schristos		LC_ALL=C && export LC_ALL && \
10271.35Schristos		tar $(TARFLAGS) -cf - tzdb-$(VERSION) | lzip -9 >$@.out
10281.35Schristos		mv $@.out $@
10291.9Schristos
10301.9Schristostzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz
10311.9Schristostzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz
10321.40Schristostzdata$(VERSION)-rearguard.tar.gz.asc: tzdata$(VERSION)-rearguard.tar.gz
10331.34Schristostzdb-$(VERSION).tar.lz.asc: tzdb-$(VERSION).tar.lz
10341.40Schristos$(ALL_ASC):
10351.41Schristos		gpg2 --armor --detach-sign $?
10361.34Schristos
10371.41SchristosTYPECHECK_CFLAGS = $(CFLAGS) -DTYPECHECK -D__time_t_defined -D_TIME_T
10381.41Schristostypecheck: typecheck_long_long typecheck_unsigned
10391.41Schristostypecheck_long_long typecheck_unsigned: $(VERSION_DEPS)
10401.41Schristos		rm -fr $@.dir
10411.41Schristos		mkdir $@.dir
10421.41Schristos		ln $(VERSION_DEPS) $@.dir
10431.41Schristos		cd $@.dir && \
10441.41Schristos		  case $@ in \
10451.41Schristos		    *_long_long) i="long long";; \
10461.41Schristos		    *_unsigned ) i="unsigned" ;; \
10471.41Schristos		  esac && \
10481.41Schristos		  typecheck_cflags='' && \
10491.41Schristos		  $(MAKE) \
10501.41Schristos		    CFLAGS="$(TYPECHECK_CFLAGS) \"-Dtime_t=$$i\"" \
10511.41Schristos		    TOPDIR="`pwd`" \
10521.41Schristos		    install
10531.41Schristos		$@.dir/zdump -i -c 1970,1971 Europe/Rome
10541.41Schristos		touch $@
10551.1Smlelstv
10561.38Schristoszonenames:	tzdata.zi
10571.38Schristos		@$(AWK) '/^Z/ { print $$2 } /^L/ { print $$3 }' tzdata.zi
10581.1Smlelstv
10591.1Smlelstvasctime.o:	private.h tzfile.h
10601.1Smlelstvdate.o:		private.h
10611.1Smlelstvdifftime.o:	private.h
10621.1Smlelstvlocaltime.o:	private.h tzfile.h
10631.23Schristosstrftime.o:	private.h tzfile.h
10641.6Schristoszdump.o:	version.h
10651.6Schristoszic.o:		private.h tzfile.h version.h
10661.1Smlelstv
10671.1Smlelstv.KEEP_STATE:
10681.22Schristos
10691.22Schristos.PHONY: ALL INSTALL all
10701.41Schristos.PHONY: check check_time_t_alternatives
10711.38Schristos.PHONY: check_zishrink
10721.40Schristos.PHONY: clean clean_misc dummy.zd force_tzs
10731.32Schristos.PHONY: install install_data maintainer-clean names
10741.41Schristos.PHONY: posix_only posix_packrat posix_right public
10751.41Schristos.PHONY: rearguard_signatures rearguard_signatures_version
10761.41Schristos.PHONY: rearguard_tarballs rearguard_tarballs_version
10771.41Schristos.PHONY: right_only right_posix signatures signatures_version
10781.40Schristos.PHONY: tarballs tarballs_version
10791.40Schristos.PHONY: traditional_signatures traditional_signatures_version
10801.40Schristos.PHONY: traditional_tarballs traditional_tarballs_version
10811.40Schristos.PHONY: typecheck
10821.22Schristos.PHONY: zonenames zones
10831.40Schristos.PHONY: $(ZDS)
1084