#	$Header: /usr/people/sam/tiff/man/RCS/Makefile.in,v 1.10 1995/10/16 22:50:32 sam Exp $
#
# @WARNING@
#
# Tag Image File Format Library Manual Pages
#
# Copyright (c) 1991-1995 Sam Leffler
# Copyright (c) 1991-1995 Silicon Graphics, Inc.
# 
# 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 Stanford 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.
#
DEPTH	= ..
SRCDIR	= ${DEPTH}/@SRCDIR@/man

#
# VERSION:	@VERSION@
# DATE:		@DATE@
# TARGET:	@TARGET@
# CCOMPILER:	@CCOMPILER@
#
SHELL	= /bin/sh
NULL	=
ECHO	= echo
MV	= mv
RM	= rm -f
INSTALL	= @INSTALL@

MAN	= @DIR_MAN@
#
# Set this up if your manual system requires a
# pathname prefix in the .so commands when setting
# up alternate files for multi-function manual pages.
#
#MANDIR	= man3/

MANTOOLS=\
	${SRCDIR}/fax2tiff.1 \
	${SRCDIR}/fax2ps.1 \
	${SRCDIR}/gif2tiff.1 \
	${SRCDIR}/pal2rgb.1 \
	${SRCDIR}/ppm2tiff.1 \
	${SRCDIR}/ras2tiff.1 \
	${SRCDIR}/rgb2ycbcr.1 \
	${SRCDIR}/sgi2tiff.1 \
	${SRCDIR}/thumbnail.1 \
	${SRCDIR}/tiff2bw.1 \
	${SRCDIR}/tiff2ps.1 \
	${SRCDIR}/tiffcmp.1 \
	${SRCDIR}/tiffcp.1 \
	${SRCDIR}/tiffdither.1 \
	${SRCDIR}/tiffdump.1 \
	${SRCDIR}/tiffgt.1 \
	${SRCDIR}/tiffinfo.1 \
	${SRCDIR}/tiffmedian.1 \
	${SRCDIR}/tiffsplit.1 \
	${SRCDIR}/tiffsv.1 \
	${NULL}
MANDEVLINKS=\
	TIFFmalloc.3t \
	TIFFrealloc.3t \
	TIFFfree.3t \
	TIFFmemset.3t \
	TIFFmemcpy.3t \
	TIFFmemcmp.3t \
	TIFFComputeTile.3t \
	TIFFCheckTile.3t \
	TIFFNumberOfTiles.3t \
	TIFFComputeStrip.3t \
	TIFFNumberOfStrips.3t \
	TIFFCurrentDirectory.3t \
	TIFFCurrentRow.3t \
	TIFFCurrentStrip.3t \
	TIFFCurrentTile.3t \
	TIFFFdOpen.3t \
	TIFFFileName.3t \
	TIFFFileno.3t \
	TIFFFindCODEC.3t \
	TIFFFlushData.3t \
	TIFFGetMode.3t \
	TIFFIsTiled.3t \
	TIFFIsByteSwapped.3t \
	TIFFIsUpSampled.3t \
	TIFFIsMSB2LSB.3t \
	TIFFLastDirectory.3t \
	TIFFRegisterCODEC.3t \
	TIFFReverseBits.3t \
	TIFFRGBAImageOK.3t \
	TIFFRGBAImageBegin.3t \
	TIFFRGBAImageGet.3t \
	TIFFRGBAImageEnd.3t \
	TIFFSetErrorHandler.3t \
	TIFFSetSubDirectory.3t \
	TIFFSetWarningHandler.3t \
	TIFFSwabArrayOfLong.3t \
	TIFFSwabArrayOfShort.3t \
	TIFFSwabLong.3t \
	TIFFSwabShort.3t \
	TIFFScanlineSize.3t \
	TIFFDefaultStripSize.3t \
	TIFFVStripSize.3t \
	TIFFStripSize.3t \
	TIFFDefaultTileSize.3t \
	TIFFVTileSize.3t \
	TIFFTileSize.3t \
	TIFFTileRowSize.3t \
	TIFFUnRegisterCODEC.3t \
	TIFFVGetField.3t \
	TIFFVSetField.3t \
	TIFFReadBufferSetup.3t \
	TIFFWriteBufferSetup.3t \
	${NULL}
