-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (25 loc) · 856 Bytes
/
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
FILENAME = poster
date = $(shell date +%Y-%m-%d)
output_file = draft_$(date).pdf
figure_src = $(wildcard figures/*.svg figures/*/*.svg)
figure_list = $(figure_src:.svg=.pdf)
LATEX = lualatex
BIBTEX = bibtex
default: poster
figures: $(figure_list)
# Target assumes figure source is in same directory as expected figure path
figures/%.pdf: figures/%.svg
inkscape -z -D --file=$(basename $@).svg --export-pdf=$(basename $@).pdf
poster: figures
latexmk -$(LATEX) -logfilewarnings -halt-on-error $(FILENAME)
rsync $(FILENAME).pdf $(output_file)
rsync $(FILENAME).pdf scipy-2019.pdf
clean:
rm -f *.aux *.bbl *.blg *.dvi *.idx *.lof *.log *.lot *.toc \
*.xdy *.nav *.out *.snm *.vrb *.mp \
*.synctex.gz *.brf *.fls *.fdb_latexmk \
*.glg *.gls *.glo *.ist *.alg *.acr *.acn
clean_drafts:
rm -f draft_*.pdf
realclean: clean
rm -f *.ps *.pdf