Makefile.am 37.5 KB
Newer Older
1
# Copyright (C) 2007, 2008, 2009, 2010 EPITA Research and Development
2
# Laboratory (LRDE).
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# This file is part of Olena.
#
# Olena is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, version 2 of the License.
#
# Olena is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Olena.  If not, see <http://www.gnu.org/licenses/>.

18
19
# FIXME: To be overhauled! (See ticket #134).

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Look for Milena header in srcdir and for (generated) test headers
# (like data.hh) in builddir.
AM_CPPFLAGS =						\
  -I$(top_srcdir)/milena -I$(top_builddir)/milena	\
  -I$(top_srcdir)/milena/doc/tutorial/tools

## FIXME: Upercase variables should be reserved for special names:
## classical Make variables (e.g. `CXXFLAGS') Automake variables
## (e.g. `SUBDIRS'), etc.
##
## Moreover, do we really need all these variables?  See how things
## evolve during the refurbishing of the build system in doc/.
DOC_SRCDIR = $(top_srcdir)/milena/doc
OUTPUTS_SRCDIR = $(DOC_SRCDIR)/outputs
SPLIT_OUTPUTS_SRCDIR = $(OUTPUTS_SRCDIR)/split
FIGURES_SRCDIR = $(DOC_SRCDIR)/figures
EXAMPLES_SRCDIR = $(DOC_SRCDIR)/examples
SPLIT_EXAMPLES_SRCDIR = $(EXAMPLES_SRCDIR)/split
IMG_SRCDIR = $(DOC_SRCDIR)/img

# FIXME: Adjust when $(DOC_SRCDIR) is renamed or removed.
#
# FIXME: Careful, `doc_dir' is close to `docdir', which is reserved by
# Automake.  Change this name?
doc_dir = $(DOC_SRCDIR)
Guillaume Lazzara's avatar
Guillaume Lazzara committed
45
46

DOXYGEN = doxygen
47

48
49
DOXYFILE = Doxyfile

50
51
52
# Initialiaze variables.
EXTRA_DIST =
dist_doc_DATA =
53

54
55
# FIXME: Simplify all of this.  ``Devel'' targets are really
# secondary.  And we probably don't need so much target aliases!
56

57
58
59
.PHONY: doc						\
	doc-user doc-devel				\
	doc-pdf doc-html doc-devel-pdf doc-devel-html	\
60
61
	ref-doc ref-doc-pdf				\
	ref-doc-devel ref-doc-devel-pdf
62

63
doc: doc-user doc-devel
64

65
66
doc-user: doc-pdf doc-html
doc-devel: doc-devel-pdf doc-devel-html
67

68
doc-pdf: tutorial-pdf white-paper-pdf ref-guide-pdf ref-doc-pdf
69

70
doc-html: tutorial-html white-paper-html ref-guide-html ref-doc
71

72
doc-devel-pdf: tutorial-pdf ref-guide-pdf white-paper-pdf ref-doc-devel-pdf
73

74
doc-devel-html: tutorial-html ref-guide-html white-paper-html \
75
		ref-doc-devel
76

77

78
79
80
81
82
83
84
85
86
87
88
## --------------------- ##
## LaTeX configuration.  ##
## --------------------- ##

include $(top_srcdir)/build-aux/tex.mk

# FIXME: Check this list.
TEXI2DVI_FLAGS +=							\
  -I $(DOC_SRCDIR) -I $(OUTPUTS_SRCDIR) -I $(SPLIT_OUTPUTS_SRCDIR)	\
  -I $(IMG_SRCDIR) -I $(SPLIT_EXAMPLES_SRCDIR)

89
90
91
# Illustrations of the white paper.
TEXI2DVI_FLAGS += -I $(DOC_SRCDIR)/white_paper

92
93
94
95
# Additional files for HeVeA compilations.
DOC_PACKAGES = $(srcdir)/doxyfuns.sty $(srcdir)/milena.sty


96
97
98
99
## ----------------------- ##
## Doxygen documentation.  ##
## ----------------------- ##

100
101
102
# FIXME: Check these dependencies.
# 1. They might be redundant.
# 2. It'd be better to depend on actual files rather than timestamps
103
#    corresponding to a bunch of files.
104
105
106
107
108
109
110
refman_dependencies =				\
  $(srcdir)/split-examples.stamp		\
  $(srcdir)/split-outputs.stamp			\
  $(srcdir)/figures.stamp			\
  $(srcdir)/tutorial/tutorial.hh		\
  $(srcdir)/ref_guide/ref_guide.hh

111
112
113
# ----------------------- #
# User reference manual.  #
# ----------------------- #
114

115
all-local: $(srcdir)/$(USER_REFMAN) $(srcdir)/$(USER_REFMAN_PDF)
116

117
118
119
120
121
# Run "make regen-doc" to forcefully rebuild the Doxygen documentation.
.PHONY: regen-doc
regen-doc:
	-rm -f $(srcdir)/user-refman.stamp
	$(MAKE) $(AM_MAKEFLAGS) $(srcdir)/user-refman.stamp
122

123
DOXYFILE_USER = Doxyfile_user
124

Roland Levillain's avatar
Roland Levillain committed
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Sed is used to generate Doxyfile from Doxyfile.in instead of
# configure, because the former is way faster than the latter.
#
## FIXME: This is because, as in TC, we depend on $Id$ from the
## ChangeLog.  Maybe we should depend from something less prone to
## change.  See Bison's build system.
edit = sed -e "s|@ID@|$$Id|"					\
	   -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g'		\
	   -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g'	\
	   -e 's,@top_srcdir\@,$(top_srcdir),g'			\
	   -e 's,@top_builddir\@,$(top_builddir),g'		\
	   -e 's,@srcdir\@,$(srcdir),g'				\
	   -e 's,@builddir\@,$(builddir),g'

$(DOXYFILE_USER): $(srcdir)/$(DOXYFILE).in
	Id=`grep '^\$$Id' $(top_srcdir)/milena/ChangeLog	\
	      | sed -e 's/\\\$$//g'`;				\
	  $(edit) $< >$@
143
MAINTAINERCLEANFILES = $(DOXYFILE_USER)
Roland Levillain's avatar
Roland Levillain committed
144

