Blame po/Makefile.in.in

rpm-build 0a0c83
# Makefile for PO directory in any package using GNU gettext.
rpm-build 0a0c83
# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
rpm-build 0a0c83
#
rpm-build 0a0c83
# This file can be copied and used freely without restrictions.  It can
rpm-build 0a0c83
# be used in projects which are not available under the GNU General Public
rpm-build 0a0c83
# License but which still want to provide support for the GNU gettext
rpm-build 0a0c83
# functionality.
rpm-build 0a0c83
# Please note that the actual code of GNU gettext is covered by the GNU
rpm-build 0a0c83
# General Public License and is *not* in the public domain.
rpm-build 0a0c83
#
rpm-build 0a0c83
# Origin: gettext-0.18.2
rpm-build 0a0c83
GETTEXT_MACRO_VERSION = 0.18
rpm-build 0a0c83
rpm-build 0a0c83
PACKAGE = @PACKAGE@
rpm-build 0a0c83
VERSION = @VERSION@
rpm-build 0a0c83
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
rpm-build 0a0c83
rpm-build 0a0c83
SHELL = /bin/sh
rpm-build 0a0c83
@SET_MAKE@
rpm-build 0a0c83
rpm-build 0a0c83
srcdir = @srcdir@
rpm-build 0a0c83
top_srcdir = @top_srcdir@
rpm-build 0a0c83
VPATH = @srcdir@
rpm-build 0a0c83
rpm-build 0a0c83
prefix = @prefix@
rpm-build 0a0c83
exec_prefix = @exec_prefix@
rpm-build 0a0c83
datarootdir = @datarootdir@
rpm-build 0a0c83
datadir = @datadir@
rpm-build 0a0c83
localedir = @localedir@
rpm-build 0a0c83
gettextsrcdir = $(datadir)/gettext/po
rpm-build 0a0c83
rpm-build 0a0c83
INSTALL = @INSTALL@
rpm-build 0a0c83
INSTALL_DATA = @INSTALL_DATA@
rpm-build 0a0c83
rpm-build 0a0c83
# We use $(mkdir_p).
rpm-build 0a0c83
# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
rpm-build 0a0c83
# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
rpm-build 0a0c83
# @install_sh@ does not start with $(SHELL), so we add it.
rpm-build 0a0c83
# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
rpm-build 0a0c83
# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
rpm-build 0a0c83
# versions, $(mkinstalldirs) and $(install_sh) are unused.
rpm-build 0a0c83
mkinstalldirs = $(SHELL) @install_sh@ -d
rpm-build 0a0c83
install_sh = $(SHELL) @install_sh@
rpm-build 0a0c83
MKDIR_P = @MKDIR_P@
rpm-build 0a0c83
mkdir_p = @mkdir_p@
rpm-build 0a0c83
rpm-build 0a0c83
GMSGFMT_ = @GMSGFMT@
rpm-build 0a0c83
GMSGFMT_no = @GMSGFMT@
rpm-build 0a0c83
GMSGFMT_yes = @GMSGFMT_015@
rpm-build 0a0c83
GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
rpm-build 0a0c83
MSGFMT_ = @MSGFMT@
rpm-build 0a0c83
MSGFMT_no = @MSGFMT@
rpm-build 0a0c83
MSGFMT_yes = @MSGFMT_015@
rpm-build 0a0c83
MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
rpm-build 0a0c83
XGETTEXT_ = @XGETTEXT@
rpm-build 0a0c83
XGETTEXT_no = @XGETTEXT@
rpm-build 0a0c83
XGETTEXT_yes = @XGETTEXT_015@
rpm-build 0a0c83
XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
rpm-build 0a0c83
MSGMERGE = msgmerge
rpm-build 0a0c83
MSGMERGE_UPDATE = @MSGMERGE@ --update
rpm-build 0a0c83
MSGINIT = msginit
rpm-build 0a0c83
MSGCONV = msgconv
rpm-build 0a0c83
MSGFILTER = msgfilter
rpm-build 0a0c83
rpm-build 0a0c83
POFILES = @POFILES@
rpm-build 0a0c83
GMOFILES = @GMOFILES@
rpm-build 0a0c83
UPDATEPOFILES = @UPDATEPOFILES@
rpm-build 0a0c83
DUMMYPOFILES = @DUMMYPOFILES@
rpm-build 0a0c83
DISTFILES.common = Makefile.in.in remove-potcdate.sin \
rpm-build 0a0c83
$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
rpm-build 0a0c83
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
rpm-build 0a0c83
$(POFILES) $(GMOFILES) \
rpm-build 0a0c83
$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
rpm-build 0a0c83
rpm-build 0a0c83
POTFILES = \
rpm-build 0a0c83
rpm-build 0a0c83
CATALOGS = @CATALOGS@
rpm-build 0a0c83
rpm-build 0a0c83
# Makevars gets inserted here. (Don't remove this line!)
rpm-build 0a0c83
rpm-build 0a0c83
.SUFFIXES:
rpm-build 0a0c83
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
rpm-build 0a0c83
rpm-build 0a0c83
.po.mo:
rpm-build 0a0c83
	@echo "$(MSGFMT) -c -o $@ $<"; \
