HomeFreeBSD

Fix share/zoneinfo for DIRDEPS_BUILD

Description

Fix share/zoneinfo for DIRDEPS_BUILD

The tranditional build makes multiple passes through the tree.
The DIRDEPS_BUILD visits each directory only once per architecture,
thus makefiles should be able to everything they need in a single pass.

The use of TZS!= when doing make(*install*)
only works if the directory has previously been visited to do zoneinfo
since before the zoneinfo target is run TZS will be empty.

To fix this, have the zoneinfo target capture the list of files to
zoneinfo, and install-zoneinfo use that list.
Rename that target to zonefiles - since that is now what it does.

This is more efficient - we only gather the list of zones when it is
likely to have changed, and allows the makefile to do everything in a
single pass.

Reviewed by: stevek
Differential Revision: https://reviews.freebsd.org/D42624

Details

Provenance
sjgAuthored on Nov 20 2023, 8:51 PM
Reviewer
stevek
Differential Revision
D42624: Fix share/zoneinfo for DIRDEPS_BUILD
Parents
rGfec0c3fb08cc: Add myself (akiyano) to calendar.freebsd
Branches
Unknown
Tags
Unknown