/*
Copyright (c) 1991, 1992, 1993 Xerox Corporation.  All Rights Reserved.  

Unlimited use, reproduction, and distribution of this software is
permitted.  Any copy of this software must include both the above
copyright notice of Xerox Corporation and this paragraph.  Any
distribution of this software must comply with all applicable United
States export control laws.  This software is made available AS IS,
and XEROX CORPORATION DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE, AND NOTWITHSTANDING ANY OTHER
PROVISION CONTAINED HEREIN, ANY LIABILITY FOR DAMAGES RESULTING FROM
THE SOFTWARE OR ITS USE IS EXPRESSLY DISCLAIMED, WHETHER ARISING IN
CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, EVEN IF
XEROX CORPORATION IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

$Id: Imakefile,v 1.9 1996/03/13 01:39:38 janssen Exp $
*/

all::	tim texinfo2ps texinfo24050ps texinfo2info texinfo2html eps2gif

tim::	tim.dist
	sed -e 's;PERL;$(PERL);' <tim.dist >tim ; \
	chmod +x tim

texinfo2ps:: texinfo2ps.dist
	sed -e 's;PERL;$(PERL);' -e 's;ILUHOME;$(ILUHOME);g' -e 's;TEXPROGRAM;$(TEX);g' -e 's;TEXINDEX;$(TEXINDEX);' -e 's;DVIPS;$(DVIPS);g' <texinfo2ps.dist >texinfo2ps ; \
	chmod +x texinfo2ps

texinfo24050ps:: texinfo24050ps.dist
	sed -e 's;PERL;$(PERL);' -e 's;ILUHOME;$(ILUHOME);g' -e 's;TEXPROGRAM;$(TEX);g' -e 's;TEXINDEX;$(TEXINDEX);' -e 's;DVIPS4050;$(DVIPS4050);g' <texinfo24050ps.dist >texinfo24050ps ; \
	chmod +x texinfo24050ps

texinfo2info:: texinfo2info.dist
	sed -e 's;GIFTOPPM;$(GIFTOPPM);g' -e 's;PPMTOPGM;$(PPMTOPGM);g' -e 's;PPMQUANT;$(PPMQUANT);g' -e 's;PNMSCALE;$(PNMSCALE);g' -e 's;PGMTOPBM;$(PGMTOPBM);g' -e 's;PBMTOASCII;$(PBMTOASCII);g' -e 's;PERL;$(PERL);' -e 's;ILUHOME;$(ILUHOME);g' -e 's;MAKEINFO;$(MAKEINFO);g' <texinfo2info.dist >texinfo2info ; \
	chmod +x texinfo2info

texinfo2html:: texinfo2html.dist
	sed -e 's;PERL;$(PERL);' -e 's;ILUHOME;$(ILUHOME);g' -e 's;MAKEINFO;$(MAKEINFO);g' <texinfo2html.dist >texinfo2html ; \
	chmod +x texinfo2html

eps2gif:: eps2gif.dist
	sed -e 's;PERL;$(PERL);' -e 's;ILUHOME;$(ILUHOME);g' -e 's;GHOSTSCRIPT;$(GHOSTSCRIPT);g' <eps2gif.dist >eps2gif ; \
	chmod +x eps2gif

InstallProgram(tim, $(DESTDIR)/bin)
InstallProgram(texinfo2ps, $(DESTDIR)/bin)
InstallProgram(texinfo24050ps, $(DESTDIR)/bin)
InstallProgram(texinfo2info, $(DESTDIR)/bin)
InstallProgram(texinfo2html, $(DESTDIR)/bin)
InstallProgram(eps2gif, $(DESTDIR)/bin)
InstallFile(texinfo.tex, -m 444, $(DESTDIR)/lib)
CleanTarget(tim texinfo2ps texinfo24050ps texinfo2info texinfo2html eps2gif)
