summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-03 20:39:19 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-03 20:39:19 +0000
commited8d2c4ba47a11217b80ae15357a9d34eaa4e936 (patch)
tree5263756111cc837aeba89a5ca48e004181830e40
parent4b925d483576c960042c5e59b9fba326cc4aecf4 (diff)
downloadfedora-doc-utils-ed8d2c4ba47a11217b80ae15357a9d34eaa4e936.tar.gz
fedora-doc-utils-ed8d2c4ba47a11217b80ae15357a9d34eaa4e936.tar.xz
fedora-doc-utils-ed8d2c4ba47a11217b80ae15357a9d34eaa4e936.zip
Deleted the 'DIR_template' foolishness and removed the "${LANG}" dummy
target, too. Replaced the explicit "mkdir -p ${LANG}" in the rule to derive the non-${PRI_LANG} XML. This cuts down on the unnecessary XML regeneration and speeds things up a good bit.
-rw-r--r--Makefile.common19
1 files changed, 2 insertions, 17 deletions
diff --git a/Makefile.common b/Makefile.common
index 43b501b..436b9c5 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -406,26 +406,11 @@ pot:: po/${DOCBASE}.pot
#########################################################################
#########################################################################
-define DIR_template
-${1}::
- mkdir -p ${1}
-
-distclean::
- ${RM} -r ${1}
-
-help::
- @printf ${TFMT} '${1}' 'Creates translated XML working directory'
-
-endef
-
-$(foreach L,${OTHERS},$(eval $(call DIR_template,${L})))
-#########################################################################
-
-#########################################################################
# Define a template to generate the locale-specific XML files given the
# original ${PRI_LANG} file and an updated po/${LANG}.po file.
define XML_template
-$(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po ${1}
+$(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po
+ mkdir -p ${1}
${XML2PO} -k -p po/${1}.po ${2} >$$@
endef