From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/lstbayes/Makefile | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 macros/latex/contrib/lstbayes/Makefile (limited to 'macros/latex/contrib/lstbayes/Makefile') diff --git a/macros/latex/contrib/lstbayes/Makefile b/macros/latex/contrib/lstbayes/Makefile new file mode 100644 index 0000000000..19e0345532 --- /dev/null +++ b/macros/latex/contrib/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 lstbayes.pdf lstbayes.ins lstbayes.dtx examples.tex examples.pdf README.md Makefile lstbayes + zip -r lstbayes.zip lstbayes + +pdf: lstbayes.pdf examples.pdf + +lstbayes.dtx: lstbayes_template.dtx lstbayes.py + $(PYTHON) lstbayes.py $(pkgversion) + +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) $< + -- cgit v1.2.3