1141cc406Sopenharmony_ci#  Makevars -- snippet for inclusion in po/ -*- Makefile -*-
2141cc406Sopenharmony_ci#  Copyright (C) 2016, 2019, 2020  Olaf Meeuwissen
3141cc406Sopenharmony_ci#    and the SANE developers
4141cc406Sopenharmony_ci#
5141cc406Sopenharmony_ci#  This file is part of the SANE build infra-structure.  See the
6141cc406Sopenharmony_ci#  included LICENSE file for license information.
7141cc406Sopenharmony_ci
8141cc406Sopenharmony_ci#  Message domain to use.
9141cc406Sopenharmony_ci#  Normally this is the same as the $(PACKAGE_TARNAME), but note that
10141cc406Sopenharmony_ci#  gettext does not support that variable (last checked for 0.18.1).
11141cc406Sopenharmony_ciDOMAIN = $(PACKAGE)
12141cc406Sopenharmony_ci
13141cc406Sopenharmony_ci#  Copyright holder for the messages in the $(DOMAIN).pot file.
14141cc406Sopenharmony_ci#  This is the (set of) copyright holder(s) of files listed in the
15141cc406Sopenharmony_ci#  POTFILES.in file (insofar they contributed translatable strings).
16141cc406Sopenharmony_ci#  The translators are expected to transfer the copyright for their
17141cc406Sopenharmony_ci#  translations to the $(COPYRIGHT_HOLDER)(s), or to disclaim their
18141cc406Sopenharmony_ci#  copyright thereby putting their strings in the public domain.
19141cc406Sopenharmony_ciCOPYRIGHT_HOLDER = The SANE developers
20141cc406Sopenharmony_ci
21141cc406Sopenharmony_ci#  Where to report problems with translatable strings, that is, the
22141cc406Sopenharmony_ci#  strings in $(DOMAIN).pot or those that really should be in there.
23141cc406Sopenharmony_ciMSGID_BUGS_ADDRESS = $(PACKAGE_BUGREPORT)
24141cc406Sopenharmony_ci
25141cc406Sopenharmony_ci#  Directory locations.
26141cc406Sopenharmony_ci#  The $(top_builddir) should be relative to the directory that holds
27141cc406Sopenharmony_ci#  this Makevars file.  The $(subdir) ought to be set such that a `cd
28141cc406Sopenharmony_ci#  $(top_builddir)/$(subdir)` has no effect (assuming no symlinks in
29141cc406Sopenharmony_ci#  the path).
30141cc406Sopenharmony_citop_builddir = ..
31141cc406Sopenharmony_cisubdir = po
32141cc406Sopenharmony_ci
33141cc406Sopenharmony_ci#  Options to pass to xgettext and other gettext utilities.
34141cc406Sopenharmony_ci#  Additional options may also by specified using AM_XGETTEXT_OPTION
35141cc406Sopenharmony_ci#  in `$(top_srcdir)/configure.ac`.  See Makefile.in.in and Rules-*
36141cc406Sopenharmony_ci#  for variables available.
37141cc406Sopenharmony_ciXGETTEXT_OPTIONS  = $(width_options)
38141cc406Sopenharmony_ciXGETTEXT_OPTIONS += --keyword=SANE_I18N
39141cc406Sopenharmony_ciXGETTEXT_OPTIONS += --flag=SANE_I18N:1:no-c-format
40141cc406Sopenharmony_ciMSGMERGE_OPTIONS  = $(width_options)
41141cc406Sopenharmony_ciMSGINIT_OPTIONS   = $(width_options)
42141cc406Sopenharmony_ciMSGCONV_OPTIONS   = $(width_options)
43141cc406Sopenharmony_ciMSGFILTER_OPTIONS = $(width_options)
44141cc406Sopenharmony_ci#  All gettext related utilities need to use the same width value in
45141cc406Sopenharmony_ci#  order to pass a `make distcheck`.
46141cc406Sopenharmony_ciwidth_options     = --width=75
47141cc406Sopenharmony_ci
48141cc406Sopenharmony_ci#  Locale categories, in addition to LC_MESSAGES, for which message
49141cc406Sopenharmony_ci#  catalogs are to be used.
50141cc406Sopenharmony_ciEXTRA_LOCALE_CATEGORIES =
51141cc406Sopenharmony_ci
52141cc406Sopenharmony_ci#  Selected files in POTFILES.in are generated.  Make sure they are
53141cc406Sopenharmony_ci#  available when needed.
54141cc406Sopenharmony_ci$(top_srcdir)/backend/pixma/pixma_sane_options.c:
55141cc406Sopenharmony_ci	$(MAKE) -C ../backend pixma/pixma_sane_options.c
56