# Makefile.in generated by automake 1.16.1 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2018 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
  if test -z '$(MAKELEVEL)'; then \
    false; \
  elif test -n '$(MAKE_HOST)'; then \
    true; \
  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
    true; \
  else \
    false; \
  fi; \
}
am__make_running_with_option = \
  case $${target_option-} in \
      ?) ;; \
      *) echo "am__make_running_with_option: internal error: invalid" \
              "target option '$${target_option-}' specified" >&2; \
         exit 1;; \
  esac; \
  has_opt=no; \
  sane_makeflags=$$MAKEFLAGS; \
  if $(am__is_gnu_make); then \
    sane_makeflags=$$MFLAGS; \
  else \
    case $$MAKEFLAGS in \
      *\\[\ \	]*) \
        bs=\\; \
        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
    esac; \
  fi; \
  skip_next=no; \
  strip_trailopt () \
  { \
    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
  }; \
  for flg in $$sane_makeflags; do \
    test $$skip_next = yes && { skip_next=no; continue; }; \
    case $$flg in \
      *=*|--*) continue;; \
        -*I) strip_trailopt 'I'; skip_next=yes;; \
      -*I?*) strip_trailopt 'I';; \
        -*O) strip_trailopt 'O'; skip_next=yes;; \
      -*O?*) strip_trailopt 'O';; \
        -*l) strip_trailopt 'l'; skip_next=yes;; \
      -*l?*) strip_trailopt 'l';; \
      -[dEDm]) skip_next=yes;; \
      -[JT]) skip_next=yes;; \
    esac; \
    case $$flg in \
      *$$target_option*) has_opt=yes; break;; \
    esac; \
  done; \
  test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = po
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
	$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo "  GEN     " $@;