rpm-build 0a0c83
	$(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
rpm-build 0a0c83
rpm-build 0a0c83
.po.gmo:
rpm-build 0a0c83
	@lang=`echo $* | sed -e 's,.*/,,'`; \
rpm-build 0a0c83
	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
rpm-build 0a0c83
	echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
rpm-build 0a0c83
	cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
rpm-build 0a0c83
rpm-build 0a0c83
.sin.sed:
rpm-build 0a0c83
	sed -e '/^#/d' $< > t-$@
rpm-build 0a0c83
	mv t-$@ $@
rpm-build 0a0c83
rpm-build 0a0c83
rpm-build 0a0c83
all: all-@USE_NLS@
rpm-build 0a0c83
rpm-build 0a0c83
all-yes: stamp-po
rpm-build 0a0c83
all-no:
rpm-build 0a0c83
rpm-build 0a0c83
# Ensure that the gettext macros and this Makefile.in.in are in sync.
rpm-build 0a0c83
CHECK_MACRO_VERSION = \
rpm-build 0a0c83
	test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
rpm-build 0a0c83
	  || { 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; \
rpm-build 0a0c83
	       exit 1; \
rpm-build 0a0c83
	     }
rpm-build 0a0c83
rpm-build 0a0c83
# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
rpm-build 0a0c83
# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
rpm-build 0a0c83
# we don't want to bother translators with empty POT files). We assume that
rpm-build 0a0c83
# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
rpm-build 0a0c83
# In this case, stamp-po is a nop (i.e. a phony target).
rpm-build 0a0c83
rpm-build 0a0c83
# stamp-po is a timestamp denoting the last time at which the CATALOGS have
rpm-build 0a0c83
# been loosely updated. Its purpose is that when a developer or translator
rpm-build 0a0c83
# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
rpm-build 0a0c83
# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
rpm-build 0a0c83
# invocations of "make" will do nothing. This timestamp would not be necessary
rpm-build 0a0c83
# if updating the $(CATALOGS) would always touch them; however, the rule for
rpm-build 0a0c83
# $(POFILES) has been designed to not touch files that don't need to be
rpm-build 0a0c83
# changed.
rpm-build 0a0c83
stamp-po: $(srcdir)/$(DOMAIN).pot
rpm-build 0a0c83
	@$(CHECK_MACRO_VERSION)
rpm-build 0a0c83
	test ! -f $(srcdir)/$(DOMAIN).pot || \
rpm-build 0a0c83
	  test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
rpm-build 0a0c83
	@test ! -f $(srcdir)/$(DOMAIN).pot || { \
rpm-build 0a0c83
	  echo "touch stamp-po" && \
rpm-build 0a0c83
	  echo timestamp > stamp-poT && \
rpm-build 0a0c83
	  mv stamp-poT stamp-po; \
rpm-build 0a0c83
	}
rpm-build 0a0c83
rpm-build 0a0c83
# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
rpm-build 0a0c83
# otherwise packages like GCC can not be built if only parts of the source
rpm-build 0a0c83
# have been downloaded.
rpm-build 0a0c83
rpm-build 0a0c83
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
rpm-build 0a0c83
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
rpm-build 0a0c83
# The determination of whether the package xyz is a GNU one is based on the
rpm-build 0a0c83
# heuristic whether some file in the top level directory mentions "GNU xyz".
rpm-build 0a0c83
# If GNU 'find' is available, we avoid grepping through monster files.
rpm-build 0a0c83
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
rpm-build 0a0c83
	if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
rpm-build 0a0c83
	       LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \
rpm-build 0a0c83
	     else \
rpm-build 0a0c83
	       LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
rpm-build 0a0c83
	     fi; \
rpm-build 0a0c83
	   } | grep -v 'libtool:' >/dev/null; then \
