| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
PYTHON = python3 |
| 7 |
SHELL = bash |
| 8 |
LATEX = pdflatex |
| 9 |
TEX = tex |
| 10 |
|
| 11 |
.PHONY: build pdf all |
| 12 |
|
| 13 |
all: build pdf |
| 14 |
|
| 15 |
build: lstbayes.sty |
| 16 |
|
| 17 |
release: build pdf README.md |
| 18 |
-rm lstbayes.zip |
| 19 |
if [ -d lstbayes ]; then rm -rf ./lstbayes; fi |
| 20 |
mkdir lstbayes |
| 21 |
cp lstbayes.pdf lstbayes.ins lstbayes.dtx examples.tex examples.pdf README.md Makefile lstbayes |
| 22 |
zip -r lstbayes.zip lstbayes |
| 23 |
|
| 24 |
pdf: lstbayes.pdf examples.pdf |
| 25 |
|
| 26 |
lstbayes.dtx: lstbayes_template.dtx lstbayes.py |
| 27 |
$(PYTHON) lstbayes.py $(pkgversion) |
| 28 |
|
| 29 |
lstbayes.sty: lstbayes.ins lstbayes.dtx |
| 30 |
$(TEX) $< |
| 31 |
|
| 32 |
lstbayes.pdf: lstbayes.dtx |
| 33 |
$(LATEX) $< |
| 34 |
makeindex -s gind.ist -o ${@:.pdf=.ind} ${@:.pdf=.idx} |
| 35 |
makeindex -s gglo.ist -o ${@:.pdf=.gls} ${@:.pdf=.glo} |
| 36 |
$(LATEX) $< |
| 37 |
$(LATEX) $< |
| 38 |
|
| 39 |
examples.pdf: examples.tex |
| 40 |
$(LATEX) $< |
| 41 |
$(LATEX) $< |
| 42 |
|