locales: stop hardcoding the directories in the mtree

The framework knows how to create directories and tag them properly
for a the creation of a mtree, not need to hardcode all the locales
entries in bsd.usr.mk

This simplifies addition of new locales but also allow people building
with WITHOUT_LOCALES to end up with a directory full of empty files
This commit is contained in:
Baptiste Daroussin
2021-08-03 14:25:00 +02:00
parent d3fd2cbbb7
commit 184d64af13
12 changed files with 22 additions and 383 deletions
+2
View File
@@ -96,7 +96,9 @@ SAME+= fr_FR.UTF-8 fr_BE.UTF-8
FILES= ${LOCALES:S/$/.out/}
CLEANFILES= ${FILES}
DIRS+= SAMEDIRS
.for f t in ${SAME}
SAMEDIRS+= ${LOCALEDIR}/$t
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor