summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/lib/make/Makefile.latexml.vars
blob: 4dfb6848ce2b6c5ef8df93bb77573f10a6f3c40f (plain)
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
39
40
41
42
43
44
45
46
47
48
#################################### PATHS ###############################
# the paths can be customized by setting the shell variable STEXDIR appropriately
STEXXSLDIR		= $(STEXDIR)/xsl
STEXRNCDIR 		= $(STEXDIR)/rnc

###################### Conversion Programs ###############################
STEXLTXDIRS = modules statements sproof omtext omdoc sref presentation dcm reqdoc metakeys\
	                 mikoslides problem hwexam cmath etc

LTXPATHS 	= --path=$(STEXSTYDIR) --path=$(STEXDIR)/schema/rng \
		  $(STEXLTXDIRS:%=--path=$(STEXSTYDIR)/%)

LATEXML		= latexmlc  $(LTXPATHS)
LATEXMLPOST	= latexmlpost --openmath --pmml --nocrossref --noscan --novalidate

MATHFORMAT = om
STEXXSLT		= xsltproc --stringparam math-format $(MATHFORMAT)

STEXOXSL	= $(STEXXSLDIR)/omdocpost.xsl 

STEXRNG		= $(shell ls $(STEXDIR)/rnc/*.rng)

########################## Conversion and Formatting Targets ###########
# the TARGET is the set of top-level TeX files that should be formatted or converted
# Modules (MODS) are sTeX files without head and tail, so that they can be included 
# into other sTeX files. TARGET can be set by the including Makefile, MODS are 
# computed as as the remaining *.tex files.

TARGET.tex.xml	= $(TARGET:%.tex=%.tex.xml)
TARGET.xml		= $(TARGET:%.tex=%.xml)
TARGET.omdoc	= $(TARGET:%.tex=%.omdoc)
TARGET.sdomdoc	= $(TARGET:%.tex=%.sdomdoc)

MODS.tex.xml		=  $(MODS:%.tex=%.tex.xml) 
MODS.xml  		=  $(MODS:%.tex=%.xml) 
MODS.omdoc 		=  $(MODS:%.tex=%.omdoc) 
MODS.sdomdoc 	=  $(MODS:%.tex=%.sdomdoc) 
MODS.log	   = $(shell ls *.ltxlog)

# the prefix files or the MODSLIBDIR variable must be specified by the calling Makefile
MODS.pre 	?= $(MODSLIBDIR)/pre.tex
MODS.post 	?= $(MODSLIBDIR)/post.tex

########################### environment #############################
TEXINPUTS := $(TEXINPUTS)$(STEXSTYDIR)//:

CLEAN += 	 $(TARGET.xml) $(TARGET.tex.xml) $(MODS.tex.xml) $(MODS.xml)
DISTCLEAN += $(TARGET.omdoc) $(MODS.omdoc)