-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
99 lines (79 loc) · 3.89 KB
/
Copy pathMakefile
File metadata and controls
99 lines (79 loc) · 3.89 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.PHONY: all clean pdfFigures
all: clean main.pdf
mainfiguresPng = $(shell grep png main.tex | sed -e "s/^.*{/figures\//g" -e "s/\}//g" )
mainfiguresPdf = $(shell grep "\.pdf" main.tex | sed -e "s/^.*{/figures\//g" -e "s/\}//g" )
#supfigures = $(shell grep png appendix.tex | sed -e "s/^.*{/figures\/otherFigures\//g" -e "s/\}//g" )
#supfigurespdf = $(shell grep pdf appendix.tex | sed -e "s/^.*{/figures\/otherFigures\//g" -e "s/\}//g" )
bgIBDvalidationpdf = $(shell grep pdf appendix.tex | grep bgIBDvalidation | sed -e "s/^.*{//g" -e "s/\}//g" )
suptex = $(shell grep "\.tex" appendix.tex | sed -e "s/^.*{//g" -e "s/\}//g" )
coverLetter.pdf: coverLetter.tex
pdflatex coverLetter.tex
main.pdf: main.tex ${mainfiguresPng} ${mainfiguresPdf} main.bbl
pdflatex main.tex
pdflatex main.tex
forElife.tar.gz:
tar -czvf forElife.tar.gz main.tex ${mainfiguresPng} ${mainfiguresPdf} ${bgIBDvalidationpdf} main.bbl *cls appendix.tex ${supfigures} ${supfigurespdf} ${suptex} supplementReset.tex vancouver-elife.bst common.tex Makefile mixedIBD.bib figures/DEploid_IBD_haps_compare.pdf figures/otherFigures/PG0415-CaltVsRefAndWSAFvsPLAF.png supFigures/nd_hist.pdf figures/qualityGhana.pdf supFigures/supp-Fig1.pdf supFigures/supp-Fig2.pdf 180803_Pf3k_project_info.pdf
main_todo.pdf: main.pdf
sed -e "s/\\\usepackage\[disable\]{todonotes}/\\\usepackage\[colorinlistoftodos\]{todonotes}/" \
-e "s/\\\textcolor{black}/\\\textcolor{red}/g" main.tex > main_todo.tex
pdflatex main_todo.tex
bibtex main_todo.aux
pdflatex main_todo.tex
pdflatex main_todo.tex
main.aux: main.tex
pdflatex main.tex
main.bbl: main.aux
bibtex main.aux
appendix.pdf: appendix.tex ${supfigures} ${supfigurespdf} ${suptex} supplementReset.tex
pdflatex appendix.tex
pdflatex appendix.tex
appendix_todo.pdf: appendix.pdf
sed -e "s/\\\usepackage\[disable\]{todonotes}/\\\usepackage\[colorinlistoftodos\]{todonotes}/" \
-e "s/\\\textcolor{black}/\\\textcolor{red}/" appendix.tex > appendix_todo.tex
pdflatex appendix_todo.tex
pdflatex appendix_todo.tex
appendix.bbl: appendix.aux
bibtex appendix.aux
appendix.aux: appendix.tex
pdflatex appendix.tex
otherFigures.pdf: otherFigures.tex ${supfigures} ${supfigurespdf} ${suptex} supplementReset.tex
pdflatex otherFigures.tex
pdflatex otherFigures.tex
pdfFigures:
cd figures/; pdflatex Fig1.tex
cd figures/; pdflatex Fig2.tex
cd figures/; pdflatex Fig3.tex
cd figures/; pdflatex Fig4.tex
cd figures/; pdflatex Fig5.tex
cd figures/; pdflatex Fig7.tex
cd figures/; pdflatex Fig2Africa.tex
cd figures/; pdflatex Fig2SupMix3.tex
cd figures/; pdflatex Fig2Asia.tex
cd figures/; pdflatex Fig2k3.tex
cd figures/; pdflatex Fig2k4.tex
cd figures/; pdflatex Fig3Sup.tex
cd figures/; pdflatex Fig2inVitro.tex
tmpmain.pdf: tmpmain.tex
pdflatex tmpmain.tex
tmpmain.tex: main.tex Makefile
sed -e "/Manuscript submitted to eLife/d" elife.cls > tmpelife.cls
sed -e "s/\\\documentclass\[9pt,lineno\]{elife}/\\\documentclass\[9pt\]{tmpelife}/" main.tex > tmpmain.tex
plain.pdf: plain.tex tmpmain.pdf
pdflatex plain.tex
bibtex plain.aux
pdflatex plain.tex
pdflatex plain.tex
plain.tex: main.tex Makefile
sed -e "s/elife/article/" \
-e "s/\\\usepackage{hyperref}/\\\usepackage{hyperref, natbib, fullpage}\n/" \
-e "/\\\maketitle/d" \
-e "s/\\\contrib\[$$\\\dagger$$\]{These authors contributed equally to this work}/\\\maketitle\n\\\footnotetext[2]{These authors contributed equally to this work}/" \
-e "s/\\\corr{gil.mcvean@bdi.ox.ac.uk}{GM}/\\\footnotetext[1]{For correspondence: gil.mcvean@bdi.ox.ac.uk}/" \
-e "s/width=\\\textwidth/width=0.8\\\textwidth/g" \
-e "/\\\figsupp/d" \
-e "s/tabledata/caption/" \
-e "s/\\\end{document}/\\\includepdf[pages=20-26]{tmpmain.pdf}\n\\\end{document}/" \
-e "s/\\\bibliography{mixedIBD.bib}/\\\bibliographystyle{chicagoa}\n\\\bibliography{mixedIBD.bib}/" \
main.tex > plain.tex
clean:
rm -f *.blg *snm *nav *.bbl *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out main.pdf