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