summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lstbayes/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/lstbayes/Makefile')
-rw-r--r--Master/texmf-dist/doc/latex/lstbayes/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/lstbayes/Makefile b/Master/texmf-dist/doc/latex/lstbayes/Makefile
new file mode 100644
index 00000000000..fd92ddab4e4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/lstbayes/Makefile
@@ -0,0 +1,42 @@
+#
+# This file generates files required to use the lstbayes package
+#
+
+# formatting tools
+PYTHON = python3
+SHELL = bash
+LATEX = pdflatex
+TEX = tex
+
+.PHONY: build pdf all
+
+all: build pdf
+
+build: lstbayes.sty
+
+release: build pdf README.md
+ -rm lstbayes.zip
+ if [ -d lstbayes ]; then rm -rf ./lstbayes; fi
+ mkdir lstbayes
+ cp *.pdf *.ins *.dtx *.tex README.md Makefile lstbayes
+ zip -r lstbayes.zip lstbayes
+
+pdf: lstbayes.pdf examples.pdf
+
+lstbayes.dtx: lstbayes.dtx.mustache
+ $(PYTHON) lstbayes.py $< > $@
+
+lstbayes.sty: lstbayes.ins lstbayes.dtx
+ $(TEX) $<
+
+lstbayes.pdf: lstbayes.dtx
+ $(LATEX) $<
+ makeindex -s gind.ist -o ${@:.pdf=.ind} ${@:.pdf=.idx}
+ makeindex -s gglo.ist -o ${@:.pdf=.gls} ${@:.pdf=.glo}
+ $(LATEX) $<
+ $(LATEX) $<
+
+examples.pdf: examples.tex
+ $(LATEX) $<
+ $(LATEX) $<
+