1 ## Makefile for the gettext-tools/examples subdirectory of GNU gettext
2 ## Copyright (C) 2001-2007, 2009-2012 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_AMFLAGS = -I ../../gettext-runtime/m4 -I ../../m4
24 examplesdir = $(docdir)/examples
26 examples_DATA = installpaths
28 # List of examples files, excluding the localizations.
33 hello-c/autoclean.sh \
36 hello-c/configure.ac \
37 hello-c/m4/Makefile.am \
39 hello-c/po/POTFILES.in \
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 \
55 hello-c++/autogen.sh \
56 hello-c++/autoclean.sh \
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 \
64 hello-c++-qt/INSTALL \
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 \
75 hello-c++-kde/INSTALL \
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 \
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 \
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 \
138 hello-objc/autogen.sh \
139 hello-objc/autoclean.sh \
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 \
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 \
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 \
174 hello-sh/autogen.sh \
175 hello-sh/autoclean.sh \
177 hello-sh/Makefile.am \
178 hello-sh/configure.ac \
179 hello-sh/m4/Makefile.am \
180 hello-sh/po/Makefile.am \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
360 # List of examples directories containing a po directory.
368 hello-c++-wxwidgets \
392 # List of files present in every example's po directory.
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; \
445 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f"; \
446 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(examplesdir)/$$f; \
449 for f1 in $(EXAMPLESDIRS); do \
450 for f2 in $(EXAMPLESPOFILES); do \
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; \
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; \
466 for f1 in $(EXAMPLESDIRS); do \
467 for f2 in $(EXAMPLESPOFILES); do \
469 d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \
470 test -z "$$d" || $(MKDIR_P) $(DESTDIR)$(examplesdir)$$d || exit 1; \
475 for f in $(EXAMPLESFILES); do \
476 rm -f $(DESTDIR)$(examplesdir)/$$f; \
478 for f1 in $(EXAMPLESDIRS); do \
479 for f2 in $(EXAMPLESPOFILES); do \
481 rm -f $(DESTDIR)$(examplesdir)/$$f; \
485 # Invoked from inside automake's distdir target.
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"; \
494 cp -p $$d/$$file $(distdir)/$$file || exit 1; \
496 for f1 in $(EXAMPLESDIRS); do \
497 for f2 in $(EXAMPLESPOFILES); do \
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"; \
504 cp -p $$d/$$file $(distdir)/$$file || exit 1; \
508 # Temporary directories created by po/Makefile.