Makefile 1.22 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
PREVIOUS= csf-supplementary/previous.tex csf-supplementary/usenix-*.tex csf-supplementary/tweetverif-USENIX.pdf csf-supplementary/tweetverif-SP.pdf
benoit's avatar
benoit committed
5

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

benoit's avatar
benoit committed
12
csf-supplementary/previous.pdf: $(PREVIOUS)
13
	make -C csf-supplementary
14
15
16
17
18
19
20
21
22
23
24

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


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

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

spell:
	@for f in $(SOURCES) ; do \
		aspell -t -c $$f; \
	done