Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / examples / Makefile.am
1 ## Makefile for the gettext-tools/examples subdirectory of GNU gettext
2 ## Copyright (C) 2001-2007, 2009-2010 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
19 AUTOMAKE_OPTIONS = 1.2 foreign
20 ACLOCAL = ../../build-aux/fixaclocal @ACLOCAL@
21 ACLOCAL_AMFLAGS = -I ../../gettext-runtime/m4 -I ../../m4
22 SUBDIRS = po
23 EXTRA_DIST =
24
25 examplesdir = $(docdir)/examples
26
27 examples_DATA = installpaths
28
29 # List of examples files, excluding the localizations.
30 EXAMPLESFILES = \
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.
362 EXAMPLESDIRS = \
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.
394 EXAMPLESPOFILES = \
395   LINGUAS \
396   af.po \
397   ast.po \
398   bg.po \
399   ca.po \
400   de.po \
401   el.po \
402   eo.po \
403   es.po \
404   fi.po \
405   fr.po \
406   ga.po \
407   hu.po \
408   id.po \
409   it.po \
410   ja.po \
411   ky.po \
412   lv.po \
413   ms.po \
414   mt.po \
415   nl.po \
416   pl.po \
417   pt.po \
418   ro.po \
419   ru.po \
420   sk.po \
421   sl.po \
422   sr.po \
423   sv.po \
424   tr.po \
425   uk.po \
426   vi.po \
427   zh_CN.po \
428   zh_HK.po \
429   zh_TW.po
430
431 install-data-local: $(EXAMPLESFILES)
432         $(mkdir_p) $(DESTDIR)$(examplesdir)
433         for f in $(EXAMPLESFILES); do \
434           d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \
435           test -z "$$d" || $(mkdir_p) $(DESTDIR)$(examplesdir)$$d || exit 1; \
436           b=`echo $$f | sed -e 's,^.*/,,'`; \
437           if test $$b = autogen.sh || test $$b = autoclean.sh; then \
438             echo "$(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f"; \
439             $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f; \
440           else \
441             echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f"; \
442             $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f; \
443           fi; \
444         done
445         for f1 in $(EXAMPLESDIRS); do \
446           for f2 in $(EXAMPLESPOFILES); do \
447             f=$$f1/po/$$f2; \
448             d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \
449             test -z "$$d" || $(mkdir_p) $(DESTDIR)$(examplesdir)$$d || exit 1; \
450             b=`echo $$f | sed -e 's,^.*/,,'`; \
451             echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f"; \
452             $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f; \
453           done; \
454         done
455
456 installdirs-local:
457         $(mkdir_p) $(DESTDIR)$(examplesdir)
458         for f in $(EXAMPLESFILES); do \
459           d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \
460           test -z "$$d" || $(mkdir_p) $(DESTDIR)$(examplesdir)$$d || exit 1; \
461         done
462         for f1 in $(EXAMPLESDIRS); do \
463           for f2 in $(EXAMPLESPOFILES); do \
464             f=$$f1/po/$$f2; \
465             d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \
466             test -z "$$d" || $(mkdir_p) $(DESTDIR)$(examplesdir)$$d || exit 1; \
467           done; \
468         done
469
470 uninstall-local:
471         for f in $(EXAMPLESFILES); do \
472           rm -f $(DESTDIR)$(examplesdir)/$$f; \
473         done
474         for f1 in $(EXAMPLESDIRS); do \
475           for f2 in $(EXAMPLESPOFILES); do \
476             f=$$f1/po/$$f2; \
477             rm -f $(DESTDIR)$(examplesdir)/$$f; \
478           done; \
479         done
480
481 # Invoked from inside automake's distdir target.
482 distdir1:
483         cd po && $(MAKE) update-po
484         for file in $(EXAMPLESFILES); do \
485           if test -f $$file; then d=.; else d=$(srcdir); fi; \
486           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
487           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
488             $(mkdir_p) "$(distdir)/$$dir"; \
489           fi; \
490           cp -p $$d/$$file $(distdir)/$$file || exit 1; \
491         done
492         for f1 in $(EXAMPLESDIRS); do \
493           for f2 in $(EXAMPLESPOFILES); do \
494             file=$$f1/po/$$f2; \
495             if test -f $$file; then d=.; else d=$(srcdir); fi; \
496             dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
497             if test "$$dir" != "$$file" && test "$$dir" != "."; then \
498               $(mkdir_p) "$(distdir)/$$dir"; \
499             fi; \
500             cp -p $$d/$$file $(distdir)/$$file || exit 1; \
501           done; \
502         done
503
504 # Temporary directories created by po/Makefile.
505 CLEANFILES = tmp-hello-*