summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: 1449cec83051cbdec321df37b6032ab05821520b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
#
# Tag Image File Format (TIFF) Software
#
# Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
#
# Permission to use, copy, modify, distribute, and sell this software and 
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
# 
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
# 
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
# OF THIS SOFTWARE.

# Process this file with automake to produce Makefile.in.

docdir = $(LIBTIFF_DOCDIR)/manual

if TIFF_DOCS
if SPHINX
doc-html:
	$(SPHINX_BUILD) \
	-D "release=$(LIBTIFF_VERSION)" \
	-D "version=$(LIBTIFF_MAJOR_VERSION).$(LIBTIFF_MINOR_VERSION)" \
	-d "$(builddir)/cache" \
	-b html \
	"$(srcdir)" "$(builddir)/html"

doc-man:
	$(SPHINX_BUILD) \
	-D "release=$(LIBTIFF_VERSION)" \
	-D "version=$(LIBTIFF_MAJOR_VERSION).$(LIBTIFF_MINOR_VERSION)" \
	-d "$(builddir)/cache" \
	-b man \
	"$(srcdir)" "$(builddir)/man"

man1_MANS = $(TIFF_MAN1_GEN)
man3_MANS = $(TIFF_MAN3_GEN)

@TIFF_MAN_RULES@

all-local: doc-html doc-man

clean-local:
	rm -r html
	rm -r man
	rm -r cache

html_installdir = html
else
# Sphinx not available
doc-html:
	echo "HTML documentation generation not configured (sphinx not available)"
	exit 1

doc-man:
	echo "Manual page documentation generation not configured (sphinx not available)"
	exit 1

man1_MANS = $(TIFF_MAN1_PREBUILT)
man3_MANS = $(TIFF_MAN3_PREBUILT)

html_installdir = $(srcdir)/html-prebuilt
endif


install-data-local: all-local
	find $(html_installdir) -type d | sed -e 's;^$(html_installdir);;' | while read dir; do \
	  echo " $(MKDIR_P) '$(DESTDIR)$(docdir)$$dir'"; \
	  $(MKDIR_P) "$(DESTDIR)$(docdir)$$dir" || exit 1; \
	done
	find $(html_installdir) -type f | sed -e 's;^$(html_installdir);;' | while read docfile; do \
	  docsubdir=$$(dirname $$docfile); \
	  echo "$(INSTALL_DATA) '$(html_installdir)$$docfile' '$(DESTDIR)$(docdir)$$docsubdir'"; \
	  $(INSTALL_DATA) "$(html_installdir)$$docfile" "$(DESTDIR)$(docdir)$$docsubdir"; \
	done

uninstall-local:
	echo "rm -r $(DESTDIR)$(docdir)"
	rm -r $(DESTDIR)$(docdir)
else
# Documentation generation disabled
doc-html:
	echo "HTML documentation generation not configured"
	exit 1

doc-man:
	echo "Manual page documentation generation not configured"
	exit 1
endif

