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