summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.common9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index 790bfde..cc7ace7 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -323,15 +323,20 @@ po:: $(foreach L,${OTHERS},po-${L})
#########################################################################
# Define a template to generate the locale-specific XML files given the
# original ${PRI_LANG} file and an updated po/${LANG}.po file.
+# We have to be funky and cd(1) into the ${LANG} directory so that
+# the "lang=foo" attribute that ${XML2PO} generates will be correct.
+# Hiss! Boo!
define XML_template
$(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po \
${DOC_ENTITIES_ENT-${1}}
mkdir -p ${1}
ln -s -f ../${2} $$@.in
cd po && ${XML2PO} -e -p ${1}.po ../$$@.in >../$$@
-clean::
${RM} $$@.in
- endef
+endef
+
+clean::
+ for L in ${OTHERS}; do ${RM} $${L}/*.xml.in; done
$(foreach L,${OTHERS}, \
$(foreach F,${XMLFILES-${PRI_LANG}}, \