Makefile revision 1.14 1 # <pre>
2 # This file is in the public domain, so clarified as of
3 # 2009-05-17 by Arthur David Olson.
4
5 # Package name for the code distribution.
6 PACKAGE= tzcode
7
8 # Version numbers of the code and data distributions.
9 VERSION= 2013d
10
11 # Email address for bug reports.
12 BUGEMAIL= tz@iana.org
13
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
17 # zic -l rightzone
18 # to correct things.
19 # Use the command
20 # make zonenames
21 # to get a list of the values you can use for LOCALTIME.
22
23 LOCALTIME= GMT
24
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 UTC offsets of standard and
32 # summer time.)
33 # Alternately, if you discover you've got the wrong time zone, you can just
34 # zic -p rightzone
35 # to correct things.
36 # Use the command
37 # make zonenames
38 # to get a list of the values you can use for POSIXRULES.
39 # If you want POSIX compatibility, use "America/New_York".
40
41 POSIXRULES= America/New_York
42
43 # Also see TZDEFRULESTRING below, which takes effect only
44 # if the time zone files cannot be accessed.
45
46 # Everything gets put in subdirectories of. . .
47
48 TOPDIR= /usr/local
49
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.
53
54 TZDIR= $(TOPDIR)/etc/zoneinfo
55
56 # Types to try, as an alternative to time_t. int64_t should be first.
57 TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
58
59 # The "tzselect", "zic", and "zdump" commands get installed in. . .
60
61 ETCDIR= $(TOPDIR)/etc
62
63 # If you "make INSTALL", the "date" command gets installed in. . .
64
65 BINDIR= $(TOPDIR)/bin
66
67 # Manual pages go in subdirectories of. . .
68
69 MANDIR= $(TOPDIR)/man
70
71 # Library functions are put in an archive in LIBDIR.
72
73 LIBDIR= $(TOPDIR)/lib
74 TZLIB= $(LIBDIR)/libtz.a
75
76 # If you always want time values interpreted as "seconds since the epoch
77 # (not counting leap seconds)", use
78 # REDO= posix_only
79 # below. If you always want right time values interpreted as "seconds since
80 # the epoch" (counting leap seconds)", use
81 # REDO= right_only
82 # below. If you want both sets of data available, with leap seconds not
83 # counted normally, use
84 # REDO= posix_right
85 # below. If you want both sets of data available, with leap seconds counted
86 # normally, use
87 # REDO= right_posix
88 # below.
89 # POSIX mandates that leap seconds not be counted; for compatibility with it,
90 # use either "posix_only" or "posix_right".
91
92 REDO= posix_right
93
94 # Since "." may not be in PATH...
95
96 YEARISTYPE= ./yearistype
97
98 # Non-default libraries needed to link.
99 # Add -lintl if you want to use `gettext' on Solaris.
100 LDLIBS=
101
102 # Add the following to the end of the "CFLAGS=" line as needed.
103 # -DHAVE_ADJTIME=0 if `adjtime' does not exist (SVR0?)
104 # -DHAVE_DOS_FILE_NAMES if file names have drive specifiers etc. (MS-DOS)
105 # -DHAVE_GETTEXT=1 if `gettext' works (GNU, Linux, Solaris); also see LDLIBS
106 # -DHAVE_INCOMPATIBLE_CTIME_R=1 if your system's time.h declares
107 # ctime_r and asctime_r incompatibly with the POSIX standard (Solaris 8).
108 # -DHAVE_INTTYPES_H=1 if you have a pre-C99 compiler with "inttypes.h"
109 # -DHAVE_SETTIMEOFDAY=0 if settimeofday does not exist (SVR0?)
110 # -DHAVE_SETTIMEOFDAY=1 if settimeofday has just 1 arg (SVR4)
111 # -DHAVE_SETTIMEOFDAY=2 if settimeofday uses 2nd arg (4.3BSD)
112 # -DHAVE_SETTIMEOFDAY=3 if settimeofday ignores 2nd arg (4.4BSD)
113 # -DHAVE_STDINT_H=1 if you have a pre-C99 compiler with "stdint.h"
114 # -DHAVE_SYMLINK=0 if your system lacks the symlink function
115 # -DHAVE_SYS_STAT_H=0 if your compiler lacks a "sys/stat.h"
116 # -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h"
117 # -DHAVE_UNISTD_H=0 if your compiler lacks a "unistd.h" (Microsoft C++ 7?)
118 # -DHAVE_UTMPX_H=1 if your compiler has a "utmpx.h"
119 # -DLOCALE_HOME=\"path\" if locales are in "path", not "/usr/lib/locale"
120 # -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU=1
121 # if you do not want run time warnings about formats that may cause
122 # year 2000 grief
123 # -DTIME_T_FLOATING=1 if your time_t (or time_tz) is floating point
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 \
136 -Wall -Wextra \
137 -Wbad-function-cast -Wcast-align -Wcast-qual \
138 -Wformat=2 -Winit-self \
139 -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes \
140 -Wnested-externs \
141 -Wno-format-nonliteral -Wno-sign-compare -Wno-sign-conversion \
142 -Wno-type-limits \
143 -Wno-unused-parameter -Woverlength-strings -Wpointer-arith \
144 -Wshadow -Wstrict-prototypes -Wsuggest-attribute=const \
145 -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wtrampolines \
146 -Wwrite-strings
147 #
148 # If you want to use System V compatibility code, add
149 # -DUSG_COMPAT
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.
153 #
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
158 # or
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.
165 #
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
169 # -DTM_ZONE=tm_zone
170 # or
171 # -DTM_ZONE=_tm_zone
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.
177 #
178 # If you want functions that were inspired by early versions of X3J11's work,
179 # add
180 # -DSTD_INSPIRED
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)
186 # to be used.
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 UTC (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.
199 #
200 # If you'll never want to handle solar-time-based time zones, add
201 # -DNOSOLAR
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.
207 #
208 # If you want to allocate state structures in localtime, add
209 # -DALL_STATE
210 # to the end of the "CFLAGS=" line. Storage is obtained by calling malloc.
211 #
212 # If you want an "altzone" variable (a la System V Release 3.1), add
213 # -DALTZONE
214 # to the end of the "CFLAGS=" line.
215 # This variable is not described in X3J11's work.
216 #
217 # If you want a "gtime" function (a la MACH), add
218 # -DCMUCS
219 # to the end of the "CFLAGS=" line
220 # This function is not described in X3J11's work.
221 #
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
225 # -DPCTS
226 # to the end of the "CFLAGS=" line.
227 #
228 # If you want strict compliance with XPG4 as of 1994-04-09, add
229 # -DXPG4_1994_04_09
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.
234
235 CFLAGS=
236
237 # Linker flags. Default to $(LFLAGS) for backwards compatibility
238 # to tzcode2012h and earlier.
239
240 LDFLAGS= $(LFLAGS)
241
242 zic= ./zic
243 ZIC= $(zic) $(ZFLAGS)
244
245 # The name of a Posix-compliant `awk' on your system.
246 AWK= awk
247
248 # The full path name of a Posix-compliant shell that supports the Korn shell's
249 # 'select' statement, as an extension. These days, Bash is the most popular.
250 KSHELL= /bin/bash
251
252 # The path where SGML DTDs are kept.
253 # The default is appropriate for Ubuntu 12.10.
254 SGML_TOPDIR= /usr
255 SGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd
256 SGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224
257
258 # The catalog file(s) to use when validating.
259 SGML_CATALOG_FILES= HTML4.cat
260
261 # The name, arguments and environment of a program to validate your web pages.
262 # See <http://www.jclark.com/sp/> for a validator, and
263 # <http://validator.w3.org/source/> for a validation library.
264 VALIDATE = nsgmls
265 VALIDATE_FLAGS = -s -B -wall -wno-unused-param
266 VALIDATE_ENV = \
267 SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \
268 SGML_SEARCH_PATH=$(SGML_SEARCH_PATH) \
269 SP_CHARSET_FIXED=YES \
270 SP_ENCODING=UTF-8
271
272 # INVALID_CHAR is a regular expression that matches invalid characters in
273 # distributed files. For now, stick to a safe subset of ASCII.
274 # The caller must set the shell variable 'sharp' to the character '#',
275 # since Makefile macros cannot contain '#'.
276 # TAB_CHAR is a single tab character, in single quotes.
277 TAB_CHAR= ' '
278 INVALID_CHAR1= $(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@'
279 INVALID_CHAR2= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`'
280 INVALID_CHAR3= 'abcdefghijklmnopqrstuvwxyz{|}~'
281 INVALID_CHAR= '[^]'$(INVALID_CHAR1)$(INVALID_CHAR2)$(INVALID_CHAR3)'-]'
282
283 # Flags to give 'tar' when making a distribution.
284 # Try to use flags appropriate for GNU tar.
285 GNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w
286 TARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \
287 then echo $(GNUTARFLAGS); \
288 else :; \
289 fi`
290
291 # Flags to give 'gzip' when making a distribution.
292 GZIPFLAGS= -9n
293
294 ###############################################################################
295
296 cc= cc
297 CC= $(cc) -DTZDIR=\"$(TZDIR)\"
298
299 TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
300 TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
301 TZDSRCS= zdump.c localtime.c ialloc.c
302 TZDOBJS= zdump.o localtime.o ialloc.o
303 DATESRCS= date.c localtime.c strftime.c asctime.c
304 DATEOBJS= date.o localtime.o strftime.o asctime.o
305 LIBSRCS= localtime.c asctime.c difftime.c
306 LIBOBJS= localtime.o asctime.o difftime.o
307 HEADERS= tzfile.h private.h
308 NONLIBSRCS= zic.c zdump.c scheck.c ialloc.c
309 NEWUCBSRCS= date.c strftime.c
310 SOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) tzselect.ksh
311 MANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \
312 tzfile.5 tzselect.8 zic.8 zdump.8
313 COMMON= Makefile
314 DOCS= README Theory $(MANS) date.1
315 PRIMARY_YDATA= africa antarctica asia australasia \
316 europe northamerica southamerica
317 YDATA= $(PRIMARY_YDATA) pacificnew etcetera backward
318 NDATA= systemv factory
319 SDATA= solar87 solar88 solar89
320 TDATA= $(YDATA) $(NDATA) $(SDATA)
321 TABDATA= iso3166.tab zone.tab
322 DATA= $(YDATA) $(NDATA) $(SDATA) $(TABDATA) leapseconds yearistype.sh
323 WEB_PAGES= tz-art.htm tz-link.htm
324 MISC= usno1988 usno1989 usno1989a usno1995 usno1997 usno1998 \
325 $(WEB_PAGES) checktab.awk workman.sh \
326 zoneinfo2tdf.pl
327 ENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC)
328
329 # And for the benefit of csh users on systems that assume the user
330 # shell should be used to handle commands in Makefiles. . .
331
332 SHELL= /bin/sh
333
334 all: tzselect zic zdump $(LIBOBJS)
335
336 ALL: all date
337
338 install: all $(DATA) $(REDO) $(TZLIB) $(MANS) $(TABDATA)
339 $(ZIC) -y $(YEARISTYPE) \
340 -d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
341 -rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab
342 cp iso3166.tab zone.tab $(TZDIR)/.
343 -mkdir $(TOPDIR) $(ETCDIR)
344 cp tzselect zic zdump $(ETCDIR)/.
345 -mkdir $(TOPDIR) $(MANDIR) \
346 $(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8
347 -rm -f $(MANDIR)/man3/newctime.3 \
348 $(MANDIR)/man3/newtzset.3 \
349 $(MANDIR)/man5/tzfile.5 \
350 $(MANDIR)/man8/tzselect.8 \
351 $(MANDIR)/man8/zdump.8 \
352 $(MANDIR)/man8/zic.8
353 cp newctime.3 newtzset.3 $(MANDIR)/man3/.
354 cp tzfile.5 $(MANDIR)/man5/.
355 cp tzselect.8 zdump.8 zic.8 $(MANDIR)/man8/.
356
357 INSTALL: ALL install date.1
358 -mkdir $(TOPDIR) $(BINDIR)
359 cp date $(BINDIR)/.
360 -mkdir $(TOPDIR) $(MANDIR) $(MANDIR)/man1
361 -rm -f $(MANDIR)/man1/date.1
362 cp date.1 $(MANDIR)/man1/.
363
364 version.h:
365 (echo 'static char const PKGVERSION[]="($(PACKAGE)) ";' && \
366 echo 'static char const TZVERSION[]="$(VERSION)";' && \
367 echo 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";') >$@
368
369 zdump: $(TZDOBJS)
370 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS)
371
372 zic: $(TZCOBJS) yearistype
373 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS)
374
375 yearistype: yearistype.sh
376 cp yearistype.sh yearistype
377 chmod +x yearistype
378
379 posix_only: zic $(TDATA)
380 $(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L /dev/null $(TDATA)
381
382 right_only: zic leapseconds $(TDATA)
383 $(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L leapseconds $(TDATA)
384
385 # In earlier versions of this makefile, the other two directories were
386 # subdirectories of $(TZDIR). However, this led to configuration errors.
387 # For example, with posix_right under the earlier scheme,
388 # TZ='right/Australia/Adelaide' got you localtime with leap seconds,
389 # but gmtime without leap seconds, which led to problems with applications
390 # like sendmail that subtract gmtime from localtime.
391 # Therefore, the other two directories are now siblings of $(TZDIR).
392 # You must replace all of $(TZDIR) to switch from not using leap seconds
393 # to using them, or vice versa.
394 other_two: zic leapseconds $(TDATA)
395 $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
396 $(ZIC) -y $(YEARISTYPE) \
397 -d $(TZDIR)-leaps -L leapseconds $(TDATA)
398
399 posix_right: posix_only other_two
400
401 right_posix: right_only other_two
402
403 zones: $(REDO)
404
405 $(TZLIB): $(LIBOBJS)
406 -mkdir $(TOPDIR) $(LIBDIR)
407 ar ru $@ $(LIBOBJS)
408 if [ -x /usr/ucb/ranlib ] || [ -x /usr/bin/ranlib ]; \
409 then ranlib $@ ; fi
410
411 date: $(DATEOBJS)
412 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS)
413
414 tzselect: tzselect.ksh
415 sed \
416 -e 's|#!/bin/bash|#!$(KSHELL)|g' \
417 -e 's|AWK=[^}]*|AWK=$(AWK)|g' \
418 -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
419 -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
420 -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
421 -e 's|\(TZVERSION\)=.*|\1=$(VERSION)|' \
422 <$? >$@
423 chmod +x $@
424
425 check: check_character_set check_tables check_web
426
427 check_character_set: $(ENCHILADA)
428 sharp='#'; ! grep -n $(INVALID_CHAR) $(ENCHILADA)
429
430 check_tables: checktab.awk $(PRIMARY_YDATA)
431 $(AWK) -f checktab.awk $(PRIMARY_YDATA)
432
433 check_web: $(WEB_PAGES)
434 $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) $(WEB_PAGES)
435
436 clean_misc:
437 rm -f core *.o *.out \
438 date tzselect version.h zdump zic yearistype
439 clean: clean_misc
440 rm -f -r tzpublic
441
442 maintainer-clean: clean
443 @echo 'This command is intended for maintainers to use; it'
444 @echo 'deletes files that may need special tools to rebuild.'
445 rm -f *.[1-8].txt *.asc *.tar.gz
446
447 names:
448 @echo $(ENCHILADA)
449
450 public: check check_public check_time_t_alternatives \
451 set-timestamps tarballs signatures
452
453 # Set the time stamps to those of the git repository, if available,
454 # and if the files have not changed since then.
455 # This uses GNU 'touch' syntax 'touch -d@N FILE',
456 # where N is the number of seconds since 1970.
457 # If git or GNU 'touch' is absent, do nothing.
458 set-timestamps:
459 -TZ=UTC0 && export TZ && files=`git ls-files` && \
460 touch -d @1 test.out && rm -f test.out && \
461 for file in $$files; do \
462 test -z "`git diff --name-only $$file`" || continue; \
463 cmd="touch -d @`git log -1 --format='format:%ct' $$file \
464 ` $$file" && \
465 echo "$$cmd" && \
466 $$cmd || exit; \
467 done
468
469 # The zics below ensure that each data file can stand on its own.
470 # We also do an all-files run to catch links to links.
471
472 check_public: $(ENCHILADA)
473 make maintainer-clean
474 make "CFLAGS=$(GCC_DEBUG_FLAGS)"
475 mkdir tzpublic
476 for i in $(TDATA) ; do \
477 $(zic) -v -d tzpublic $$i 2>&1 || exit; \
478 done
479 $(zic) -v -d tzpublic $(TDATA)
480 rm -f -r tzpublic
481
482 # Check that the code works under various alternative
483 # implementations of time_t.
484 check_time_t_alternatives:
485 mkdir tzpublic
486 zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone.tab` && \
487 for type in $(TIME_T_ALTERNATIVES); do \
488 mkdir tzpublic/$$type && \
489 make clean_misc && \
490 make TOPDIR=`pwd`/tzpublic/$$type \
491 CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \
492 install && \
493 diff -qr tzpublic/int64_t/etc/zoneinfo tzpublic/$$type/etc/zoneinfo && \
494 case $$type in \
495 int32_t) range=-2147483648,2147483647;; \
496 uint32_t) range=0,4294967296;; \
497 int64_t) continue;; \
498 *u*) range=0,10000000000;; \
499 *) range=-10000000000,10000000000;; \
500 esac && \
501 echo checking $$type zones ... && \
502 tzpublic/int64_t/etc/zdump -V -t $$range $$zones \
503 >tzpublic/int64_t.out && \
504 tzpublic/$$type/etc/zdump -V -t $$range $$zones \
505 >tzpublic/$$type.out && \
506 diff -u tzpublic/int64_t.out tzpublic/$$type.out \
507 || exit; \
508 done
509 rm -f -r tzpublic
510
511 tarballs: tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz
512
513 tzcode$(VERSION).tar.gz: $(COMMON) $(DOCS) $(SOURCES) $(MISC)
514 for i in *.[1-8] ; do \
515 LC_ALL=C sh workman.sh $$i > $$i.txt && \
516 touch -r $$i $$i.txt || exit; \
517 done
518 LC_ALL=C && export LC_ALL && \
519 tar $(TARFLAGS) -cf - \
520 $(COMMON) $(DOCS) $(SOURCES) $(MISC) *.[1-8].txt | \
521 gzip $(GZIPFLAGS) > $@
522
523 tzdata$(VERSION).tar.gz: $(COMMON) $(DATA)
524 LC_ALL=C && export LC_ALL && \
525 tar $(TARFLAGS) -cf - $(COMMON) $(DATA) | \
526 gzip $(GZIPFLAGS) > $@
527
528 signatures: tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc
529
530 tzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz
531 gpg --armor --detach-sign $?
532
533 tzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz
534 gpg --armor --detach-sign $?
535
536 typecheck:
537 make clean
538 for i in "long long" unsigned double; \
539 do \
540 make CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \
541 ./zdump -v Europe/Rome ; \
542 make clean ; \
543 done
544
545 zonenames: $(TDATA)
546 @$(AWK) '/^Zone/ { print $$2 } /^Link/ { print $$3 }' $(TDATA)
547
548 asctime.o: private.h tzfile.h
549 date.o: private.h
550 difftime.o: private.h
551 ialloc.o: private.h
552 localtime.o: private.h tzfile.h
553 scheck.o: private.h
554 strftime.o: tzfile.h
555 zdump.o: version.h
556 zic.o: private.h tzfile.h version.h
557
558 .KEEP_STATE:
559