am__v_GEN_1 = 
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 = 
SOURCES =
DIST_SOURCES =
am__can_run_installinfo = \
  case $$AM_UPDATE_INFO_DIR in \
    n|no|NO) false;; \
    *) (install-info --version) >/dev/null 2>&1;; \
  esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(srcdir)/Makefile.in README
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ALL_DOMAINS = @ALL_DOMAINS@
ALL_LINGUAS = @ALL_LINGUAS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR_FLAGS = @AR_FLAGS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
Bidi_CFLAGS = @Bidi_CFLAGS@
Bidi_LIBS = @Bidi_LIBS@
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DOC_COMMANDS = @DOC_COMMANDS@
DOC_COMMANDS_HTML = @DOC_COMMANDS_HTML@
DOC_COMMANDS_XML = @DOC_COMMANDS_XML@
DOC_COMMANDS_XML_PATH = @DOC_COMMANDS_XML_PATH@
DOC_MODULES = @DOC_MODULES@
DOC_MODULES_HTML = @DOC_MODULES_HTML@
DOC_SECTIONS = @DOC_SECTIONS@
DOC_SECTIONS_XML = @DOC_SECTIONS_XML@
DOC_SECTIONS_XML_PATH = @DOC_SECTIONS_XML_PATH@
DUMMYPOFILES = @DUMMYPOFILES@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FC_CFLAGS = @FC_CFLAGS@
FC_CONFIG = @FC_CONFIG@
FC_LIBS = @FC_LIBS@
FRIBIDI_CONFIG = @FRIBIDI_CONFIG@
FVWMALTFTP = @FVWMALTFTP@
FVWMALTFTPDIR = @FVWMALTFTPDIR@
FVWMFTP = @FVWMFTP@
FVWMFTPDIR = @FVWMFTPDIR@
FVWMHOMEPAGE = @FVWMHOMEPAGE@
FVWMLIST = @FVWMLIST@
FVWMNAMELONG = @FVWMNAMELONG@
FVWMSCRIPT_DOMAIN = @FVWMSCRIPT_DOMAIN@
FVWMTASKBAR_DOMAIN = @FVWMTASKBAR_DOMAIN@
FVWMWORKERSLIST = @FVWMWORKERSLIST@
FVWMWORKERSLISTLONG = @FVWMWORKERSLISTLONG@
FVWM_CONFDIR = @FVWM_CONFDIR@
FVWM_CPP = @FVWM_CPP@
FVWM_DATADIR = @FVWM_DATADIR@
FVWM_DOCDIR = @FVWM_DOCDIR@
FVWM_DOMAIN = @FVWM_DOMAIN@
FVWM_IMAGEPATH = @FVWM_IMAGEPATH@
FVWM_MODULEDIR = @FVWM_MODULEDIR@
FVWM_PERLLIB = @FVWM_PERLLIB@
FVWM_PERLLIBDIR = @FVWM_PERLLIBDIR@
GDK_IMLIB_CFLAGS = @GDK_IMLIB_CFLAGS@
GDK_IMLIB_LIBS = @GDK_IMLIB_LIBS@
GMOFILES = @GMOFILES@
GMSGFMT = @GMSGFMT@
GREP = @GREP@
IMLIBCONF = @IMLIBCONF@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INST_LINGUAS = @INST_LINGUAS@
ISRELEASED = @ISRELEASED@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LN_S = @LN_S@
LOCALEDIR = @LOCALEDIR@
LOCAL_BUGADDR = @LOCAL_BUGADDR@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MANPAGE_PREAMBLE = @MANPAGE_PREAMBLE@
MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
MSGMERGE = @MSGMERGE@
MSGUNIQ = @MSGUNIQ@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PERL = @PERL@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
POFILES = @POFILES@
POSUB = @POSUB@
PYTHON = @PYTHON@
RANLIB = @RANLIB@
RELDATELONG = @RELDATELONG@
RELDATENUM = @RELDATENUM@
RELDATESHORT = @RELDATESHORT@
REQUIRED_PERL_VERSION = @REQUIRED_PERL_VERSION@
REQUIRED_PYTHON_VERSION = @REQUIRED_PYTHON_VERSION@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
UPDATEPOFILES = @UPDATEPOFILES@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
VERSIONINFO = @VERSIONINFO@
XFT_CFLAGS = @XFT_CFLAGS@
XFT_CONFIG = @XFT_CONFIG@
XFT_LIBS = @XFT_LIBS@
XGETTEXT = @XGETTEXT@
XMKMF = @XMKMF@
XSLTPROC = @XSLTPROC@
X_CFLAGS = @X_CFLAGS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_LIBS = @X_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
Xcursor_CFLAGS = @Xcursor_CFLAGS@
Xcursor_LIBS = @Xcursor_LIBS@
Xft_CFLAGS = @Xft_CFLAGS@
Xft_LIBS = @Xft_LIBS@
Xinerama_CFLAGS = @Xinerama_CFLAGS@
Xinerama_LIBS = @Xinerama_LIBS@
Xrender_CFLAGS = @Xrender_CFLAGS@
Xrender_LIBS = @Xrender_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
iconv_CFLAGS = @iconv_CFLAGS@
iconv_LIBS = @iconv_LIBS@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
intl_CFLAGS = @intl_CFLAGS@
intl_LIBS = @intl_LIBS@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @LOCALEDIR@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
png_CFLAGS = @png_CFLAGS@
png_LIBS = @png_LIBS@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
readline_CFLAGS = @readline_CFLAGS@
readline_LIBS = @readline_LIBS@
rplay_CFLAGS = @rplay_CFLAGS@
rplay_LIBS = @rplay_LIBS@
rsvg_CFLAGS = @rsvg_CFLAGS@
rsvg_LIBS = @rsvg_LIBS@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
stroke_CFLAGS = @stroke_CFLAGS@
stroke_LIBS = @stroke_LIBS@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
with_bidi = @with_bidi@
with_gdkimlib = @with_gdkimlib@
with_gettext = @with_gettext@
with_iconv = @with_iconv@
with_perllib = @with_perllib@
with_png = @with_png@
with_readline = @with_readline@
with_rplay = @with_rplay@
with_rsvg = @with_rsvg@
with_shape = @with_shape@
with_shm = @with_shm@
with_sm = @with_sm@
with_stroke = @with_stroke@
with_xcursor = @with_xcursor@
with_xft = @with_xft@
with_xinerama = @with_xinerama@
with_xpm = @with_xpm@
with_xrender = @with_xrender@
xpm_CFLAGS = @xpm_CFLAGS@
xpm_LIBS = @xpm_LIBS@
FVWM_POT_FILES = \
     ../fvwm/fvwm.c \
     ../fvwm/expand.c \
     ../fvwm/windowlist.c \
     ../fvwm/virtual.c \
     ../fvwm/menus.c

FVWMRC_POT_FILES = \
     ../fvwm/ConfigFvwmSetup \
     ../modules/FvwmForm/FvwmForm-Setup.in

