summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-08 01:27:04 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-08 01:27:04 +0000
commit0f5d6ef8449ccb86018c350d47cc08485a55eb20 (patch)
tree46c305ff2f07abc9f3961c9ad6d034804fd35236
parent6f08ebec5d5bc5f2faa581f4fd606f55826fff9d (diff)
downloadfedora-doc-utils-0f5d6ef8449ccb86018c350d47cc08485a55eb20.tar.gz
fedora-doc-utils-0f5d6ef8449ccb86018c350d47cc08485a55eb20.tar.xz
fedora-doc-utils-0f5d6ef8449ccb86018c350d47cc08485a55eb20.zip
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" ;-)
-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}}, \