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
|
|
|
|
|
2017-07-10 23:58:57 -07:00
|
|
|
sapling.pdf: protocol.tex zcash.bib incremental_merkle.pdf key_components.pdf
|
|
|
|
$(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
|
2017-07-26 03:38:26 -07:00
|
|
|
# If latexmk 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
|
|
|
|
latexmk -bibtex -pdf protocol || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
|
|
|
|
.PHONY: pvcpdf
|
|
|
|
pvcpdf:
|
|
|
|
printf '\\renewcommand{\\docversion}{Version %s}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
|
|
|
# If latexmk fails, touch an input so that 'make' won't think it is up-to-date next time.
|
2016-08-17 20:39:45 -07:00
|
|
|
rm -f protocol.aux protocol.bbl protocol.blg protocol.brf protocol.bcf
|
2017-07-26 03:38:26 -07:00
|
|
|
latexmk -bibtex -pdf -pvc protocol
|
2015-12-22 18:13:11 -08:00
|
|
|
|
2017-07-10 23:58:57 -07:00
|
|
|
.PHONY: sapling
|
|
|
|
sapling:
|
|
|
|
printf '\\toggletrue{issapling}\n\\renewcommand{\\docversion}{Version %s [Sapling]}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
2017-07-26 03:38:26 -07:00
|
|
|
# If latexmk 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
|
|
|
|
latexmk -bibtex -pdf -jobname=sapling protocol || { touch incremental_merkle.pdf; exit 1; }
|
|
|
|
|
|
|
|
.PHONY: pvcsapling
|
|
|
|
pvcsapling:
|
|
|
|
printf '\\toggletrue{issapling}\n\\renewcommand{\\docversion}{Version %s [Sapling]}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
|
|
|
|
# If latexmk fails, touch an input so that 'make' won't think it is up-to-date next time.
|
2017-07-10 23:58:57 -07:00
|
|
|
rm -f sapling.aux sapling.bbl sapling.blg sapling.brf sapling.bcf
|
2017-07-26 03:38:26 -07:00
|
|
|
latexmk -bibtex -pdf -jobname=sapling -pvc protocol
|
2017-07-10 23:58:57 -07:00
|
|
|
|
2015-12-22 18:13:11 -08:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2017-07-10 23:58:57 -07:00
|
|
|
rm -f protocol.dvi protocol.pdf protocol.bbl protocol.blg protocol.brf protocol.toc \
|
|
|
|
protocol.aux protocol.out protocol.log protocol.bcf protocol.run.xml protocol.ver \
|
|
|
|
sapling.dvi sapling.pdf sapling.bbl sapling.blg sapling.brf sapling.toc \
|
|
|
|
sapling.aux sapling.out sapling.log sapling.bcf sapling.run.xml
|