FVWMSCRIPT_POT_FILES = \
	../modules/FvwmScript/Scripts/FvwmScript-BellSetup \
	../modules/FvwmScript/Scripts/FvwmScript-KeyboardSetup \
	../modules/FvwmScript/Scripts/FvwmScript-PointerSetup \
	../modules/FvwmScript/Scripts/FvwmScript-ScreenSetup \
	../modules/FvwmScript/Scripts/FvwmScript-FileBrowser

EXTRA_DIST = \
	@POFILES@ @GMOFILES@ fvwm.pot FvwmScript.pot \
	remove-potcdate.sed remove-potcdate.sin

COPYRIGHT_HOLDER = fvwm workers

# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_

# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used.  It is usually empty.
EXTRA_LOCALE_CATEGORIES = 
MSGMERGE_UPDATE = @MSGMERGE@ --update
SUFFIXES = .po .gmo .mo .sed .sin .nop .po-update
all: all-am

.SUFFIXES:
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
	        && { if test -f $@; then exit 0; else break; fi; }; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign po/Makefile'; \
	$(am__cd) $(top_srcdir) && \
	  $(AUTOMAKE) --foreign po/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure:  $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
tags TAGS:

ctags CTAGS:

cscope cscopelist:


distdir: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) distdir-am

distdir-am: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d "$(distdir)/$$file"; then \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
	  else \
	    test -f "$(distdir)/$$file" \
	    || cp -p $$d/$$file "$(distdir)/$$file" \
	    || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-am
all-am: Makefile all-local
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	if test -z '$(STRIP)'; then \
	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	      install; \
	else \
	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
	fi
mostlyclean-generic:

clean-generic:

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-generic

dvi: dvi-am

dvi-am:

html: html-am

html-am:

info: info-am

info-am:

install-data-am: install-data-local

install-dvi: install-dvi-am

install-dvi-am:

install-exec-am:

install-html: install-html-am

install-html-am:

install-info: install-info-am

install-info-am:

install-man:

install-pdf: install-pdf-am

install-pdf-am:

install-ps: install-ps-am

install-ps-am:

installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic \
	maintainer-clean-local

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-local

.MAKE: install-am install-strip

.PHONY: all all-am all-local check check-am clean clean-generic \
	cscopelist-am ctags-am distclean distclean-generic distdir dvi \
	dvi-am html html-am info info-am install install-am \
	install-data install-data-am install-data-local install-dvi \
	install-dvi-am install-exec install-exec-am install-html \
	install-html-am install-info install-info-am install-man \
	install-pdf install-pdf-am install-ps install-ps-am \
	install-strip installcheck installcheck-am installdirs \
	maintainer-clean maintainer-clean-generic \
	maintainer-clean-local mostlyclean mostlyclean-generic pdf \
	pdf-am ps ps-am tags-am uninstall uninstall-am uninstall-local

.PRECIOUS: Makefile


.po.mo:
	@echo "$(MSGFMT) -c -o $@ $<"; \
	$(MSGFMT) -c -o t-$@ $< && mv t-$@ $@

.po.gmo:
	@lang=`echo $* | sed -e 's,.*/,,'`; \
	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
	if test -f $(srcdir)/$${lang}.po; then \
	  echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
	  cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo; \
	fi

.sin.sed:
	sed -e '/^#/d' $< > t-$@
	mv t-$@ $@

all-local: all-local-@USE_NLS@

# make [all] should do nothing ...
#all-local-yes: $(CATALOGS)
all-local-yes:
all-local-no:

catalogs: $(CATALOGS)

maintainer-clean-local:
	rm -f $(GMOFILES)

