cryptol/docs/Makefile

36 lines
853 B
Makefile
Raw Normal View History

MARKDOWN = Syntax.pdf CryptolPrims.pdf Version2Changes.pdf Semantics.pdf
2014-04-18 02:34:25 +04:00
BOOK = Cryptol.pdf
.PHONY: all
all: markdown book
# Use sed to remove backslashes before generating PDF so Pandoc does not
# render them. They are necessary for Github markdown, but not Pandoc
# markdown.
Version2Table.pdf: Version2Table.md
sed "s/\\\\//g" $^ | pandoc -f markdown+tex_math_dollars -V geometry:"margin=0.25in" -o $@
2014-04-18 02:34:25 +04:00
Semantics.pdf: ../src/Cryptol/Eval/Reference.lhs
pandoc -f markdown+lhs -V geometry:"margin=1.25in" $^ --toc -o $@
2014-04-18 02:34:25 +04:00
.PHONY: markdown
markdown: ${MARKDOWN}
.PHONY: book
book:
(cd ProgrammingCryptol; make)
2014-04-24 05:52:10 +04:00
cp ProgrammingCryptol/tmp/${BOOK} ./ProgrammingCryptol.pdf
2014-04-18 02:34:25 +04:00
%.pdf: %.md
2014-04-18 02:34:25 +04:00
pandoc $^ --toc -o $@
.PHONY: clean
clean:
rm -f ${MARKDOWN}
rm -f ${BOOK}
2015-09-15 23:38:06 +03:00
.PHONY: squeaky
squeaky:
rm -f ${MARKDOWN}
(cd ProgrammingCryptol; make squeaky)