# Switched this back to bibtex because the current version of crosstex
# seems to have a bug causing incorrect capitalization in the titles.

LATEX=pdflatex
TEXFLAGS=

TARGET=scribe.pdf

all: $(TARGET)

$(TARGET): $(TARGET:.pdf=.tex) *.tex Makefile
	$(LATEX) $(TEXFLAGS) $<
	$(LATEX) $(TEXFLAGS) $<

test: test-fonts test-info

test-fonts: $(TARGET)
	pdffonts $<

test-info: $(TARGET)
	pdfinfo $<

print: $(TARGET)
	pdftops $< - | lpr -P lws510

view: $(TARGET)
	kpdf $<

clean:
	rm -f $(TARGET) *.log *.aux *.bbl *.blg *.bak .*.xtx.cache parsetab.py \#*\# *~