File: Makefile

package info (click to toggle)
dblatex 0.3.4-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 12,004 kB
  • sloc: xml: 100,126; python: 5,478; makefile: 137; sh: 70
file content (38 lines) | stat: -rw-r--r-- 923 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# Two testsuites are available: Testsuite for MathML 1.0 (1) and 
# Testsuite for MathML 2.0 (2).
# The default testsuite used is MathML 2.0, that can be compiled step by step
# (for debug purpose) or in a single step.
#
TOP = ../..
PWD = $(shell pwd)
TEXIN = $(shell echo ${TEXINPUTS})
TSTFILE = mmltest
TSTBASE = .
OPT =

all: full2

full%: $(TSTFILE)%.xml
	$(TOP)/scripts/dblatex $<

test1: $(TSTFILE)1.tex $(TSTFILE)1.dvi $(TSTFILE)1.xml
test2: $(TSTFILE)2.tex $(TSTFILE)2.dvi $(TSTFILE)2.xml

# FORCE to let compile several times
%.pdf: %.tex FORCE
	TEXINPUTS=:$(PWD)/$(TOP)/latex//:$(TEXIN) pdflatex $<

%.dvi: %.tex
	TEXINPUTS=:$(PWD)/$(TOP)/latex//:$(TEXIN) latex $<

%.tex: %.xml
	$(TOP)/scripts/dblatex -t tex -o $@ $<

%1.xml:
	./build/make_testmml $(OPT) --exclude excluded1 $(TSTBASE)/suite1/testsuite/ > $@

%2.xml:
	./build/make_testmml $(OPT) --exclude excluded2 $(TSTBASE)/suite2/testsuite/ > $@

FORCE: