-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (28 loc) · 1.42 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
.SUFFIXES: .ltx .ps .pdf .svg
.svg.pdf:
inkscape --export-pdf=$@ $<
LATEX_FILES = cheri_misidioms.ltx
DIAGRAMS = fig/fvp-stats.pdf fig/microbenchmarks.pdf fig/sn_je_malloc_bm_overall.pdf fig/instruction_mix/stacked_bar_chart.pdf
all: cheri_misidioms.pdf
clean:
rm -rf cheri_misidioms.aux cheri_misidioms.bbl cheri_misidioms.blg cheri_misidioms.dvi cheri_misidioms.log cheri_misidioms.ps cheri_misidioms.pdf cheri_misidioms.toc cheri_misidioms.out cheri_misidioms.snm cheri_misidioms.nav cheri_misidioms.vrb cheri_misidioms_preamble.fmt cheri_misidioms_preamble.log texput.log
cheri_misidioms.pdf: bib.bib local.bib ${LATEX_FILES} ${DIAGRAMS} cheri_misidioms_preamble.fmt code/*.c data/results/tests.tex data/results/slocs.tex
pdflatex cheri_misidioms.ltx
bibtex cheri_misidioms
pdflatex cheri_misidioms.ltx
pdflatex cheri_misidioms.ltx
cheri_misidioms_preamble.fmt: cheri_misidioms_preamble.ltx
set -e; \
tmpltx=`mktemp`; \
cat ${@:fmt=ltx} > $${tmpltx}; \
grep -v "%&${@:_preamble.fmt=}" ${@:_preamble.fmt=.ltx} >> $${tmpltx}; \
pdftex -ini -jobname="${@:.fmt=}" "&pdflatex" mylatexformat.ltx $${tmpltx}; \
rm $${tmpltx}
bib.bib: softdevbib/softdev.bib local.bib
softdevbib/bin/prebib softdevbib/softdev.bib > bib.bib
softdevbib/bin/prebib local.bib >> bib.bib
softdevbib-update: softdevbib
cd softdevbib && git pull
softdevbib/softdev.bib: softdevbib
softdevbib:
git clone https://github.com/softdevteam/softdevbib.git