summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-04-01 21:03:41 +0000
committerPaul W. Frields <stickster@gmail.com>2007-04-01 21:03:41 +0000
commit7f30f85593b989fdac049777535825b976bfdd2f (patch)
tree2330c35f632be1a44ccaa44bf33407d0e290ff36
parent0eeb33b670fbbb6f158e285bb4f62c268afb3b82 (diff)
downloadfedora-doc-utils-7f30f85593b989fdac049777535825b976bfdd2f.tar.gz
fedora-doc-utils-7f30f85593b989fdac049777535825b976bfdd2f.tar.xz
fedora-doc-utils-7f30f85593b989fdac049777535825b976bfdd2f.zip
All right, testing was apparently not extensive enough, and my understanding of the default targets was flawed. Returning this to its rightful place.
-rw-r--r--Makefile.common30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index f749370..24fba77 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -344,6 +344,36 @@ help::
#########################################################################
#########################################################################
+# Rules to generate the "${LANG}/${DOC_ENTITIES}.ent" file, if used
+define DOC_ENTITIES_template
+
+${1}/${DOC_ENTITIES}.xml:: ${1}/${FDP_ENTITIES} po/${1}.po ${PRI_LANG}/${DOC_ENTITIES}.xml
+ ${XML2PO} ${XML2POFLAGS} -p po/${1}.po \
+ ${PRI_LANG}/${DOC_ENTITIES}.xml >$$@
+
+clean::
+ ${RM} ${1}/${DOC_ENTITIES}.xml
+
+${1}/${DOC_ENTITIES}.ent:: ${1}/${DOC_ENTITIES}.xml
+
+help::
+ @printf ${TFMT} '${1}/${DOC_ENTITIES}.ent' 'Per-doc entities for locale "${1}"'
+ @printf ${TFMT} '${1}/${DOC_ENTITIES}.xml' 'Translated per-doc entities for locale "${1}"'
+endef
+
+ifneq "${DOC_ENTITIES}" ""
+${PRI_LANG}/${DOC_ENTITIES}.ent:: ${PRI_LANG}/${DOC_ENTITIES}.xml
+help::
+ @printf ${TFMT} '${PRI_LANG}/${DOC_ENTITIES}.ent' 'Per-doc entities for locale "${PRI_LANG}"'
+$(foreach L, ${OTHERS},$(eval $(call DOC_ENTITIES_template,${L})))
+
+showvars::
+ @echo "DOC_ENTITIES=${DOC_ENTITIES}"
+endif
+#
+#########################################################################
+
+#########################################################################
po/${DOCBASE}.pot:: ${DOC_ENTITIES_XML-${PRI_LANG}} \
${DOC_ENTITIES_ENT-${PRI_LANG}} \
${PRI_LANG}/${FDP_ENTITIES} ${XMLFILES-${PRI_LANG}}