Author: pfrields
Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3542
Modified Files:
Makefile.common
Log Message:
Add a POTBASE function so we can generate POT files with a different
name from the DOCBASE filename. This will help with L10N, trust me.
Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.164
retrieving revision 1.165
diff -u -r1.164 -r1.165
--- Makefile.common 18 Apr 2007 05:04:53 -0000 1.164
+++ Makefile.common 15 Jun 2007 19:58:50 -0000 1.165
@@ -379,16 +379,26 @@
#########################################################################
#########################################################################
-po/${DOCBASE}.pot:: ${DOC_ENTITIES_XML-${PRI_LANG}} \
+# Allow POT files to use a different name than the base generated name,
+# if desired. This way we can generate nice "README" files from a module
+# called "readme" and a "readme.pot" file, which makes l10n happier.
+ifndef POTBASE
+POTBASE:=${DOCBASE}
+endif
+showvars::
+ @echo "POTBASE=${POTBASE}"
+
+#########################################################################
+po/${POTBASE}.pot:: ${DOC_ENTITIES_XML-${PRI_LANG}} \
${DOC_ENTITIES_ENT-${PRI_LANG}} \
${PRI_LANG}/${FDP_ENTITIES} ${XMLFILES-${PRI_LANG}}
[ -d po/CVS ] || (echo ADD po/ TO CVS >&2; exit 1)
${XML2PO} ${XML2POFLAGS} -o $@ ${XMLFILES-${PRI_LANG}} ${DOC_ENTITIES_XML-${PRI_LANG}}
help::
- @printf ${TFMT} 'po/${DOCBASE}.pot' 'Writes one POT file for all XML'
+ @printf ${TFMT} 'po/${POTBASE}.pot' 'Writes one POT file for all XML'
.PHONY: pot
-pot:: po/${DOCBASE}.pot
+pot:: po/${POTBASE}.pot
help::
@printf ${TFMT} 'po' 'Writes one ${PRI_LANG} PO file for all XML'
#########################################################################