Makefile 1 KB
Newer Older
1
2
all: tweetverif.pdf csf-supplementary/previous.pdf

3
SOURCES= code-tweetnacl.tex collection.bib conclusion.tex coq.tex highlevel.tex intro.tex lowlevel.tex preliminaries.tex proofs.tex rfc.tex t.bib tweetverif.tex tweetnacl.diff
benoit's avatar
benoit committed
4

5
tweetverif.pdf: $(SOURCES)
6
	pdflatex tweetverif.tex
7
	bibtex tweetverif
8
9
	pdflatex tweetverif.tex
	pdflatex tweetverif.tex
benoit's avatar
benoit committed
10

11
12
csf-supplementary/previous.pdf:
	make -C csf-supplementary
13
14
15
16
17
18
19
20
21
22
23

tweetnacl.diff:
	@echo $(BOLD)$(YELLOW)"Generating tweetnacl.diff"$(NO_COLOR)$(DARKGRAY)
	diff -u ../proofs/vst/c/tweetnacl.c ../proofs/vst/c/tweetnaclVerifiableC.c > tweetnacl.diff.tmp; [ $$? -eq 1 ]
	sed -i -e 1,2d tweetnacl.diff.tmp
	echo '--- tweetnacl.c' >> tweetnacl.diff
	echo '+++ tweetnaclVerifiableC.c' >> tweetnacl.diff
	cat tweetnacl.diff.tmp >> tweetnacl.diff
	rm tweetnacl.diff.tmp


24
.PHONY: clean
benoit's avatar
benoit committed
25

Benoit Viguier's avatar
Benoit Viguier committed
26
clean:
27
28
29
30
31
	-rm tweetverif.aux
	-rm tweetverif.log
	-rm tweetverif.out
	-rm tweetverif.pdf
	-rm tweetverif.thm
32
33
34
	-rm tweetverif.bbl
	-rm tweetverif.blg
	-rm tweetverif.brf
35
	make -C csf-supplementary clean