[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / share / zoneinfo

Annotation of src/share/zoneinfo/Makefile, Revision 1.7

1.7     ! deraadt     1: #      $OpenBSD: Makefile,v 1.6 2005/09/27 16:27:23 deraadt Exp $
1.1       deraadt     2: #      $NetBSD: Makefile,v 1.14 1995/04/22 12:10:17 cgd Exp $
                      3:
                      4: # Change the line below for your time zone (after finding the zone you want in
                      5: # the time zone files, or adding it to a time zone file).
                      6: # Alternately, if you discover you've got the wrong time zone, you can just
                      7: #      zic -l rightzone
                      8:
                      9: # This line has been moved to /usr/src/etc/Makefile
                     10: LOCALTIME=     US/Pacific
                     11:
                     12: # If you want something other than Eastern United States time as a template
                     13: # for handling POSIX-style time zone environment variables,
                     14: # change the line below (after finding the zone you want in the
                     15: # 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 -p rightzone
                     18:
                     19: POSIXRULES=    US/Pacific
                     20:
                     21: # Use an absolute path name for TZDIR unless you're just testing the software.
                     22:
                     23: TZDIR= ${DESTDIR}/usr/share/zoneinfo
                     24:
                     25: # If you always want time values interpreted as "seconds since the epoch
                     26: # (not counting leap seconds)", use
                     27: #      REDO=           posix_only
                     28: # below.  If you always want right time values interpreted as "seconds since
                     29: # the epoch" (counting leap seconds)", use
                     30: #      REDO=           right_only
                     31: # below.  If you want both sets of data available, with leap seconds not
                     32: # counted normally, use
                     33: #      REDO=           posix_right
                     34: # below.  If you want both sets of data available, with leap seconds counted
                     35: # normally, use
                     36: #      REDO=           right_posix
                     37: # below.
                     38:
1.5       millert    39: REDO=          posix_right
1.1       deraadt    40:
                     41: # Since "." may not be in PATH...
                     42: YEARISTYPE=    ${.CURDIR}/datfiles/yearistype.sh
1.2       deraadt    43: YEARISTYPECOPY=        ${.OBJDIR}/yearistypecopy
1.1       deraadt    44:
                     45: YDATA=         africa antarctica asia australasia \
                     46:                europe northamerica southamerica pacificnew etcetera factory \
                     47:                backward
                     48: NDATA=         systemv
                     49: SDATA=         solar87 solar88 solar89
                     50: TDATA=         $(YDATA) $(NDATA) $(SDATA)
1.3       millert    51: TABDATA=       iso3166.tab zone.tab
                     52: DATA=          $(YDATA) $(NDATA) $(SDATA) $(TABDATA) leapseconds # yearistype.sh
                     53: USNO=          usno1988 usno1989 usno1989a usno1995 usno1997
1.1       deraadt    54:
                     55: ZIC=zic
1.4       niklas     56:
                     57: all:   ${YEARISTYPECOPY}
1.1       deraadt    58:
1.2       deraadt    59: ${YEARISTYPECOPY}:
                     60:        cp ${YEARISTYPE} yearistypecopy
                     61:        chmod u+x yearistypecopy
                     62:
                     63: posix_only: ${TDATA} ${YEARISTYPECOPY}
1.1       deraadt    64:        (cd ${.CURDIR}/datfiles; \
1.2       deraadt    65:            ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L /dev/null ${TDATA})
1.1       deraadt    66:
1.2       deraadt    67: right_only: leapseconds ${TDATA} ${YEARISTYPECOPY}
1.1       deraadt    68:        (cd ${.CURDIR}/datfiles; \
1.2       deraadt    69:            ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L leapseconds ${TDATA})
1.1       deraadt    70:
1.2       deraadt    71: other_two: leapseconds ${TDATA} ${YEARISTYPECOPY}
1.1       deraadt    72:        (cd ${.CURDIR}/datfiles; \
1.2       deraadt    73:            ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/posix -L /dev/null ${TDATA})
1.1       deraadt    74:        (cd ${.CURDIR}/datfiles; \
1.2       deraadt    75:            ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/right -L leapseconds ${TDATA})
1.1       deraadt    76:
                     77: posix_right: posix_only other_two
                     78:
                     79: right_posix: right_only other_two
                     80:
1.2       deraadt    81: realinstall: ${DATA} ${REDO} ${YEARISTYPECOPY}
1.1       deraadt    82:        (cd ${.CURDIR}/datfiles; \
1.2       deraadt    83:            ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -p ${POSIXRULES})
1.1       deraadt    84:        chown -R ${BINOWN}:${BINGRP} ${TZDIR}
1.6       deraadt    85:        find ${TZDIR} -type f -print0 | xargs -0r chmod a=r
1.7     ! deraadt    86:        ${INSTALL} -c -o root -g wheel -m 600 ${.CURDIR}/datfiles/iso3166.tab \
        !            87:            ${DESTDIR}/usr/share/misc
        !            88:
1.2       deraadt    89:
                     90: CLEANFILES+= yearistypecopy
1.1       deraadt    91:
                     92: .PATH: ${.CURDIR}/datfiles
                     93: .include <bsd.prog.mk>