xref: /libtiff-4.0.7/html/man/Makefile.am (revision 30366c9f)
1# Tag Image File Format (TIFF) Software
2#
3# Copyright (C) 2004, Andrey Kiselev <[email protected]>
4#
5# Permission to use, copy, modify, distribute, and sell this software and
6# its documentation for any purpose is hereby granted without fee, provided
7# that (i) the above copyright notices and this permission notice appear in
8# all copies of the software and related documentation, and (ii) the names of
9# Sam Leffler and Silicon Graphics may not be used in any advertising or
10# publicity relating to the software without the specific, prior written
11# permission of Sam Leffler and Silicon Graphics.
12#
13# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16#
17# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22# OF THIS SOFTWARE.
23
24# Process this file with automake to produce Makefile.in.
25
26docdir = $(LIBTIFF_DOCDIR)/html/man
27MANSRCDIR = $(top_srcdir)/man
28HTMLMANDIR = $(top_srcdir)/html/man
29
30GROFF = groff -Thtml -mandoc
31ECHO = echo
32
33indexfile = index.html
34docfiles = \
35	libtiff.3tiff.html \
36	TIFFbuffer.3tiff.html \
37	TIFFClose.3tiff.html \
38	TIFFcodec.3tiff.html \
39	TIFFcolor.3tiff.html \
40	TIFFDataWidth.3tiff.html \
41	TIFFError.3tiff.html \
42	TIFFFieldDataType.3tiff.html \
43	TIFFFieldName.3tiff.html \
44	TIFFFieldPassCount.3tiff.html \
45	TIFFFieldReadCount.3tiff.html \
46	TIFFFieldTag.3tiff.html \
47	TIFFFieldWriteCount.3tiff.html \
48	TIFFFlush.3tiff.html \
49	TIFFGetField.3tiff.html \
50	TIFFmemory.3tiff.html \
51	TIFFOpen.3tiff.html \
52	TIFFPrintDirectory.3tiff.html \
53	TIFFquery.3tiff.html \
54	TIFFReadDirectory.3tiff.html \
55	TIFFReadEncodedStrip.3tiff.html \
56	TIFFReadEncodedTile.3tiff.html \
57	TIFFReadRawStrip.3tiff.html \
58	TIFFReadRawTile.3tiff.html \
59	TIFFReadRGBAImage.3tiff.html \
60	TIFFReadRGBAStrip.3tiff.html \
61	TIFFReadRGBATile.3tiff.html \
62	TIFFReadScanline.3tiff.html \
63	TIFFReadTile.3tiff.html \
64	TIFFRGBAImage.3tiff.html \
65	TIFFSetDirectory.3tiff.html \
66	TIFFSetField.3tiff.html \
67	TIFFsize.3tiff.html \
68	TIFFstrip.3tiff.html \
69	TIFFswab.3tiff.html \
70	TIFFtile.3tiff.html \
71	TIFFWarning.3tiff.html \
72	TIFFWriteDirectory.3tiff.html \
73	TIFFWriteEncodedStrip.3tiff.html \
74	TIFFWriteEncodedTile.3tiff.html \
75	TIFFWriteRawStrip.3tiff.html \
76	TIFFWriteRawTile.3tiff.html \
77	TIFFWriteScanline.3tiff.html \
78	TIFFWriteTile.3tiff.html \
79	fax2ps.1.html \
80	fax2tiff.1.html \
81	pal2rgb.1.html \
82	ppm2tiff.1.html \
83	raw2tiff.1.html \
84	rgb2ycbcr.1.html \
85	thumbnail.1.html \
86	tiff2bw.1.html \
87	tiff2pdf.1.html \
88	tiff2ps.1.html \
89	tiff2rgba.1.html \
90	tiffcmp.1.html \
91	tiffcp.1.html \
92	tiffcrop.1.html \
93	tiffdither.1.html \
94	tiffdump.1.html \
95	tiffgt.1.html \
96	tiffinfo.1.html \
97	tiffmedian.1.html \
98	tiffset.1.html \
99	tiffsplit.1.html
100
101dist_doc_DATA = $(indexfile) $(docfiles)
102
103INDEXSTART = '<HTML><HEAD><TITLE>Libtiff HTML manpage index</TITLE></HEAD><BODY BGCOLOR=white><ul><H2>Man Pages</h2><p>'
104INDEXEND = '</ul></BODY></HTML>'
105
106.PHONY: index
107index:
108	${ECHO} ${INDEXSTART} > $(indexfile)
109	for i in $(docfiles); do					\
110		${ECHO} '<li><A HREF='$$i'>'$$i'</a>' >> $(indexfile);  \
111	done
112	${ECHO} ${INDEXEND} >> $(indexfile)
113
114manpages = $(docfiles:.html=)
115
116.PHONY: htmldoc
117htmldoc:
118	for i in $(manpages); do					\
119		${GROFF} $(MANSRCDIR)/$$i > $(HTMLMANDIR)/$$i.html;	\
120	done
121
122EXTRA_DIST = \
123	CMakeLists.txt \
124	HtmlDoc.cmake
125