MANDEV=\
	${SRCDIR}/libtiff.3t \
	\
	${SRCDIR}/TIFFClose.3t \
	${SRCDIR}/TIFFError.3t \
	${SRCDIR}/TIFFFlush.3t \
	${SRCDIR}/TIFFGetField.3t \
	${SRCDIR}/TIFFOpen.3t \
	${SRCDIR}/TIFFPrintDirectory.3t \
	${SRCDIR}/TIFFReadDirectory.3t \
	${SRCDIR}/TIFFReadEncodedStrip.3t \
	${SRCDIR}/TIFFReadEncodedTile.3t \
	${SRCDIR}/TIFFReadRGBAImage.3t \
	${SRCDIR}/TIFFReadRawStrip.3t \
	${SRCDIR}/TIFFReadRawTile.3t \
	${SRCDIR}/TIFFReadScanline.3t \
	${SRCDIR}/TIFFReadTile.3t \
	${SRCDIR}/TIFFRGBAImage.3t \
	${SRCDIR}/TIFFSetDirectory.3t \
	${SRCDIR}/TIFFSetField.3t \
	${SRCDIR}/TIFFWarning.3t \
	${SRCDIR}/TIFFWriteDirectory.3t \
	${SRCDIR}/TIFFWriteEncodedStrip.3t \
	${SRCDIR}/TIFFWriteEncodedTile.3t \
	${SRCDIR}/TIFFWriteRawStrip.3t \
	${SRCDIR}/TIFFWriteRawTile.3t \
	${SRCDIR}/TIFFWriteScanline.3t \
	\
	${SRCDIR}/TIFFbuffer.3t \
	${SRCDIR}/TIFFcodec.3t \
	${SRCDIR}/TIFFmemory.3t \
	${SRCDIR}/TIFFquery.3t \
	${SRCDIR}/TIFFsize.3t \
	${SRCDIR}/TIFFstrip.3t \
	${SRCDIR}/TIFFswab.3t \
	${SRCDIR}/TIFFtile.3t \
	${NULL}
TARGETS	= ${MANTOOLS} ${MANDEV} ${MANDEVLINKS}

all:	${TARGETS}

install: all
	${INSTALL} -m 755 -dir -idb tiff.man.tools ${MAN}
	${INSTALL} -m 755 -dir -idb tiff.man.tools ${MAN}/man1
	for i in ${MANTOOLS}; do \
	    f=`basename $$i`; \
	    ${INSTALL} -idb tiff.man.tools -m 444 -F ${MAN}/man1 \
		-src $$i -O $$f; \
	done
	${INSTALL} -m 755 -dir -idb tiff.man.dev ${MAN}/man3
	for i in ${MANDEV}; do \
	    f=`basename $$i`; \
	    ${INSTALL} -idb tiff.man.dev -m 444 -F ${MAN}/man3 \
		-src $$i -O $$f; \
	done
	${INSTALL} -idb tiff.man.dev -m 444 -F ${MAN}/man3 -O ${MANDEVLINKS}

clean:
	${RM} ${MANDEVLINKS}

