2016-02-25 09:12:56 -08:00
|
|
|
protocol.pdf: protocol.tex zcash.bib incremental_merkle.pdf key_components.pdf
|
2016-02-16 11:45:29 -08:00
|
|
|
$(MAKE) pdf
|
|
|
|
|
2018-03-18 06:27:13 -07:00
|
|
|
sapling.pdf: protocol.tex zcash.bib incremental_merkle.pdf key_components_sapling.pdf
|
2017-07-10 23:58:57 -07:00
|
|
|
$(MAKE) sapling
|
|
|
|
|
2016-02-16 11:45:29 -08:00
|
|
|
.PHONY: pdf
|
|
|
|
pdf:
|
2016-06-21 15:07:31 -07:00
|
|
|
printf '\\renewcommand{\\docversion}{Version %s}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
2018-03-18 06:27:13 -07:00
|
|
|
mkdir -p aux
|
|
|
|
rm -f aux/protocol.*
|
|
|
|
latexmk -bibtex -pdf -auxdir=aux -outdir=aux protocol
|
|
|
|
mv -f aux/protocol.pdf .
|
2017-07-26 03:38:26 -07:00
|
|
|
|
2017-12-01 17:39:17 -08:00
|
|
|
.PHONY: html
|
|
|
|
html: pdf sapling
|
|
|
|
pdf2htmlEX --decompose-ligature 1 --font-size-multiplier 60 --split-pages 1 --dest-dir html protocol.pdf
|
|
|
|
pdf2htmlEX --decompose-ligature 1 --font-size-multiplier 60 --split-pages 1 --dest-dir saplinghtml sapling.pdf
|
|
|
|
|
2017-07-26 03:38:26 -07:00
|
|
|
.PHONY: pvcpdf
|
|
|
|
pvcpdf:
|
|
|
|
printf '\\renewcommand{\\docversion}{Version %s}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
2018-03-18 06:27:13 -07:00
|
|
|
mkdir -p aux
|
|
|
|
rm -f aux/protocol.*
|
|
|
|
latexmk -bibtex -pdf -pvc -auxdir=aux protocol
|
2015-12-22 18:13:11 -08:00
|
|
|
|
2017-07-10 23:58:57 -07:00
|
|
|
.PHONY: sapling
|
|
|
|
sapling:
|
2017-12-16 16:39:31 -08:00
|
|
|
printf '\\toggletrue{issapling}\n\\renewcommand{\\docversion}{Version %s [\\SaplingSpec]}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
2018-03-18 06:27:13 -07:00
|
|
|
mkdir -p aux
|
|
|
|
rm -f aux/sapling.*
|
|
|
|
latexmk -bibtex -pdf -jobname=sapling -auxdir=aux -outdir=aux protocol
|
|
|
|
mv -f aux/sapling.pdf .
|
2017-07-26 03:38:26 -07:00
|
|
|
|
|
|
|
.PHONY: pvcsapling
|
|
|
|
pvcsapling:
|
2017-12-16 16:39:31 -08:00
|
|
|
printf '\\toggletrue{issapling}\n\\renewcommand{\\docversion}{Version %s [\\SaplingSpec]}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
2018-03-18 06:27:13 -07:00
|
|
|
mkdir -p aux
|
|
|
|
rm -f aux/sapling.*
|
|
|
|
latexmk -bibtex -pdf -jobname=sapling -auxdir=aux -pvc protocol
|
2017-07-10 23:58:57 -07:00
|
|
|
|
2018-01-25 12:14:28 -08:00
|
|
|
LATEX=pdflatex
|
|
|
|
|
|
|
|
.PHONY: nolatexmk-pdf
|
|
|
|
nolatexmk-pdf:
|
|
|
|
printf '\\renewcommand{\\docversion}{Version %s}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
|
|
|
# If $(LATEX) fails, touch an input so that 'make' won't think it is up-to-date next time.
|
|
|
|
rm -f protocol.aux protocol.bbl protocol.blg protocol.brf protocol.bcf
|
|
|
|
$(LATEX) protocol.tex || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
biber protocol
|
|
|
|
$(LATEX) protocol.tex || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
$(LATEX) protocol.tex || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
$(LATEX) protocol.tex || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
|
|
|
|
.PHONY: nolatexmk-sapling
|
|
|
|
nolatexmk-sapling:
|
|
|
|
printf '\\toggletrue{issapling}\n\\renewcommand{\\docversion}{Version %s [\\SaplingSpec]}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
|
|
|
# If $(LATEX) fails, touch an input so that 'make' won't think it is up-to-date next time.
|
|
|
|
rm -f sapling.aux sapling.bbl sapling.blg sapling.brf sapling.bcf
|
|
|
|
$(LATEX) -jobname=sapling protocol.tex || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
biber sapling
|
|
|
|
$(LATEX) -jobname=sapling protocol.tex || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
$(LATEX) -jobname=sapling protocol.tex || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
$(LATEX) -jobname=sapling protocol.tex || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
|
2015-12-22 18:13:11 -08:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2018-03-18 06:27:13 -07:00
|
|
|
rm -f aux/* protocol.ver \
|
|
|
|
protocol.dvi protocol.pdf protocol.bbl protocol.blg protocol.brf protocol.toc \
|
|
|
|
protocol.aux protocol.out protocol.log protocol.bcf protocol.run.xml protocol.fls protocol.fdb_latexmk \
|
2017-07-10 23:58:57 -07:00
|
|
|
sapling.dvi sapling.pdf sapling.bbl sapling.blg sapling.brf sapling.toc \
|
2018-03-18 06:27:13 -07:00
|
|
|
sapling.aux sapling.out sapling.log sapling.bcf sapling.run.xml sapling.fls sapling.fdb_latexmk
|