-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
88 lines (66 loc) · 2.01 KB
/
Makefile
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
FILENAME=laszewski-cloudmask
#FILENAME=report-draft
DIR=paper-cloudmask
UPLOAD=upload
# .PHONY: $(FILENAME).pdf
all: $(FILENAME).pdf
# MAIN LATEXMK RULE
$(FILENAME).pdf: $(FILENAME).tex
latexmk -shell-escape -quiet -bibtex $(PREVIEW_CONTINUOUSLY) -f -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode" -use-make $(FILENAME).tex
.PRECIOUS: %.pdf
.PHONY: watch
watch: PREVIEW_CONTINUOUSLY=-pvc
watch: $(FILENAME).pdf
.PHONY: clean
clean:
latexmk -C -bibtex
rm -rf $(FILENAME).spl
rm -f *_bibertool.bib
rm -f *.ttt
rm -f *.blg
rm -f comment.cut
rm -rf *~
regular:
pdflatex $(FILENAME)
bibtex $(FILENAME)
pdflatex $(FILENAME)
pdflatex $(FILENAME)
biber:
@echo
biber -V --tool cloud-scheduling.bib | fgrep -v INFO
@echo
biber -V --tool cloud-scheduling_bibertool.bib | fgrep -v INFO
@echo
biber -V --tool strings.bib | fgrep -v INFO
@echo
biber -V --tool vonlaszewski.bib | fgrep -v INFO
@make -f Makefile clean
zip:
rm -rf *.zip
rm -rf $(UPLOAD)
mkdir -p $(UPLOAD)
cp $(FILENAME).* $(UPLOAD)
cp -r images $(UPLOAD)
# cp *.pygtex $(UPLOAD)
cd upload; zip -x "*/.DS*" "*/*.git*" "*/*bin*" "*/*zip" "*/*.md" "*/Makefile" "*/*.log" "*/*.aux" "*/*.blg" "$(FILENAME).pdf" -r ../$(FILENAME).zip .
flatzip: clean
zip -x "*.git*" "*bin*" "*zip" "*.md" "Makefile" -r $(FILENAME).zip .
publish:
cp $(FILENAME).pdf ../../laszewski/laszewski.github.io/papers/
cd ../../laszewski/laszewski.github.io/papers; git add $(FILENAME).pdf
cd ../../laszewski/laszewski.github.io/papers; git commit -m "update $(FILENAME)" $(FILENAME).pdf
cd ../../laszewski/laszewski.github.io/papers; git push
p: dot
pdflatex -shell-escape $(FILENAME)
latex: dot
pdflatex $(FILENAME)
bibtex $(FILENAME)
pdflatex $(FILENAME)
pdflatex $(FILENAME)
dot:
dot -Tpdf images/cloudmask-wf.dot -o images/cloudmask-wf.pdf
#word:
# cp vonLaszewski-cloudmesh-cc.bbl report.bbl
# latex2rtf report.tex
word:
pandoc -s $(FILENAME).tex -F pandoc-crossref --citeproc --bibliography=vonLaszewski-cloudmesh-cc.bib --csl=ieee.csl -o report.odt