From 30e1773fdef42cb509bf75e9fa09472e77a333de Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 3 Aug 2021 18:00:45 +0200 Subject: [PATCH] locales: fix abuse of bsd.dirs.mk the way SAMEDIRS was defined was an abuse of bsd.dirs.mk resulting in all the directory to be created in one single command, but DESTDIR is only prepend once on the first element of the list Switch to the properway to use bsd.dirs.mk --- share/colldef/Makefile | 4 ++-- share/colldef_unicode/Makefile | 4 ++-- share/ctypedef/Makefile | 4 ++-- share/monetdef/Makefile | 4 ++-- share/monetdef_unicode/Makefile | 4 ++-- share/msgdef/Makefile | 4 ++-- share/msgdef_unicode/Makefile | 4 ++-- share/numericdef/Makefile | 4 ++-- share/numericdef_unicode/Makefile | 4 ++-- share/timedef/Makefile | 4 ++-- tools/tools/locale/tools/cldr2def.pl | 4 ++-- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/share/colldef/Makefile b/share/colldef/Makefile index 765abf9747f..66487fb7698 100644 --- a/share/colldef/Makefile +++ b/share/colldef/Makefile @@ -133,9 +133,9 @@ SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset) FILES= ${LOCALES:S/$/.LC_COLLATE/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/colldef_unicode/Makefile b/share/colldef_unicode/Makefile index 4dd4bf78a36..ea895d8e388 100644 --- a/share/colldef_unicode/Makefile +++ b/share/colldef_unicode/Makefile @@ -104,9 +104,9 @@ SAME+= zh_TW.UTF-8 zh_HK.UTF-8 FILES= ${LOCALES:S/$/.LC_COLLATE/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/ctypedef/Makefile b/share/ctypedef/Makefile index ad7eb237f3e..1a57cfeb144 100644 --- a/share/ctypedef/Makefile +++ b/share/ctypedef/Makefile @@ -215,9 +215,9 @@ SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset) FILES= ${LOCALES:S/$/.LC_CTYPE/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/monetdef/Makefile b/share/monetdef/Makefile index f0b34998f4b..bec0b78d943 100644 --- a/share/monetdef/Makefile +++ b/share/monetdef/Makefile @@ -129,9 +129,9 @@ SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset) FILES= ${LOCALES:S/$/.out/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/monetdef_unicode/Makefile b/share/monetdef_unicode/Makefile index 4655c742669..2fa073f3981 100644 --- a/share/monetdef_unicode/Makefile +++ b/share/monetdef_unicode/Makefile @@ -96,9 +96,9 @@ SAME+= sr_RS.UTF-8@latin sr_RS.UTF-8 FILES= ${LOCALES:S/$/.out/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/msgdef/Makefile b/share/msgdef/Makefile index 9f0b7f2f3bc..a176d30c01f 100644 --- a/share/msgdef/Makefile +++ b/share/msgdef/Makefile @@ -122,9 +122,9 @@ SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset) FILES= ${LOCALES:S/$/.out/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/msgdef_unicode/Makefile b/share/msgdef_unicode/Makefile index c0bffc05ccc..34f8b30ff73 100644 --- a/share/msgdef_unicode/Makefile +++ b/share/msgdef_unicode/Makefile @@ -96,9 +96,9 @@ SAME+= zh_TW.UTF-8 zh_HK.UTF-8 FILES= ${LOCALES:S/$/.out/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/numericdef/Makefile b/share/numericdef/Makefile index f1047e9cb5d..da04535aa4c 100644 --- a/share/numericdef/Makefile +++ b/share/numericdef/Makefile @@ -125,9 +125,9 @@ SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset) FILES= ${LOCALES:S/$/.out/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/numericdef_unicode/Makefile b/share/numericdef_unicode/Makefile index 3f7f3e4f285..07290250c6b 100644 --- a/share/numericdef_unicode/Makefile +++ b/share/numericdef_unicode/Makefile @@ -96,9 +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 +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/share/timedef/Makefile b/share/timedef/Makefile index 428e8067ae1..df16c038ba4 100644 --- a/share/timedef/Makefile +++ b/share/timedef/Makefile @@ -208,9 +208,9 @@ SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset) FILES= ${LOCALES:S/$/.out/} CLEANFILES= ${FILES} -DIRS+= SAMEDIRS .for f t in ${SAME} -SAMEDIRS+= ${LOCALEDIR}/$t +DIRS+= LOCALEDIR_$t +LOCALEDIR_$t= ${LOCALEDIR}/$t SYMLINKS+= ../$f/${FILESNAME} \ ${LOCALEDIR}/$t/${FILESNAME} .endfor diff --git a/tools/tools/locale/tools/cldr2def.pl b/tools/tools/locale/tools/cldr2def.pl index 277102d60a4..78b2634b625 100755 --- a/tools/tools/locale/tools/cldr2def.pl +++ b/tools/tools/locale/tools/cldr2def.pl @@ -1081,9 +1081,9 @@ EOF FILES= \${LOCALES:S/\$/.${SRCOUT2}/} CLEANFILES= \${FILES} -DIRS+= SAMEDIRS .for f t in \${SAME} -SAMEDIRS+= \${LOCALEDIR}/\$t +DIRS+= LOCALEDIR_\$t +LOCALEDIR_\$t= \${LOCALEDIR}/\$t SYMLINKS+= ../\$f/\${FILESNAME} \\ \${LOCALEDIR}/\$t/\${FILESNAME} .endfor