145
## FIXME: Rename USER_REFMAN_PDF to something else?
146
USER_REFMAN_PDF = user-refman.pdf
147
## FIXME: Likewise?
148
USER_REFMAN = user-refman
149

150
ref-doc-pdf: $(srcdir)/$(USER_REFMAN_PDF)
151
ref-doc: $(srcdir)/$(USER_REFMAN)
152
153
154
155

# FIXME: Use texi2dvi instead of Doxygen's generated Makefile?
# (The LaTeX to PDF rule could be factored using a suffix rule, as in
# LRDE's share/).
156
157
158
$(srcdir)/$(USER_REFMAN_PDF): $(srcdir)/$(USER_REFMAN)
	cd $(srcdir)/$(USER_REFMAN)/latex && $(MAKE) $(AM_MAKEFLAGS) pdf
	cp -f $(srcdir)/$(USER_REFMAN)/latex/refman.pdf $@
159

160
161
EXTRA_DIST += $(srcdir)/user-refman.stamp
MAINTAINERCLEANFILES += $(srcdir)/user-refman.stamp
162
163
164
165
166
## FIXME: Are dependencies (`$(refman_dependencies)') set on the right
## rule?  Does Doxygen make a copy of figures, or does it generate
## LaTeX inputs relying on the existence of such figures in the
## initial location?  Investigate.
$(srcdir)/user-refman.stamp: $(srcdir)/$(DOXYFILE).in $(refman_dependencies)
167
168
	@rm -f $@.tmp
	@touch $@.tmp
169
	-rm -rf $(USER_REFMAN).tmp
170
171
	$(MAKE) $(AM_MAKE_FLAGS) $(DOXYFILE_USER)
	$(DOXYGEN) $(DOXYFILE_USER)
172
173
## Doxygen may generate an incomplete output and exit with success!
## Check some files before deeming the output as acceptable.
174
	test -f $(USER_REFMAN).tmp/latex/refman.tex
175
176
	-rm -rf $(srcdir)/$(USER_REFMAN)
## FIXME: Moving directories between file systems is not portable.
177
	mv $(USER_REFMAN).tmp $(srcdir)/$(USER_REFMAN)
178
179
	@mv -f $@.tmp $@

180
$(srcdir)/$(USER_REFMAN): $(srcdir)/user-refman.stamp
181
182
183
184
185
186
## Recover from the removal of $@
	@if test -d $@; then :; else \
	  rm -f $<; \
	  $(MAKE) $(AM_MAKEFLAGS) $<; \
	fi

187
188
189
# ---------------------------- #
# Developer reference manual.  #
# ---------------------------- #
190

191
192
193
194
195
196
# Run "make regen-devel-doc" to forcefully rebuild the Doxygen
# developer documentation.
.PHONY: regen-devel-doc
regen-devel-doc:
	-rm -f $(srcdir)/devel-refman.stamp
	$(MAKE) $(AM_MAKEFLAGS) $(srcdir)/devel-refman.stamp
197

198
DOXYFILE_DEVEL = Doxyfile_devel
199

Roland Levillain's avatar
Roland Levillain committed
200
edit_devel = sed							      \
201
  -e 's,OUTPUT_DIRECTORY       = @builddir@/user-refman.tmp/,OUTPUT_DIRECTORY       = @builddir@/devel-refman.tmp/,' \
Roland Levillain's avatar
Roland Levillain committed
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
  -e 's,EXTRACT_ALL            = NO,EXTRACT_ALL            = YES,'	      \
  -e 's,EXTRACT_PRIVATE        = NO,EXTRACT_PRIVATE        = YES,'	      \
  -e 's,EXTRACT_STATIC         = NO,EXTRACT_STATIC         = YES,'	      \
  -e 's,EXTRACT_LOCAL_CLASSES  = NO,EXTRACT_LOCAL_CLASSES  = YES,'	      \
  -e 's,HIDE_UNDOC_MEMBERS     = YES,HIDE_UNDOC_MEMBERS     = NO,'	      \
  -e 's,HIDE_UNDOC_CLASSES     = YES,HIDE_UNDOC_CLASSES     = NO,'	      \
  -e 's,HIDE_FRIEND_COMPOUNDS  = YES,HIDE_FRIEND_COMPOUNDS  = NO,'	      \
  -e 's,HIDE_IN_BODY_DOCS      = YES,HIDE_IN_BODY_DOCS      = NO,'	      \
  -e 's,INTERNAL_DOCS          = NO,INTERNAL_DOCS          = YES,'	      \
  -e 's,GENERATE_TODOLIST      = NO,GENERATE_TODOLIST      = YES,'	      \
  -e 's,PROJECT_NUMBER         = \"User documentation ,PROJECT_NUMBER         = \",'	 \
  -e 's,EXCLUDE_SYMBOLS	       = \*::internal\* \*_ mln::trait::\*,EXCLUDE_SYMBOLS	       =,'

$(DOXYFILE_DEVEL): $(srcdir)/$(DOXYFILE).in
	rm -f $@.tmp
	Id=`grep '^\$$Id' $(top_srcdir)/milena/ChangeLog	\
	      | sed -e 's/\\\$$//g'`;				\
	  $(edit) $< >$@.tmp
	$(edit_devel) $@.tmp >$@
	rm -f $@.tmp
222
MAINTAINERCLEANFILES += $(DOXYFILE_DEVEL)
Roland Levillain's avatar
Roland Levillain committed
223

224
225
226
## FIXME: Rename DEVEL_REFMAN_PDF to something else?
DEVEL_REFMAN_PDF = devel-refman-pdf
## FIXME: Likewise?
227
DEVEL_REFMAN = devel-refman
228

229
ref-doc-devel-pdf: $(srcdir)/$(DEVEL_REFMAN_PDF)
230
ref-doc-devel: $(srcdir)/$(DEVEL_REFMAN)
231

