| 1 | # Makefile variables for PO directory in any package using GNU gettext. |
| 2 | |
| 3 | # This domain contains only translations of package synopses and descriptions. |
| 4 | DOMAIN = guix-packages |
| 5 | |
| 6 | subdir = po/packages |
| 7 | top_builddir = ../.. |
| 8 | |
| 9 | # We use our xgettext.scm wrapper to produce .PO files reproducibly using a |
| 10 | # timestamp from Git. The `real' xgettext is passed as an option to |
| 11 | # xgettext.scm |
| 12 | XGETTEXT:=$(top_srcdir)/build-aux/xgettext.scm |
| 13 | |
| 14 | # These options get passed to xgettext. We want to catch exclusively package |
| 15 | # synopses and descriptions. |
| 16 | XGETTEXT_OPTIONS = \ |
| 17 | --language=Scheme --from-code=UTF-8 \ |
| 18 | --keyword=synopsis --keyword=description \ |
| 19 | --keyword=output-synopsis:2 \ |
| 20 | --xgettext=$(XGETTEXT_) |
| 21 | |
| 22 | COPYRIGHT_HOLDER = the authors of Guix (msgids) |
| 23 | |
| 24 | MSGID_BUGS_ADDRESS = [email protected] |
| 25 | |
| 26 | EXTRA_LOCALE_CATEGORIES = |
| 27 | |
| 28 | # Disable PO update upon "make dist", which sometimes fails when doing |
| 29 | # "make distcheck -j4". |
| 30 | # See <https://lists.gnu.org/archive/html/bug-gettext/2014-08/msg00005.html>. |
| 31 | DIST_DEPENDS_ON_UPDATE_PO = no |
| 32 | |
| 33 | # Ignore the timestamp of the .pot file, as .po files are updated by |
| 34 | # `make download-po` only. This ensures po files are not modified on the |
| 35 | # first `make` invocation. |
| 36 | PO_DEPENDS_ON_POT = no |