$(FVWM_DOMAIN).pot-update: $(FVWM_POT_FILES) \
	$(FVWMRC_POT_FILES) \
	remove-potcdate.sed
	rm -f fvwmrc.pot; \
	rcpotfiles='$(FVWMRC_POT_FILES)'; \
	rm -f duplicate; \
	for file in $$rcpotfiles; do \
	  perl -ne 's/\[gt\.((\\.|.)+?)\]/ print \
	  "\#$$ARGV: line $$.\n"."msgid \"$$1\"\n"."msgstr \"\"\n\n"/ge' \
	  $$file >> duplicate; \
	done; \
	msguniq duplicate > fvwmrc.pot;
	rm -f duplicate; \
	potfiles='$(FVWM_POT_FILES)'; \
	$(XGETTEXT) \
	  --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) -o $(FVWM_DOMAIN).po \
	  --copyright-holder='$(COPYRIGHT_HOLDER)' $$potfiles; \
	test ! -f $(FVWM_DOMAIN).po || { \
	  if test -f $(srcdir)/$(FVWM_DOMAIN).pot; then \
	    sed -f remove-potcdate.sed < $(srcdir)/$(FVWM_DOMAIN).pot > $(FVWM_DOMAIN).1po && \
	    sed -f remove-potcdate.sed < $(FVWM_DOMAIN).po > $(FVWM_DOMAIN).2po && \
	    if cmp $(FVWM_DOMAIN).1po $(FVWM_DOMAIN).2po >/dev/null 2>&1; then \
	      rm -f $(FVWM_DOMAIN).1po $(FVWM_DOMAIN).2po $(FVWM_DOMAIN).po; \
	    else \
	      rm -f $(FVWM_DOMAIN).1po $(FVWM_DOMAIN).2po $(srcdir)/$(FVWM_DOMAIN).pot && \
	      mv $(FVWM_DOMAIN).po $(srcdir)/$(FVWM_DOMAIN).pot; \
	    fi; \
	  else \
	    mv $(FVWM_DOMAIN).po $(srcdir)/$(FVWM_DOMAIN).pot; \
	  fi; \
	  mv $(FVWM_DOMAIN).pot duplicate.pot; \
	  cat fvwmrc.pot >> duplicate.pot; \
	  msguniq duplicate.pot  > $(FVWM_DOMAIN).pot; \
	  rm -f duplicate.pot fvwmrc.pot; \
	}

$(srcdir)/$(FVWM_DOMAIN).pot:
	$(MAKE) $(FVWM_DOMAIN).pot-update

$(FVWMSCRIPT_DOMAIN).pot-update: $(FVWMSCRIPT_POT_FILES) \
	remove-potcdate.sed
	potfiles='$(FVWMSCRIPT_POT_FILES)'; \
	rm -f duplicate; \
	for file in $$potfiles; do \
	  perl -ne 's/LocaleTitle\s+\{((\\.|.)+?)\}/ print \
	  "\#$$ARGV: line $$.\n"."msgid \"$$1\"\n"."msgstr \"\"\n\n"/ge' \
	  $$file >> duplicate; \
	done; \
	msguniq duplicate > duplicate.pot; \
	cat pot_head_sample >  $(FVWMSCRIPT_DOMAIN).pot; \
	cat duplicate.pot >> $(FVWMSCRIPT_DOMAIN).pot; \
	rm -f duplicate duplicate.pot;

$(srcdir)/$(FVWMSCRIPT_DOMAIN).pot:
	$(MAKE) $(FVWMSCRIPT_DOMAIN).pot-update

$(POFILES): $(srcdir)/$(FVWM_DOMAIN).pot \
	$(srcdir)/$(FVWMSCRIPT_DOMAIN).pot
	dlang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
	dom=`echo $$dlang | sed -e 's/\..*$$//'`; \
	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
	if test -f $${dlang}.po; then \
	  echo "$${cdcmd}$(MSGMERGE_UPDATE) $${dlang}.po $${dom}.pot"; \
	  cd $(srcdir) && $(MSGMERGE_UPDATE) $${dlang}.po $${dom}.pot; \
	fi

#	@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
#	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
#	echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(FVWM_DOMAIN).pot"; \
#	cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(FVWM_DOMAIN).pot

install-data-local: install-data-local-@USE_NLS@
install-data-local-no: all
install-data-local-yes: all
	$(mkinstalldirs) $(DESTDIR)$(datadir)
	@catalogs='$(CATALOGS)'; \
	all_domains='$(ALL_DOMAINS)'; \
	for dom in $$all_domains; do \
	  for cat in $$catalogs; do \
	    cat=`basename $$cat`; \
	    lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
	    cat="$$dom.$$cat"; \
	    dir=$(localedir)/$$lang/LC_MESSAGES; \
	    $(mkinstalldirs) $(DESTDIR)$$dir; \
	    if test -r $$cat; \
	      then realcat=$$cat; \
	    else realcat=$(srcdir)/$$cat; \
	    fi; \
	    if test -f $$realcat; then \
	      $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$$dom.mo; \
	      echo "installing $$realcat as $(DESTDIR)$$dir/$$dom.mo"; \
	      for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
	        if test -n "$$lc"; then \
	          if (cd $(DESTDIR)$(localedir)/$$lang && \
	              LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' \
                      >/dev/null; then \
	            link=`cd $(DESTDIR)$(localedir)/$$lang && \
                         LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
	            mv $(DESTDIR)$(localedir)/$$lang/$$lc \
                       $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
	            mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
	            (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
	             for file in *; do \
	               if test -f $$file; then \
	                 ln -s ../$$link/$$file \
                               $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
	               fi; \
	             done); \
	            rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
	          else \
	            if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
	              :; \
	            else \
	              rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
	              mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
	            fi; \
	          fi; \
	          rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$$dom.mo; \
	          ln -s ../LC_MESSAGES/$$dom.mo \
	             $(DESTDIR)$(localedir)/$$lang/$$lc/$$dom.mo 2>/dev/null || \
	          ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$$dom.mo \
	             $(DESTDIR)$(localedir)/$$lang/$$lc/$$dom.mo 2>/dev/null || \
	          cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$$dom.mo \
	             $(DESTDIR)$(localedir)/$$lang/$$lc/$$dom.mo; \
	          echo "installing $$realcat link as \
	          $(DESTDIR)$(localedir)/$$lang/$$lc/$$dom.mo"; \
	        fi; \
	      done; \
	    fi; \
	  done; \
	done

installdirs-data: installdirs-data-local-@USE_NLS@
installdirs-data-local-no:
installdirs-data-local-yes:
	$(mkinstalldirs) $(DESTDIR)$(datadir)
	@catalogs='$(CATALOGS)'; \
	all_domains='$(ALL_DOMAINS)'; \
	for dom in $$all_domainss; do \
	  for cat in $$catalogs; do \
	    cat=`basename $$cat`; \
	    lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
	    dir=$(localedir)/$$lang/LC_MESSAGES; \
	    $(mkinstalldirs) $(DESTDIR)$$dir; \
	    for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
	      if test -n "$$lc"; then \
	        if (cd $(DESTDIR)$(localedir)/$$lang && \
                    LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' \
                    >/dev/null; then \
	          link=`cd $(DESTDIR)$(localedir)/$$lang && \
                        LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
	          mv $(DESTDIR)$(localedir)/$$lang/$$lc \
                     $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
	          mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
	          (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
	           for file in *; do \
	             if test -f $$file; then \
	               ln -s ../$$link/$$file \
                             $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
	             fi; \
	           done); \
	          rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
	        else \
	          if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
	            :; \
	          else \
	            rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
	            mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
	          fi; \
	        fi; \
	      fi; \
	    done; \
	  done; \
	done

uninstall-local: uninstall-local-@USE_NLS@
uninstall-local-no:
uninstall-local-yes:
	catalogs='$(CATALOGS)'; \
	all_domains='$(ALL_DOMAINS)'; \
	for dom in $$all_domains; do \
	  for cat in $$catalogs; do \
	    cat=`basename $$cat`; \
	    lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
	    for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
	      rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$$dom.mo; \
	    done; \
	  done; \
	done

update-po: Makefile
	$(MAKE) $(FVWM_DOMAIN).pot-update
	$(MAKE) $(FVWMSCRIPT_DOMAIN).pot-update
	$(MAKE) $(UPDATEPOFILES)
	$(MAKE) update-gmo

# General rule for updating PO files.

.nop.po-update:
	dlang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po-update$$//'`; \
	dom=`echo $$dlang | sed -e 's/\..*$$//'`; \
	tmpdir=`pwd`; \
	echo "$$dlang:"; \
	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
	echo "$${cdcmd}$(MSGMERGE) $$dlang.po $$dom.pot -o $$dlang.new.po"; \
	cd $(srcdir); \
	if $(MSGMERGE) $$dlang.po $$dom.pot -o $$tmpdir/$$dlang.new.po; then \
	  if cmp $$dlang.po $$tmpdir/$$dlang.new.po >/dev/null 2>&1; then \
	    rm -f $$tmpdir/$$dlang.new.po; \
	  else \
	    if mv -f $$tmpdir/$$dlang.new.po $$dlang.po; then \
	      :; \
	    else \
	      echo "msgmerge for $$dlang.po failed: cannot move \
$$tmpdir/$$dlang.new.po to $$dlang.po" 1>&2; \
	      exit 1; \
	    fi; \
	  fi; \
	else \
	  echo "msgmerge for $$dlang.po failed!" 1>&2; \
	  rm -f $$tmpdir/$$dlang.new.po; \
	fi

$(DUMMYPOFILES):

update-gmo: Makefile $(GMOFILES)
	@:

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
