summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/stex/lib/make/Makefile.base.vars
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/stex/lib/make/Makefile.base.vars
Initial commit
Diffstat (limited to 'macros/latex/contrib/stex/lib/make/Makefile.base.vars')
-rw-r--r--macros/latex/contrib/stex/lib/make/Makefile.base.vars30
1 files changed, 30 insertions, 0 deletions
diff --git a/macros/latex/contrib/stex/lib/make/Makefile.base.vars b/macros/latex/contrib/stex/lib/make/Makefile.base.vars
new file mode 100644
index 0000000000..ae1d79f348
--- /dev/null
+++ b/macros/latex/contrib/stex/lib/make/Makefile.base.vars
@@ -0,0 +1,30 @@
+#################################### PATHS ###############################
+# the paths can be customized by setting the shell variable STEXDIR appropriately
+STEXSTYDIR = $(STEXDIR)/sty
+STEXBINDIR = $(STEXDIR)/bin
+
+################################# Programs ###############################
+SMSPROG = PERL5LIB=$(STEXDIR)/bin $(STEXDIR)/bin/sms
+GRAPHPROG = PERL5LIB=$(STEXDIR)/bin $(STEXDIR)/bin/sgraph
+
+########################## Conversion and Formatting Targets ###########
+# the TARGET is the set of top-level TeX files that should be formatted or converted.
+# TARGET.parts are separate parts of the target (e.g. included via \input). The TARGET
+# files usually depend on them and they are not Modules (see below).
+# 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. Some setups have a driver file, which they can
+# specify in the DRIVER variable. If the DRIVER variable is set, then it is re-made
+
+TARGET ?= $(DRIVER)
+MODS ?= $(filter-out tikztemp.tex $(BUTFILES) $(TARGET.parts) $(TARGET) $(LTARGET), $(shell ls *.tex)) $(MODS.extra)
+MODS.sms ?= $(filter-out $(MODS.sms.but), $(MODS:%.tex=%.sms) $(MODS.sms.extra))
+
+# the prefix files or the MODSLIBDIR variable must be specified by the calling Makefile
+MODS.pre ?= $(MODSLIBDIR)/pre.tex
+MODS.post ?= $(MODSLIBDIR)/post.tex
+
+# the modules that should get inputted in all.tex
+MODS4all ?= $(MODS:%.tex=%)
+########################### for cleaning ######################################
+DISTCLEAN += $(MODS.sms)