##########################################################################
#	     The test makefile for wp2latex package		         #
##########################################################################


.SUFFIXES: .tex .wp .wpd .dvi

WP2LATEX = ../sources.cc/wp2latex
LATEX = latex

.tex.dvi:
	$(LATEX) $*.tex

.wp.tex:
	$(WP2LATEX) -i $*.wp -o $*.tex

test:
	$(WP2LATEX) -S -i crypt1.wp -o crypt1.tex -s FRIDRICH
	$(WP2LATEX) -S -i RTassays2.wp -o RTassays.tex
	$(WP2LATEX) -S -i algeria3.wp -o algeria3.tex
	$(WP2LATEX) -S -i crypt3.wp -o crypt3.tex -s a
	$(WP2LATEX) -S -i crypt4.wp -o crypt4.tex -s wp4
	$(WP2LATEX) -S -i torture4.wp -o torture.tex
	$(WP2LATEX) -S -i chars5.wp -o chars5.tex
	$(WP2LATEX) -S -i equation5.wp -o equation.tex
	$(WP2LATEX) -S -i test5.wp -o test.tex
	$(WP2LATEX) -S -i chars6.wp -o chars6.tex
	$(WP2LATEX) -S -i ole6.wpd -o ole6.tex

bigtest:
	$(WP2LATEX) -S -i test5.wp -o test5_ALL.tex -use-all
	$(WP2LATEX) -S -i test5.wp -o test5_t.tex -tipa
	$(WP2LATEX) -S -i test5.wp -o test5__.tex -no-tipa
	$(WP2LATEX) -S -i test5.wp -o test5__b.tex -bbm
	$(WP2LATEX) -S -i test5.wp -o test5___.tex -no-bbm
	$(WP2LATEX) -S -i test5.wp -o test5____h.tex -cjhebrew
	$(WP2LATEX) -S -i test5.wp -o test5_____.tex -no-cjhebrew
	$(WP2LATEX) -S -i test5.wp -o test5_____c.tex -cyrillic
	$(WP2LATEX) -S -i test5.wp -o test5______.tex -no-cyrillic
	$(WP2LATEX) -S -i test5.wp -o test5______1.tex -fontenc-T1
	$(WP2LATEX) -S -i test5.wp -o test5_______.tex -no-fontenc-T1

testltx: test
	cp ../styles.tex/*.sty ./
	cp ../styles.tex/*.def ./
	latex equation.tex
#	latex test.tex
	latex chars5.tex
	latex crypt1.tex
	latex crypt3.tex
	latex crypt4.tex
	latex ole6.tex

bigtestltx: bigtest
	cp ../styles.tex/*.sty ./
	cp ../styles.tex/*.def ./
	@echo ####### Converting test5.wp -use-all
	latex test5_ALL.tex
	@echo ####### Converting test5.wp -tipa
	latex test5_t.tex
	@echo ####### Converting test5.wp -no-tipa
	latex test5__.tex
	@echo ####### Converting test5.wp -bbm
	latex test5__b.tex
	@echo ####### Converting test5.wp -no-bbm
	latex test5___.tex
	@echo ####### Converting test5.wp -cjhebrew
	latex test5____h.tex
	@echo ####### Converting test5.wp -no-cjhebrew
	latex test5_____.tex
	@echo ####### Converting test5.wp -cyrilic
	latex test5_____c.tex
	@echo ####### Converting test5.wp -no-cyrilic
	latex test5______.tex
	@echo ####### Converting test5.wp -fontenc-T1
	latex test5______1.tex
	@echo ####### Converting test5.wp -no-fontenc-T1
	latex test5_______.tex

clean:
	rm -f *.tex *.dvi *.aux *.log *.ent *.toc *.pdf *.eps *.ps *.idx .nfs*
	rm -f *.sty *.def *.STR *.TBL