$OpenBSD: patch-man_Makefile_in,v 1.4 2004/02/25 00:08:10 brad Exp $
--- man/Makefile.in.orig	2003-12-22 03:22:15.000000000 -0500
+++ man/Makefile.in	2004-02-24 18:26:44.000000000 -0500
@@ -42,6 +42,7 @@ ECHO	= echo
 SED	= sed
 MV	= mv
 RM	= rm -f
+LN	= ln -sf
 INSTALL	= @INSTALL@
 
 #
@@ -83,7 +84,7 @@ MANLIBNAME	= @MANLIBNAME@
 # pathname prefix in the .so commands when setting
 # up alternate files for multi-function manual pages.
 #
-#MANDIR	= man3/
+MANDIR	=
 
 MANTOOLS=\
 	apps/fax2tiff.1 \
@@ -290,70 +291,65 @@ lib/TIFFstrip.3t::	${SRCDIR}/TIFFstrip.3
 lib/TIFFswab.3t::	${SRCDIR}/TIFFswab.3t;			${MANCVT}
 lib/TIFFtile.3t::	${SRCDIR}/TIFFtile.3t;			${MANCVT}
 
-lib/TIFFComputeTile.3t:;	${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
-lib/TIFFCheckTile.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
-lib/TIFFNumberOfTiles.3t:;	${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
-lib/TIFFComputeStrip.3t:;	${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
-lib/TIFFNumberOfStrips.3t:;	${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
-lib/TIFFCurrentDirectory.3t:;	${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFCurrentRow.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFCurrentStrip.3t:;	${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFCurrentTile.3t:;	${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFFdOpen.3t:;		${ECHO} ".so ${MANDIR}TIFFOpen.3t" > $@
-lib/TIFFClientOpen.3t:;		${ECHO} ".so ${MANDIR}TIFFOpen.3t" > $@
-lib/TIFFFileName.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFFileno.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFFlushData.3t:;		${ECHO} ".so ${MANDIR}TIFFFlush.3t" > $@
-lib/TIFFGetMode.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFIsTiled.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFIsByteSwapped.3t:;	${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFIsUpSampled.3t:;	${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFIsMSB2LSB.3t:;		${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFLastDirectory.3t:;	${ECHO} ".so ${MANDIR}TIFFquery.3t" > $@
-lib/TIFFReverseBits.3t:;	${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
-lib/TIFFRewriteDirectory.3t:;	${ECHO} ".so ${MANDIR}TIFFWriteDirectory.3t" > $@
-lib/TIFFCheckpointDirectory.3t:; ${ECHO} ".so ${MANDIR}TIFFWriteDirectory.3t" > $@
-lib/TIFFRGBAImageOK.3t:;	${ECHO} ".so ${MANDIR}TIFFRGBAImage.3t" > $@
-lib/TIFFRGBAImageBegin.3t:;	${ECHO} ".so ${MANDIR}TIFFRGBAImage.3t" > $@
-lib/TIFFRGBAImageGet.3t:;	${ECHO} ".so ${MANDIR}TIFFRGBAImage.3t" > $@
-lib/TIFFRGBAImageEnd.3t:;	${ECHO} ".so ${MANDIR}TIFFRGBAImage.3t" > $@
-lib/TIFFReadRGBAImageOriented.3t:;	${ECHO} ".so ${MANDIR}TIFFReadRGBAImage.3t" > $@
-lib/TIFFSetErrorHandler.3t:;	${ECHO} ".so ${MANDIR}TIFFError.3t" > $@
-lib/TIFFSetSubDirectory.3t:;	${ECHO} ".so ${MANDIR}TIFFSetDirectory.3t" > $@
-lib/TIFFSetWarningHandler.3t:;	${ECHO} ".so ${MANDIR}TIFFWarning.3t" > $@
-lib/TIFFSwabArrayOfLong.3t:;	${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
-lib/TIFFSwabArrayOfShort.3t:;	${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
-lib/TIFFSwabLong.3t:;		${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
-lib/TIFFSwabShort.3t:;		${ECHO} ".so ${MANDIR}TIFFswab.3t" > $@
-lib/TIFFScanlineSize.3t:;	${ECHO} ".so ${MANDIR}TIFFsize.3t" > $@
-lib/TIFFRasterScanlineSize.3t:;	${ECHO} ".so ${MANDIR}TIFFsize.3t" > $@
-lib/TIFFDefaultStripSize.3t:;	${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
-lib/TIFFStripSize.3t:;		${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
-lib/TIFFVStripSize.3t:;		${ECHO} ".so ${MANDIR}TIFFstrip.3t" > $@
-lib/TIFFTileSize.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
-lib/TIFFVTileSize.3t:;		${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
-lib/TIFFDefaultTileSize.3t:;	${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
-lib/TIFFTileRowSize.3t:;	${ECHO} ".so ${MANDIR}TIFFtile.3t" > $@
-lib/TIFFVGetField.3t:;		${ECHO} ".so ${MANDIR}TIFFGetField.3t" > $@
-lib/TIFFGetFieldDefaulted.3t:;	${ECHO} ".so ${MANDIR}TIFFGetField.3t" > $@
-lib/TIFFVGetFieldDefaulted.3t:;	${ECHO} ".so ${MANDIR}TIFFGetField.3t" > $@
-lib/TIFFVSetField.3t:;		${ECHO} ".so ${MANDIR}TIFFSetField.3t" > $@
-lib/TIFFFindCODEC.3t:;		${ECHO} ".so ${MANDIR}TIFFcodec.3t" > $@
-lib/TIFFRegisterCODEC.3t:;	${ECHO} ".so ${MANDIR}TIFFcodec.3t" > $@
-lib/TIFFUnRegisterCODEC.3t:;	${ECHO} ".so ${MANDIR}TIFFcodec.3t" > $@
-lib/TIFFYCbCrToRGBInit.3t:;	${ECHO} ".so ${MANDIR}TIFFcolor.3t" > $@
-lib/TIFFYCbCrtoRGB.3t:;		${ECHO} ".so ${MANDIR}TIFFcolor.3t" > $@
-lib/TIFFCIELabToRGBInit.3t:;	${ECHO} ".so ${MANDIR}TIFFcolor.3t" > $@
-lib/TIFFCIELabToXYZ.3t:;	${ECHO} ".so ${MANDIR}TIFFcolor.3t" > $@
-lib/TIFFXYZToRGB.3t:;		${ECHO} ".so ${MANDIR}TIFFcolor.3t" > $@
-lib/TIFFmalloc.3t:;		${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
-lib/TIFFrealloc.3t:;		${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
-lib/TIFFfree.3t:;		${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
-lib/TIFFmemset.3t:;		${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
-lib/TIFFmemcpy.3t:;		${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
-lib/TIFFmemcmp.3t:;		${ECHO} ".so ${MANDIR}TIFFmemory.3t" > $@
-lib/TIFFReadBufferSetup.3t:;	${ECHO} ".so ${MANDIR}TIFFbuffer.3t" > $@
-lib/TIFFWriteBufferSetup.3t:;	${ECHO} ".so ${MANDIR}TIFFbuffer.3t" > $@
+lib/TIFFComputeTile.3t:;       ${LN} ${MANDIR}TIFFtile.3t $@
+lib/TIFFCheckTile.3t:;         ${LN} ${MANDIR}TIFFtile.3t $@
+lib/TIFFNumberOfTiles.3t:;     ${LN} ${MANDIR}TIFFtile.3t $@
+lib/TIFFComputeStrip.3t:;      ${LN} ${MANDIR}TIFFstrip.3t $@
+lib/TIFFNumberOfStrips.3t:;    ${LN} ${MANDIR}TIFFstrip.3t $@
+lib/TIFFCurrentDirectory.3t:;  ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFCurrentRow.3t:;                ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFCurrentStrip.3t:;      ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFCurrentTile.3t:;       ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFFdOpen.3t:;            ${LN} ${MANDIR}TIFFOpen.3t $@
+lib/TIFFClientOpen.3t:;                ${LN} ${MANDIR}TIFFOpen.3t $@
+lib/TIFFFileName.3t:;          ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFFileno.3t:;            ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFFlushData.3t:;         ${LN} ${MANDIR}TIFFFlush.3t $@
+lib/TIFFGetMode.3t:;           ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFIsTiled.3t:;           ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFIsByteSwapped.3t:;     ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFIsUpSampled.3t:;       ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFIsMSB2LSB.3t:;         ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFLastDirectory.3t:;     ${LN} ${MANDIR}TIFFquery.3t $@
+lib/TIFFReverseBits.3t:;       ${LN} ${MANDIR}TIFFswab.3t $@
+lib/TIFFRewriteDirectory.3t:;  ${LN} ${MANDIR}TIFFWriteDirectory.3t $@
+lib/TIFFCheckpointDirectory.3t:; ${LN} ${MANDIR}TIFFWriteDirectory.3t $@
+lib/TIFFRGBAImageOK.3t:;       ${LN} ${MANDIR}TIFFRGBAImage.3t $@
+lib/TIFFRGBAImageBegin.3t:;    ${LN} ${MANDIR}TIFFRGBAImage.3t $@
+lib/TIFFRGBAImageGet.3t:;      ${LN} ${MANDIR}TIFFRGBAImage.3t $@
+lib/TIFFRGBAImageEnd.3t:;      ${LN} ${MANDIR}TIFFRGBAImage.3t $@
+lib/TIFFReadRGBAImageOriented.3t:;     ${LN} ${MANDIR}TIFFReadRGBAImage.3t $@
+lib/TIFFSetErrorHandler.3t:;   ${LN} ${MANDIR}TIFFError.3t $@
+lib/TIFFSetSubDirectory.3t:;   ${LN} ${MANDIR}TIFFSetDirectory.3t $@
+lib/TIFFSetWarningHandler.3t:; ${LN} ${MANDIR}TIFFWarning.3t $@
+lib/TIFFSwabArrayOfLong.3t:;   ${LN} ${MANDIR}TIFFswab.3t $@
+lib/TIFFSwabArrayOfShort.3t:;  ${LN} ${MANDIR}TIFFswab.3t $@
+lib/TIFFSwabLong.3t:;          ${LN} ${MANDIR}TIFFswab.3t $@
+lib/TIFFSwabShort.3t:;         ${LN} ${MANDIR}TIFFswab.3t $@
+lib/TIFFScanlineSize.3t:;      ${LN} ${MANDIR}TIFFsize.3t $@
+lib/TIFFRasterScanlineSize.3t:;        ${LN} ${MANDIR}TIFFsize.3t $@
+lib/TIFFDefaultStripSize.3t:;  ${LN} ${MANDIR}TIFFstrip.3t $@
+lib/TIFFStripSize.3t:;         ${LN} ${MANDIR}TIFFstrip.3t $@
+lib/TIFFVStripSize.3t:;                ${LN} ${MANDIR}TIFFstrip.3t $@
+lib/TIFFTileSize.3t:;          ${LN} ${MANDIR}TIFFtile.3t $@
+lib/TIFFVTileSize.3t:;         ${LN} ${MANDIR}TIFFtile.3t $@
+lib/TIFFDefaultTileSize.3t:;   ${LN} ${MANDIR}TIFFtile.3t $@
+lib/TIFFTileRowSize.3t:;       ${LN} ${MANDIR}TIFFtile.3t $@
+lib/TIFFVGetField.3t:;         ${LN} ${MANDIR}TIFFGetField.3t $@
+lib/TIFFGetFieldDefaulted.3t:; ${LN} ${MANDIR}TIFFGetField.3t $@
+lib/TIFFVGetFieldDefaulted.3t:;        ${LN} ${MANDIR}TIFFGetField.3t $@
+lib/TIFFVSetField.3t:;         ${LN} ${MANDIR}TIFFSetField.3t $@
+lib/TIFFFindCODEC.3t:;         ${LN} ${MANDIR}TIFFcodec.3t $@
+lib/TIFFRegisterCODEC.3t:;     ${LN} ${MANDIR}TIFFcodec.3t $@
+lib/TIFFUnRegisterCODEC.3t:;   ${LN} ${MANDIR}TIFFcodec.3t $@
+lib/TIFFmalloc.3t:;            ${LN} ${MANDIR}TIFFmemory.3t $@
+lib/TIFFrealloc.3t:;           ${LN} ${MANDIR}TIFFmemory.3t $@
+lib/TIFFfree.3t:;              ${LN} ${MANDIR}TIFFmemory.3t $@
+lib/TIFFmemset.3t:;            ${LN} ${MANDIR}TIFFmemory.3t $@
+lib/TIFFmemcpy.3t:;            ${LN} ${MANDIR}TIFFmemory.3t $@
+lib/TIFFmemcmp.3t:;            ${LN} ${MANDIR}TIFFmemory.3t $@
+lib/TIFFReadBufferSetup.3t:;   ${LN} ${MANDIR}TIFFbuffer.3t $@
+lib/TIFFWriteBufferSetup.3t:;  ${LN} ${MANDIR}TIFFbuffer.3t $@
 
 apps/Makefile:
 	test -d apps || mkdir apps
