# make              all the variants (XeLaTeX)
# make ENGINE=pdflatex    or lualatex
# make phaedo-a4.pdf      just one
ENGINE ?= xelatex
VARIANTS = phaedo-a5 phaedo-a4 phaedo-two-columns phaedo-book \
            phaedo-study phaedo-large-print phaedo-screen phaedo-booklet

all: $(VARIANTS:=.pdf)

%.pdf: %.tex phaedo-common.tex phaedo-text.tex
	$(ENGINE) -interaction=batchmode -halt-on-error $<

phaedo-booklet.pdf: phaedo-book.pdf

clean:
	rm -f *.aux *.log

.PHONY: all clean
