RM=/bin/rm 
MAKE= make
LATEX=virtex '&lplain'

include ../variable.mk

EGypto.dvi : ../Seshnesu/sesh signlist.tex
	@echo "well, I try to build EGypto.dvi"
	@echo "make offerings to Toth and D. Knuth"
	@echo "and perhaps it will work"
	#../Seshnesu/sesh <EGypto.tex >toto.tex
	#-$(LATEX) toto.tex
	#-$(RM) toto.tex
	latex EGypto.tex

../Seshnesu/sesh : 
	(cd ../Seshnesu ; $(MAKE))

signlist.tex : ../Seshnesu/seshSource.txt
	../Seshnesu/mkliste.awk < $? | sort -t= +0n -1 +1n -2 +2n -3 |\
		nawk -F = '{print "\\showHvalue{\\hieroglyph " $$4 "\\endhieroglyph}{" $$5 "}" }'\
		| ../Seshnesu/sesh > $@

configure:

clean : FORCE
	-$(RM) -f *~ \#*\# *.log *.aux *.dic *.blg *.bbl

veryclean : clean

veryveryclean : clean
	$(RM) -f *.dvi

FORCE :



