docs-common Makefile.common,1.158,1.159

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Sun Apr 1 21:03:43 UTC 2007


Author: pfrields

Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20606

Modified Files:
	Makefile.common 
Log Message:
All right, testing was apparently not extensive enough, and my understanding of the default targets was flawed.  Returning this to its rightful place.


Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -r1.158 -r1.159
--- Makefile.common	31 Mar 2007 00:19:45 -0000	1.158
+++ Makefile.common	1 Apr 2007 21:03:41 -0000	1.159
@@ -344,6 +344,36 @@
 #########################################################################
 
 #########################################################################
+# 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}}




More information about the Fedora-docs-commits mailing list