1999-08-21 10:30:11 +04:00
|
|
|
# $NetBSD: Makefile,v 1.22 1999/08/21 06:30:12 simonb Exp $
|
1997-06-18 05:56:03 +04:00
|
|
|
|
1999-02-13 05:54:17 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
MKOBJ=no
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
# Change the line below for your time zone (after finding the zone you want in
|
|
|
|
# the time zone files, or adding it to a time zone file).
|
|
|
|
# Alternately, if you discover you've got the wrong time zone, you can just
|
|
|
|
# zic -l rightzone
|
|
|
|
|
1993-05-25 13:18:44 +04:00
|
|
|
# This line has been moved to /usr/src/etc/Makefile
|
1993-03-21 12:45:37 +03:00
|
|
|
LOCALTIME= US/Pacific
|
|
|
|
|
|
|
|
# If you want something other than Eastern United States time as a template
|
|
|
|
# for handling POSIX-style time zone environment variables,
|
|
|
|
# change the line below (after finding the zone you want in the
|
|
|
|
# time zone files, or adding it to a time zone file).
|
|
|
|
# Alternately, if you discover you've got the wrong time zone, you can just
|
|
|
|
# zic -p rightzone
|
|
|
|
|
|
|
|
POSIXRULES= US/Pacific
|
|
|
|
|
|
|
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
|
|
|
|
|
|
|
TZDIR= ${DESTDIR}/usr/share/zoneinfo
|
|
|
|
|
|
|
|
# If you always want time values interpreted as "seconds since the epoch
|
|
|
|
# (not counting leap seconds)", use
|
|
|
|
# REDO= posix_only
|
|
|
|
# below. If you always want right time values interpreted as "seconds since
|
|
|
|
# the epoch" (counting leap seconds)", use
|
|
|
|
# REDO= right_only
|
|
|
|
# below. If you want both sets of data available, with leap seconds not
|
|
|
|
# counted normally, use
|
|
|
|
# REDO= posix_right
|
|
|
|
# below. If you want both sets of data available, with leap seconds counted
|
|
|
|
# normally, use
|
|
|
|
# REDO= right_posix
|
|
|
|
# below.
|
|
|
|
|
1993-09-02 05:10:03 +04:00
|
|
|
REDO= posix_only
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1995-03-11 04:27:43 +03:00
|
|
|
# Since "." may not be in PATH...
|
1997-06-18 05:27:43 +04:00
|
|
|
YEARISTYPE= "sh ${.CURDIR}/yearistype.sh"
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1995-03-11 04:27:43 +03:00
|
|
|
YDATA= africa antarctica asia australasia \
|
|
|
|
europe northamerica southamerica pacificnew etcetera factory \
|
|
|
|
backward
|
|
|
|
NDATA= systemv
|
|
|
|
SDATA= solar87 solar88 solar89
|
|
|
|
TDATA= $(YDATA) $(NDATA) $(SDATA)
|
|
|
|
DATA= $(YDATA) $(NDATA) $(SDATA) leapseconds # yearistype.sh
|
|
|
|
USNO= usno1988 usno1989
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1995-03-11 04:27:43 +03:00
|
|
|
ZIC=zic
|
1993-12-28 15:03:24 +03:00
|
|
|
|
1997-05-07 13:43:32 +04:00
|
|
|
.PHONY: posix_only
|
1993-03-21 12:45:37 +03:00
|
|
|
posix_only: ${TDATA}
|
1997-06-18 05:56:03 +04:00
|
|
|
${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -L /dev/null ${TDATA}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1997-05-07 13:43:32 +04:00
|
|
|
.PHONY: right_only
|
1993-03-21 12:45:37 +03:00
|
|
|
right_only: leapseconds ${TDATA}
|
1997-06-18 05:56:03 +04:00
|
|
|
${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -L leapseconds ${TDATA}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1997-05-07 13:43:32 +04:00
|
|
|
.PHONY: other_two
|
1993-03-21 12:45:37 +03:00
|
|
|
other_two: leapseconds ${TDATA}
|
1997-06-18 05:56:03 +04:00
|
|
|
${ZIC} -y ${YEARISTYPE} -d ${TZDIR}/posix -L /dev/null ${TDATA}
|
|
|
|
${ZIC} -y ${YEARISTYPE} -d ${TZDIR}/right -L leapseconds ${TDATA}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1997-05-07 13:43:32 +04:00
|
|
|
.PHONY: posix_right
|
1993-03-21 12:45:37 +03:00
|
|
|
posix_right: posix_only other_two
|
|
|
|
|
1997-05-07 13:43:32 +04:00
|
|
|
.PHONY: right_posix
|
1993-03-21 12:45:37 +03:00
|
|
|
right_posix: right_only other_two
|
|
|
|
|
1999-02-13 05:54:17 +03:00
|
|
|
.if ${MKSHARE} != "no"
|
1997-05-07 20:12:00 +04:00
|
|
|
afterinstall: ${DATA} ${REDO}
|
1997-06-18 05:56:03 +04:00
|
|
|
${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -p ${POSIXRULES}
|
1999-08-21 10:30:11 +04:00
|
|
|
.if !defined(UNPRIVILEGED)
|
1994-02-10 07:42:42 +03:00
|
|
|
chown -R ${BINOWN}:${BINGRP} ${TZDIR}
|
1999-08-21 10:30:11 +04:00
|
|
|
.endif
|
1995-04-22 16:10:17 +04:00
|
|
|
find ${TZDIR} -type f | xargs chmod a=r
|
1999-08-21 10:30:11 +04:00
|
|
|
find ${TZDIR} -type d | xargs chmod u=rwX,go=rX
|
1998-09-27 21:22:03 +04:00
|
|
|
.else
|
|
|
|
afterinstall:
|
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|