[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] a .gmo file is not regenerated when its .po file chang

From: Daiki Ueno
Subject: Re: [bug-gettext] a .gmo file is not regenerated when its .po file changed
Date: Fri, 29 May 2015 14:53:50 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Benno Schulenberg <address@hidden> writes:

> In a source tree of nano, after I've edited a PO file, running a simple
> 'make' in the main directory will regenerate the corresponding GMO file.
> But in the source trees of for example grep or texinfo this is not the
> case; a 'make' will not update the GMO file, and even a 'make install'
> will just install the existing .gmo file (which no longer matches with
> the .po file).  I think this is wrong.

That is an intentional behavior change made around gettext-0.12:

Prior to that, "make all" did only update .gmo files from the existing
.po files, while it now also updates .po files as needed (i.e., when the
POT file has changed).

If we added .gmo files as a prerequisite of "make all", it could trigger
.po files update, which is not desirable, especially when .po files are
version controlled.

> Is there any way that modern gettext can in its Makefile.in.in make
> each GMO file depend on its corresponding PO file?

I'm afraid it is probably not an option to bring back the original
behavior, but you can still do:

  cd po && make update-gmo

Daiki Ueno

reply via email to

[Prev in Thread] Current Thread [Next in Thread]