blob: fd92ddab4e4f9b0138686939cc5980fa438bdb2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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) $<
|