diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/lstbayes/Makefile |
Initial commit
Diffstat (limited to 'macros/latex/contrib/lstbayes/Makefile')
-rw-r--r-- | macros/latex/contrib/lstbayes/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
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) $< + |