summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lstbayes/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-09-29 22:08:57 +0000
committerKarl Berry <karl@freefriends.org>2015-09-29 22:08:57 +0000
commit6c088673b9f7d4b0e3b186b850d4fd6ba9997326 (patch)
tree3c86550ea260098612b6ca6f6f0250664a606716 /Master/texmf-dist/doc/latex/lstbayes/Makefile
parent982ab23fae158d0e4ca19de74a6fa98928334007 (diff)
lstbayes (29sep15)
git-svn-id: svn://tug.org/texlive/trunk@38498 c570f23f-e606-0410-a88d-b1316a301751
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) $<
+