-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (53 loc) · 1.53 KB
/
Makefile
File metadata and controls
74 lines (53 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
## Makefile for RM2 tow tank results paper
##
## paper: Build PDF of paper
.PHONY: paper
paper:
latexmk -pdf paper.tex
## clean: Use latexmk to clean files
.PHONY: clean
clean:
latexmk -c paper.tex
rm paper.bbl
## view: View paper.pdf
.PHONY: view
view: paper
ifeq ($(shell uname -s),MINGW64_NT-10.0)
start "" paper.pdf
else
echo "Viewing only setup for Windows"
endif
## cover-letter: Build cover letter PDF
.PHONY: cover-letter
cover-letter:
cd cover-letter && pandoc --template=template-letter.tex cover-letter.md -o cover-letter.pdf
## figs: Copy figures from simulations to figures directory
.PHONY: figs
figs:
python scripts/getfigs.py
## bib: Update BibTeX database
.PHONY: bib
bib:
cd library && git pull origin master
cp library/Library.bib library.bib
## zip: Archive all files needed to build the paper
.PHONY: zip
zip:
python scripts/zip.py
## novelty.pdf: Build novelty file PDF
novelty.pdf: novelty.md
pandoc novelty.md -o novelty.pdf
## word-count: Count words in PDF
.PHONY: word-count
word-count:
@pdftotext paper.pdf
@wc -w paper.txt
@rm paper.txt
## reviews: Build PDFs of review responses
.PHONY: reviews
reviews: reviews/reviewer3-response.md reviews/reviewer3-response.md
pandoc reviews/reviewer3-response.md -o reviews/reviewer3-response.pdf -H reviews/quote-config.tex
pandoc reviews/reviewer4-response.md -o reviews/reviewer4-response.pdf -H reviews/quote-config.tex
.PHONY: help
help: Makefile
@sed -n "s/^##//p" $<