]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Out of tree build - message .mo catalogs
authorAidan Van Dyk <aidan@ifax.com>
Wed, 21 Jan 2009 14:32:14 +0000 (14:32 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Wed, 21 Jan 2009 14:32:14 +0000 (14:32 +0000)
In the conversion to not use inferred rules (supporting old makes), I
dropped the ability to build out-of-tree from my initial NLS work.  With
an inferred rule, make handle the path stuff nicely for us.

Here we check if $CATALOG/messages.pot exists, and if not, copy it from
$SRCDIR.  The only reason for it to not exist is that we're not building
in SRCDIR.

Note that to build the .mo files, you either need to have the
messages.pot for the various catalog.  Either "build" them
(make update-po), or copy them from SRCDIR.

po/nls.mk

index bac08f26a1799392325fcbae7ff3a6b652ce131f..816c14f837f8f6232954dfa635f7975aee4b6b94 100644 (file)
--- a/po/nls.mk
+++ b/po/nls.mk
@@ -37,6 +37,7 @@ hylafax-server/messages.pot: $(wildcard ${patsubst %, ${DEPTH}/%/messages.po, ${
 # So techincally, this rule's depencies aren't *quite* complete, but on well
 ${CATALOG}/${BUILD_LANGUAGE}.po: ${CATALOG}/messages.pot version.po ${BUILD_LANGUAGE}.po
        test -d ${CATALOG} || mkdir ${CATALOG}
+       test -f ${CATALOG}/messages.pot || cat ${SRCDIR}/${CATALOG}/messages.pot > ${CATALOG}/messages.pot
        cat version.po ${CATALOG}/messages.pot > $@.tmp
        ${MSGMERGE} ${SRCDIR}/${BUILD_LANGUAGE}.po $@.tmp  -o $@
        rm -f $@.tmp