232
233
234
235
# Be warned, most LaTeX installations will not be able to compile the
# PDF development documentation as-is, as TeX's default memory
# capacities are usually too small to handle such a large document.
#
236
237
238
## FIXME: Use texi2dvi instead of Doxygen's generated Makefile?  (The
## LaTeX to PDF rule could be factored using a suffix rule, as in
## LRDE's share/).
239
240
241
$(srcdir)/$(DEVEL_REFMAN_PDF): $(srcdir)/$(DEVEL_REFMAN)
	cd $(srcdir)/$(DEVEL_REFMAN)/latex && $(MAKE) $(AM_MAKEFLAGS) pdf
	cp -f $(srcdir)/$(DEVEL_REFMAN)/latex/refman.pdf $@
242

243
244
EXTRA_DIST += $(srcdir)/devel-refman.stamp
MAINTAINERCLEANFILES += $(srcdir)/devel-refman.stamp
245
246
247
248
249
## FIXME: Are dependencies (`$(refman_dependencies)') set on the right
## rule?  Does Doxygen make a copy of figures, or does it generate
## LaTeX inputs relying on the existence of such figures in the
## initial location?  Investigate.
$(srcdir)/devel-refman.stamp: $(srcdir)/$(DOXYFILE).in $(refman_dependencies)
250
251
	@rm -f $@.tmp
	@touch $@.tmp
252
	-rm -rf $(DEVEL_REFMAN).tmp
253
254
	$(MAKE) $(AM_MAKE_FLAGS) $(DOXYFILE_DEVEL)
	$(DOXYGEN) $(DOXYFILE_DEVEL)
255
256
## Doxygen may generate an incomplete output and exit with success!
## Check some files before deeming the output as acceptable.
257
	test -f $(DEVEL_REFMAN).tmp/latex/refman.tex
258
259
	-rm -rf $(srcdir)/$(DEVEL_REFMAN)
## FIXME: Moving directories between file systems is not portable.
260
	mv $(DEVEL_REFMAN).tmp $(srcdir)/$(DEVEL_REFMAN)
261
262
	@mv -f $@.tmp $@

263
$(srcdir)/$(DEVEL_REFMAN): $(srcdir)/devel-refman.stamp
264
265
266
267
268
269
270
271
272
## Recover from the removal of $@
	@if test -d $@; then :; else \
	  rm -f $<; \
	  $(MAKE) $(AM_MAKEFLAGS) $<; \
	fi


# Clean Doxygen products.
maintainer-clean-local:
273
274
	-rm -rf $(USER_REFMAN).tmp $(srcdir)/$(USER_REFMAN)
	-rm -rf $(DEVEL_REFMAN).tmp $(srcdir)/$(DEVEL_REFMAN)
