Deleted Added
full compact
Makefile (2522) Makefile (2747)
1# @(#)Makefile 8.1 (Berkeley) 6/8/93
1# $Id$
2
2
3# Change the line below for your time zone (after finding the zone you want in
4# the time zone files, or adding it to a time zone file).
5# Alternately, if you discover you've got the wrong time zone, you can just
6# zic -l rightzone
3NOBIN=
4CLEANFILES+= yearistype
7
5
8LOCALTIME= US/Pacific
6.if defined(LEAPSECONDS)
7LEAPFILE= leapseconds
8.else
9LEAPFILE= /dev/null
10.endif
9
11
10# If you want something other than Eastern United States time as a template
11# for handling POSIX-style time zone environment variables,
12# change the line below (after finding the zone you want in the
13# time zone files, or adding it to a time zone file).
14# Alternately, if you discover you've got the wrong time zone, you can just
15# zic -p rightzone
12TZFILES= africa antarctica asia australasia etcetera europe \
13 factory northamerica pacificnew southamerica systemv
14POSIXRULES= America/New_York
16
15
17POSIXRULES= US/Pacific
16.if defined(OLDTIMEZONES)
17TZFILES+= backward
18.endif
18
19
19# Use an absolute path name for TZDIR unless you're just testing the software.
20.if exists(${.CURDIR}/obj/.)
21YEARISTYPE=${.CURDIR}/obj/yearistype
22.else
23YEARISTYPE=${.CURDIR}/yearistype
24.endif
20
25
21TZDIR= ${DESTDIR}/usr/share/zoneinfo
26all: yearistype
27depend:
22
28
23# If you always want time values interpreted as "seconds since the epoch
24# (not counting leap seconds)", use
25# REDO= posix_only
26# below. If you always want right time values interpreted as "seconds since
27# the epoch" (counting leap seconds)", use
28# REDO= right_only
29# below. If you want both sets of data available, with leap seconds not
30# counted normally, use
31# REDO= posix_right
32# below. If you want both sets of data available, with leap seconds counted
33# normally, use
34# REDO= right_posix
35# below.
29yearistype: yearistype.sh
30 cp ${.CURDIR}/yearistype.sh yearistype
31 chmod +x yearistype
36
32
37REDO= posix_right
33afterinstall: yearistype
34 umask 022; cd ${.CURDIR}; \
35 zic -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
36 -L ${LEAPFILE} -y ${YEARISTYPE} ${TZFILES}
37 chown -R bin.bin ${DESTDIR}/usr/share/zoneinfo/*
38
38
39# If you're running on a System V-style system and don't want lint grief,
40# add
41# -DUSG
42# to the end of the "CFLAGS=" line.
43#
44# If you're running on a system where "strchr" is known as "index",
45# (for example, a 4.[012]BSD system), add
46# -Dstrchr=index
47# to the end of the "CFLAGS=" line.
48#
49# If you're running on a system with a "mkdir" function, feel free to add
50# -Demkdir=mkdir
51# to the end of the "CFLAGS=" line
52#
53# If you want to use System V compatibility code, add
54# -DUSG_COMPAT
55# to the end of the "CFLAGS=" line.
56#
57# If your system has a "GMT offset" field in its "struct tm"s
58# (or if you decide to add such a field in your system's "time.h" file),
59# add the name to a define such as
60# -DTM_GMTOFF=tm_gmtoff
61# or
62# -DTM_GMTOFF=_tm_gmtoff
63# to the end of the "CFLAGS=" line.
64#
65# If your system has a "GMT offset" field in its "struct tm"s
66# (or if you decide to add such a field in your system's "time.h" file),
67# add the name to a define such as
68# -DTM_ZONE=tm_zone
69# or
70# -DTM_ZONE=_tm_zone
71# to the end of the "CFLAGS=" line.
72#
73# If you want code inspired by certain emerging standards, add
74# -DSTD_INSPIRED
75# to the end of the "CFLAGS=" line.
76#
77# If you want Source Code Control System ID's left out of object modules, add
78# -DNOID
79# to the end of the "CFLAGS=" line.
80#
81# If you'll never want to handle solar-time-based time zones, add
82# -DNOSOLAR
83# to the end of the "CFLAGS=" line
84# (and comment out the "SDATA=" line below).
85#
86# If you want to allocate state structures in localtime, add
87# -DALL_STATE
88# to the end of the "CFLAGS=" line.
89#
90# If you want an "altzone" variable (a la System V Release 3.1), add
91# -DALTZONE
92# to the end of the "CFLAGS=" line.
93#
94# If you want a "gtime" function (a la MACH), add
95# -DCMUCS
96# to the end of the "CFLAGS=" line
97
98.PATH: ${.CURDIR}/datfiles
99CFLAGS= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone
100PROG= zic
101MAN5= tzfile.5
102
103SRCS= zic.c scheck.c ialloc.c
104
105YDATA= africa antarctica asia australasia europe northamerica \
106 southamerica pacificnew etcetera factory
107NDATA= systemv
108#SDATA= solar87 solar88 solar89
109TDATA= ${YDATA} ${NDATA} ${SDATA}
110DATA= ${YDATA} ${NDATA} ${SDATA} leapseconds
111USNO= usno1988 usno1989
112
113posix_only: ${TDATA}
114 (cd ${.CURDIR}/datfiles; \
115 ../obj/zic -d ${TZDIR} -L /dev/null ${TDATA})
116
117right_only: leapseconds ${TDATA}
118 (cd ${.CURDIR}/datfiles; \
119 ../obj/zic -d ${TZDIR} -L leapseconds ${TDATA})
120
121other_two: leapseconds ${TDATA}
122 (cd ${.CURDIR}/datfiles; \
123 ../obj/zic -d ${TZDIR}/posix -L /dev/null ${TDATA})
124 (cd ${.CURDIR}/datfiles; \
125 ../obj/zic -d ${TZDIR}/right -L leapseconds ${TDATA})
126
127posix_right: posix_only other_two
128
129right_posix: right_only other_two
130
131install: maninstall ${DATA} ${REDO}
132 (cd ${.CURDIR}/datfiles && ../obj/zic -d ${TZDIR} -p ${POSIXRULES})
133 chown -R ${BINOWN}.${BINGRP} ${TZDIR}
134 chmod -R a-w ${TZDIR}
135
136.include <bsd.prog.mk>
39.include <bsd.prog.mk>