rst_sources = \
	index.rst \
	build.rst \
	internals.rst \
	tools/tiffgt.rst \
	tools/tiffdither.rst \
	tools/tiff2pdf.rst \
	tools/tiff2ps.rst \
	tools/ppm2tiff.rst \
	tools/raw2tiff.rst \
	tools/fax2tiff.rst \
	tools/tiffcrop.rst \
	tools/tiff2bw.rst \
	tools/fax2ps.rst \
	tools/thumbnail.rst \
	tools/tiffcmp.rst \
	tools/tiffdump.rst \
	tools/tiff2rgba.rst \
	tools/tiffinfo.rst \
	tools/rgb2ycbcr.rst \
	tools/tiffset.rst \
	tools/tiffsplit.rst \
	tools/tiffmedian.rst \
	tools/pal2rgb.rst \
	tools/tiffcp.rst \
	project/license.rst \
	project/index.rst \
	project/acknowledgements.rst \
	project/bugs.rst \
	project/mailinglist.rst \
	addingtags.rst \
	specification/index.rst \
	specification/bigtiff.rst \
	specification/coverage.rst \
	specification/technote2.rst \
	specification/coverage-bigtiff.rst \
	releases/v3.4beta028.rst \
	releases/v4.0.9.rst \
	releases/v3.9.0.rst \
	releases/v4.0.7.rst \
	releases/v3.5.7.rst \
	releases/v4.0.0.rst \
	releases/v3.7.0beta2.rst \
	releases/v3.7.1.rst \
	releases/index.rst \
	releases/v3.8.0.rst \
	releases/v4.1.0.rst \
	releases/historical.rst \
	releases/v3.5.6beta.rst \
	releases/v3.6.1.rst \
	releases/v4.2.0.rst \
	releases/v3.7.0.rst \
	releases/v4.0.1.rst \
	releases/v3.5.1.rst \
	releases/v4.0.10.rst \
	releases/v4.0.6.rst \
	releases/v4.0.8.rst \
	releases/v3.9.1.rst \
	releases/v3.4beta029.rst \
	releases/v4.3.0.rst \
	releases/v3.4beta031.rst \
	releases/v3.7.0alpha.rst \
	releases/v3.6.0.rst \
	releases/v3.4beta036.rst \
	releases/v4.0.4beta.rst \
	releases/v3.8.1.rst \
	releases/v4.4.0.rst \
	releases/v3.4beta035.rst \
	releases/v3.4beta032.rst \
	releases/v3.4beta007.rst \
	releases/v3.9.0beta.rst \
	releases/v3.8.2.rst \
	releases/v3.4beta018.rst \
	releases/v3.7.3.rst \
	releases/v3.4beta016.rst \
	releases/v3.7.4.rst \
	releases/v3.5.2.rst \
	releases/v4.0.5.rst \
	releases/v3.4beta024.rst \
	releases/v3.5.5.rst \
	releases/v4.0.2.rst \
	releases/v3.9.5.rst \
	releases/v3.9.2.rst \
	releases/v3.4beta033.rst \
	releases/v3.4beta034.rst \
	releases/v3.9.3.rst \
	releases/v3.9.4.rst \
	releases/v3.7.0beta.rst \
	releases/v3.5.4.rst \
	releases/v4.0.3.rst \
	releases/v3.5.3.rst \
	releases/v4.0.4.rst \
	releases/v3.7.2.rst \
	releases/v4.5.0.rst \
	functions.rst \
	tools.rst \
	terms.rst \
	contrib.rst \
	functions/TIFFRGBAImage.rst \
	functions/TIFFGetField.rst \
	functions/TIFFSetDirectory.rst \
	functions/TIFFWriteRawStrip.rst \
	functions/TIFFcolor.rst \
	functions/TIFFstrip.rst \
	functions/TIFFReadDirectory.rst \
	functions/TIFFReadRawTile.rst \
	functions/libtiff.rst \
	functions/TIFFPrintDirectory.rst \
	functions/TIFFsize.rst \
	functions/TIFFReadRGBATile.rst \
	functions/TIFFswab.rst \
	functions/TIFFmemory.rst \
	functions/TIFFtile.rst \
	functions/TIFFReadEncodedTile.rst \
	functions/TIFFWriteDirectory.rst \
	functions/TIFFSetField.rst \
	functions/TIFFWriteScanline.rst \
	functions/TIFFClose.rst \
	functions/TIFFFieldName.rst \
	functions/TIFFFieldReadCount.rst \
	functions/TIFFError.rst \
	functions/TIFFOpen.rst \
	functions/TIFFOpenOptions.rst \
	functions/TIFFcodec.rst \
	functions/TIFFFlush.rst \
	functions/TIFFDataWidth.rst \
	functions/TIFFReadRawStrip.rst \
	functions/TIFFReadTile.rst \
	functions/TIFFFieldWriteCount.rst \
	functions/TIFFbuffer.rst \
	functions/TIFFWriteRawTile.rst \
	functions/TIFFWarning.rst \
	functions/TIFFFieldDataType.rst \
	functions/TIFFWriteEncodedStrip.rst \
	functions/TIFFFieldPassCount.rst \
	functions/TIFFReadRGBAImage.rst \
	functions/TIFFReadScanline.rst \
	functions/TIFFReadEncodedStrip.rst \
	functions/TIFFFieldTag.rst \
	functions/TIFFWriteTile.rst \
	functions/TIFFReadRGBAStrip.rst \
	functions/TIFFquery.rst \
	functions/TIFFWriteEncodedTile.rst \
	functions/_TIFFauxiliary.rst \
	functions/_TIFFRewriteField.rst \
	functions/TIFFAccessTagMethods.rst \
	functions/TIFFClientInfo.rst \
	functions/TIFFCreateDirectory.rst \
	functions/TIFFCustomDirectory.rst \
	functions/TIFFCustomTagList.rst \
	functions/TIFFDeferStrileArrayWriting.rst \
	functions/TIFFFieldQuery.rst \
	functions/TIFFMergeFieldInfo.rst \
	functions/TIFFProcFunctions.rst \
	functions/TIFFReadFromUserBuffer.rst \
	functions/TIFFSetTagExtender.rst \
	functions/TIFFStrileQuery.rst \
	libtiff.rst \
	images.rst

EXTRA_DIST = \
	CMakeLists.txt \
	conf.py \
	specification/bigtiffpr_images \
	images \
	$(rst_sources)

dist-hook: doc-html doc-man
	cp -r html $(distdir)/html-prebuilt
	cp -r man $(distdir)/man-prebuilt

.PHONY: doc-html doc-man