summaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
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'
#########################################################################