/*
 * Copyright 1989 Dirk Grunwald
 * 
 * Permission to use, copy, modify, distribute, and sell this software
 * and its documentation for any purpose is hereby granted without fee,
 * provided that the above copyright notice appear in all copies and that
 * both that copyright notice and this permission notice appear in
 * supporting documentation, and that the name of Dirk Grunwald or M.I.T.
 * not be used in advertising or publicity pertaining to distribution of
 * the software without specific, written prior permission.  Dirk
 * Grunwald and M.I.T. makes no representations about the suitability of
 * this software for any purpose.  It is provided "as is" without express
 * or implied warranty.
 * 
 * DIRK GRUNWALD AND M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS, IN NO EVENT SHALL M.I.T.  BE LIABLE FOR ANY SPECIAL, INDIRECT
 * OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
 * OR PERFORMANCE OF THIS SOFTWARE.
 * 
 * Author:
 * 	Dr. Dirk Grunwald
 * 	Dept. of Computer Science
 * 	Campus Box 430
 * 	Univ. of Colorado, Boulder
 * 	Boulder, CO 80309
 * 
 * 	grunwald@colorado.edu
 * 	
 */ 

#define IHaveSubdirs

/*
 *	Set `FONTDESC' to the location of your fontdesc file, unquoted.
 *	This is passed to the library routines so they can find it.
 */

FontDesc=/usr/local/lib/tex82/fontdesc
IprBin=/usr/local/bin

#ifdef sun
  SUBDIRS = libtex Xtex Mftobdf Dviselect Texx Iptex Fonts Texsun
#else
  SUBDIRS = libtex Xtex Mftobdf Dviselect Texx Iptex Fonts
#endif

MFLAGS	=IprBin=$(IprBin) TeXFonts=$(TeXFonts) FontDesc=$(FontDesc)

#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))


FILES	= Imakefile fontdesc-example README 
tar:
	cd ..;\
	rm -f SeeTeX.tar ; \
	tar cf SeeTeX.tar SeeTeX/Imakefile ; \
	for file in $(FILES);\
	do\
	  tar rf SeeTeX.tar SeeTeX/$$file; \
	done
	for file in $(SUBDIRS);\
	do\
	  (cd $$file ; $(MAKE) TARFILE=SeeTeX.tar PRODUCT=SeeTeX tar);\
	done
	

texx2 XeT/texx2:
	cd XeT ; make texx2
mftobdf XeT/mftobdf:
	cd Mftobdf ; make mftobdf
dviselect Dviselect/dviselect:
	cd Dviselect ; make dviselect
texsun Texsun/texsun:
	cd Texsun ; make texsun
texx Texx/texx:
	cd Texx ; make texx
iptex Iptex/iptex:
	cd Iptex ; make iptex


