Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

16 Commits   0 Branches   2 Tags
868b2b66 (kx 2024-12-20 16:11:07 +0300   1) # Makefile for PO directory in any package using GNU gettext.
868b2b66 (kx 2024-12-20 16:11:07 +0300   2) # Copyright (C) 1995-2000 Ulrich Drepper <drepper@gnu.ai.mit.edu>
868b2b66 (kx 2024-12-20 16:11:07 +0300   3) # Copyright (C) 2000-2020 Free Software Foundation, Inc.
868b2b66 (kx 2024-12-20 16:11:07 +0300   4) #
868b2b66 (kx 2024-12-20 16:11:07 +0300   5) # Copying and distribution of this file, with or without modification,
868b2b66 (kx 2024-12-20 16:11:07 +0300   6) # are permitted in any medium without royalty provided the copyright
868b2b66 (kx 2024-12-20 16:11:07 +0300   7) # notice and this notice are preserved.  This file is offered as-is,
868b2b66 (kx 2024-12-20 16:11:07 +0300   8) # without any warranty.
868b2b66 (kx 2024-12-20 16:11:07 +0300   9) #
868b2b66 (kx 2024-12-20 16:11:07 +0300  10) # Origin: gettext-0.21
868b2b66 (kx 2024-12-20 16:11:07 +0300  11) GETTEXT_MACRO_VERSION = 0.20
868b2b66 (kx 2024-12-20 16:11:07 +0300  12) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  13) PACKAGE = @PACKAGE@
868b2b66 (kx 2024-12-20 16:11:07 +0300  14) VERSION = @VERSION@
868b2b66 (kx 2024-12-20 16:11:07 +0300  15) PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
868b2b66 (kx 2024-12-20 16:11:07 +0300  16) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  17) SED = @SED@
868b2b66 (kx 2024-12-20 16:11:07 +0300  18) SHELL = /bin/sh
868b2b66 (kx 2024-12-20 16:11:07 +0300  19) @SET_MAKE@
868b2b66 (kx 2024-12-20 16:11:07 +0300  20) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  21) srcdir = @srcdir@
868b2b66 (kx 2024-12-20 16:11:07 +0300  22) top_srcdir = @top_srcdir@
868b2b66 (kx 2024-12-20 16:11:07 +0300  23) top_builddir = @top_builddir@
868b2b66 (kx 2024-12-20 16:11:07 +0300  24) VPATH = @srcdir@
868b2b66 (kx 2024-12-20 16:11:07 +0300  25) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  26) prefix = @prefix@
868b2b66 (kx 2024-12-20 16:11:07 +0300  27) exec_prefix = @exec_prefix@
868b2b66 (kx 2024-12-20 16:11:07 +0300  28) datarootdir = @datarootdir@
868b2b66 (kx 2024-12-20 16:11:07 +0300  29) datadir = @datadir@
868b2b66 (kx 2024-12-20 16:11:07 +0300  30) localedir = @localedir@
868b2b66 (kx 2024-12-20 16:11:07 +0300  31) gettextsrcdir = $(datadir)/gettext/po
868b2b66 (kx 2024-12-20 16:11:07 +0300  32) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  33) INSTALL = @INSTALL@
868b2b66 (kx 2024-12-20 16:11:07 +0300  34) INSTALL_DATA = @INSTALL_DATA@
868b2b66 (kx 2024-12-20 16:11:07 +0300  35) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  36) # We use $(mkdir_p).
868b2b66 (kx 2024-12-20 16:11:07 +0300  37) # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
868b2b66 (kx 2024-12-20 16:11:07 +0300  38) # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
868b2b66 (kx 2024-12-20 16:11:07 +0300  39) # @install_sh@ does not start with $(SHELL), so we add it.
868b2b66 (kx 2024-12-20 16:11:07 +0300  40) # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
868b2b66 (kx 2024-12-20 16:11:07 +0300  41) # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
868b2b66 (kx 2024-12-20 16:11:07 +0300  42) # versions, $(mkinstalldirs) and $(install_sh) are unused.
868b2b66 (kx 2024-12-20 16:11:07 +0300  43) mkinstalldirs = $(SHELL) @install_sh@ -d
868b2b66 (kx 2024-12-20 16:11:07 +0300  44) install_sh = $(SHELL) @install_sh@
868b2b66 (kx 2024-12-20 16:11:07 +0300  45) MKDIR_P = @MKDIR_P@
868b2b66 (kx 2024-12-20 16:11:07 +0300  46) mkdir_p = @mkdir_p@
868b2b66 (kx 2024-12-20 16:11:07 +0300  47) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  48) # When building gettext-tools, we prefer to use the built programs
868b2b66 (kx 2024-12-20 16:11:07 +0300  49) # rather than installed programs.  However, we can't do that when we
868b2b66 (kx 2024-12-20 16:11:07 +0300  50) # are cross compiling.
868b2b66 (kx 2024-12-20 16:11:07 +0300  51) CROSS_COMPILING = @CROSS_COMPILING@
868b2b66 (kx 2024-12-20 16:11:07 +0300  52) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  53) GMSGFMT_ = @GMSGFMT@
868b2b66 (kx 2024-12-20 16:11:07 +0300  54) GMSGFMT_no = @GMSGFMT@
868b2b66 (kx 2024-12-20 16:11:07 +0300  55) GMSGFMT_yes = @GMSGFMT_015@
868b2b66 (kx 2024-12-20 16:11:07 +0300  56) GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
868b2b66 (kx 2024-12-20 16:11:07 +0300  57) XGETTEXT_ = @XGETTEXT@
868b2b66 (kx 2024-12-20 16:11:07 +0300  58) XGETTEXT_no = @XGETTEXT@
868b2b66 (kx 2024-12-20 16:11:07 +0300  59) XGETTEXT_yes = @XGETTEXT_015@
868b2b66 (kx 2024-12-20 16:11:07 +0300  60) XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
868b2b66 (kx 2024-12-20 16:11:07 +0300  61) MSGMERGE = @MSGMERGE@
868b2b66 (kx 2024-12-20 16:11:07 +0300  62) MSGMERGE_UPDATE = @MSGMERGE@ --update
868b2b66 (kx 2024-12-20 16:11:07 +0300  63) MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@
868b2b66 (kx 2024-12-20 16:11:07 +0300  64) MSGINIT = msginit
868b2b66 (kx 2024-12-20 16:11:07 +0300  65) MSGCONV = msgconv
868b2b66 (kx 2024-12-20 16:11:07 +0300  66) MSGFILTER = msgfilter
868b2b66 (kx 2024-12-20 16:11:07 +0300  67) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  68) POFILES = @POFILES@
868b2b66 (kx 2024-12-20 16:11:07 +0300  69) GMOFILES = @GMOFILES@
868b2b66 (kx 2024-12-20 16:11:07 +0300  70) UPDATEPOFILES = @UPDATEPOFILES@
868b2b66 (kx 2024-12-20 16:11:07 +0300  71) DUMMYPOFILES = @DUMMYPOFILES@
868b2b66 (kx 2024-12-20 16:11:07 +0300  72) DISTFILES.common = Makefile.in.in remove-potcdate.sin \
868b2b66 (kx 2024-12-20 16:11:07 +0300  73) $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
868b2b66 (kx 2024-12-20 16:11:07 +0300  74) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
868b2b66 (kx 2024-12-20 16:11:07 +0300  75) $(POFILES) $(GMOFILES) \
868b2b66 (kx 2024-12-20 16:11:07 +0300  76) $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
868b2b66 (kx 2024-12-20 16:11:07 +0300  77) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  78) POTFILES = \
868b2b66 (kx 2024-12-20 16:11:07 +0300  79) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  80) CATALOGS = @CATALOGS@
868b2b66 (kx 2024-12-20 16:11:07 +0300  81) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  82) POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot
868b2b66 (kx 2024-12-20 16:11:07 +0300  83) POFILESDEPS_yes = $(POFILESDEPS_)
868b2b66 (kx 2024-12-20 16:11:07 +0300  84) POFILESDEPS_no =
868b2b66 (kx 2024-12-20 16:11:07 +0300  85) POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT))
868b2b66 (kx 2024-12-20 16:11:07 +0300  86) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  87) DISTFILESDEPS_ = update-po
868b2b66 (kx 2024-12-20 16:11:07 +0300  88) DISTFILESDEPS_yes = $(DISTFILESDEPS_)
868b2b66 (kx 2024-12-20 16:11:07 +0300  89) DISTFILESDEPS_no =
868b2b66 (kx 2024-12-20 16:11:07 +0300  90) DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO))
868b2b66 (kx 2024-12-20 16:11:07 +0300  91) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  92) # Makevars gets inserted here. (Don't remove this line!)
868b2b66 (kx 2024-12-20 16:11:07 +0300  93) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  94) all: all-@USE_NLS@
868b2b66 (kx 2024-12-20 16:11:07 +0300  95) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  96) 
868b2b66 (kx 2024-12-20 16:11:07 +0300  97) .SUFFIXES:
868b2b66 (kx 2024-12-20 16:11:07 +0300  98) .SUFFIXES: .po .gmo .sed .sin .nop .po-create .po-update
868b2b66 (kx 2024-12-20 16:11:07 +0300  99) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 100) # The .pot file, stamp-po, .po files, and .gmo files appear in release tarballs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 101) # The GNU Coding Standards say in
868b2b66 (kx 2024-12-20 16:11:07 +0300 102) # <https://www.gnu.org/prep/standards/html_node/Makefile-Basics.html>:
868b2b66 (kx 2024-12-20 16:11:07 +0300 103) #   "GNU distributions usually contain some files which are not source files
868b2b66 (kx 2024-12-20 16:11:07 +0300 104) #    ... . Since these files normally appear in the source directory, they
868b2b66 (kx 2024-12-20 16:11:07 +0300 105) #    should always appear in the source directory, not in the build directory.
868b2b66 (kx 2024-12-20 16:11:07 +0300 106) #    So Makefile rules to update them should put the updated files in the
868b2b66 (kx 2024-12-20 16:11:07 +0300 107) #    source directory."
868b2b66 (kx 2024-12-20 16:11:07 +0300 108) # Therefore we put these files in the source directory, not the build directory.
868b2b66 (kx 2024-12-20 16:11:07 +0300 109) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 110) # During .po -> .gmo conversion, take into account the most recent changes to
868b2b66 (kx 2024-12-20 16:11:07 +0300 111) # the .pot file. This eliminates the need to update the .po files when the
868b2b66 (kx 2024-12-20 16:11:07 +0300 112) # .pot file has changed, which would be troublesome if the .po files are put
868b2b66 (kx 2024-12-20 16:11:07 +0300 113) # under version control.
868b2b66 (kx 2024-12-20 16:11:07 +0300 114) $(GMOFILES): $(srcdir)/$(DOMAIN).pot
868b2b66 (kx 2024-12-20 16:11:07 +0300 115) .po.gmo:
868b2b66 (kx 2024-12-20 16:11:07 +0300 116) 	@lang=`echo $* | sed -e 's,.*/,,'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 117) 	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 118) 	echo "$${cdcmd}rm -f $${lang}.gmo && $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.1po && rm -f $${lang}.1po"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 119) 	cd $(srcdir) && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 120) 	rm -f $${lang}.gmo && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 121) 	$(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 122) 	$(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.1po && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 123) 	mv t-$${lang}.gmo $${lang}.gmo && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 124) 	rm -f $${lang}.1po
868b2b66 (kx 2024-12-20 16:11:07 +0300 125) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 126) .sin.sed:
868b2b66 (kx 2024-12-20 16:11:07 +0300 127) 	sed -e '/^#/d' $< > t-$@
868b2b66 (kx 2024-12-20 16:11:07 +0300 128) 	mv t-$@ $@
868b2b66 (kx 2024-12-20 16:11:07 +0300 129) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 130) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 131) all-yes: $(srcdir)/stamp-po
868b2b66 (kx 2024-12-20 16:11:07 +0300 132) all-no:
868b2b66 (kx 2024-12-20 16:11:07 +0300 133) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 134) # Ensure that the gettext macros and this Makefile.in.in are in sync.
868b2b66 (kx 2024-12-20 16:11:07 +0300 135) CHECK_MACRO_VERSION = \
868b2b66 (kx 2024-12-20 16:11:07 +0300 136) 	test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
868b2b66 (kx 2024-12-20 16:11:07 +0300 137) 	  || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 138) 	       exit 1; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 139) 	     }
868b2b66 (kx 2024-12-20 16:11:07 +0300 140) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 141) # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
868b2b66 (kx 2024-12-20 16:11:07 +0300 142) # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
868b2b66 (kx 2024-12-20 16:11:07 +0300 143) # we don't want to bother translators with empty POT files). We assume that
868b2b66 (kx 2024-12-20 16:11:07 +0300 144) # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
868b2b66 (kx 2024-12-20 16:11:07 +0300 145) # In this case, $(srcdir)/stamp-po is a nop (i.e. a phony target).
868b2b66 (kx 2024-12-20 16:11:07 +0300 146) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 147) # $(srcdir)/stamp-po is a timestamp denoting the last time at which the CATALOGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 148) # have been loosely updated. Its purpose is that when a developer or translator
868b2b66 (kx 2024-12-20 16:11:07 +0300 149) # checks out the package from a version control system, and the $(DOMAIN).pot
868b2b66 (kx 2024-12-20 16:11:07 +0300 150) # file is not under version control, "make" will update the $(DOMAIN).pot and
868b2b66 (kx 2024-12-20 16:11:07 +0300 151) # the $(CATALOGS), but subsequent invocations of "make" will do nothing. This
868b2b66 (kx 2024-12-20 16:11:07 +0300 152) # timestamp would not be necessary if updating the $(CATALOGS) would always
868b2b66 (kx 2024-12-20 16:11:07 +0300 153) # touch them; however, the rule for $(POFILES) has been designed to not touch
868b2b66 (kx 2024-12-20 16:11:07 +0300 154) # files that don't need to be changed.
868b2b66 (kx 2024-12-20 16:11:07 +0300 155) $(srcdir)/stamp-po: $(srcdir)/$(DOMAIN).pot
868b2b66 (kx 2024-12-20 16:11:07 +0300 156) 	@$(CHECK_MACRO_VERSION)
868b2b66 (kx 2024-12-20 16:11:07 +0300 157) 	test ! -f $(srcdir)/$(DOMAIN).pot || \
868b2b66 (kx 2024-12-20 16:11:07 +0300 158) 	  test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
868b2b66 (kx 2024-12-20 16:11:07 +0300 159) 	@test ! -f $(srcdir)/$(DOMAIN).pot || { \
868b2b66 (kx 2024-12-20 16:11:07 +0300 160) 	  echo "touch $(srcdir)/stamp-po" && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 161) 	  echo timestamp > $(srcdir)/stamp-poT && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 162) 	  mv $(srcdir)/stamp-poT $(srcdir)/stamp-po; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 163) 	}
868b2b66 (kx 2024-12-20 16:11:07 +0300 164) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 165) # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
868b2b66 (kx 2024-12-20 16:11:07 +0300 166) # otherwise packages like GCC can not be built if only parts of the source
868b2b66 (kx 2024-12-20 16:11:07 +0300 167) # have been downloaded.
868b2b66 (kx 2024-12-20 16:11:07 +0300 168) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 169) # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
868b2b66 (kx 2024-12-20 16:11:07 +0300 170) # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
868b2b66 (kx 2024-12-20 16:11:07 +0300 171) # The determination of whether the package xyz is a GNU one is based on the
868b2b66 (kx 2024-12-20 16:11:07 +0300 172) # heuristic whether some file in the top level directory mentions "GNU xyz".
868b2b66 (kx 2024-12-20 16:11:07 +0300 173) # If GNU 'find' is available, we avoid grepping through monster files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 174) $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
868b2b66 (kx 2024-12-20 16:11:07 +0300 175) 	package_gnu="$(PACKAGE_GNU)"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 176) 	test -n "$$package_gnu" || { \
868b2b66 (kx 2024-12-20 16:11:07 +0300 177) 	  if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 178) 	         LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep -i 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 179) 	       else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 180) 	         LC_ALL=C grep -i 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 181) 	       fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 182) 	     } | grep -v 'libtool:' >/dev/null; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 183) 	     package_gnu=yes; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 184) 	   else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 185) 	     package_gnu=no; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 186) 	   fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 187) 	}; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 188) 	if test "$$package_gnu" = "yes"; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 189) 	  package_prefix='GNU '; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 190) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 191) 	  package_prefix=''; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 192) 	fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 193) 	if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 194) 	  msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 195) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 196) 	  msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 197) 	fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 198) 	case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
868b2b66 (kx 2024-12-20 16:11:07 +0300 199) 	  '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 200) 	    $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 201) 	      --add-comments=TRANSLATORS: \
868b2b66 (kx 2024-12-20 16:11:07 +0300 202) 	      --files-from=$(srcdir)/POTFILES.in \
868b2b66 (kx 2024-12-20 16:11:07 +0300 203) 	      --copyright-holder='$(COPYRIGHT_HOLDER)' \
868b2b66 (kx 2024-12-20 16:11:07 +0300 204) 	      --msgid-bugs-address="$$msgid_bugs_address" \
868b2b66 (kx 2024-12-20 16:11:07 +0300 205) 	      $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
868b2b66 (kx 2024-12-20 16:11:07 +0300 206) 	    ;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 207) 	  *) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 208) 	    $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 209) 	      --add-comments=TRANSLATORS: \
868b2b66 (kx 2024-12-20 16:11:07 +0300 210) 	      --files-from=$(srcdir)/POTFILES.in \
868b2b66 (kx 2024-12-20 16:11:07 +0300 211) 	      --copyright-holder='$(COPYRIGHT_HOLDER)' \
868b2b66 (kx 2024-12-20 16:11:07 +0300 212) 	      --package-name="$${package_prefix}@PACKAGE@" \
868b2b66 (kx 2024-12-20 16:11:07 +0300 213) 	      --package-version='@VERSION@' \
868b2b66 (kx 2024-12-20 16:11:07 +0300 214) 	      --msgid-bugs-address="$$msgid_bugs_address" \
868b2b66 (kx 2024-12-20 16:11:07 +0300 215) 	      $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
868b2b66 (kx 2024-12-20 16:11:07 +0300 216) 	    ;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 217) 	esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 218) 	test ! -f $(DOMAIN).po || { \
868b2b66 (kx 2024-12-20 16:11:07 +0300 219) 	  if test -f $(srcdir)/$(DOMAIN).pot-header; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 220) 	    sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 221) 	    cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 222) 	    rm -f $(DOMAIN).1po \
868b2b66 (kx 2024-12-20 16:11:07 +0300 223) 	    || exit 1; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 224) 	  fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 225) 	  if test -f $(srcdir)/$(DOMAIN).pot; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 226) 	    sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 227) 	    sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 228) 	    if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 229) 	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 230) 	    else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 231) 	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 232) 	      mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 233) 	    fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 234) 	  else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 235) 	    mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 236) 	  fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 237) 	}
868b2b66 (kx 2024-12-20 16:11:07 +0300 238) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 239) # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
868b2b66 (kx 2024-12-20 16:11:07 +0300 240) # every "make" invocation, only create it when it is missing.
868b2b66 (kx 2024-12-20 16:11:07 +0300 241) # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
868b2b66 (kx 2024-12-20 16:11:07 +0300 242) $(srcdir)/$(DOMAIN).pot:
868b2b66 (kx 2024-12-20 16:11:07 +0300 243) 	$(MAKE) $(DOMAIN).pot-update
868b2b66 (kx 2024-12-20 16:11:07 +0300 244) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 245) # This target rebuilds a PO file if $(DOMAIN).pot has changed.
868b2b66 (kx 2024-12-20 16:11:07 +0300 246) # Note that a PO file is not touched if it doesn't need to be changed.
868b2b66 (kx 2024-12-20 16:11:07 +0300 247) $(POFILES): $(POFILESDEPS)
868b2b66 (kx 2024-12-20 16:11:07 +0300 248) 	@test -f $(srcdir)/$(DOMAIN).pot || $(MAKE) $(srcdir)/$(DOMAIN).pot
868b2b66 (kx 2024-12-20 16:11:07 +0300 249) 	@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 250) 	if test -f "$(srcdir)/$${lang}.po"; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 251) 	  test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 252) 	  echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} --previous $${lang}.po $(DOMAIN).pot"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 253) 	  cd $(srcdir) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 254) 	    && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
868b2b66 (kx 2024-12-20 16:11:07 +0300 255) 	           '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].*) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 256) 	             $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 257) 	           0.1[6-7] | 0.1[6-7].*) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 258) 	             $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --previous $${lang}.po $(DOMAIN).pot;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 259) 	           *) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 260) 	             $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} --previous $${lang}.po $(DOMAIN).pot;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 261) 	         esac; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 262) 	       }; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 263) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 264) 	  $(MAKE) $${lang}.po-create; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 265) 	fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 266) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 267) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 268) install: install-exec install-data
868b2b66 (kx 2024-12-20 16:11:07 +0300 269) install-exec:
868b2b66 (kx 2024-12-20 16:11:07 +0300 270) install-data: install-data-@USE_NLS@
868b2b66 (kx 2024-12-20 16:11:07 +0300 271) 	if test "$(PACKAGE)" = "gettext-tools"; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 272) 	  $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
868b2b66 (kx 2024-12-20 16:11:07 +0300 273) 	  for file in $(DISTFILES.common) Makevars.template; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 274) 	    $(INSTALL_DATA) $(srcdir)/$$file \
868b2b66 (kx 2024-12-20 16:11:07 +0300 275) 			    $(DESTDIR)$(gettextsrcdir)/$$file; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 276) 	  done; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 277) 	  for file in Makevars; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 278) 	    rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 279) 	  done; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 280) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 281) 	  : ; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 282) 	fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 283) install-data-no: all
868b2b66 (kx 2024-12-20 16:11:07 +0300 284) install-data-yes: all
868b2b66 (kx 2024-12-20 16:11:07 +0300 285) 	@catalogs='$(CATALOGS)'; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 286) 	for cat in $$catalogs; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 287) 	  cat=`basename $$cat`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 288) 	  lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 289) 	  dir=$(localedir)/$$lang/LC_MESSAGES; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 290) 	  $(mkdir_p) $(DESTDIR)$$dir; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 291) 	  if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 292) 	  $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 293) 	  echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 294) 	  for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 295) 	    if test -n "$$lc"; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 296) 	      if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 297) 	        link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 298) 	        mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 299) 	        mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 300) 	        (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 301) 	         for file in *; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 302) 	           if test -f $$file; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 303) 	             ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 304) 	           fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 305) 	         done); \
868b2b66 (kx 2024-12-20 16:11:07 +0300 306) 	        rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 307) 	      else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 308) 	        if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 309) 	          :; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 310) 	        else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 311) 	          rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 312) 	          mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 313) 	        fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 314) 	      fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 315) 	      rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 316) 	      ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
868b2b66 (kx 2024-12-20 16:11:07 +0300 317) 	      ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
868b2b66 (kx 2024-12-20 16:11:07 +0300 318) 	      cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 319) 	      echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 320) 	    fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 321) 	  done; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 322) 	done
868b2b66 (kx 2024-12-20 16:11:07 +0300 323) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 324) install-strip: install
868b2b66 (kx 2024-12-20 16:11:07 +0300 325) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 326) installdirs: installdirs-exec installdirs-data
868b2b66 (kx 2024-12-20 16:11:07 +0300 327) installdirs-exec:
868b2b66 (kx 2024-12-20 16:11:07 +0300 328) installdirs-data: installdirs-data-@USE_NLS@
868b2b66 (kx 2024-12-20 16:11:07 +0300 329) 	if test "$(PACKAGE)" = "gettext-tools"; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 330) 	  $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
868b2b66 (kx 2024-12-20 16:11:07 +0300 331) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 332) 	  : ; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 333) 	fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 334) installdirs-data-no:
868b2b66 (kx 2024-12-20 16:11:07 +0300 335) installdirs-data-yes:
868b2b66 (kx 2024-12-20 16:11:07 +0300 336) 	@catalogs='$(CATALOGS)'; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 337) 	for cat in $$catalogs; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 338) 	  cat=`basename $$cat`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 339) 	  lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 340) 	  dir=$(localedir)/$$lang/LC_MESSAGES; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 341) 	  $(mkdir_p) $(DESTDIR)$$dir; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 342) 	  for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 343) 	    if test -n "$$lc"; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 344) 	      if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 345) 	        link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 346) 	        mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 347) 	        mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 348) 	        (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 349) 	         for file in *; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 350) 	           if test -f $$file; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 351) 	             ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 352) 	           fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 353) 	         done); \
868b2b66 (kx 2024-12-20 16:11:07 +0300 354) 	        rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 355) 	      else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 356) 	        if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 357) 	          :; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 358) 	        else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 359) 	          rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 360) 	          mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 361) 	        fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 362) 	      fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 363) 	    fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 364) 	  done; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 365) 	done
868b2b66 (kx 2024-12-20 16:11:07 +0300 366) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 367) # Define this as empty until I found a useful application.
868b2b66 (kx 2024-12-20 16:11:07 +0300 368) installcheck:
868b2b66 (kx 2024-12-20 16:11:07 +0300 369) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 370) uninstall: uninstall-exec uninstall-data
868b2b66 (kx 2024-12-20 16:11:07 +0300 371) uninstall-exec:
868b2b66 (kx 2024-12-20 16:11:07 +0300 372) uninstall-data: uninstall-data-@USE_NLS@
868b2b66 (kx 2024-12-20 16:11:07 +0300 373) 	if test "$(PACKAGE)" = "gettext-tools"; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 374) 	  for file in $(DISTFILES.common) Makevars.template; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 375) 	    rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 376) 	  done; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 377) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 378) 	  : ; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 379) 	fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 380) uninstall-data-no:
868b2b66 (kx 2024-12-20 16:11:07 +0300 381) uninstall-data-yes:
868b2b66 (kx 2024-12-20 16:11:07 +0300 382) 	catalogs='$(CATALOGS)'; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 383) 	for cat in $$catalogs; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 384) 	  cat=`basename $$cat`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 385) 	  lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 386) 	  for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 387) 	    rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 388) 	  done; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 389) 	done
868b2b66 (kx 2024-12-20 16:11:07 +0300 390) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 391) check: all
868b2b66 (kx 2024-12-20 16:11:07 +0300 392) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 393) info dvi ps pdf html tags TAGS ctags CTAGS ID:
868b2b66 (kx 2024-12-20 16:11:07 +0300 394) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 395) install-dvi install-ps install-pdf install-html:
868b2b66 (kx 2024-12-20 16:11:07 +0300 396) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 397) mostlyclean:
868b2b66 (kx 2024-12-20 16:11:07 +0300 398) 	rm -f remove-potcdate.sed
868b2b66 (kx 2024-12-20 16:11:07 +0300 399) 	rm -f $(srcdir)/stamp-poT
868b2b66 (kx 2024-12-20 16:11:07 +0300 400) 	rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
868b2b66 (kx 2024-12-20 16:11:07 +0300 401) 	rm -fr *.o
868b2b66 (kx 2024-12-20 16:11:07 +0300 402) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 403) clean: mostlyclean
868b2b66 (kx 2024-12-20 16:11:07 +0300 404) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 405) distclean: clean
868b2b66 (kx 2024-12-20 16:11:07 +0300 406) 	rm -f Makefile Makefile.in POTFILES
868b2b66 (kx 2024-12-20 16:11:07 +0300 407) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 408) maintainer-clean: distclean
868b2b66 (kx 2024-12-20 16:11:07 +0300 409) 	@echo "This command is intended for maintainers to use;"
868b2b66 (kx 2024-12-20 16:11:07 +0300 410) 	@echo "it deletes files that may require special tools to rebuild."
868b2b66 (kx 2024-12-20 16:11:07 +0300 411) 	rm -f $(srcdir)/$(DOMAIN).pot $(srcdir)/stamp-po $(GMOFILES)
868b2b66 (kx 2024-12-20 16:11:07 +0300 412) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 413) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
868b2b66 (kx 2024-12-20 16:11:07 +0300 414) dist distdir:
868b2b66 (kx 2024-12-20 16:11:07 +0300 415) 	test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS)
868b2b66 (kx 2024-12-20 16:11:07 +0300 416) 	@$(MAKE) dist2
868b2b66 (kx 2024-12-20 16:11:07 +0300 417) # This is a separate target because 'update-po' must be executed before.
868b2b66 (kx 2024-12-20 16:11:07 +0300 418) dist2: $(srcdir)/stamp-po $(DISTFILES)
868b2b66 (kx 2024-12-20 16:11:07 +0300 419) 	@dists="$(DISTFILES)"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 420) 	if test "$(PACKAGE)" = "gettext-tools"; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 421) 	  dists="$$dists Makevars.template"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 422) 	fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 423) 	if test -f $(srcdir)/$(DOMAIN).pot; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 424) 	  dists="$$dists $(DOMAIN).pot stamp-po"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 425) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 426) 	  case $(XGETTEXT) in \
868b2b66 (kx 2024-12-20 16:11:07 +0300 427) 	    :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 428) 	    *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the contents of the POTFILES.in file and the XGETTEXT_OPTIONS in the Makevars file." 1>&2;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 429) 	  esac; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 430) 	fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 431) 	if test -f $(srcdir)/ChangeLog; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 432) 	  dists="$$dists ChangeLog"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 433) 	fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 434) 	for i in 0 1 2 3 4 5 6 7 8 9; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 435) 	  if test -f $(srcdir)/ChangeLog.$$i; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 436) 	    dists="$$dists ChangeLog.$$i"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 437) 	  fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 438) 	done; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 439) 	if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 440) 	for file in $$dists; do \
868b2b66 (kx 2024-12-20 16:11:07 +0300 441) 	  if test -f $$file; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 442) 	    cp -p $$file $(distdir) || exit 1; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 443) 	  else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 444) 	    cp -p $(srcdir)/$$file $(distdir) || exit 1; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 445) 	  fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 446) 	done
868b2b66 (kx 2024-12-20 16:11:07 +0300 447) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 448) update-po: Makefile
868b2b66 (kx 2024-12-20 16:11:07 +0300 449) 	$(MAKE) $(DOMAIN).pot-update
868b2b66 (kx 2024-12-20 16:11:07 +0300 450) 	test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
868b2b66 (kx 2024-12-20 16:11:07 +0300 451) 	$(MAKE) update-gmo
868b2b66 (kx 2024-12-20 16:11:07 +0300 452) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 453) # General rule for creating PO files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 454) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 455) .nop.po-create:
868b2b66 (kx 2024-12-20 16:11:07 +0300 456) 	@lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 457) 	echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 458) 	exit 1
868b2b66 (kx 2024-12-20 16:11:07 +0300 459) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 460) # General rule for updating PO files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 461) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 462) .nop.po-update:
868b2b66 (kx 2024-12-20 16:11:07 +0300 463) 	@lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 464) 	if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 465) 	tmpdir=`pwd`; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 466) 	echo "$$lang:"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 467) 	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 468) 	echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang --previous $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 469) 	cd $(srcdir); \
868b2b66 (kx 2024-12-20 16:11:07 +0300 470) 	if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
868b2b66 (kx 2024-12-20 16:11:07 +0300 471) 	       '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].*) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 472) 	         $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 473) 	       0.1[6-7] | 0.1[6-7].*) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 474) 	         $(MSGMERGE) $(MSGMERGE_OPTIONS) --previous -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 475) 	       *) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 476) 	         $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang --previous -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 477) 	     esac; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 478) 	   }; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 479) 	  if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 480) 	    rm -f $$tmpdir/$$lang.new.po; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 481) 	  else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 482) 	    if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
868b2b66 (kx 2024-12-20 16:11:07 +0300 483) 	      :; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 484) 	    else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 485) 	      echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 486) 	      exit 1; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 487) 	    fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 488) 	  fi; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 489) 	else \
868b2b66 (kx 2024-12-20 16:11:07 +0300 490) 	  echo "msgmerge for $$lang.po failed!" 1>&2; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 491) 	  rm -f $$tmpdir/$$lang.new.po; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 492) 	fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 493) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 494) $(DUMMYPOFILES):
868b2b66 (kx 2024-12-20 16:11:07 +0300 495) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 496) update-gmo: Makefile $(GMOFILES)
868b2b66 (kx 2024-12-20 16:11:07 +0300 497) 	@:
868b2b66 (kx 2024-12-20 16:11:07 +0300 498) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 499) # Recreate Makefile by invoking config.status. Explicitly invoke the shell,
868b2b66 (kx 2024-12-20 16:11:07 +0300 500) # because execution permission bits may not work on the current file system.
868b2b66 (kx 2024-12-20 16:11:07 +0300 501) # Use @SHELL@, which is the shell determined by autoconf for the use by its
868b2b66 (kx 2024-12-20 16:11:07 +0300 502) # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
868b2b66 (kx 2024-12-20 16:11:07 +0300 503) Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
868b2b66 (kx 2024-12-20 16:11:07 +0300 504) 	cd $(top_builddir) \
868b2b66 (kx 2024-12-20 16:11:07 +0300 505) 	  && @SHELL@ ./config.status $(subdir)/$@.in po-directories
868b2b66 (kx 2024-12-20 16:11:07 +0300 506) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 507) force:
868b2b66 (kx 2024-12-20 16:11:07 +0300 508) 
868b2b66 (kx 2024-12-20 16:11:07 +0300 509) # Tell versions [3.59,3.63) of GNU make not to export all variables.
868b2b66 (kx 2024-12-20 16:11:07 +0300 510) # Otherwise a system limit (for SysV at least) may be exceeded.
868b2b66 (kx 2024-12-20 16:11:07 +0300 511) .NOEXPORT: