2 # This file is in the public domain, so clarified as of
3 # 2009-05-17 by Arthur David Olson.
5 # Package name for the code distribution.
8 # Version numbers of the code and data distributions.
11 # Email address for bug reports.
14 # Change the line below for your time zone (after finding the zone you want in
15 # the time zone files, or adding it to a time zone file).
16 # Alternately, if you discover you've got the wrong time zone, you can just
21 # to get a list of the values you can use for LOCALTIME.
25 # If you want something other than Eastern United States time as a template
26 # for handling POSIX-style time zone environment variables,
27 # change the line below (after finding the zone you want in the
28 # time zone files, or adding it to a time zone file).
29 # (When a POSIX-style environment variable is handled, the rules in the
30 # template file are used to determine "spring forward" and "fall back" days and
31 # times; the environment variable itself specifies UT offsets of standard and
33 # Alternately, if you discover you've got the wrong time zone, you can just
38 # to get a list of the values you can use for POSIXRULES.
39 # If you want POSIX compatibility, use "America/New_York".
41 POSIXRULES
= America
/New_York
43 # Also see TZDEFRULESTRING below, which takes effect only
44 # if the time zone files cannot be accessed.
46 # Everything gets put in subdirectories of. . .
50 # "Compiled" time zone information is placed in the "TZDIR" directory
51 # (and subdirectories).
52 # Use an absolute path name for TZDIR unless you're just testing the software.
54 TZDIR_BASENAME
= zoneinfo
55 TZDIR
= $(TOPDIR
)/etc
/$(TZDIR_BASENAME
)
57 # Types to try, as an alternative to time_t. int64_t should be first.
58 TIME_T_ALTERNATIVES
= int64_t int32_t uint32_t uint64_t
60 # The "tzselect", "zic", and "zdump" commands get installed in. . .
64 # If you "make INSTALL", the "date" command gets installed in. . .
68 # Manual pages go in subdirectories of. . .
72 # Library functions are put in an archive in LIBDIR.
75 TZLIB
= $(LIBDIR
)/libtz.a
77 # If you always want time values interpreted as "seconds since the epoch
78 # (not counting leap seconds)", use
80 # below. If you always want right time values interpreted as "seconds since
81 # the epoch" (counting leap seconds)", use
83 # below. If you want both sets of data available, with leap seconds not
84 # counted normally, use
86 # below. If you want both sets of data available, with leap seconds counted
90 # POSIX mandates that leap seconds not be counted; for compatibility with it,
91 # use either "posix_only" or "posix_right".
95 # Since "." may not be in PATH...
97 YEARISTYPE
= .
/yearistype
99 # Non-default libraries needed to link.
100 # Add -lintl if you want to use `gettext' on Solaris.
103 # Add the following to the end of the "CFLAGS=" line as needed.
104 # -DHAVE_ADJTIME=0 if `adjtime' does not exist (SVR0?)
105 # -DHAVE_DOS_FILE_NAMES if file names have drive specifiers etc. (MS-DOS)
106 # -DHAVE_GETTEXT=1 if `gettext' works (GNU, Linux, Solaris); also see LDLIBS
107 # -DHAVE_INCOMPATIBLE_CTIME_R=1 if your system's time.h declares
108 # ctime_r and asctime_r incompatibly with the POSIX standard (Solaris 8).
109 # -DHAVE_INTTYPES_H=1 if you have a pre-C99 compiler with "inttypes.h"
110 # -DHAVE_SETTIMEOFDAY=0 if settimeofday does not exist (SVR0?)
111 # -DHAVE_SETTIMEOFDAY=1 if settimeofday has just 1 arg (SVR4)
112 # -DHAVE_SETTIMEOFDAY=2 if settimeofday uses 2nd arg (4.3BSD)
113 # -DHAVE_SETTIMEOFDAY=3 if settimeofday ignores 2nd arg (4.4BSD)
114 # -DHAVE_STDINT_H=1 if you have a pre-C99 compiler with "stdint.h"
115 # -DHAVE_SYMLINK=0 if your system lacks the symlink function
116 # -DHAVE_SYS_STAT_H=0 if your compiler lacks a "sys/stat.h"
117 # -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h"
118 # -DHAVE_UNISTD_H=0 if your compiler lacks a "unistd.h" (Microsoft C++ 7?)
119 # -DHAVE_UTMPX_H=1 if your compiler has a "utmpx.h"
120 # -DLOCALE_HOME=\"path\" if locales are in "path", not "/usr/lib/locale"
121 # -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU=1
122 # if you do not want run time warnings about formats that may cause
124 # -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t
125 # -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz"
126 # -TTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory;
127 # the default is system-supplied, typically "/usr/lib/locale"
128 # -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified
129 # -DNO_ERROR_IN_DST_GAP=1
130 # if you want mktime() not to return an error in the DST gap.
131 # -DZIC_MAX_ABBR_LEN_WO_WARN=3
132 # (or some other number) to set the maximum time zone abbreviation length
133 # that zic will accept without a warning (the default is 6)
134 # $(GCC_DEBUG_FLAGS) if you are using GCC and want lots of checking
135 GCC_DEBUG_FLAGS
= -Dlint
-g3
-O3
-fno-common
-fstrict-aliasing \
137 -Wbad-function-cast
-Wcast-align
-Wcast-qual \
138 -Wformat
=2 -Winit-self \
139 -Wmissing-declarations
-Wmissing-noreturn
-Wmissing-prototypes \
141 -Wno-format-nonliteral
-Wno-sign-compare
-Wno-sign-conversion \
143 -Wno-unused-parameter
-Woverlength-strings
-Wpointer-arith \
144 -Wshadow
-Wstrict-prototypes
-Wsuggest-attribute
=const \
145 -Wsuggest-attribute
=noreturn
-Wsuggest-attribute
=pure
-Wtrampolines \
148 # If you want to use System V compatibility code, add
150 # to the end of the "CFLAGS=" line. This arrange for "timezone" and "daylight"
151 # variables to be kept up-to-date by the time conversion functions. Neither
152 # "timezone" nor "daylight" is described in X3J11's work.
154 # If your system has a "GMT offset" field in its "struct tm"s
155 # (or if you decide to add such a field in your system's "time.h" file),
156 # add the name to a define such as
157 # -DTM_GMTOFF=tm_gmtoff
159 # -DTM_GMTOFF=_tm_gmtoff
160 # to the end of the "CFLAGS=" line.
161 # Neither tm_gmtoff nor _tm_gmtoff is described in X3J11's work;
162 # in its work, use of "tm_gmtoff" is described as non-conforming.
163 # Both Linux and BSD have done the equivalent of defining TM_GMTOFF in
164 # their recent releases.
166 # If your system has a "zone abbreviation" field in its "struct tm"s
167 # (or if you decide to add such a field in your system's "time.h" file),
168 # add the name to a define such as
172 # to the end of the "CFLAGS=" line.
173 # Neither tm_zone nor _tm_zone is described in X3J11's work;
174 # in its work, use of "tm_zone" is described as non-conforming.
175 # Both UCB and Sun have done the equivalent of defining TM_ZONE in
176 # their recent releases.
178 # If you want functions that were inspired by early versions of X3J11's work,
181 # to the end of the "CFLAGS=" line. This arranges for the functions
182 # "tzsetwall", "offtime", "timelocal", "timegm", "timeoff",
183 # "posix2time", and "time2posix" to be added to the time conversion library.
184 # "tzsetwall" is like "tzset" except that it arranges for local wall clock
185 # time (rather than the time specified in the TZ environment variable)
187 # "offtime" is like "gmtime" except that it accepts a second (long) argument
188 # that gives an offset to add to the time_t when converting it.
189 # "timelocal" is equivalent to "mktime".
190 # "timegm" is like "timelocal" except that it turns a struct tm into
191 # a time_t using UT (rather than local time as "timelocal" does).
192 # "timeoff" is like "timegm" except that it accepts a second (long) argument
193 # that gives an offset to use when converting to a time_t.
194 # "posix2time" and "time2posix" are described in an included manual page.
195 # X3J11's work does not describe any of these functions.
196 # Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0.
197 # These functions may well disappear in future releases of the time
198 # conversion package.
200 # If you'll never want to handle solar-time-based time zones, add
202 # to the end of the "CFLAGS=" line
203 # (and comment out the "SDATA=" line below).
204 # This reduces (slightly) the run-time data-space requirements of
205 # the time conversion functions; it may reduce the acceptability of your system
206 # to folks in oil- and cash-rich places.
208 # If you want to allocate state structures in localtime, add
210 # to the end of the "CFLAGS=" line. Storage is obtained by calling malloc.
212 # If you want an "altzone" variable (a la System V Release 3.1), add
214 # to the end of the "CFLAGS=" line.
215 # This variable is not described in X3J11's work.
217 # If you want a "gtime" function (a la MACH), add
219 # to the end of the "CFLAGS=" line
220 # This function is not described in X3J11's work.
222 # NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put
223 # out by the National Institute of Standards and Technology
224 # which claims to test C and Posix conformance. If you want to pass PCTS, add
226 # to the end of the "CFLAGS=" line.
228 # If you want strict compliance with XPG4 as of 1994-04-09, add
230 # to the end of the "CFLAGS=" line. This causes "strftime" to always return
231 # 53 as a week number (rather than 52 or 53) for those days in January that
232 # before the first Monday in January when a "%V" format is used and January 1
233 # falls on a Friday, Saturday, or Sunday.
235 CFLAGS
= -DPCTS
# LSC: MINIX Strives for posix conformance
237 # Linker flags. Default to $(LFLAGS) for backwards compatibility
238 # to tzcode2012h and earlier.
243 ZIC
= $(zic
) $(ZFLAGS
)
247 # The name of a Posix-compliant `awk' on your system.
250 # The full path name of a Posix-compliant shell that supports the Korn shell's
251 # 'select' statement, as an extension. These days, Bash is the most popular.
254 # The path where SGML DTDs are kept.
255 # The default is appropriate for Ubuntu 12.10.
257 SGML_DTDDIR
= $(SGML_TOPDIR
)/share
/xml
/w3c-sgml-lib
/schema
/dtd
258 SGML_SEARCH_PATH
= $(SGML_DTDDIR
)/REC-html401-19991224
260 # The catalog file(s) to use when validating.
261 SGML_CATALOG_FILES
= HTML4.cat
263 # The name, arguments and environment of a program to validate your web pages.
264 # See <http://www.jclark.com/sp/> for a validator, and
265 # <http://validator.w3.org/source/> for a validation library.
267 VALIDATE_FLAGS
= -s
-B
-wall
-wno-unused-param
269 SGML_CATALOG_FILES
=$(SGML_CATALOG_FILES
) \
270 SGML_SEARCH_PATH
=$(SGML_SEARCH_PATH
) \
271 SP_CHARSET_FIXED
=YES \
274 # INVALID_CHAR is a regular expression that matches invalid characters in
275 # distributed files. For now, stick to a safe subset of ASCII.
276 # The caller must set the shell variable 'sharp' to the character '#',
277 # since Makefile macros cannot contain '#'.
278 # TAB_CHAR is a single tab character, in single quotes.
280 INVALID_CHAR1
= $(TAB_CHAR
)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@'
281 INVALID_CHAR2
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`'
282 INVALID_CHAR3
= 'abcdefghijklmnopqrstuvwxyz{|}~'
283 INVALID_CHAR
= '[^]'$(INVALID_CHAR1
)$(INVALID_CHAR2
)$(INVALID_CHAR3
)'-]'
285 # Flags to give 'tar' when making a distribution.
286 # Try to use flags appropriate for GNU tar.
287 GNUTARFLAGS
= --numeric-owner
--owner
=0 --group
=0 --mode
=go
+u
,go-w
288 TARFLAGS
= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \
289 then echo $(GNUTARFLAGS); \
293 # Flags to give 'gzip' when making a distribution.
296 ###############################################################################
299 CC
= $(cc) -DTZDIR
=\"$(TZDIR
)\"
301 TZCSRCS
= zic.c localtime.c asctime.c scheck.c ialloc.c
302 TZCOBJS
= zic.o localtime.o asctime.o scheck.o ialloc.o
303 TZDSRCS
= zdump.c localtime.c ialloc.c
304 TZDOBJS
= zdump.o localtime.o ialloc.o
305 DATESRCS
= date.c localtime.c strftime.c asctime.c
306 DATEOBJS
= date.o localtime.o strftime.o asctime.o
307 LIBSRCS
= localtime.c asctime.c difftime.c
308 LIBOBJS
= localtime.o asctime.o difftime.o
309 HEADERS
= tzfile.h private.h
310 NONLIBSRCS
= zic.c zdump.c scheck.c ialloc.c
311 NEWUCBSRCS
= date.c strftime.c
312 SOURCES
= $(HEADERS
) $(LIBSRCS
) $(NONLIBSRCS
) $(NEWUCBSRCS
) tzselect.ksh
313 MANS
= newctime
.3 newstrftime
.3 newtzset
.3 time2posix
.3 \
314 tzfile
.5 tzselect
.8 zic
.8 zdump
.8
316 DOCS
= README Theory
$(MANS
) date
.1
317 PRIMARY_YDATA
= africa antarctica asia australasia \
318 europe northamerica southamerica
319 YDATA
= $(PRIMARY_YDATA
) pacificnew etcetera backward
320 NDATA
= systemv factory
321 SDATA
= solar87 solar88 solar89
322 TDATA
= $(YDATA
) $(NDATA
) $(SDATA
)
323 TABDATA
= iso3166.tab zone.tab
324 DATA
= $(YDATA
) $(NDATA
) $(SDATA
) $(TABDATA
) \
325 leap-seconds.list yearistype.sh
326 WEB_PAGES
= tz-art.htm tz-link.htm
327 AWK_SCRIPTS
= checktab.awk leapseconds.awk
328 MISC
= usno1988 usno1989 usno1989a usno1995 usno1997 usno1998 \
329 $(WEB_PAGES
) $(AWK_SCRIPTS
) workman.sh \
331 ENCHILADA
= $(COMMON
) $(DOCS
) $(SOURCES
) $(DATA
) $(MISC
)
333 # And for the benefit of csh users on systems that assume the user
334 # shell should be used to handle commands in Makefiles. . .
338 all: tzselect zic zdump
$(LIBOBJS
) $(TABDATA
)
342 install: all $(DATA
) $(REDO
) $(DESTDIR
)$(TZLIB
) $(MANS
)
343 $(ZIC
) -y
$(YEARISTYPE
) \
344 -d
$(DESTDIR
)$(TZDIR
) -l
$(LOCALTIME
) -p
$(POSIXRULES
)
345 -rm -f
$(DESTDIR
)$(TZDIR
)/iso3166.tab \
346 $(DESTDIR
)$(TZDIR
)/zone.tab
347 cp iso3166.tab zone.tab
$(DESTDIR
)$(TZDIR
)/.
348 -mkdir
$(DESTDIR
)$(TOPDIR
) $(DESTDIR
)$(ETCDIR
)
349 cp tzselect zic zdump
$(DESTDIR
)$(ETCDIR
)/.
350 -mkdir
$(DESTDIR
)$(TOPDIR
) $(DESTDIR
)$(MANDIR
) \
351 $(DESTDIR
)$(MANDIR
)/man3
$(DESTDIR
)$(MANDIR
)/man5 \
352 $(DESTDIR
)$(MANDIR
)/man8
353 -rm -f
$(DESTDIR
)$(MANDIR
)/man3
/newctime
.3 \
354 $(DESTDIR
)$(MANDIR
)/man3
/newtzset
.3 \
355 $(DESTDIR
)$(MANDIR
)/man5
/tzfile
.5 \
356 $(DESTDIR
)$(MANDIR
)/man8
/tzselect
.8 \
357 $(DESTDIR
)$(MANDIR
)/man8
/zdump
.8 \
358 $(DESTDIR
)$(MANDIR
)/man8
/zic
.8
359 cp newctime
.3 newtzset
.3 $(DESTDIR
)$(MANDIR
)/man3
/.
360 cp tzfile
.5 $(DESTDIR
)$(MANDIR
)/man5
/.
361 cp tzselect
.8 zdump
.8 zic
.8 $(DESTDIR
)$(MANDIR
)/man8
/.
363 INSTALL
: ALL
install date
.1
364 -mkdir
$(DESTDIR
)$(TOPDIR
) $(DESTDIR
)$(BINDIR
)
365 cp date
$(DESTDIR
)$(BINDIR
)/.
366 -mkdir
$(DESTDIR
)$(TOPDIR
) $(DESTDIR
)$(MANDIR
) \
367 $(DESTDIR
)$(MANDIR
)/man1
368 -rm -f
$(DESTDIR
)$(MANDIR
)/man1
/date
.1
369 cp date
.1 $(DESTDIR
)$(MANDIR
)/man1
/.
372 (echo
'static char const PKGVERSION[]="($(PACKAGE)) ";' && \
373 echo
'static char const TZVERSION[]="$(VERSION)";' && \
374 echo
'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";') >$@
377 $(CC
) -o
$@
$(CFLAGS
) $(LDFLAGS
) $(TZDOBJS
) $(LDLIBS
)
379 zic
: $(TZCOBJS
) yearistype
380 $(CC
) -o
$@
$(CFLAGS
) $(LDFLAGS
) $(TZCOBJS
) $(LDLIBS
)
382 yearistype
: yearistype.sh
383 cp yearistype.sh yearistype
386 leapseconds
: leapseconds.awk leap-seconds.list
387 $(AWK
) -f leapseconds.awk leap-seconds.list
>$@
389 posix_only
: zic
$(TDATA
)
390 $(ZIC
) -y
$(YEARISTYPE
) -d
$(DESTDIR
)$(TZDIR
) \
391 -L
/dev
/null
$(TDATA
)
393 right_only
: zic leapseconds
$(TDATA
)
394 $(ZIC
) -y
$(YEARISTYPE
) -d
$(DESTDIR
)$(TZDIR
) \
395 -L leapseconds
$(TDATA
)
397 # In earlier versions of this makefile, the other two directories were
398 # subdirectories of $(TZDIR). However, this led to configuration errors.
399 # For example, with posix_right under the earlier scheme,
400 # TZ='right/Australia/Adelaide' got you localtime with leap seconds,
401 # but gmtime without leap seconds, which led to problems with applications
402 # like sendmail that subtract gmtime from localtime.
403 # Therefore, the other two directories are now siblings of $(TZDIR).
404 # You must replace all of $(TZDIR) to switch from not using leap seconds
405 # to using them, or vice versa.
406 right_posix
: right_only leapseconds
407 rm -fr
$(DESTDIR
)$(TZDIR
)-leaps
408 ln
-s
$(TZDIR_BASENAME
) $(DESTDIR
)$(TZDIR
)-leaps || \
409 $(ZIC
) -y
$(YEARISTYPE
) -d
$(DESTDIR
)$(TZDIR
)-leaps \
410 -L leapseconds
$(TDATA
)
411 $(ZIC
) -y
$(YEARISTYPE
) -d
$(DESTDIR
)$(TZDIR
)-posix \
412 -L
/dev
/null
$(TDATA
)
414 posix_right
: posix_only leapseconds
415 rm -fr
$(DESTDIR
)$(TZDIR
)-posix
416 ln
-s
$(TZDIR_BASENAME
) $(DESTDIR
)$(TZDIR
)-posix || \
417 $(ZIC
) -y
$(YEARISTYPE
) -d
$(DESTDIR
)$(TZDIR
)-posix \
418 -L
/dev
/null
$(TDATA
)
419 $(ZIC
) -y
$(YEARISTYPE
) -d
$(DESTDIR
)$(TZDIR
)-leaps \
420 -L leapseconds
$(TDATA
)
424 $(DESTDIR
)$(TZLIB
): $(LIBOBJS
)
425 -mkdir
-p
$(DESTDIR
)$(TOPDIR
) $(DESTDIR
)$(LIBDIR
)
427 if
[ -x
/usr
/ucb
/ranlib
] ||
[ -x
/usr
/bin
/ranlib
]; \
431 $(CC
) -o
$@
$(CFLAGS
) $(LDFLAGS
) $(DATEOBJS
) $(LDLIBS
)
433 tzselect
: tzselect.ksh
435 -e
's|#!/bin/bash|#!$(KSHELL)|g' \
436 -e
's|AWK=[^}]*|AWK=$(AWK)|g' \
437 -e
's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
438 -e
's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
439 -e
's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
440 -e
's|\(TZVERSION\)=.*|\1=$(VERSION)|' \
444 check: check_character_set check_tables check_web
446 check_character_set
: $(ENCHILADA
)
447 sharp
='#'; ! grep
-n
$(INVALID_CHAR
) $(ENCHILADA
)
449 check_tables
: checktab.awk
$(PRIMARY_YDATA
)
450 $(AWK
) -f checktab.awk
$(PRIMARY_YDATA
)
452 check_web
: $(WEB_PAGES
)
453 $(VALIDATE_ENV
) $(VALIDATE
) $(VALIDATE_FLAGS
) $(WEB_PAGES
)
456 rm -f core
*.o
*.out \
457 date leapseconds tzselect version.h zdump zic yearistype
461 maintainer-clean
: clean
462 @echo
'This command is intended for maintainers to use; it'
463 @echo
'deletes files that may need special tools to rebuild.'
464 rm -f
*.
[1-8].txt
*.asc
*.
tar.gz
469 public
: check check_public check_time_t_alternatives \
470 set-timestamps tarballs signatures
472 # Set the time stamps to those of the git repository, if available,
473 # and if the files have not changed since then.
474 # This uses GNU 'touch' syntax 'touch -d@N FILE',
475 # where N is the number of seconds since 1970.
476 # If git or GNU 'touch' is absent, do nothing.
478 -TZ
=UTC0
&& export TZ
&& files
=`git ls-files` && \
479 touch
-d @
1 test.out
&& rm -f
test.out
&& \
480 for file in
$$files; do \
481 test -z
"`git diff --name-only $$file`" || continue
; \
482 cmd
="touch -d @`git log -1 --format='format:%ct' $$file \
488 # The zics below ensure that each data file can stand on its own.
489 # We also do an all-files run to catch links to links.
491 check_public
: $(ENCHILADA
)
492 make maintainer-clean
493 make
"CFLAGS=$(GCC_DEBUG_FLAGS)"
495 for i in
$(TDATA
) ; do \
496 $(zic
) -v
-d tzpublic
$$i 2>&1 || exit
; \
498 $(zic
) -v
-d tzpublic
$(TDATA
)
501 # Check that the code works under various alternative
502 # implementations of time_t.
503 check_time_t_alternatives
:
505 zones
=`$(AWK) '/^[^#]/ { print $$3 }' <zone.tab` && \
506 for type in
$(TIME_T_ALTERNATIVES
); do \
507 mkdir tzpublic
/$$type && \
509 make TOPDIR
=`pwd`/tzpublic
/$$type \
510 CFLAGS
='$(CFLAGS) -Dtime_tz='"'$$type'" \
512 diff
-qr tzpublic
/int64_t
/etc
/zoneinfo tzpublic
/$$type/etc
/zoneinfo
&& \
514 int32_t
) range
=-2147483648,2147483647;; \
515 uint32_t
) range
=0,4294967296;; \
516 int64_t
) continue
;; \
517 *u
*) range
=0,10000000000;; \
518 *) range
=-10000000000,10000000000;; \
520 echo checking
$$type zones ...
&& \
521 tzpublic
/int64_t
/etc
/zdump
-V
-t
$$range $$zones \
522 >tzpublic
/int64_t.out
&& \
523 tzpublic
/$$type/etc
/zdump
-V
-t
$$range $$zones \
524 >tzpublic
/$$type.out
&& \
525 diff
-u tzpublic
/int64_t.out tzpublic
/$$type.out \
530 tarballs
: tzcode
$(VERSION
).
tar.gz tzdata
$(VERSION
).
tar.gz
532 tzcode
$(VERSION
).
tar.gz
: $(COMMON
) $(DOCS
) $(SOURCES
) $(MISC
)
533 for i in
*.
[1-8] ; do \
534 LC_ALL
=C sh workman.sh
$$i > $$i.txt
&& \
535 touch
-r
$$i $$i.txt || exit
; \
537 LC_ALL
=C
&& export LC_ALL
&& \
538 tar $(TARFLAGS
) -cf
- \
539 $(COMMON
) $(DOCS
) $(SOURCES
) $(MISC
) *.
[1-8].txt | \
540 gzip
$(GZIPFLAGS
) > $@
542 tzdata
$(VERSION
).
tar.gz
: $(COMMON
) $(DATA
)
543 LC_ALL
=C
&& export LC_ALL
&& \
544 tar $(TARFLAGS
) -cf
- $(COMMON
) $(DATA
) | \
545 gzip
$(GZIPFLAGS
) > $@
547 signatures
: tzcode
$(VERSION
).
tar.gz.asc tzdata
$(VERSION
).
tar.gz.asc
549 tzcode
$(VERSION
).
tar.gz.asc
: tzcode
$(VERSION
).
tar.gz
550 gpg
--armor
--detach-sign
$?
552 tzdata
$(VERSION
).
tar.gz.asc
: tzdata
$(VERSION
).
tar.gz
553 gpg
--armor
--detach-sign
$?
557 for i in
"long long" unsigned
; \
559 make CFLAGS
="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \
560 .
/zdump
-v Europe
/Rome
; \
565 @
$(AWK
) '/^Zone/ { print $$2 } /^Link/ { print $$3 }' $(TDATA
)
567 asctime.o
: private.h tzfile.h
569 difftime.o
: private.h
571 localtime.o
: private.h tzfile.h
575 zic.o
: private.h tzfile.h version.h