# $Id: Makefile,v 1.10 2004-11-27 01:47:20 eugene Exp $

PDFLATEX = env TEXINPUTS=../../latex/inputs:$(TEXINPUTS):.: pdflatex
PSLATEX  = env TEXINPUTS=../../latex/inputs:$(TEXINPUTS):.: latex

all : ippSRS.pdf ippSDRS.pdf hardware.pdf ippSCDps1.pdf

ippSRS.pdf : ippSRS.tex
	trace.pl ippSRS.tex ippSRSout.tex ippSRStrace.tex
	$(PSLATEX) ippSRSout.tex 
	$(PSLATEX) ippSRSout.tex 
	dvips -z -t letter -o ippSRSout.ps ippSRSout.dvi
	ps2pdf ippSRSout.ps ippSRSout.pdf
	mv ippSRSout.pdf ippSRS.pdf
	@rm -f ippSRSout.ps ippSRSout.dvi ippSRSout.aux ippSRSout.log body.tmp head.tmp
	@rm -f ippSRSout.tbr ippSRSout.tbd ippSRSout.ent ippSRSout.lof ippSRSout.loc

%.pdf: %.tex
	$(PSLATEX) $*.tex 
	$(PSLATEX) $*.tex 
	dvips -z -t letter -o $*.ps $*.dvi
	ps2pdf $*.ps $*.pdf
	@rm -f $*.ps $*.dvi $*.aux $*.log $*.tbr $*.tbd $*.lof $*.toc body.tmp head.tmp

clean :
	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.lof *.out *~ core body.tmp head.tmp

empty : clean
