#!/usr/bin/make -f include ../source.mk tables = \ africa \ antarctica \ asia \ australasia \ europe \ northamerica \ southamerica \ etcetera \ factory nop: @: build: for t in $(tables); do \ /usr/sbin/zic -d tzdata-$${t}.data/usr/share/zoneinfo \ -L /dev/null -y yearistype.sh \ src/$${t} || exit $?; \ done touch $@ install: build mkdir -p tzdata-common.data/usr/share/zoneinfo cp src/iso3166.tab src/zone.tab tzdata-common.data/usr/share/zoneinfo cp -p tzdata-northamerica.data/usr/share/zoneinfo/America/New_York \ tzdata-common.data/usr/share/zoneinfo for t in $(tables); do \ grep '^Link' src/$${t} | while read type dest src etc; do \ rm -f "tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ link="$${src}" up=''; \ while [ "$${link#*/}" != "$${link}" ] && \ [ "$${link%%/*}" = "$${dest%%/*}" ]; do \ link="$${link#*/}"; \ dest="$${dest#*/}"; \ done; \ while [ "$${link#*/}" != "$${link}" ]; do \ link="$${link#*/}"; \ up="../$${up}"; \ done; \ ln -sf "$${up}$${dest}" \ "tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ done; \ done ln -sf . tzdata-common.data/usr/share/zoneinfo/posix