rpm-build 0a0c83
	  package_gnu='GNU '; \
rpm-build 0a0c83
	else \
rpm-build 0a0c83
	  package_gnu=''; \
rpm-build 0a0c83
	fi; \
rpm-build 0a0c83
	if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
rpm-build 0a0c83
	  msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
rpm-build 0a0c83
	else \
rpm-build 0a0c83
	  msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
rpm-build 0a0c83
	fi; \
rpm-build 0a0c83
	case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
rpm-build 0a0c83
	  '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
rpm-build 0a0c83
	    $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
rpm-build 0a0c83
	      --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
rpm-build 0a0c83
	      --files-from=$(srcdir)/POTFILES.in \
rpm-build 0a0c83
	      --copyright-holder='$(COPYRIGHT_HOLDER)' \
rpm-build 0a0c83
	      --msgid-bugs-address="$$msgid_bugs_address" \
rpm-build 0a0c83
	    ;; \
rpm-build 0a0c83
	  *) \
rpm-build 0a0c83
	    $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
rpm-build 0a0c83
	      --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
rpm-build 0a0c83
	      --files-from=$(srcdir)/POTFILES.in \
rpm-build 0a0c83
	      --copyright-holder='$(COPYRIGHT_HOLDER)' \
rpm-build 0a0c83
	      --package-name="$${package_gnu}@PACKAGE@" \
rpm-build 0a0c83
	      --package-version='@VERSION@' \
rpm-build 0a0c83
	      --msgid-bugs-address="$$msgid_bugs_address" \
rpm-build 0a0c83
	    ;; \
rpm-build 0a0c83
	esac
rpm-build 0a0c83
	test ! -f $(DOMAIN).po || { \
rpm-build 0a0c83
	  if test -f $(srcdir)/$(DOMAIN).pot; then \
rpm-build 0a0c83
	    sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
rpm-build 0a0c83
	    sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
rpm-build 0a0c83
	    if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
rpm-build 0a0c83
	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
rpm-build 0a0c83
	    else \
rpm-build 0a0c83
	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
rpm-build 0a0c83
	      mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
rpm-build 0a0c83
	    fi; \
rpm-build 0a0c83
	  else \
rpm-build 0a0c83
	    mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
rpm-build 0a0c83
	  fi; \
rpm-build 0a0c83
	}
rpm-build 0a0c83
rpm-build 0a0c83
# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
rpm-build 0a0c83
# every "make" invocation, only create it when it is missing.
rpm-build 0a0c83
# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
rpm-build 0a0c83
$(srcdir)/$(DOMAIN).pot:
rpm-build 0a0c83
	$(MAKE) $(DOMAIN).pot-update
rpm-build 0a0c83
rpm-build 0a0c83
# This target rebuilds a PO file if $(DOMAIN).pot has changed.
rpm-build 0a0c83
# Note that a PO file is not touched if it doesn't need to be changed.
rpm-build 0a0c83
$(POFILES): $(srcdir)/$(DOMAIN).pot
rpm-build 0a0c83
	@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
rpm-build 0a0c83
	if test -f "$(srcdir)/$${lang}.po"; then \
rpm-build 0a0c83
	  test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
rpm-build 0a0c83
	  echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
rpm-build 0a0c83
	  cd $(srcdir) \
rpm-build 0a0c83
	    && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
rpm-build 0a0c83
	           '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
rpm-build 0a0c83
	             $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
rpm-build 0a0c83
	           *) \
rpm-build 0a0c83
	             $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
rpm-build 0a0c83
	         esac; \
rpm-build 0a0c83
	       }; \
rpm-build 0a0c83
	else \
rpm-build 0a0c83
	  $(MAKE) $${lang}.po-create; \
rpm-build 0a0c83
	fi
