summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/zoneinfo/Makefile25
1 files changed, 16 insertions, 9 deletions
diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile
index 9a61ee46e54..93158d6edd0 100644
--- a/share/zoneinfo/Makefile
+++ b/share/zoneinfo/Makefile
@@ -39,6 +39,7 @@ REDO= posix_only
# Since "." may not be in PATH...
YEARISTYPE= ${.CURDIR}/datfiles/yearistype.sh
+YEARISTYPECOPY= ${.OBJDIR}/yearistypecopy
YDATA= africa antarctica asia australasia \
europe northamerica southamerica pacificnew etcetera factory \
@@ -51,29 +52,35 @@ USNO= usno1988 usno1989
ZIC=zic
-posix_only: ${TDATA}
+${YEARISTYPECOPY}:
+ cp ${YEARISTYPE} yearistypecopy
+ chmod u+x yearistypecopy
+
+posix_only: ${TDATA} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -L /dev/null ${TDATA})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L /dev/null ${TDATA})
-right_only: leapseconds ${TDATA}
+right_only: leapseconds ${TDATA} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -L leapseconds ${TDATA})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L leapseconds ${TDATA})
-other_two: leapseconds ${TDATA}
+other_two: leapseconds ${TDATA} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR}/posix -L /dev/null ${TDATA})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/posix -L /dev/null ${TDATA})
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR}/right -L leapseconds ${TDATA})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/right -L leapseconds ${TDATA})
posix_right: posix_only other_two
right_posix: right_only other_two
-realinstall: ${DATA} ${REDO}
+realinstall: ${DATA} ${REDO} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -p ${POSIXRULES})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -p ${POSIXRULES})
chown -R ${BINOWN}:${BINGRP} ${TZDIR}
find ${TZDIR} -type f | xargs chmod a=r
+CLEANFILES+= yearistypecopy
+
.PATH: ${.CURDIR}/datfiles
.include <bsd.prog.mk>