summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/lib/make/Makefile.latexml.vars
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/lib/make/Makefile.latexml.vars')
-rw-r--r--Master/texmf-dist/source/latex/stex/lib/make/Makefile.latexml.vars48
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/stex/lib/make/Makefile.latexml.vars b/Master/texmf-dist/source/latex/stex/lib/make/Makefile.latexml.vars
new file mode 100644
index 00000000000..4dfb6848ce2
--- /dev/null
+++ b/Master/texmf-dist/source/latex/stex/lib/make/Makefile.latexml.vars
@@ -0,0 +1,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)