rpm-build 0a0c83
rpm-build 0a0c83
rpm-build 0a0c83
install: install-exec install-data
rpm-build 0a0c83
install-exec:
rpm-build 0a0c83
install-data: install-data-@USE_NLS@
rpm-build 0a0c83
	if test "$(PACKAGE)" = "gettext-tools"; then \
rpm-build 0a0c83
	  $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
rpm-build 0a0c83
	  for file in $(DISTFILES.common) Makevars.template; do \
rpm-build 0a0c83
	    $(INSTALL_DATA) $(srcdir)/$$file \
rpm-build 0a0c83
			    $(DESTDIR)$(gettextsrcdir)/$$file; \
rpm-build 0a0c83
	  done; \
rpm-build 0a0c83
	  for file in Makevars; do \
rpm-build 0a0c83
	    rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
rpm-build 0a0c83
	  done; \
rpm-build 0a0c83
	else \
rpm-build 0a0c83
	  : ; \
rpm-build 0a0c83
	fi
rpm-build 0a0c83
install-data-no: all
rpm-build 0a0c83
install-data-yes: all
rpm-build 0a0c83
	@catalogs='$(CATALOGS)'; \
rpm-build 0a0c83
	for cat in $$catalogs; do \
rpm-build 0a0c83
	  cat=`basename $$cat`; \
rpm-build 0a0c83
	  lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
rpm-build 0a0c83
	  dir=$(localedir)/$$lang/LC_MESSAGES; \
rpm-build 0a0c83
	  $(mkdir_p) $(DESTDIR)$$dir; \
rpm-build 0a0c83
	  if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
rpm-build 0a0c83
	  $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
rpm-build 0a0c83
	  echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
rpm-build 0a0c83
	  for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
rpm-build 0a0c83
	    if test -n "$$lc"; then \
rpm-build 0a0c83
	      if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
rpm-build 0a0c83
	        link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
rpm-build 0a0c83
	        mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
rpm-build 0a0c83
	        mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
rpm-build 0a0c83
	        (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
rpm-build 0a0c83
	         for file in *; do \
rpm-build 0a0c83
	           if test -f $$file; then \
rpm-build 0a0c83
	             ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
rpm-build 0a0c83
	           fi; \
rpm-build 0a0c83
	         done); \
rpm-build 0a0c83
	        rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
rpm-build 0a0c83
	      else \
rpm-build 0a0c83
	        if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
rpm-build 0a0c83
	          :; \
rpm-build 0a0c83
	        else \
rpm-build 0a0c83
	          rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
rpm-build 0a0c83
	          mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
rpm-build 0a0c83
	        fi; \
rpm-build 0a0c83
	      fi; \
rpm-build 0a0c83
	      rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
rpm-build 0a0c83
	      ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
rpm-build 0a0c83
	      ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
rpm-build 0a0c83
	      cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
rpm-build 0a0c83
	      echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
rpm-build 0a0c83
	    fi; \
rpm-build 0a0c83
	  done; \
rpm-build 0a0c83
	done
rpm-build 0a0c83
rpm-build 0a0c83
install-strip: install
rpm-build 0a0c83
rpm-build 0a0c83
installdirs: installdirs-exec installdirs-data
rpm-build 0a0c83
installdirs-exec:
rpm-build 0a0c83
installdirs-data: installdirs-data-@USE_NLS@
rpm-build 0a0c83
	if test "$(PACKAGE)" = "gettext-tools"; then \
rpm-build 0a0c83
	  $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
rpm-build 0a0c83
	else \
rpm-build 0a0c83
	  : ; \
rpm-build 0a0c83
	fi
rpm-build 0a0c83
installdirs-data-no:
rpm-build 0a0c83
installdirs-data-yes:
rpm-build 0a0c83
	@catalogs='$(CATALOGS)'; \
rpm-build 0a0c83
	for cat in $$catalogs; do \
rpm-build 0a0c83
	  cat=`basename $$cat`; \
rpm-build 0a0c83
	  lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
rpm-build 0a0c83
	  dir=$(localedir)/$$lang/LC_MESSAGES; \
rpm-build 0a0c83
	  $(mkdir_p) $(DESTDIR)$$dir; \
rpm-build 0a0c83
	  for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
rpm-build 0a0c83
	    if test -n "$$lc"; then \
rpm-build 0a0c83
	      if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
rpm-build 0a0c83
	        link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
rpm-build 0a0c83
	        mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
rpm-build 0a0c83
	        mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