275
276
277
278
279
280
	-rm -f $(EXAMPLES_BUILDDIR)/*.cc
# FIXME: If we remove a *directory*, we are supposed to know how to
# recreate it later.  I doubt our rules are all currently able to
# handle this.  See how `make maintainer-clean all' behaves.
	-rm -rf $(OUTPUTS_BUILDDIR)
	-rm -rf $(FIGURES_BUILDDIR)
281

Guillaume Lazzara's avatar
Guillaume Lazzara committed
282

283
284
285
286
## ------------------------- ##
## Technical Documentation.  ##
## ------------------------- ##

287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
.PHONY: technical technical-html technical-pdf

technical: technical-html technical-pdf

technical_dir = $(doc_dir)/technical

# FIXME: Check these dependencies.  And it'd be better to depend on
# actual files rather than timestamps corresponding to a bunch of
# files.
technical_dependencies = $(doc_dir)/figures.stamp

# FIXME: As in milena/doc/Makefile.am, we should probably strip
# $(srcdir) prefixes from target variables, e.g. instead of:
#
#   FOO = $(srcdir)/foo.pdf
#   $(FOO): foo.tex bar.tex
#   dist_doc_DATA = $(FOO)
#
# we should use:
#
#   FOO = foo.pdf
#   $(srcdir)/$(FOO): foo.tex bar.tex
#   dist_doc_DATA = $(FOO)
#
# since it minimizes installation issues (see milena/doc/Makefile.am
# and Vaucanson's doc/Makefile.am).

# FIXME: Distributed products should be generated in the source dir.
# That's actually the case, *but* the current solution is not clean
# and might break sometimes.  The clean approach is to create a
# temporary directory, try to generate the documentation there, and
# move its contents to the source dir in case of success.  If the
# product is a directory, also refresh a timestamp (in the source
# dir).

322
323
324
325
## FIXME: technical technical.hh does not seem to be used (by the
## Doyxgen documentation); remove its generation? Careful,
## technical/technical.html *is* probably required, though.

326
# Final product.
327
TECHNICAL_HTML = $(technical_dir)/technical.html
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
TECHNICAL_HTML_OUTPUTS = $(TECHNICAL_HTML) $(technical_dir)/technical.css

EXTRA_DIST += $(TECHNICAL_HTML).stamp
MAINTAINERCLEANFILES += $(TECHNICAL_HTML).stamp
# HTML outputs contains several files (the HTML file itself, its CSS
# style sheet, possibly some images).  Therefore, we cannot rely on a
# simple suffix rule to produce them.
$(TECHNICAL_HTML).stamp: $(technical_dir)/technical.tex $(technical_dependencies)
	@rm -f $@.tmp
	@touch $@.tmp
	$(TEXI2HTML) $(TEXI2HTML_FLAGS) -o $(TECHNICAL_HTML) $<
	@mv -f $@.tmp $@

$(TECHNICAL_HTML_OUTPUTS): $(TECHNICAL_HTML).stamp
## Recover from the removal of $@
343
	@if test -f $@; then :; else \
344
345
346
	  rm -f $<; \
	  $(MAKE) $(AM_MAKEFLAGS) $<; \
	fi
347

348
349
dist_doc_DATA += $(TECHNICAL_HTML_OUTPUTS)
MAINTAINERCLEANFILES += $(TECHNICAL_HTML_OUTPUTS)
350

351
352
353
354
355
356
357
# Intermediate product for the various doc targets of the parent
# directory.
#
# This is not a bug: TECHNICAL_HH is meant to have a `.hh'
# extension, since it is later parsed by Doxygen, which complains
# about `.html' files.
TECHNICAL_HH = $(technical_dir)/technical.hh
358
359
# FIXME: Careful, technical-html depends on $(TECHNICAL_HH), not
# $(TECHNICAL_HTML).  Anyway, this shortcut should vanish soon.
360
technical-html: $(TECHNICAL_HH)
361
$(TECHNICAL_HH): $(TECHNICAL_HTML) $(doc_dir)/tools/todoxygen.sh
362
363
364
365
366
367
368
# The script `todoxygen.sh' may fail and still create a (partial and
# invalid) file, thus preventing Make from trying to generate it
# again.  The solution is to use a temporary file as output and rename
# it if the script succeeds.
	rm -f $@.tmp
	$(doc_dir)/tools/todoxygen.sh $< $@.tmp $(doc_dir)
	mv -f $@.tmp $@
369
370
371
372
373


# Final product.
TECHNICAL_PDF = $(technical_dir)/technical.pdf
technical-pdf: $(TECHNICAL_PDF)
374
375
# Extra dependencies.
$(TECHNICAL_PDF): $(technical_dependencies)
376
377

dist_doc_DATA += $(TECHNICAL_PDF)
378
MAINTAINERCLEANFILES += $(TECHNICAL_PDF)
379
380
381
382
383

EXTRA_DIST +=					\
  $(technical_dir)/technical.tex		\
  $(TECHNICAL_HH)

384
MAINTAINERCLEANFILES += $(TECHNICAL_HH)
385

386
387
388
389
## ---------- ##
## Tutorial.  ##
## ---------- ##

390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
.PHONY: tutorial tutorial-html tutorial-pdf

tutorial: tutorial-html tutorial-pdf

tutorial_dir = $(doc_dir)/tutorial

# FIXME: Check these dependencies.
# 1. They might be redundant.
# 2. It'd be better to depend on actual files rather than timestamps
#    corresponding to a bunch of files.
tutorial_dependencies =				\
  $(doc_dir)/split-examples.stamp		\
  $(doc_dir)/split-outputs.stamp		\
  $(doc_dir)/figures.stamp

# FIXME: As in milena/doc/Makefile.am, we should probably strip
# $(srcdir) prefixes from target variables, e.g. instead of:
#
#   FOO = $(srcdir)/foo.pdf
#   $(FOO): foo.tex bar.tex
#   dist_doc_DATA = $(FOO)
#
# we should use:
#
#   FOO = foo.pdf
#   $(srcdir)/$(FOO): foo.tex bar.tex
#   dist_doc_DATA = $(FOO)
#
# since it minimizes installation issues (see milena/doc/Makefile.am
# and Vaucanson's doc/Makefile.am).

# FIXME: Distributed products should be generated in the source dir.
# That's actually the case, *but* the current solution is not clean
# and might break sometimes.  The clean approach is to create a
# temporary directory, try to generate the documentation there, and
# move its contents to the source dir in case of success.  If the
# product is a directory, also refresh a timestamp (in the source
# dir).

429
# Final product.
430
TUTORIAL_HTML = $(tutorial_dir)/tutorial.html
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
TUTORIAL_HTML_OUTPUTS = $(TUTORIAL_HTML) $(tutorial_dir)/tutorial.css

EXTRA_DIST += $(TUTORIAL_HTML).stamp
MAINTAINERCLEANFILES += $(TUTORIAL_HTML).stamp
# HTML outputs contains several files (the HTML file itself, its CSS
# style sheet, possibly some images).  Therefore, we cannot rely on a
# simple suffix rule to produce them.
$(TUTORIAL_HTML).stamp: $(tutorial_dir)/tutorial.tex $(tutorial_dependencies)
	@rm -f $@.tmp
	@touch $@.tmp
	$(TEXI2HTML) $(TEXI2HTML_FLAGS) -o $(TUTORIAL_HTML) $<
	@mv -f $@.tmp $@

$(TUTORIAL_HTML_OUTPUTS): $(TUTORIAL_HTML).stamp
## Recover from the removal of $@
446
	@if test -f $@; then :; else \
447
448
449
	  rm -f $<; \
	  $(MAKE) $(AM_MAKEFLAGS) $<; \
	fi
450

451
452
dist_doc_DATA += $(TUTORIAL_HTML_OUTPUTS)
MAINTAINERCLEANFILES += $(TUTORIAL_HTML_OUTPUTS)
453

454
455
456
457
458
459
460
# Intermediate product for the various doc targets of the parent
# directory.
#
# This is not a bug: TUTORIAL_HH is meant to have a `.hh' extension,
# since it is later parsed by Doxygen, which complains about `.html'
# files.
TUTORIAL_HH = $(tutorial_dir)/tutorial.hh
461
462
# FIXME: Careful, tutorial-html depends on $(TUTORIAL_HH), not
# $(TUTORIAL_HTML).  Anyway, this shortcut should vanish soon.
463
tutorial-html: $(TUTORIAL_HH)
464
$(TUTORIAL_HH): $(TUTORIAL_HTML) $(doc_dir)/tools/todoxygen.sh
465
466
467
468
469
470
471
# The script `todoxygen.sh' may fail and still create a (partial and
# invalid) file, thus preventing Make from trying to generate it
# again.  The solution is to use a temporary file as output and rename
# it if the script succeeds.
	rm -f $@.tmp
	$(doc_dir)/tools/todoxygen.sh $< $@.tmp $(doc_dir)
	mv -f $@.tmp $@
472

473

474
475
476
# Final product.
TUTORIAL_PDF = $(tutorial_dir)/tutorial.pdf
tutorial-pdf: $(TUTORIAL_PDF)
477
478
# Extra dependencies.
$(TUTORIAL_PDF): $(tutorial_dependencies)
479
480

dist_doc_DATA += $(TUTORIAL_PDF)
481
MAINTAINERCLEANFILES += $(TUTORIAL_PDF)
482
483
484
485
486

EXTRA_DIST +=					\
  $(tutorial_dir)/tutorial.tex			\
  $(TUTORIAL_HH)

487
MAINTAINERCLEANFILES += $(TUTORIAL_HH)
488

489

490
491
492
493
## ------------- ##
## White Paper.  ##
## ------------- ##

494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
.PHONY: white-paper white-paper-html white-paper-pdf

white_paper_dir = $(doc_dir)/white_paper

PNGS =								\
  $(white_paper_dir)/figures/house.png				\
  $(white_paper_dir)/figures/house_rag.png			\
  $(white_paper_dir)/figures/house_wshed.png			\
  $(white_paper_dir)/figures/house_wshed_mean_colors.png

EPSS = $(PNGS:png=eps)

# FIXME: we want to check if 'figures' exists only once!
.png.eps:
	test -d figures || mkdir figures
	convert $< $@


white-paper: white-paper-pdf white-paper-html

# FIXME: As in milena/doc/Makefile.am, we should probably strip
# $(srcdir) prefixes from target variables, e.g. instead of:
#
#   FOO = $(srcdir)/foo.pdf
#   $(FOO): foo.tex bar.tex
#   dist_doc_DATA = $(FOO)
#
# we should use:
#
#   FOO = foo.pdf
#   $(srcdir)/$(FOO): foo.tex bar.tex
#   dist_doc_DATA = $(FOO)
#
# since it minimizes installation issues (see milena/doc/Makefile.am
# and Vaucanson's doc/Makefile.am).

# FIXME: Distributed products should be generated in the source dir.
# That's actually the case, *but* the current solution is not clean
# and might break sometimes.  The clean approach is to create a
# temporary directory, try to generate the documentation there, and
# move its contents to the source dir in case of success.  If the
# product is a directory, also refresh a timestamp (in the source
# dir).

538
539
# Final product.
WHITE_PAPER_HTML = $(white_paper_dir)/white_paper.html
540
white-paper-html: $(WHITE_PAPER_HTML)
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
WHITE_PAPER_HTML_OUTPUTS =			\
  $(WHITE_PAPER_HTML)				\
  $(white_paper_dir)/white_paper.css		\
  $(white_paper_dir)/white_paper0x.png		\
  $(white_paper_dir)/white_paper1x.png		\
  $(white_paper_dir)/white_paper2x.png		\
  $(white_paper_dir)/white_paper3x.png

EXTRA_DIST += $(WHITE_PAPER_HTML).stamp
MAINTAINERCLEANFILES += $(WHITE_PAPER_HTML).stamp
# HTML outputs contains several files (the HTML file itself, its CSS
# style sheet, possibly some images).  Therefore, we cannot rely on a
# simple suffix rule to produce them.
$(WHITE_PAPER_HTML).stamp: $(white_paper_dir)/white_paper.tex $(EPSS)
	@rm -f $@.tmp
	@touch $@.tmp
	$(TEXI2HTML) $(TEXI2HTML_FLAGS) -o $(WHITE_PAPER_HTML) $<
	@mv -f $@.tmp $@

$(WHITE_PAPER_HTML_OUTPUTS): $(WHITE_PAPER_HTML).stamp
## Recover from the removal of $@
562
	@if test -f $@; then :; else \
563
564
565
	  rm -f $<; \
	  $(MAKE) $(AM_MAKEFLAGS) $<; \
	fi
566

567
568
dist_doc_DATA += $(WHITE_PAPER_HTML_OUTPUTS)
MAINTAINERCLEANFILES += $(WHITE_PAPER_HTML_OUTPUTS)
569
570
571

WHITE_PAPER_PDF = $(white_paper_dir)/white_paper.pdf
white-paper-pdf: $(WHITE_PAPER_PDF)
572
573
# Extra dependencies.
$(WHITE_PAPER_PDF): $(PNGS)
574

575
576
dist_doc_DATA += $(WHITE_PAPER_PDF)
MAINTAINERCLEANFILES += $(WHITE_PAPER_PDF)
577
578
579
580
581
582

EXTRA_DIST +=					\
  $(white_paper_dir)/white_paper.tex		\
  $(PNGS)					\
  $(EPSS)

583
MAINTAINERCLEANFILES += $(EPSS)
584

585

586
587
588
589
## ----------------- ##
## Reference Guide.  ##
## ----------------- ##

590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
.PHONY: ref-guide ref-guide-html ref-guide-pdf

ref-guide: ref-guide-html ref-guide-pdf

ref_guide_dir = $(doc_dir)/ref_guide

# FIXME: Check these dependencies.
# 1. They might be redundant.
# 2. It'd be better to depend on actual files rather than timestamps
#    corresponding to a bunch of files.
ref_guide_dependencies =			\
  $(doc_dir)/split-examples.stamp		\
  $(doc_dir)/split-outputs.stamp		\
  $(doc_dir)/figures.stamp

# FIXME: As in milena/doc/Makefile.am, we should probably strip
# $(srcdir) prefixes from target variables, e.g. instead of:
#
#   FOO = $(srcdir)/foo.pdf
#   $(FOO): foo.tex bar.tex
#   dist_doc_DATA = $(FOO)
#
# we should use:
#
#   FOO = foo.pdf
#   $(srcdir)/$(FOO): foo.tex bar.tex
#   dist_doc_DATA = $(FOO)
#
# since it minimizes installation issues (see milena/doc/Makefile.am
# and Vaucanson's doc/Makefile.am).

# FIXME: Distributed products should be generated in the source dir.
# That's actually the case, *but* the current solution is not clean
# and might break sometimes.  The clean approach is to create a
# temporary directory, try to generate the documentation there, and
# move its contents to the source dir in case of success.  If the
# product is a directory, also refresh a timestamp (in the source
# dir).

629
# Final product.
630
REF_GUIDE_HTML = $(ref_guide_dir)/ref_guide.html
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
REF_GUIDE_HTML_OUTPUTS =			\
  $(REF_GUIDE_HTML)				\
  $(ref_guide_dir)/ref_guide.css		\
  $(ref_guide_dir)/ref_guide0x.png

EXTRA_DIST += $(REF_GUIDE_HTML).stamp
MAINTAINERCLEANFILES += $(REF_GUIDE_HTML).stamp
# HTML outputs contains several files (the HTML file itself, its CSS
# style sheet, possibly some images).  Therefore, we cannot rely on a
# simple suffix rule to produce them.
$(REF_GUIDE_HTML).stamp: $(ref_guide_dir)/ref_guide.tex $(ref_guide_dependencies)
	@rm -f $@.tmp
	@touch $@.tmp
	$(TEXI2HTML) $(TEXI2HTML_FLAGS) -o $(REF_GUIDE_HTML) $<
	@mv -f $@.tmp $@

$(REF_GUIDE_HTML_OUTPUTS): $(REF_GUIDE_HTML).stamp
## Recover from the removal of $@
649
	@if test -f $@; then :; else \
650
651
652
	  rm -f $<; \
	  $(MAKE) $(AM_MAKEFLAGS) $<; \
	fi
653

654
655
dist_doc_DATA += $(REF_GUIDE_HTML_OUTPUTS)
MAINTAINERCLEANFILES += $(REF_GUIDE_HTML_OUTPUTS)
656

657
658
659
660
661
662
663
# Intermediate product for the various doc targets of the parent
# directory.
#
# This is not a bug: REF_GUIDE_HH is meant to have a `.hh' extension,
# since it is later parsed by Doxygen, which complains about `.html'
# files.
REF_GUIDE_HH = $(ref_guide_dir)/ref_guide.hh
664
665
# FIXME: Careful, ref-guide-html depends on $(REF_GUIDE_HH), not
# $(REF_GUIDE_HTML).  Anyway, this shortcut should vanish soon.
666
ref-guide-html: $(REF_GUIDE_HH)
667
$(REF_GUIDE_HH): $(REF_GUIDE_HTML) $(doc_dir)/tools/todoxygen.sh
668
669
670
671
672
673
674
# The script `todoxygen.sh' may fail and still create a (partial and
# invalid) file, thus preventing Make from trying to generate it
# again.  The solution is to use a temporary file as output and rename
# it if the script succeeds.
	rm -f $@.tmp
	$(doc_dir)/tools/todoxygen.sh $< $@.tmp $(doc_dir)
	mv -f $@.tmp $@
675
676
677
678
679


# Final product.
REF_GUIDE_PDF = $(ref_guide_dir)/ref_guide.pdf
ref-guide-pdf: $(REF_GUIDE_PDF)
680
681
# Extra dependencies.
$(REF_GUIDE_PDF): $(ref_guide_dependencies)
682
683

dist_doc_DATA += $(REF_GUIDE_PDF)
684
MAINTAINERCLEANFILES += $(REF_GUIDE_PDF)
685
686
687
688
689

EXTRA_DIST +=					\
  $(ref_guide_dir)/ref_guide.tex		\
  $(REF_GUIDE_HH)

690
MAINTAINERCLEANFILES += $(REF_GUIDE_HH)
Guillaume Lazzara's avatar
Guillaume Lazzara committed
691
692


693
694
695
## --------- ##
## Figures.  ##
## --------- ##
696

697
698
699
$(srcdir)/figures/figures.mk: $(srcdir)/headers.stamp
include $(srcdir)/figures/figures.mk

700
701
EXTRA_DIST += $(srcdir)/figures.stamp
MAINTAINERCLEANFILES += $(srcdir)/figures.stamp
702
703
704
705
706
707
708
709
$(srcdir)/figures.stamp: $(FIGURES_SRCDIR)/*.p*m
	rm -f $@.tmp
	touch $@.tmp
	failcom='exit 1';						\
	list="$(FIGURES_SRCDIR)/*.p*m"; for img in $$list; do		\
	  echo "Converting $$img to PNG";				\
	  name=`basename $$img`						\
	  ext=`echo $$name | cut -d '.' -f 2`;				\
Guillaume Lazzara's avatar
Guillaume Lazzara committed
710
	  convert -scale 250 -bordercolor black -border 2x2 $$img 	\
711
	    $(FIGURES_SRCDIR)/`basename $$img $$ext`png			\
712
713
714
	    || eval $$failcom;						\
	done
	mv -f $@.tmp $@
Guillaume Lazzara's avatar
Guillaume Lazzara committed
715

716

717
718
719
720
## ---------- ##
## Examples.  ##
## ---------- ##

721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
PROGRAMS_examples =		\
  accu-right-instanciation 	\
  borderthickness 		\
  box2d-bbox 			\
  domain-display 		\
  dpoint-1 			\
  estim-sites 			\
  extend 			\
  extension-ignore 		\
  fill 				\
  fill-call-1			\
  fill-imageif-cfun 		\
  fill-part-image 		\
  fill-subdomain 		\
  fill-subdomain-shorter	\
  first_routine 		\
  forall-piter  		\
  fun-p2v-1 			\
  graph-data 			\
  graph-iter 			\
  ima-has 			\
  ima-save 			\
  ima-size 			\
  ima2d-1 			\
  ima2d-2 			\
  ima2d-3 			\
  ima2d-4 			\
  ima2d-5 			\
  ima2d-6-clone			\
  ima2d-7 			\
  ima2d-rot 			\
  labeling-compute 		\
  logical-not 			\
  mln_var 			\
  parray-append 		\
  parray-bbox 			\
  paste 			\
  paste-call-1 			\
  point-1 			\
  predicate-1 			\
  win-create-1 			\
  win-create-2

PROGRAMS_examples += 	\
  tuto2_first_image 		\
  tuto3_rw_image 		\
  tuto4_genericity_and_algorithms

# Tuto3
PROGRAMS_examples += 	\
  tuto3_colorize 		\
  tuto3_println 		\
  tuto3_trace

# Tuto4
PROGRAMS_examples += 	\
  tuto4_point2d			\
  tuto4_site_set_create

EXTRA_PROGRAMS = $(PROGRAMS_examples)
781
CLEANFILES = $(PROGRAMS_examples)
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865

# FIXME: Careful, this will only work if this file is included by
# `milena/doc/Makefile.am', since `examples/' is a subdirectory of
# `milena/doc/'.  Anyway, this file is to be eventually inlined in
# `milena/doc/Makefile.am', so this is not a big deal.
accu_right_instanciation_SOURCES = examples/accu-right-instanciation.cc
borderthickness_SOURCES = examples/borderthickness.cc
box2d_bbox_SOURCES = examples/box2d-bbox.cc
domain_display_SOURCES = examples/domain-display.cc
dpoint_1_SOURCES = examples/dpoint-1.cc
estim_sites_SOURCES = examples/estim-sites.cc
extend_SOURCES = examples/extend.cc
extension_ignore_SOURCES = examples/extension-ignore.cc
fill_SOURCES = examples/fill.cc
fill_call_1_SOURCES = examples/fill-call-1.cc
fill_imageif_cfun_SOURCES = examples/fill-imageif-cfun.cc
fill_part_image_SOURCES = examples/fill-part-image.cc
fill_subdomain_SOURCES = examples/fill-subdomain.cc
fill_subdomain_shorter_SOURCES = examples/fill-subdomain-shorter.cc
first_routine_SOURCES = examples/tuto3/first_routine.cc
forall_piter_SOURCES = examples/forall-piter.cc
fun_p2v_1_SOURCES = examples/fun-p2v-1.cc
graph_data_SOURCES = examples/graph-data.cc
graph_iter_SOURCES = examples/graph-iter.cc
ima2d_1_SOURCES = examples/ima2d-1.cc
ima2d_2_SOURCES = examples/ima2d-2.cc
ima2d_3_SOURCES = examples/ima2d-3.cc
ima2d_4_SOURCES = examples/ima2d-4.cc
ima2d_5_SOURCES = examples/ima2d-5.cc
ima2d_6_clone_SOURCES = examples/ima2d-6-clone.cc
ima2d_7_SOURCES = examples/ima2d-7.cc
ima2d_rot_SOURCES = examples/ima2d-rot.cc
ima_has_SOURCES = examples/ima-has.cc
ima_save_SOURCES = examples/ima-save.cc
ima_size_SOURCES = examples/ima-size.cc
labeling_compute_SOURCES = examples/labeling-compute.cc
logical_not_SOURCES = examples/logical-not.cc
mln_var_SOURCES = examples/mln_var.cc
parray_append_SOURCES = examples/parray-append.cc
parray_bbox_SOURCES = examples/parray-bbox.cc
paste_SOURCES = examples/paste.cc
paste_call_1_SOURCES = examples/paste-call-1.cc
point_1_SOURCES = examples/point-1.cc
predicate_1_SOURCES = examples/predicate-1.cc
win_create_1_SOURCES = examples/win-create-1.cc
win_create_2_SOURCES = examples/win-create-2.cc

tuto2_first_image_SOURCES = examples/tuto2_first_image.cc
tuto3_rw_image_SOURCES = examples/tuto3_rw_image.cc
tuto4_genericity_and_algorithms_SOURCES = examples/tuto4_genericity_and_algorithms.cc

# Tuto 3
tuto3_colorize_SOURCES = examples/tuto3/colorize.cc
tuto3_println_SOURCES = examples/tuto3/println.cc
tuto3_trace_SOURCES = examples/tuto3/trace.cc

# Tuto 4
tuto4_point2d_SOURCES = examples/tuto4/point2d.cc
tuto4_site_set_create_SOURCES = examples/tuto4/site_set_create.cc


# FIXME: Try to avoid the use an extensive list: either use Make's
# substitution rules or generate it.  Actually this list is already
# generated (see outputs/outputs.mk).
OUTPUTS =						\
  $(srcdir)/outputs/accu-right-instanciation.txt	\
  $(srcdir)/outputs/borderthickness.txt			\
  $(srcdir)/outputs/box2d-bbox.txt			\
  $(srcdir)/outputs/domain-display.txt			\
  $(srcdir)/outputs/dpoint-1.txt			\
  $(srcdir)/outputs/estim-sites.txt			\
  $(srcdir)/outputs/extend.txt				\
  $(srcdir)/outputs/extension-ignore.txt		\
  $(srcdir)/outputs/fill-call-1.txt			\
  $(srcdir)/outputs/fill-imageif-cfun.txt		\
  $(srcdir)/outputs/fill-part-image.txt			\
  $(srcdir)/outputs/fill-subdomain-shorter.txt		\
  $(srcdir)/outputs/fill-subdomain.txt			\
  $(srcdir)/outputs/fill.txt				\
  $(srcdir)/outputs/first_routine.txt			\
  $(srcdir)/outputs/forall-piter.txt			\
  $(srcdir)/outputs/fun-p2v-1.txt			\
  $(srcdir)/outputs/graph-data.txt			\
  $(srcdir)/outputs/graph-iter.txt			\
866
867
868
  $(srcdir)/outputs/ima-has.txt				\
  $(srcdir)/outputs/ima-save.txt			\
  $(srcdir)/outputs/ima-size.txt			\
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
  $(srcdir)/outputs/ima2d-1.txt				\
  $(srcdir)/outputs/ima2d-2.txt				\
  $(srcdir)/outputs/ima2d-3.txt				\
  $(srcdir)/outputs/ima2d-4.txt				\
  $(srcdir)/outputs/ima2d-5.txt				\
  $(srcdir)/outputs/ima2d-6-clone.txt			\
  $(srcdir)/outputs/ima2d-7.txt				\
  $(srcdir)/outputs/ima2d-rot.txt			\
  $(srcdir)/outputs/labeling-compute.txt		\
  $(srcdir)/outputs/logical-not.txt			\
  $(srcdir)/outputs/mln_var.txt				\
  $(srcdir)/outputs/parray-append.txt			\
  $(srcdir)/outputs/parray-bbox.txt			\
  $(srcdir)/outputs/paste-call-1.txt			\
  $(srcdir)/outputs/paste.txt				\
  $(srcdir)/outputs/point-1.txt				\
  $(srcdir)/outputs/predicate-1.txt			\
  $(srcdir)/outputs/tuto2_first_image.txt		\
  $(srcdir)/outputs/tuto3_colorize.txt			\
  $(srcdir)/outputs/tuto3_println.txt			\
  $(srcdir)/outputs/tuto3_rw_image.txt			\
  $(srcdir)/outputs/tuto3_trace.txt			\
  $(srcdir)/outputs/tuto4_genericity_and_algorithms.txt	\
  $(srcdir)/outputs/tuto4_point2d.txt			\
  $(srcdir)/outputs/tuto4_site_set_create.txt		\
  $(srcdir)/outputs/win-create-1.txt			\
  $(srcdir)/outputs/win-create-2.txt

897
898
899
900
901
902
903
904
905
906
907
908
909
## FIXME: These outpouts are also required by the (LaTeX)
## documentation.  However, they have no corresponding program in
## examples/, hence they cannot be regenerated.  Are they hand-made
## outputs?  Or maybe outputs of which program has been removed since?
MORE_OUTPUTS =					\
  $(srcdir)/outputs/graph-output-1.txt		\
  $(srcdir)/outputs/ima2d-display-1.txt		\
  $(srcdir)/outputs/ima2d-display-2.txt		\
  $(srcdir)/outputs/ima2d-display-output-1.txt	\
  $(srcdir)/outputs/ima2d-display-output-2.txt	\
  $(srcdir)/outputs/parray-display-1.txt	\
  $(srcdir)/outputs/win-create-1-display.txt

910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
$(DOC_SRCDIR)/examples-outputs.mk: $(DOC_SRCDIR)/gen-examples-outputs-mk $(srcdir)/Makefile.am
	$(DOC_SRCDIR)/gen-examples-outputs-mk $(PROGRAMS_examples) >$@.tmp
	mv -f $@.tmp $@
	chmod -w $@
include $(DOC_SRCDIR)/examples-outputs.mk

MAINTAINERCLEANFILES += $(OUTPUTS)

# FIXME: Warning: $(SPLIT_EXAMPLES_SRCDIR) might not exist.  Ensure it
# exists.

# FIXME: Try to avoid the use an extensive list: either use Make's
# substitution rules or generate it.
EXAMPLES =						\
  $(srcdir)/examples/accu-right-instanciation.cc	\
  $(srcdir)/examples/borderthickness.cc			\
  $(srcdir)/examples/box2d-bbox.cc			\
  $(srcdir)/examples/domain-display.cc			\
  $(srcdir)/examples/dpoint-1.cc			\
  $(srcdir)/examples/estim-sites.cc			\
  $(srcdir)/examples/extend.cc				\
  $(srcdir)/examples/extension-ignore.cc		\
  $(srcdir)/examples/fill-call-1.cc			\
  $(srcdir)/examples/fill-imageif-cfun.cc		\
  $(srcdir)/examples/fill-part-image.cc			\
  $(srcdir)/examples/fill-subdomain-shorter.cc		\
  $(srcdir)/examples/fill-subdomain.cc			\
  $(srcdir)/examples/fill.cc				\
  $(srcdir)/examples/forall-piter.cc			\
  $(srcdir)/examples/fun-p2v-1.cc			\
  $(srcdir)/examples/graph-data.cc			\
  $(srcdir)/examples/graph-iter.cc			\
  $(srcdir)/examples/ima-has.cc				\
  $(srcdir)/examples/ima-load.cc			\
944
  $(srcdir)/examples/ima-save.cc			\
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
  $(srcdir)/examples/ima-size.cc			\
  $(srcdir)/examples/ima2d-1.cc				\
  $(srcdir)/examples/ima2d-2.cc				\
  $(srcdir)/examples/ima2d-3.cc				\
  $(srcdir)/examples/ima2d-4.cc				\
  $(srcdir)/examples/ima2d-5.cc				\
  $(srcdir)/examples/ima2d-6-clone.cc			\
  $(srcdir)/examples/ima2d-7.cc				\
  $(srcdir)/examples/ima2d-rot.cc			\
  $(srcdir)/examples/labeling-compute.cc		\
  $(srcdir)/examples/logical-not.cc			\
  $(srcdir)/examples/mln_var.cc				\
  $(srcdir)/examples/parray-append.cc			\
  $(srcdir)/examples/parray-bbox.cc			\
  $(srcdir)/examples/paste-call-1.cc			\
  $(srcdir)/examples/paste.cc				\
  $(srcdir)/examples/point-1.cc				\
  $(srcdir)/examples/predicate-1.cc			\
  $(srcdir)/examples/trash/accu.cc			\
  $(srcdir)/examples/trash/box.cc			\
  $(srcdir)/examples/trash/cpp_issue.cc			\
  $(srcdir)/examples/trash/erosion.cc			\
  $(srcdir)/examples/trash/for_Z.cc			\
  $(srcdir)/examples/trash/graph.cc			\
  $(srcdir)/examples/trash/image2d.cc			\
  $(srcdir)/examples/trash/image_flat.cc		\
  $(srcdir)/examples/trash/image_if.cc			\
  $(srcdir)/examples/trash/image_plain.cc		\
  $(srcdir)/examples/trash/image_safe.cc		\
  $(srcdir)/examples/trash/labeling_algo.cc		\
  $(srcdir)/examples/trash/mk_graph.cc			\
  $(srcdir)/examples/trash/p_array.2.cc			\
  $(srcdir)/examples/trash/p_array.cc			\
  $(srcdir)/examples/trash/p_image.cc			\
  $(srcdir)/examples/trash/p_key.2.cc			\
  $(srcdir)/examples/trash/p_key.cc			\
  $(srcdir)/examples/trash/p_line2d.cc			\
  $(srcdir)/examples/trash/p_mutable_array_of.cc	\
  $(srcdir)/examples/trash/p_queue.cc			\
  $(srcdir)/examples/trash/p_run.cc			\
  $(srcdir)/examples/trash/p_vaccess.cc			\
  $(srcdir)/examples/trash/proxy.cc			\
  $(srcdir)/examples/trash/sub_image.cc			\
  $(srcdir)/examples/trash/sub_image_if.cc		\
  $(srcdir)/examples/trash/tuto_bis.cc			\
  $(srcdir)/examples/trash/tuto_one.cc			\
  $(srcdir)/examples/trash/vec.cc			\
  $(srcdir)/examples/trash/win_multiple.cc		\
  $(srcdir)/examples/trash/window.cc			\
  $(srcdir)/examples/tuto2_first_image.cc		\
  $(srcdir)/examples/tuto3/colorize.cc			\
  $(srcdir)/examples/tuto3/first_routine.cc		\
  $(srcdir)/examples/tuto3/println.cc			\
  $(srcdir)/examples/tuto3/trace.cc			\
  $(srcdir)/examples/tuto3_rw_image.cc			\
  $(srcdir)/examples/tuto4/image.cc			\