Index: zoneinfo/Makefile =================================================================== --- zoneinfo/Makefile +++ zoneinfo/Makefile @@ -92,6 +92,13 @@ install-zoneinfo: zonefiles .endif +# Mark zonefiles as .PHONY if builddir is missing to force rebuild. +# This handles the case where make clean removed builddir but meta mode +# thinks zonefiles is up to date. +.if exists(${.OBJDIR}/zonefiles) && !exists(${TZBUILDDIR}) +zonefiles: .PHONY +.endif + zonefiles: ${TDATA} mkdir -p ${TZBUILDDIR} (cd ${TZBUILDDIR}; mkdir -p ${TZBUILDSUBDIRS})