-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
93 lines (75 loc) · 1.85 KB
/
Makefile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
EXAMPLES = \
presentation.tex \
beamer-desc.tex \
beamer-LSST2016.tex \
DMTN-nnn.tex \
MEMO-nnn.tex \
test-report.tex \
test-specification.tex \
LDM-nnn.tex
TESTFILES = \
test-bibtex.tex
# Bibliographies that are tested for pybtex compatibility
# Ignores the gaialink bibliography
BIBFILES = \
texmf/bibtex/bib/books.bib \
texmf/bibtex/bib/lsst.bib \
texmf/bibtex/bib/lsst-dm.bib \
texmf/bibtex/bib/refs.bib \
texmf/bibtex/bib/refs_ads.bib
.SUFFIXES:
.SUFFIXES: .tex .pdf
PDF = $(EXAMPLES:.tex=.pdf)
TESTS = $(TESTFILES:.tex=.pdf)
all: $(PDF) $(TESTS) glossary-table.pdf full-glossary.pdf
$(PDF): %.pdf: examples/%.tex
latexmk -xelatex -f $<
$(TESTS): %.pdf: tests/%.tex
latexmk -pdf -bibtex -f $<
test-acronyms: glossary-table.pdf
glossary-table.pdf: glstab.tex
latexmk -xelatex -f examples/glossary-table.tex
full-glossary.pdf: glstab.tex
bin/generateAcronyms.py -g --writeallacronyms --noadorn fullgls.tex
latexmk -xelatex -f examples/full-glossary.tex
makeglossaries full-glossary
xelatex examples/full-glossary.tex
glstab.tex:
@echo "Testing glossarydefs"
@echo
bin/generateAcronyms.py -c glstab.tex
.PHONY: test-pybtex
test-pybtex:
@echo "Testing pybtex compatibility"
@echo
bin/validate_bib.py $(BIBFILES)
.PHONY: test-authors
test-authors:
@echo "Testing authorsdb"
@echo
bin/validate_authors.py
.PHONY: docs
docs: $(PDF) $(TESTS) glstab.tex
mkdir -p docs/_static/examples
cp *.pdf docs/_static/examples/
cp etc/glossary.html docs
cp htmlglossary.csv docs
make -C docs html
lsst.bib:
bin/generateBibfile.py --external texmf/bibtex/bib/lsst.bib --external etc/static_entries.bib texmf/bibtex/bib/lsst.bib
.PHONY: clean
clean:
rm -f *.aux
rm -f *.fdb_latexmk
rm -f *.fls
rm -f *.log
rm -f *.out
rm -f *.pdf
rm -f *.toc
rm -f *.nav
rm -f *.snm
rm -f *.bbl
rm -f *.bbg
rm -f *.xdv
make -C docs clean
rm -f docs/_static/examples/*.pdf