Makefile.in 18.5 KB
Newer Older
Tobias Quathamer's avatar
Tobias Quathamer committed
1
# Makefile.in generated by automake 1.15 from Makefile.am.
2 3
# @configure_input@

Tobias Quathamer's avatar
Tobias Quathamer committed
4
# Copyright (C) 1994-2014 Free Software Foundation, Inc.
Tobias Quathamer's avatar
Tobias Quathamer committed
5

6 7 8 9 10 11 12 13 14 15 16 17
# 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@
Tobias Quathamer's avatar
Tobias Quathamer committed
18 19 20 21 22 23 24 25 26 27 28
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; \
}
Tobias Quathamer's avatar
Tobias Quathamer committed
29 30 31 32 33 34 35 36 37 38 39 40
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 \
41 42
    case $$MAKEFLAGS in \
      *\\[\ \	]*) \
Tobias Quathamer's avatar
Tobias Quathamer committed
43 44 45
        bs=\\; \
        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
46
    esac; \
Tobias Quathamer's avatar
Tobias Quathamer committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
  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))
73 74
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
75 76
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
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 = :
subdir = iso_4217
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
Tobias Quathamer's avatar
Tobias Quathamer committed
94
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
95 96
mkinstalldirs = $(install_sh) -d
CONFIG_CLEAN_FILES =
97
CONFIG_CLEAN_VPATH_FILES =
Tobias Quathamer's avatar
Tobias Quathamer committed
98 99 100 101 102 103 104 105 106 107 108 109
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 = 
110 111
SOURCES =
DIST_SOURCES =
112 113 114 115 116
am__can_run_installinfo = \
  case $$AM_UPDATE_INFO_DIR in \
    n|no|NO) false;; \
    *) (install-info --version) >/dev/null 2>&1;; \
  esac
117 118 119 120 121
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
  for p in $$list; do echo "$$p $$p"; done | \
  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
    if (++n[$$2] == $(am__install_max)) \
      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
    END { for (dir in files) print dir, files[dir] }'
am__base_list = \
  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
Tobias Quathamer's avatar
Tobias Quathamer committed
138 139 140 141 142 143
am__uninstall_files_from_dir = { \
  test -z "$$files" \
    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
         $(am__cd) "$$dir" && rm -f $$files; }; \
  }
