summaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-06-15 19:58:50 +0000
committerPaul W. Frields <stickster@gmail.com>2007-06-15 19:58:50 +0000
commita7c0d54e2aae35a1f7e69491430128de7d37e5d3 (patch)
treee624360f3d1999427b3c8faea36ff9416d4a10d2 /Makefile.common
parentbc59b6276a5db08004a92eb402c1c80ca994d525 (diff)
downloadfedora-doc-utils-a7c0d54e2aae35a1f7e69491430128de7d37e5d3.tar.gz
fedora-doc-utils-a7c0d54e2aae35a1f7e69491430128de7d37e5d3.tar.xz
fedora-doc-utils-a7c0d54e2aae35a1f7e69491430128de7d37e5d3.zip
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.
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common16
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile.common b/Makefile.common
index 185d165..2dfb4f6 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -379,16 +379,26 @@ endif
#########################################################################
#########################################################################
-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'
#########################################################################