diff options
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Makefile.common b/Makefile.common index 2dfb4f6..5f14510 100644 --- a/Makefile.common +++ b/Makefile.common @@ -108,6 +108,9 @@ endif ifeq "${PRI_LANG}" "" PRI_LANG= en endif +ifeq "${POTBASE}" "" +POTBASE=${DOCBASE} +endif ifeq "${RPMINFO}" "" RPMINFO = rpm-info.xml endif @@ -378,15 +381,6 @@ endif # ######################################################################### -######################################################################### -# 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}} \ @@ -397,6 +391,9 @@ po/${POTBASE}.pot:: ${DOC_ENTITIES_XML-${PRI_LANG}} \ help:: @printf ${TFMT} 'po/${POTBASE}.pot' 'Writes one POT file for all XML' +showvars:: + @echo "POTBASE=${POTBASE}" + .PHONY: pot pot:: po/${POTBASE}.pot help:: @@ -408,12 +405,12 @@ define PO_template .PRECIOUS: po/${1}.po -po/${1}.po:: po/${DOCBASE}.pot $${DOC_ENTITITES_ENT-${1}} +po/${1}.po:: po/${POTBASE}.pot $${DOC_ENTITITES_ENT-${1}} [ -d po/CVS ] || (echo ADD po/ TO CVS >&2; exit 1) if [ ! -f $$@ ]; then \ - cp po/${DOCBASE}.pot $$@; \ + cp po/${POTBASE}.pot $$@; \ else \ - ${MSGMERGE} -U -q $$@ po/${DOCBASE}.pot; \ + ${MSGMERGE} -U -q $$@ po/${POTBASE}.pot; \ touch $$@; \ fi |