144
am__installdirs = "$(DESTDIR)$(xmldir)"
145
DATA = $(nodist_xml_DATA) $(noinst_DATA)
Tobias Quathamer's avatar
Tobias Quathamer committed
146
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
147
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/common.mk
148 149 150
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
Tobias Quathamer's avatar
Tobias Quathamer committed
151
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
152 153 154 155 156 157 158 159 160 161
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DOMAINS = @DOMAINS@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
LI Daobing's avatar
LI Daobing committed
162
INSTALL = @INSTALL@
163 164 165 166 167 168
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
169
LN_S = @LN_S@
170 171 172
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
LI Daobing's avatar
LI Daobing committed
173
MKDIR_P = @MKDIR_P@
174
MSGATTRIB = @MSGATTRIB@
175
MSGFILTER = @MSGFILTER@
176
MSGFMT = @MSGFMT@
LI Daobing's avatar
LI Daobing committed
177
MSGFMT_FLAGS = @MSGFMT_FLAGS@
178
MSGMERGE = @MSGMERGE@
179 180 181 182 183
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
184
PACKAGE_URL = @PACKAGE_URL@
185 186
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
187
RECODE_SR_LATIN = @RECODE_SR_LATIN@
188 189 190
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
191
VERSION = @VERSION@
LI Daobing's avatar
LI Daobing committed
192 193 194 195
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
196 197 198 199 200
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build_alias = @build_alias@
LI Daobing's avatar
LI Daobing committed
201
builddir = @builddir@
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host_alias = @host_alias@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = $(datadir)/locale
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
Tobias Quathamer's avatar
Tobias Quathamer committed
223
runstatedir = @runstatedir@
224 225
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
LI Daobing's avatar
LI Daobing committed
226
srcdir = @srcdir@
227 228
sysconfdir = @sysconfdir@
target_alias = @target_alias@
229
top_build_prefix = @top_build_prefix@
LI Daobing's avatar
LI Daobing committed
230 231
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
232 233
DOMAIN = iso_4217
xmldir = $(datadir)/xml/iso-codes
234
nodist_xml_DATA = $(DOMAIN).xml
235 236
pofiles = $(wildcard $(srcdir)/*.po)
mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
237
noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot)
238 239
EXTRA_DIST = \
	$(pofiles)	\
240
	$(DOMAIN).pot
241 242

MOSTLYCLEANFILES = \
243 244
	$(mofiles) \
	$(DOMAIN).xml
245 246 247 248

all: all-am

.SUFFIXES:
249
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/common.mk $(am__configure_deps)
250 251 252
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
253 254
	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
	        && { if test -f $@; then exit 0; else break; fi; }; \
255 256 257
	      exit 1;; \
	  esac; \
	done; \
258 259 260
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign iso_4217/Makefile'; \
	$(am__cd) $(top_srcdir) && \
	  $(AUTOMAKE) --foreign iso_4217/Makefile
261 262 263 264 265 266 267 268
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__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;
269
$(top_srcdir)/common.mk $(am__empty):
270 271 272 273 274 275 276 277

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

$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
278
$(am__aclocal_m4_deps):
279
install-nodist_xmlDATA: $(nodist_xml_DATA)
280
	@$(NORMAL_INSTALL)
281
	@list='$(nodist_xml_DATA)'; test -n "$(xmldir)" || list=; \
282 283 284 285
	if test -n "$$list"; then \
	  echo " $(MKDIR_P) '$(DESTDIR)$(xmldir)'"; \
	  $(MKDIR_P) "$(DESTDIR)$(xmldir)" || exit 1; \
	fi; \
286
	for p in $$list; do \
287
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
288 289 290 291 292
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xmldir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(xmldir)" || exit $$?; \
293 294
	done

295
uninstall-nodist_xmlDATA:
296
	@$(NORMAL_UNINSTALL)
297
	@list='$(nodist_xml_DATA)'; test -n "$(xmldir)" || list=; \
298
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
Tobias Quathamer's avatar
Tobias Quathamer committed
299
	dir='$(DESTDIR)$(xmldir)'; $(am__uninstall_files_from_dir)
Tobias Quathamer's avatar
Tobias Quathamer committed
300 301 302
tags TAGS:

ctags CTAGS:
303

Tobias Quathamer's avatar
Tobias Quathamer committed
304
cscope cscopelist:
305 306 307


distdir: $(DISTFILES)
LI Daobing's avatar
LI Daobing committed
308 309 310 311 312 313 314 315 316 317 318 319
	@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 \
320 321
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
LI Daobing's avatar
LI Daobing committed
322
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
323 324 325
	    if test -d "$(distdir)/$$file"; then \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
326
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
327 328
	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
329
	    fi; \
330
	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
331
	  else \
332 333
	    test -f "$(distdir)/$$file" \
	    || cp -p $$d/$$file "$(distdir)/$$file" \
334 335 336 337 338 339 340 341 342
	    || exit 1; \
	  fi; \
	done
check-am: all-am
	$(MAKE) $(AM_MAKEFLAGS) check-local
check: check-am
all-am: Makefile $(DATA)
installdirs:
	for dir in "$(DESTDIR)$(xmldir)"; do \
LI Daobing's avatar
LI Daobing committed
343
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
344 345 346 347 348 349 350 351 352 353 354
	done
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:
Tobias Quathamer's avatar
Tobias Quathamer committed
355 356 357 358 359 360 361 362 363
	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
364 365 366 367 368 369 370
mostlyclean-generic:
	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

clean-generic:

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
371
	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389

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

390 391
html-am:

392 393 394 395
info: info-am

info-am:

396
install-data-am: install-nodist_xmlDATA
397 398
	@$(NORMAL_INSTALL)
	$(MAKE) $(AM_MAKEFLAGS) install-data-hook
LI Daobing's avatar
LI Daobing committed
399 400
install-dvi: install-dvi-am

401 402
install-dvi-am:

403 404
install-exec-am:

LI Daobing's avatar
LI Daobing committed
405 406
install-html: install-html-am

407 408
install-html-am:

409 410
install-info: install-info-am

411 412
install-info-am:

413 414
install-man:

LI Daobing's avatar
LI Daobing committed
415 416
install-pdf: install-pdf-am

417 418
install-pdf-am:

LI Daobing's avatar
LI Daobing committed
419 420
install-ps: install-ps-am

421 422
install-ps-am:

423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440
installcheck-am:

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

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

441
uninstall-am: uninstall-nodist_xmlDATA
442 443
	@$(NORMAL_INSTALL)
	$(MAKE) $(AM_MAKEFLAGS) uninstall-hook
444
.MAKE: check-am install-am install-data-am install-strip uninstall-am
LI Daobing's avatar
LI Daobing committed
445

446
.PHONY: all all-am check check-am check-local clean clean-generic \
Tobias Quathamer's avatar
Tobias Quathamer committed
447 448 449 450 451
	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-hook install-dvi \
	install-dvi-am install-exec install-exec-am install-html \
	install-html-am install-info install-info-am install-man \
452 453
	install-nodist_xmlDATA install-pdf install-pdf-am install-ps \
	install-ps-am install-strip installcheck installcheck-am \
Tobias Quathamer's avatar
Tobias Quathamer committed
454 455
	installdirs maintainer-clean maintainer-clean-generic \
	mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \
456
	uninstall uninstall-am uninstall-hook uninstall-nodist_xmlDATA
457

Tobias Quathamer's avatar
Tobias Quathamer committed
458 459
.PRECIOUS: Makefile

460

461
# Generic target to create binary .mo files from .po files
462
%.mo: %.po
LI Daobing's avatar
LI Daobing committed
463
	$(MSGFMT) $(MSGFMT_FLAGS) -o $@ $<
464

465
# Generic target to create .pot files from JSON data files
466 467
$(DOMAIN).pot: $(top_srcdir)/bin/pot_from_json.py $(top_srcdir)/data/$(DOMAIN).json $(top_srcdir)/bin/remove-potcdate.sin
	cp $@ backup.pot
468
	python3 $(top_srcdir)/bin/pot_from_json.py $(DOMAIN) $(top_srcdir)/data
469 470 471 472 473 474 475 476
	sed -f $(top_srcdir)/bin/remove-potcdate.sin < $@ > $(DOMAIN).1po
	sed -f $(top_srcdir)/bin/remove-potcdate.sin < backup.pot > $(DOMAIN).2po
	if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
		rm -f $(DOMAIN).1po $(DOMAIN).2po $@ && \
		mv backup.pot $@; \
	else \
		rm -f $(DOMAIN).1po $(DOMAIN).2po backup.pot; \
	fi
477

478
# Generic target to create deprecated .xml files from JSON data files
479
$(DOMAIN).xml: $(top_srcdir)/bin/xml_from_json.py $(top_srcdir)/data/$(DOMAIN).json
480 481
	python3 $(top_srcdir)/bin/xml_from_json.py $(DOMAIN) $(top_srcdir)/data $@

482 483 484
# Used in the domain subdirectories for checking that
# all .po files contain UTF-8 data
check-local:
485
	python3 $(top_srcdir)/bin/check_valid_utf8.py $(pofiles)
486

487 488
# This target merges all po files with the current pot file,
# removes obsolete msgids and substitutes the Project-Id-Version
489 490
# header with the PROJECT only, removing the VERSION part.
# This is done to keep the diff between releases small.
491 492 493 494 495 496 497 498
#
# NOTE:
# Removing obsolete msgids is not the recommended way to go.
# However, we've decided that in the specific case of iso-codes
# the benefit outweights the loss of information. Having only msgids
# with one (sometimes two or three) words, the fuzzy matching performed
# with obsolete msgids will not ease the translator's work, but
# will lead to confusing entries.
499 500 501
#
# However, if there is only a small change, we include the fuzzy
# entry with the previous msgid to hopefully save some work.
502 503 504
.PHONY: update-po
update-po:
	for pofile in $(pofiles); do \
505
		$(MSGMERGE) --previous $$pofile $(DOMAIN).pot > tmpfile; \
506
		$(MSGATTRIB) --no-obsolete tmpfile > $$pofile; \
507
		sed -i -e 's/^\"Project-Id-Version: iso.*/\"Project-Id-Version: $(DOMAIN)\\n\"/' $$pofile; \
508
	done
509
	rm -f tmpfile
510 511 512 513 514
	if [ -f sr.po ]; then \
		$(RECODE_SR_LATIN) < sr.po > sr@latin.po; \
		sed -i -e 's/^\"Language: sr\\n\"/\"Language: sr@latin\\n\"/' sr@latin.po; \
	fi
	if [ -f tt@iqtelif.po ]; then \
515
		$(MSGFILTER) --keep-header sed -f $(top_srcdir)/bin/recode-tt-cyrillic.sed < tt@iqtelif.po > tt.po; \
516 517
		sed -i -e 's/^\"Language: tt@iqtelif\\n\"/\"Language: tt\\n\"/' tt.po; \
	fi
518

519 520 521 522 523 524 525 526 527
install-data-hook: $(mofiles)
	$(mkinstalldirs) $(DESTDIR)$(localedir)
	catalogs='$(mofiles)'; \
	for cat in $$catalogs; do \
		cat=`basename $$cat`; \
		lang=`echo $$cat | sed 's/\.mo$$//'`; \
		dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
		$(mkinstalldirs) $$dir; \
		$(INSTALL_DATA) $$cat $$dir/$(DOMAIN).mo; \
528 529 530 531 532
		if [ "$(DOMAIN)" = "iso_639-2" ]; then (cd $$dir && $(LN_S) $(DOMAIN).mo iso_639.mo); fi; \
		if [ "$(DOMAIN)" = "iso_639-3" ]; then (cd $$dir && $(LN_S) $(DOMAIN).mo iso_639_3.mo); fi; \
		if [ "$(DOMAIN)" = "iso_639-5" ]; then (cd $$dir && $(LN_S) $(DOMAIN).mo iso_639_5.mo); fi; \
		if [ "$(DOMAIN)" = "iso_3166-1" ]; then (cd $$dir && $(LN_S) $(DOMAIN).mo iso_3166.mo); fi; \
		if [ "$(DOMAIN)" = "iso_3166-2" ]; then (cd $$dir && $(LN_S) $(DOMAIN).mo iso_3166_2.mo); fi; \
533
	done
534 535 536 537 538
	if [ "$(DOMAIN)" = "iso_639-2" ]; then (cd $(DESTDIR)$(xmldir) && $(LN_S) $(DOMAIN).xml iso_639.xml); fi
	if [ "$(DOMAIN)" = "iso_639-3" ]; then (cd $(DESTDIR)$(xmldir) && $(LN_S) $(DOMAIN).xml iso_639_3.xml); fi
	if [ "$(DOMAIN)" = "iso_639-5" ]; then (cd $(DESTDIR)$(xmldir) && $(LN_S) $(DOMAIN).xml iso_639_5.xml); fi
	if [ "$(DOMAIN)" = "iso_3166-1" ]; then (cd $(DESTDIR)$(xmldir) && $(LN_S) $(DOMAIN).xml iso_3166.xml); fi
	if [ "$(DOMAIN)" = "iso_3166-2" ]; then (cd $(DESTDIR)$(xmldir) && $(LN_S) $(DOMAIN).xml iso_3166_2.xml); fi
539 540 541 542 543 544 545

uninstall-hook:
	catalogs='$(mofiles)'; \
	for cat in $$catalogs; do \
		cat=`basename $$cat`; \
		lang=`echo $$cat | sed 's/\.mo$$//'`; \
		rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
546 547 548 549 550
		if [ "$(DOMAIN)" = "iso_639-2" ]; then rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/iso_639.mo; fi; \
		if [ "$(DOMAIN)" = "iso_639-3" ]; then rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/iso_639_3.mo; fi; \
		if [ "$(DOMAIN)" = "iso_639-5" ]; then rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/iso_639_5.mo; fi; \
		if [ "$(DOMAIN)" = "iso_3166-1" ]; then rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/iso_3166.mo; fi; \
		if [ "$(DOMAIN)" = "iso_3166-1" ]; then rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/iso_3166_2.mo; fi; \
551
	done
552 553 554 555 556
	if [ "$(DOMAIN)" = "iso_639-2" ]; then rm -f $(DESTDIR)$(xmldir)/iso_639.xml; fi
	if [ "$(DOMAIN)" = "iso_639-3" ]; then rm -f $(DESTDIR)$(xmldir)/iso_639_3.xml; fi
	if [ "$(DOMAIN)" = "iso_639-5" ]; then rm -f $(DESTDIR)$(xmldir)/iso_639_5.xml; fi
	if [ "$(DOMAIN)" = "iso_3166-1" ]; then rm -f $(DESTDIR)$(xmldir)/iso_3166.xml; fi
	if [ "$(DOMAIN)" = "iso_3166-2" ]; then rm -f $(DESTDIR)$(xmldir)/iso_3166_2.xml; fi
557

558 559 560
# 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: