#
# @(#)$Header: /mm/src/tgif/contrib/tgifintro/RCS/Makefile,v 1.6 2002/11/20 19:51:42 william Exp $
#
NAME=tgifintro
VERSION=1.0.1

$(NAME):
	latex $(NAME)
	latex $(NAME)
	dvips -f -t letter $(NAME) > $(NAME).ps

x:
	xdvi -geometry =1200x600-0-0 -expert -s 2 $(NAME)

gs:
	gs $(NAME).ps

pdf:
	for i in *eps; do epstopdf $$i -o=`basename $$i .eps`.pdf; done
	pdflatex $(NAME)
	pdflatex $(NAME)

distr: tar versioninfo
	make
	gzip ${NAME}.ps
	make pdf

versioninfo:
	what Makefile main.tex tgifintro.tex \
		> VersionInfo/Distribution/tgif-${VERSION}

tar:
	rm -rf tgifintro-${VERSION}.tar* tgifintro-${VERSION}
	mkdir tgifintro-${VERSION}
	cp *.eps Makefile tgifintro.tex tgifintro-${VERSION}
	tar cvf tgifintro-${VERSION}.tar tgifintro-${VERSION}
	gzip tgifintro-${VERSION}.tar
	rm -rf tgifintro-${VERSION}

clean:
	rm -f *.aux *.bak *.blg *.dvi *.log *.ps *.ps.gz *.pdf
