1 ## Makefile for the gettext-tools/examples subdirectory of GNU gettext
2 ## Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc.
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.
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.
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/>.
17 ## Process this file with automake to produce Makefile.in.
19 AUTOMAKE_OPTIONS = 1.2 foreign
20 ACLOCAL = ../../build-aux/fixaclocal @ACLOCAL@
21 ACLOCAL_AMFLAGS = -I ../../gettext-runtime/m4 -I ../../m4
25 examplesdir = $(docdir)/examples
27 examples_DATA = installpaths
29 # List of examples files, excluding the localizations.
34 hello-c/autoclean.sh \
37 hello-c/configure.ac \
38 hello-c/m4/Makefile.am \
40 hello-c/po/POTFILES.in \
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 \
56 hello-c++/autogen.sh \
57 hello-c++/autoclean.sh \
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 \
65 hello-c++-qt/INSTALL \
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 \
76 hello-c++-kde/INSTALL \
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 \
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 \
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 \
139 hello-objc/autogen.sh \
140 hello-objc/autoclean.sh \
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 \
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 \
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 \
175 hello-sh/autogen.sh \
176 hello-sh/autoclean.sh \
178 hello-sh/Makefile.am \
179 hello-sh/configure.ac \
180 hello-sh/m4/Makefile.am \
181 hello-sh/po/Makefile.am \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
361 # List of examples directories containing a po directory.
369 hello-c++-wxwidgets \
393 # List of files present in every example's po directory.
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; \
441 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f"; \
442 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f; \
445 for f1 in $(EXAMPLESDIRS); do \
446 for f2 in $(EXAMPLESPOFILES); do \
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; \
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; \
462 for f1 in $(EXAMPLESDIRS); do \
463 for f2 in $(EXAMPLESPOFILES); do \
465 d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \
466 test -z "$$d" || $(mkdir_p) $(DESTDIR)$(examplesdir)$$d || exit 1; \
471 for f in $(EXAMPLESFILES); do \
472 rm -f $(DESTDIR)$(examplesdir)/$$f; \
474 for f1 in $(EXAMPLESDIRS); do \
475 for f2 in $(EXAMPLESPOFILES); do \
477 rm -f $(DESTDIR)$(examplesdir)/$$f; \
481 # Invoked from inside automake's distdir target.
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"; \
490 cp -p $$d/$$file $(distdir)/$$file || exit 1; \
492 for f1 in $(EXAMPLESDIRS); do \
493 for f2 in $(EXAMPLESPOFILES); do \
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"; \
500 cp -p $$d/$$file $(distdir)/$$file || exit 1; \
504 # Temporary directories created by po/Makefile.
505 CLEANFILES = tmp-hello-*