TIFFComputeTile.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
TIFFCheckTile.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
TIFFNumberOfTiles.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
TIFFComputeStrip.3t:;		${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
TIFFNumberOfStrips.3t:;		${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
TIFFCurrentDirectory.3t:;	${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFCurrentRow.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFCurrentStrip.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFCurrentTile.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFFdOpen.3t:;			${ECHO} ".so ${MANDIR}TIFFOpen.3t" > $@
TIFFFileName.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFFileno.3t:;			${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFFlushData.3t:;		${ECHO} ".so ${MANDIR}TIFFFlush.3t" > $@
TIFFGetMode.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFIsTiled.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFIsByteSwapped.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFIsUpSampled.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFIsMSB2LSB.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFLastDirectory.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
TIFFReverseBits.3t:;		${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
TIFFRGBAImageOK.3t:;		${ECHO} ".so ${MANDIR}TIFFRGBAImage.3t" > $@
TIFFRGBAImageBegin.3t:;		${ECHO} ".so ${MANDIR}TIFFRGBAImage.3t" > $@
TIFFRGBAImageGet.3t:;		${ECHO} ".so ${MANDIR}TIFFRGBAImage.3t" > $@
TIFFRGBAImageEnd.3t:;		${ECHO} ".so ${MANDIR}TIFFRGBAImage.3t" > $@
TIFFSetErrorHandler.3t:;	${ECHO} ".so ${MANDIR}TIFFError.3t" > $@
TIFFSetSubDirectory.3t:;	${ECHO} ".so ${MANDIR}TIFFSetDirectory.3t" > $@
TIFFSetWarningHandler.3t:;	${ECHO} ".so ${MANDIR}TIFFWarning.3t" > $@
TIFFSwabArrayOfLong.3t:;	${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
TIFFSwabArrayOfShort.3t:;	${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
TIFFSwabLong.3t:;		${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
TIFFSwabShort.3t:;		${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
TIFFScanlineSize.3t:;		${ECHO} ".so ${MANDIR}TIFFsize.3t" > $@
TIFFRasterScanlineSize.3t:;	${ECHO} ".so ${MANDIR}TIFFsize.3t" > $@
TIFFDefaultStripSize.3t:;	${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
TIFFStripSize.3t:;		${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
TIFFVStripSize.3t:;		${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
TIFFTileSize.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
TIFFVTileSize.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
TIFFDefaultTileSize.3t:;	${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
TIFFTileRowSize.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
TIFFVGetField.3t:;		${ECHO} ".so ${MANDIR}TIFFGetField.3t" > $@
TIFFVSetField.3t:;		${ECHO} ".so ${MANDIR}TIFFSetField.3t" > $@
TIFFFindCODEC.3t:;		${ECHO} ".so ${MANDIR}TIFFcodec.3t" > $@
TIFFRegisterCODEC.3t:;		${ECHO} ".so ${MANDIR}TIFFcodec.3t" > $@
TIFFUnRegisterCODEC.3t:;	${ECHO} ".so ${MANDIR}TIFFcodec.3t" > $@
TIFFmalloc.3t:;			${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
TIFFrealloc.3t:;		${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
TIFFfree.3t:;			${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
TIFFmemset.3t:;			${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
TIFFmemcpy.3t:;			${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
TIFFmemcmp.3t:;			${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
TIFFReadBufferSetup.3t:;	${ECHO} ".so ${MANDIR}TIFFbuffer.3t" > $@
TIFFWriteBufferSetup.3t:;	${ECHO} ".so ${MANDIR}TIFFbuffer.3t" > $@

links:	${MANDEVLINKS}

short:
	${MV} TIFFClose.3t close.3t
	${MV} TIFFError.3t error.3t
	${MV} TIFFFlush.3t flush.3t
	${MV} TIFFGetField.3t getfield.3t
	${MV} TIFFOpen.3t open.3t
	${MV} TIFFPrintDirectory.3t print.3t
	${MV} TIFFReadEncodedStrip.3t rdestrip.3t
	${MV} TIFFReadencodedTile.3t rdetile.3t
	${MV} TIFFReadRawStrip.3t rdrstrip.3t
	${MV} TIFFReadRawTile.3t rdrtile.3t
	${MV} TIFFReadDirectory.3t readdir.3t
	${MV} TIFFReadRGBAImage.3t rdimage.3t
	${MV} TIFFReadScanline.3t readline.3t
	${MV} TIFFReadTile.3t readtile.3t
	${MV} TIFFRGBAImage.3t rgbaimage.3t
	${MV} TIFFSetDirectory.3t setdir.3t
	${MV} TIFFSetField.3t setfield.3t
	${MV} TIFFWarning.3t warning.3t
	${MV} TIFFWriteEncodedStrip.3t wrestrip.3t
	${MV} TIFFWriteEncodedTile.3t wretile.3t
	${MV} TIFFWriteDirectory.3t writedir.3t
	${MV} TIFFWriteRawStrip.3t wrrstrip.3t
	${MV} TIFFWriteRawTile.3t wrrtile.3t
	${MV} TIFFWriteScanline.3t writeline.3t
	${MV} TIFFtile.3t tile.3t
	${MV} TIFFstrip.3t strip.3t
	${MV} TIFFquery.3t query.3t
	${MV} TIFFswab.3t swab.3t
	${MV} TIFFsize.3t size.3t
	${MV} TIFFcodec.3t codec.3t
	${MV} TIFFmemory.3t memory.3t
	${MV} TIFFbuffer.3t buffer.3t
