From 0f5d6ef8449ccb86018c350d47cc08485a55eb20 Mon Sep 17 00:00:00 2001 From: Tommy Reynolds Date: Wed, 8 Mar 2006 01:27:04 +0000 Subject: Delete created "foo.xml.in" symlink as soon as we're through with it. Also removed all the zillion "rm *.in" commands from "make clean" ;-) --- Makefile.common | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile.common') 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}}, \ -- cgit