rpm-build 0a0c83
	        (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
rpm-build 0a0c83
	         for file in *; do \
rpm-build 0a0c83
	           if test -f $$file; then \
rpm-build 0a0c83
	             ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
rpm-build 0a0c83
	           fi; \
rpm-build 0a0c83
	         done); \
rpm-build 0a0c83
	        rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
rpm-build 0a0c83
	      else \
rpm-build 0a0c83
	        if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
rpm-build 0a0c83
	          :; \
rpm-build 0a0c83
	        else \
rpm-build 0a0c83
	          rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
rpm-build 0a0c83
	          mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
rpm-build 0a0c83
	        fi; \
rpm-build 0a0c83
	      fi; \
rpm-build 0a0c83
	    fi; \
rpm-build 0a0c83
	  done; \
rpm-build 0a0c83
	done
rpm-build 0a0c83
rpm-build 0a0c83
# Define this as empty until I found a useful application.
rpm-build 0a0c83
installcheck:
rpm-build 0a0c83
rpm-build 0a0c83
uninstall: uninstall-exec uninstall-data
rpm-build 0a0c83
uninstall-exec:
rpm-build 0a0c83
uninstall-data: uninstall-data-@USE_NLS@
rpm-build 0a0c83
	if test "$(PACKAGE)" = "gettext-tools"; then \
rpm-build 0a0c83
	  for file in $(DISTFILES.common) Makevars.template; do \
rpm-build 0a0c83
	    rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
rpm-build 0a0c83
	  done; \
rpm-build 0a0c83
	else \
rpm-build 0a0c83
	  : ; \
rpm-build 0a0c83
	fi
rpm-build 0a0c83
uninstall-data-no:
rpm-build 0a0c83
uninstall-data-yes:
rpm-build 0a0c83
	catalogs='$(CATALOGS)'; \
rpm-build 0a0c83
	for cat in $$catalogs; do \
rpm-build 0a0c83
	  cat=`basename $$cat`; \
rpm-build 0a0c83
	  lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
rpm-build 0a0c83
	  for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
rpm-build 0a0c83
	    rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
rpm-build 0a0c83
	  done; \
rpm-build 0a0c83
	done
rpm-build 0a0c83
rpm-build 0a0c83
check: all
rpm-build 0a0c83
rpm-build 0a0c83
info dvi ps pdf html tags TAGS ctags CTAGS ID:
rpm-build 0a0c83
rpm-build 0a0c83
mostlyclean:
rpm-build 0a0c83
	rm -f remove-potcdate.sed
rpm-build 0a0c83
	rm -f stamp-poT
rpm-build 0a0c83
	rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
rpm-build 0a0c83
	rm -fr *.o
rpm-build 0a0c83
rpm-build 0a0c83
clean: mostlyclean
rpm-build 0a0c83
rpm-build 0a0c83
distclean: clean
rpm-build 0a0c83
	rm -f Makefile Makefile.in POTFILES *.mo
rpm-build 0a0c83
rpm-build 0a0c83
maintainer-clean: distclean
rpm-build 0a0c83
	@echo "This command is intended for maintainers to use;"
rpm-build 0a0c83
	@echo "it deletes files that may require special tools to rebuild."
rpm-build 0a0c83
	rm -f stamp-po $(GMOFILES)
rpm-build 0a0c83
rpm-build 0a0c83
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
rpm-build 0a0c83
dist distdir:
rpm-build 0a0c83
	$(MAKE) update-po
rpm-build 0a0c83
	@$(MAKE) dist2
rpm-build 0a0c83
# This is a separate target because 'update-po' must be executed before.
rpm-build 0a0c83
dist2: stamp-po $(DISTFILES)
rpm-build 0a0c83
	dists="$(DISTFILES)"; \
rpm-build 0a0c83
	if test "$(PACKAGE)" = "gettext-tools"; then \
rpm-build 0a0c83
	  dists="$$dists Makevars.template"; \
rpm-build 0a0c83
	fi; \
rpm-build 0a0c83
	if test -f $(srcdir)/$(DOMAIN).pot; then \
rpm-build 0a0c83
	  dists="$$dists $(DOMAIN).pot stamp-po"; \
rpm-build 0a0c83
	fi; \
rpm-build 0a0c83
	if test -f $(srcdir)/ChangeLog; then \
