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