1## Makefile for the gettext-tools/examples subdirectory of GNU gettext 2## Copyright (C) 2001-2007, 2009-2016, 2018-2020 Free Software Foundation, Inc. 3## 4## This program is free software: you can redistribute it and/or modify 5## it under the terms of the GNU General Public License as published by 6## the Free Software Foundation; either version 3 of the License, or 7## (at your option) any later version. 8## 9## This program is distributed in the hope that it will be useful, 10## but WITHOUT ANY WARRANTY; without even the implied warranty of 11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12## GNU General Public License for more details. 13## 14## You should have received a copy of the GNU General Public License 15## along with this program. If not, see <https://www.gnu.org/licenses/>. 16 17## Process this file with automake to produce Makefile.in. 18 19AUTOMAKE_OPTIONS = 1.2 foreign 20ACLOCAL_AMFLAGS = -I ../../gettext-runtime/m4 -I ../../m4 21SUBDIRS = po 22EXTRA_DIST = \ 23 HACKING \ 24 check-examples 25 26examplesdir = $(docdir)/examples 27 28examples_DATA = installpaths 29 30# List of examples files, excluding the localizations. 31EXAMPLESFILES = \ 32 \ 33 hello-c/INSTALL \ 34 hello-c/autogen.sh \ 35 hello-c/autoclean.sh \ 36 hello-c/hello.c \ 37 hello-c/Makefile.am \ 38 hello-c/configure.ac \ 39 hello-c/m4/Makefile.am \ 40 hello-c/po/Makevars \ 41 hello-c/po/POTFILES.in \ 42 \ 43 hello-c-gnome/INSTALL \ 44 hello-c-gnome/autogen.sh \ 45 hello-c-gnome/autoclean.sh \ 46 hello-c-gnome/hello.c \ 47 hello-c-gnome/Makefile.am \ 48 hello-c-gnome/configure.ac \ 49 hello-c-gnome/m4/Makefile.am \ 50 hello-c-gnome/m4/gnome.m4 \ 51 hello-c-gnome/m4/gnome-gnorba-check.m4 \ 52 hello-c-gnome/m4/gnome-orbit-check.m4 \ 53 hello-c-gnome/po/Makevars \ 54 hello-c-gnome/po/POTFILES.in \ 55 \ 56 hello-c-gnome3/INSTALL \ 57 hello-c-gnome3/autogen.sh \ 58 hello-c-gnome3/autoclean.sh \ 59 hello-c-gnome3/hello.c \ 60 hello-c-gnome3/hello.desktop.in.in \ 61 hello-c-gnome3/hello.gschema.xml \ 62 hello-c-gnome3/hello.gresource.xml \ 63 hello-c-gnome3/hello.ui \ 64 hello-c-gnome3/Makefile.am \ 65 hello-c-gnome3/configure.ac \ 66 hello-c-gnome3/m4/Makefile.am \ 67 hello-c-gnome3/po/Makevars \ 68 hello-c-gnome3/po/POTFILES.in \ 69 \ 70 hello-c++/INSTALL \ 71 hello-c++/autogen.sh \ 72 hello-c++/autoclean.sh \ 73 hello-c++/hello.cc \ 74 hello-c++/Makefile.am \ 75 hello-c++/configure.ac \ 76 hello-c++/m4/Makefile.am \ 77 hello-c++/po/Makevars \ 78 hello-c++/po/POTFILES.in \ 79 \ 80 hello-c++-qt/INSTALL \ 81 hello-c++-qt/BUGS \ 82 hello-c++-qt/autogen.sh \ 83 hello-c++-qt/autoclean.sh \ 84 hello-c++-qt/hello.cc \ 85 hello-c++-qt/Makefile.am \ 86 hello-c++-qt/configure.ac \ 87 hello-c++-qt/m4/Makefile.am \ 88 hello-c++-qt/m4/qt.m4 \ 89 hello-c++-qt/po/Makefile.am \ 90 \ 91 hello-c++-kde/INSTALL \ 92 hello-c++-kde/BUGS \ 93 hello-c++-kde/autogen.sh \ 94 hello-c++-kde/autoclean.sh \ 95 hello-c++-kde/hello.cc \ 96 hello-c++-kde/hellowindow.h \ 97 hello-c++-kde/hellowindow.cc \ 98 hello-c++-kde/Makefile.am \ 99 hello-c++-kde/configure.in.in \ 100 hello-c++-kde/m4/Makefile.am \ 101 hello-c++-kde/admin/acinclude.m4.in \ 102 hello-c++-kde/admin/am_edit \ 103 hello-c++-kde/admin/ChangeLog \ 104 hello-c++-kde/admin/compile \ 105 hello-c++-kde/admin/conf.change.pl \ 106 hello-c++-kde/admin/config.guess \ 107 hello-c++-kde/admin/config.pl \ 108 hello-c++-kde/admin/config.sub \ 109 hello-c++-kde/admin/configure.in.bot.end \ 110 hello-c++-kde/admin/configure.in.min \ 111 hello-c++-kde/admin/cvs-clean.pl \ 112 hello-c++-kde/admin/cvs.sh \ 113 hello-c++-kde/admin/debianrules \ 114 hello-c++-kde/admin/depcomp \ 115 hello-c++-kde/admin/detect-autoconf.sh \ 116 hello-c++-kde/admin/Doxyfile.am \ 117 hello-c++-kde/admin/Doxyfile.global \ 118 hello-c++-kde/admin/install-sh \ 119 hello-c++-kde/admin/libtool.m4.in \ 120 hello-c++-kde/admin/ltmain.sh \ 121 hello-c++-kde/admin/Makefile.common \ 122 hello-c++-kde/admin/missing \ 123 hello-c++-kde/admin/mkinstalldirs \ 124 hello-c++-kde/admin/ylwrap \ 125 hello-c++-kde/po/Makevars \ 126 hello-c++-kde/po/POTFILES.in \ 127 \ 128 hello-c++-gnome/INSTALL \ 129 hello-c++-gnome/autogen.sh \ 130 hello-c++-gnome/autoclean.sh \ 131 hello-c++-gnome/hello.cc \ 132 hello-c++-gnome/Makefile.am \ 133 hello-c++-gnome/configure.ac \ 134 hello-c++-gnome/m4/Makefile.am \ 135 hello-c++-gnome/m4/gnome.m4 \ 136 hello-c++-gnome/m4/gnome-gnorba-check.m4 \ 137 hello-c++-gnome/m4/gnome-orbit-check.m4 \ 138 hello-c++-gnome/m4/gtk.m4 \ 139 hello-c++-gnome/m4/gtk--.m4 \ 140 hello-c++-gnome/po/Makevars \ 141 hello-c++-gnome/po/POTFILES.in \ 142 \ 143 hello-c++-wxwidgets/INSTALL \ 144 hello-c++-wxwidgets/autogen.sh \ 145 hello-c++-wxwidgets/autoclean.sh \ 146 hello-c++-wxwidgets/hello.cc \ 147 hello-c++-wxwidgets/Makefile.am \ 148 hello-c++-wxwidgets/configure.ac \ 149 hello-c++-wxwidgets/m4/Makefile.am \ 150 hello-c++-wxwidgets/m4/wxwidgets.m4 \ 151 hello-c++-wxwidgets/po/Makefile.am \ 152 \ 153 hello-objc/INSTALL \ 154 hello-objc/autogen.sh \ 155 hello-objc/autoclean.sh \ 156 hello-objc/hello.m \ 157 hello-objc/Makefile.am \ 158 hello-objc/configure.ac \ 159 hello-objc/m4/Makefile.am \ 160 hello-objc/po/Makevars \ 161 hello-objc/po/POTFILES.in \ 162 \ 163 hello-objc-gnustep/INSTALL \ 164 hello-objc-gnustep/BUGS \ 165 hello-objc-gnustep/autogen.sh \ 166 hello-objc-gnustep/autoclean.sh \ 167 hello-objc-gnustep/main.m \ 168 hello-objc-gnustep/AppController.h \ 169 hello-objc-gnustep/AppController.m \ 170 hello-objc-gnustep/Hello.h \ 171 hello-objc-gnustep/Hello.m \ 172 hello-objc-gnustep/GNUmakefile \ 173 hello-objc-gnustep/po/GNUmakefile \ 174 hello-objc-gnustep/po/LocaleAliases \ 175 \ 176 hello-objc-gnome/INSTALL \ 177 hello-objc-gnome/autogen.sh \ 178 hello-objc-gnome/autoclean.sh \ 179 hello-objc-gnome/hello.m \ 180 hello-objc-gnome/Makefile.am \ 181 hello-objc-gnome/configure.ac \ 182 hello-objc-gnome/m4/Makefile.am \ 183 hello-objc-gnome/m4/gnome.m4 \ 184 hello-objc-gnome/m4/gnome-gnorba-check.m4 \ 185 hello-objc-gnome/m4/gnome-orbit-check.m4 \ 186 hello-objc-gnome/po/Makevars \ 187 hello-objc-gnome/po/POTFILES.in \ 188 \ 189 hello-sh/INSTALL \ 190 hello-sh/autogen.sh \ 191 hello-sh/autoclean.sh \ 192 hello-sh/hello.sh \ 193 hello-sh/Makefile.am \ 194 hello-sh/configure.ac \ 195 hello-sh/m4/Makefile.am \ 196 hello-sh/po/Makefile.am \ 197 \ 198 hello-python/INSTALL \ 199 hello-python/autogen.sh \ 200 hello-python/autoclean.sh \ 201 hello-python/hello.py.in \ 202 hello-python/Makefile.am \ 203 hello-python/configure.ac \ 204 hello-python/m4/Makefile.am \ 205 hello-python/po/Makefile.am \ 206 \ 207 hello-clisp/INSTALL \ 208 hello-clisp/autogen.sh \ 209 hello-clisp/autoclean.sh \ 210 hello-clisp/hello.lisp.in \ 211 hello-clisp/Makefile.am \ 212 hello-clisp/configure.ac \ 213 hello-clisp/m4/Makefile.am \ 214 hello-clisp/po/Makefile.am \ 215 \ 216 hello-librep/INSTALL \ 217 hello-librep/autogen.sh \ 218 hello-librep/autoclean.sh \ 219 hello-librep/hello.jl.in \ 220 hello-librep/Makefile.am \ 221 hello-librep/configure.ac \ 222 hello-librep/m4/Makefile.am \ 223 hello-librep/po/Makefile.am \ 224 \ 225 hello-guile/INSTALL \ 226 hello-guile/autogen.sh \ 227 hello-guile/autoclean.sh \ 228 hello-guile/hello.scm \ 229 hello-guile/Makefile.am \ 230 hello-guile/configure.ac \ 231 hello-guile/m4/Makefile.am \ 232 hello-guile/po/Makefile.am \ 233 \ 234 hello-smalltalk/INSTALL \ 235 hello-smalltalk/autogen.sh \ 236 hello-smalltalk/autoclean.sh \ 237 hello-smalltalk/hello.st.in \ 238 hello-smalltalk/Makefile.am \ 239 hello-smalltalk/configure.ac \ 240 hello-smalltalk/m4/Makefile.am \ 241 hello-smalltalk/po/Makefile.am \ 242 \ 243 hello-java/INSTALL \ 244 hello-java/autogen.sh \ 245 hello-java/autoclean.sh \ 246 hello-java/Hello.java \ 247 hello-java/Makefile.am \ 248 hello-java/configure.ac \ 249 hello-java/m4/Makefile.am \ 250 hello-java/po/Makefile.am \ 251 \ 252 hello-java-awt/INSTALL \ 253 hello-java-awt/BUGS \ 254 hello-java-awt/autogen.sh \ 255 hello-java-awt/autoclean.sh \ 256 hello-java-awt/Hello.java \ 257 hello-java-awt/Makefile.am \ 258 hello-java-awt/configure.ac \ 259 hello-java-awt/m4/Makefile.am \ 260 hello-java-awt/m4/TestAWT.java \ 261 hello-java-awt/m4/TestAWT.class \ 262 hello-java-awt/po/Makefile.am \ 263 \ 264 hello-java-swing/INSTALL \ 265 hello-java-swing/BUGS \ 266 hello-java-swing/autogen.sh \ 267 hello-java-swing/autoclean.sh \ 268 hello-java-swing/Hello.java \ 269 hello-java-swing/Makefile.am \ 270 hello-java-swing/configure.ac \ 271 hello-java-swing/m4/Makefile.am \ 272 hello-java-swing/m4/TestAWT.java \ 273 hello-java-swing/m4/TestAWT.class \ 274 hello-java-swing/po/Makefile.am \ 275 \ 276 hello-java-qtjambi/INSTALL \ 277 hello-java-qtjambi/BUGS \ 278 hello-java-qtjambi/autogen.sh \ 279 hello-java-qtjambi/autoclean.sh \ 280 hello-java-qtjambi/Hello.java \ 281 hello-java-qtjambi/Makefile.am \ 282 hello-java-qtjambi/configure.ac \ 283 hello-java-qtjambi/m4/Makefile.am \ 284 hello-java-qtjambi/m4/Test15.java \ 285 hello-java-qtjambi/m4/Test15.class \ 286 hello-java-qtjambi/po/Makefile.am \ 287 \ 288 hello-csharp/INSTALL \ 289 hello-csharp/autogen.sh \ 290 hello-csharp/autoclean.sh \ 291 hello-csharp/hello.cs \ 292 hello-csharp/Makefile.am \ 293 hello-csharp/configure.ac \ 294 hello-csharp/m4/Makefile.am \ 295 hello-csharp/po/Makefile.am \ 296 \ 297 hello-csharp-forms/INSTALL \ 298 hello-csharp-forms/README \ 299 hello-csharp-forms/autogen.sh \ 300 hello-csharp-forms/autoclean.sh \ 301 hello-csharp-forms/hello.cs \ 302 hello-csharp-forms/Makefile.am \ 303 hello-csharp-forms/configure.ac \ 304 hello-csharp-forms/m4/Makefile.am \ 305 hello-csharp-forms/po/Makefile.am \ 306 \ 307 hello-gawk/INSTALL \ 308 hello-gawk/autogen.sh \ 309 hello-gawk/autoclean.sh \ 310 hello-gawk/hello.awk \ 311 hello-gawk/Makefile.am \ 312 hello-gawk/configure.ac \ 313 hello-gawk/m4/Makefile.am \ 314 hello-gawk/po/Makefile.am \ 315 \ 316 hello-pascal/INSTALL \ 317 hello-pascal/autogen.sh \ 318 hello-pascal/autoclean.sh \ 319 hello-pascal/hello.pas \ 320 hello-pascal/Makefile.am \ 321 hello-pascal/configure.ac \ 322 hello-pascal/m4/Makefile.am \ 323 hello-pascal/po/Makefile.am \ 324 \ 325 hello-ycp/INSTALL \ 326 hello-ycp/autogen.sh \ 327 hello-ycp/autoclean.sh \ 328 hello-ycp/hello.ycp \ 329 hello-ycp/Makefile.am \ 330 hello-ycp/configure.ac \ 331 hello-ycp/m4/Makefile.am \ 332 hello-ycp/po/Makefile.am \ 333 \ 334 hello-tcl/INSTALL \ 335 hello-tcl/autogen.sh \ 336 hello-tcl/autoclean.sh \ 337 hello-tcl/hello.tcl \ 338 hello-tcl/Makefile.am \ 339 hello-tcl/configure.ac \ 340 hello-tcl/m4/Makefile.am \ 341 hello-tcl/po/Makefile.am \ 342 \ 343 hello-tcl-tk/INSTALL \ 344 hello-tcl-tk/autogen.sh \ 345 hello-tcl-tk/autoclean.sh \ 346 hello-tcl-tk/hello.tcl \ 347 hello-tcl-tk/Makefile.am \ 348 hello-tcl-tk/configure.ac \ 349 hello-tcl-tk/m4/Makefile.am \ 350 hello-tcl-tk/po/Makefile.am \ 351 \ 352 hello-perl/INSTALL \ 353 hello-perl/autogen.sh \ 354 hello-perl/autoclean.sh \ 355 hello-perl/hello-1.pl.in \ 356 hello-perl/hello-2.pl.in \ 357 hello-perl/Makefile.am \ 358 hello-perl/configure.ac \ 359 hello-perl/m4/Makefile.am \ 360 hello-perl/po/Makefile.am \ 361 \ 362 hello-php/INSTALL \ 363 hello-php/README \ 364 hello-php/autogen.sh \ 365 hello-php/autoclean.sh \ 366 hello-php/hello.php \ 367 hello-php/Makefile.am \ 368 hello-php/configure.ac \ 369 hello-php/m4/Makefile.am \ 370 hello-php/po/Makefile.am \ 371 \ 372 README 373 374# List of examples directories containing a po directory. 375EXAMPLESDIRS = \ 376 hello-c \ 377 hello-c-gnome \ 378 hello-c-gnome3 \ 379 hello-c++ \ 380 hello-c++-qt \ 381 hello-c++-kde \ 382 hello-c++-gnome \ 383 hello-c++-wxwidgets \ 384 hello-objc \ 385 hello-objc-gnustep \ 386 hello-objc-gnome \ 387 hello-sh \ 388 hello-python \ 389 hello-clisp \ 390 hello-librep \ 391 hello-guile \ 392 hello-smalltalk \ 393 hello-java \ 394 hello-java-awt \ 395 hello-java-swing \ 396 hello-java-qtjambi \ 397 hello-csharp \ 398 hello-csharp-forms \ 399 hello-gawk \ 400 hello-pascal \ 401 hello-ycp \ 402 hello-tcl \ 403 hello-tcl-tk \ 404 hello-perl \ 405 hello-php 406 407# List of files present in every example's po directory. 408EXAMPLESPOFILES = \ 409 LINGUAS \ 410 af.po \ 411 ast.po \ 412 bg.po \ 413 ca.po \ 414 cs.po \ 415 da.po \ 416 de.po \ 417 el.po \ 418 eo.po \ 419 es.po \ 420 fi.po \ 421 fr.po \ 422 ga.po \ 423 gl.po \ 424 hr.po \ 425 hu.po \ 426 id.po \ 427 it.po \ 428 ja.po \ 429 ky.po \ 430 lv.po \ 431 ms.po \ 432 mt.po \ 433 nb.po \ 434 nl.po \ 435 nn.po \ 436 pl.po \ 437 pt.po \ 438 pt_BR.po \ 439 ro.po \ 440 ru.po \ 441 sk.po \ 442 sl.po \ 443 sq.po \ 444 sr.po \ 445 sv.po \ 446 ta.po \ 447 tr.po \ 448 uk.po \ 449 vi.po \ 450 zh_CN.po \ 451 zh_HK.po \ 452 zh_TW.po 453 454install-data-local: $(EXAMPLESFILES) 455 $(MKDIR_P) $(DESTDIR)$(examplesdir) 456 for f in $(EXAMPLESFILES); do \ 457 d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \ 458 test -z "$$d" || $(MKDIR_P) $(DESTDIR)$(examplesdir)$$d || exit 1; \ 459 b=`echo $$f | sed -e 's,^.*/,,'`; \ 460 if test $$b = autogen.sh || test $$b = autoclean.sh; then \ 461 echo "$(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f"; \ 462 $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f; \ 463 else \ 464 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f"; \ 465 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f; \ 466 fi; \ 467 done 468 for f1 in $(EXAMPLESDIRS); do \ 469 for f2 in $(EXAMPLESPOFILES); do \ 470 f=$$f1/po/$$f2; \ 471 test -f $(srcdir)/$$f || { \ 472 echo "WARNING: $(srcdir)/$$f doesn't exist; do \"make dist\" to prepare" >&2; \ 473 break; \ 474 }; \ 475 d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \ 476 test -z "$$d" || $(MKDIR_P) $(DESTDIR)$(examplesdir)$$d || exit 1; \ 477 b=`echo $$f | sed -e 's,^.*/,,'`; \ 478 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f"; \ 479 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f; \ 480 done; \ 481 done 482 483installdirs-local: 484 $(MKDIR_P) $(DESTDIR)$(examplesdir) 485 for f in $(EXAMPLESFILES); do \ 486 d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \ 487 test -z "$$d" || $(MKDIR_P) $(DESTDIR)$(examplesdir)$$d || exit 1; \ 488 done 489 for f1 in $(EXAMPLESDIRS); do \ 490 for f2 in $(EXAMPLESPOFILES); do \ 491 f=$$f1/po/$$f2; \ 492 d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \ 493 test -z "$$d" || $(MKDIR_P) $(DESTDIR)$(examplesdir)$$d || exit 1; \ 494 done; \ 495 done 496 497uninstall-local: 498 for f in $(EXAMPLESFILES); do \ 499 rm -f $(DESTDIR)$(examplesdir)/$$f; \ 500 done 501 for f1 in $(EXAMPLESDIRS); do \ 502 for f2 in $(EXAMPLESPOFILES); do \ 503 f=$$f1/po/$$f2; \ 504 rm -f $(DESTDIR)$(examplesdir)/$$f; \ 505 done; \ 506 done 507 508# Invoked from inside automake's distdir target. 509distdir1: 510 cd po && $(MAKE) update-po all 511 for file in $(EXAMPLESFILES); do \ 512 if test -f $$file; then d=.; else d=$(srcdir); fi; \ 513 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 514 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 515 $(MKDIR_P) "$(distdir)/$$dir"; \ 516 fi; \ 517 cp -p $$d/$$file $(distdir)/$$file || exit 1; \ 518 done 519 for f1 in $(EXAMPLESDIRS); do \ 520 for f2 in $(EXAMPLESPOFILES); do \ 521 file=$$f1/po/$$f2; \ 522 if test -f $$file; then d=.; else d=$(srcdir); fi; \ 523 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 524 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 525 $(MKDIR_P) "$(distdir)/$$dir"; \ 526 fi; \ 527 cp -p $$d/$$file $(distdir)/$$file || exit 1; \ 528 done; \ 529 done 530 531# Temporary directories created by po/Makefile. 532clean-local: 533 -rm -rf tmp-hello-* 534 535maintainer-update-po: $(top_builddir)/config.status 536 $(SHELL) ./config.status --recheck 537 $(SHELL) ./config.status po/Makefile 538 cd po && $(MAKE) update-po 539