# I can't get this to work because calling initex from the
# makefile doesn't seem to get the paths correct. It's the right
# idea.
#
TEXINPUTS = /usr/local/tex/inputs
#TEXBIN = /usr/local/bin

psplain.fmt : raw.tex psplain.tex
	ln -s psfonts.std plainfonts.tex
#	${TEXBIN}/initex psplain

plain.fmt : raw.tex
	rm -f plainfonts.tex
	ln -s plainfonts.std plainfonts.tex
#	initex 'raw \dump'
#	mv -f raw.fmt plain.fmt

raw.tex :
	cp ${TEXINPUTS}/plain.tex ./raw.tex
	patch raw.tex < raw.diff

clean:
	rm -f raw.tex *.log

veryclean : clean
	rm -f *.fmt
