1#  Makevars -- snippet for inclusion in po/ -*- Makefile -*-
2#  Copyright (C) 2016, 2019, 2020  Olaf Meeuwissen
3#    and the SANE developers
4#
5#  This file is part of the SANE build infra-structure.  See the
6#  included LICENSE file for license information.
7
8#  Message domain to use.
9#  Normally this is the same as the $(PACKAGE_TARNAME), but note that
10#  gettext does not support that variable (last checked for 0.18.1).
11DOMAIN = $(PACKAGE)
12
13#  Copyright holder for the messages in the $(DOMAIN).pot file.
14#  This is the (set of) copyright holder(s) of files listed in the
15#  POTFILES.in file (insofar they contributed translatable strings).
16#  The translators are expected to transfer the copyright for their
17#  translations to the $(COPYRIGHT_HOLDER)(s), or to disclaim their
18#  copyright thereby putting their strings in the public domain.
19COPYRIGHT_HOLDER = The SANE developers
20
21#  Where to report problems with translatable strings, that is, the
22#  strings in $(DOMAIN).pot or those that really should be in there.
23MSGID_BUGS_ADDRESS = $(PACKAGE_BUGREPORT)
24
25#  Directory locations.
26#  The $(top_builddir) should be relative to the directory that holds
27#  this Makevars file.  The $(subdir) ought to be set such that a `cd
28#  $(top_builddir)/$(subdir)` has no effect (assuming no symlinks in
29#  the path).
30top_builddir = ..
31subdir = po
32
33#  Options to pass to xgettext and other gettext utilities.
34#  Additional options may also by specified using AM_XGETTEXT_OPTION
35#  in `$(top_srcdir)/configure.ac`.  See Makefile.in.in and Rules-*
36#  for variables available.
37XGETTEXT_OPTIONS  = $(width_options)
38XGETTEXT_OPTIONS += --keyword=SANE_I18N
39XGETTEXT_OPTIONS += --flag=SANE_I18N:1:no-c-format
40MSGMERGE_OPTIONS  = $(width_options)
41MSGINIT_OPTIONS   = $(width_options)
42MSGCONV_OPTIONS   = $(width_options)
43MSGFILTER_OPTIONS = $(width_options)
44#  All gettext related utilities need to use the same width value in
45#  order to pass a `make distcheck`.
46width_options     = --width=75
47
48#  Locale categories, in addition to LC_MESSAGES, for which message
49#  catalogs are to be used.
50EXTRA_LOCALE_CATEGORIES =
51
52#  Selected files in POTFILES.in are generated.  Make sure they are
53#  available when needed.
54$(top_srcdir)/backend/pixma/pixma_sane_options.c:
55	$(MAKE) -C ../backend pixma/pixma_sane_options.c
56