rpm-build 0a0c83
	  dists="$$dists ChangeLog"; \
rpm-build 0a0c83
	fi; \
rpm-build 0a0c83
	for i in 0 1 2 3 4 5 6 7 8 9; do \
rpm-build 0a0c83
	  if test -f $(srcdir)/ChangeLog.$$i; then \
rpm-build 0a0c83
	    dists="$$dists ChangeLog.$$i"; \
rpm-build 0a0c83
	  fi; \
rpm-build 0a0c83
	done; \
rpm-build 0a0c83
	if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
rpm-build 0a0c83
	for file in $$dists; do \
rpm-build 0a0c83
	  if test -f $$file; then \
rpm-build 0a0c83
	    cp -p $$file $(distdir) || exit 1; \
rpm-build 0a0c83
	  else \
rpm-build 0a0c83
	    cp -p $(srcdir)/$$file $(distdir) || exit 1; \
rpm-build 0a0c83
	  fi; \
rpm-build 0a0c83
	done
rpm-build 0a0c83
rpm-build 0a0c83
update-po: Makefile
rpm-build 0a0c83
	$(MAKE) $(DOMAIN).pot-update
rpm-build 0a0c83
	test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
rpm-build 0a0c83
	$(MAKE) update-gmo
rpm-build 0a0c83
rpm-build 0a0c83
# General rule for creating PO files.
rpm-build 0a0c83
rpm-build 0a0c83
.nop.po-create:
rpm-build 0a0c83
	@lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
rpm-build 0a0c83
	echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
rpm-build 0a0c83
	exit 1
rpm-build 0a0c83
rpm-build 0a0c83
# General rule for updating PO files.
rpm-build 0a0c83
rpm-build 0a0c83
.nop.po-update:
rpm-build 0a0c83
	@lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
rpm-build 0a0c83
	if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
rpm-build 0a0c83
	tmpdir=`pwd`; \
rpm-build 0a0c83
	echo "$$lang:"; \
rpm-build 0a0c83
	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
rpm-build 0a0c83
	echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
rpm-build 0a0c83
	cd $(srcdir); \
rpm-build 0a0c83
	if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
rpm-build 0a0c83
	       '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
rpm-build 0a0c83
	         $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
rpm-build 0a0c83
	       *) \
rpm-build 0a0c83
	         $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
rpm-build 0a0c83
	     esac; \
rpm-build 0a0c83
	   }; then \
rpm-build 0a0c83
	  if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
rpm-build 0a0c83
	    rm -f $$tmpdir/$$lang.new.po; \
rpm-build 0a0c83
	  else \
rpm-build 0a0c83
	    if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
rpm-build 0a0c83
	      :; \
rpm-build 0a0c83
	    else \
rpm-build 0a0c83
	      echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
rpm-build 0a0c83
	      exit 1; \
rpm-build 0a0c83
	    fi; \
rpm-build 0a0c83
	  fi; \
rpm-build 0a0c83
	else \
rpm-build 0a0c83
	  echo "msgmerge for $$lang.po failed!" 1>&2; \
rpm-build 0a0c83
	  rm -f $$tmpdir/$$lang.new.po; \
rpm-build 0a0c83
	fi
rpm-build 0a0c83
rpm-build 0a0c83
$(DUMMYPOFILES):
rpm-build 0a0c83
rpm-build 0a0c83
update-gmo: Makefile $(GMOFILES)
rpm-build 0a0c83
	@:
rpm-build 0a0c83
rpm-build 0a0c83
# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
rpm-build 0a0c83
# because execution permission bits may not work on the current file system.
rpm-build 0a0c83
# Use @SHELL@, which is the shell determined by autoconf for the use by its
rpm-build 0a0c83
# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
rpm-build 0a0c83
Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
rpm-build 0a0c83
	cd $(top_builddir) \
rpm-build 0a0c83
	  && @SHELL@ ./config.status $(subdir)/$@.in po-directories
rpm-build 0a0c83
rpm-build 0a0c83
force:
rpm-build 0a0c83
rpm-build 0a0c83
# Tell versions [3.59,3.63) of GNU make not to export all variables.
rpm-build 0a0c83
# Otherwise a system limit (for SysV at least) may be exceeded.
rpm-build 0a0c83
.NOEXPORT: