| 1 |
# |
| 2 |
# Two testsuites are available: Testsuite for MathML 1.0 (1) and |
| 3 |
# Testsuite for MathML 2.0 (2). |
| 4 |
# The default testsuite used is MathML 2.0, that can be compiled step by step |
| 5 |
# (for debug purpose) or in a single step. |
| 6 |
# |
| 7 |
TOP = ../.. |
| 8 |
PWD = $(shell pwd) |
| 9 |
TEXIN = $(shell echo ${TEXINPUTS}) |
| 10 |
TSTFILE = mmltest |
| 11 |
TSTBASE = . |
| 12 |
OPT = |
| 13 |
|
| 14 |
all: full2 |
| 15 |
|
| 16 |
full%: $(TSTFILE)%.xml |
| 17 |
$(TOP)/scripts/dblatex $< |
| 18 |
|
| 19 |
test1: $(TSTFILE)1.tex $(TSTFILE)1.dvi $(TSTFILE)1.xml |
| 20 |
test2: $(TSTFILE)2.tex $(TSTFILE)2.dvi $(TSTFILE)2.xml |
| 21 |
|
| 22 |
# FORCE to let compile several times |
| 23 |
%.pdf: %.tex FORCE |
| 24 |
TEXINPUTS=:$(PWD)/$(TOP)/latex//:$(TEXIN) pdflatex $< |
| 25 |
|
| 26 |
%.dvi: %.tex |
| 27 |
TEXINPUTS=:$(PWD)/$(TOP)/latex//:$(TEXIN) latex $< |
| 28 |
|
| 29 |
%.tex: %.xml |
| 30 |
$(TOP)/scripts/dblatex -t tex -o $@ $< |
| 31 |
|
| 32 |
%1.xml: |
| 33 |
./build/make_testmml $(OPT) --exclude excluded1 $(TSTBASE)/suite1/testsuite/ > $@ |
| 34 |
|
| 35 |
%2.xml: |
| 36 |
./build/make_testmml $(OPT) --exclude excluded2 $(TSTBASE)/suite2/testsuite/ > $@ |
| 37 |
|
| 38 |
FORCE: |