-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
103 lines (80 loc) · 3.28 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
FILE=NIST-analytics
UPLOAD=upload
OPTIONS=--shell-escape
all:
make clean
make -f Makefile watch
export:
pandoc -s word.tex -o fixed-NIST-analytics.md
pandoc -s word.tex -o fixed-NIST-analytics.docx
publish:
git add --force ${FILE}.pdf
git commit -m "add new pdf document" ${FILE}.pdf
git push
pdf: ${FILE}.pdf
regular:
pdflatex $(FILE)
bibtex $(FILE)
pdflatex $(FILE)
pdflatex $(FILE)
d: clean
pdflatex ${FILE}
biber ${FILE}
pdflatex ${FILE}
pdflatex ${FILE}
# -pdf tells latexmk to generate a PDF instead of DVI.
# -pdflatex="" tells latexmk to call a specific backend with specific options.
# -use-make tells latexmk to call make for generating missing files.
# -interaction=nonstopmode keeps the pdflatex backend from stopping at a
# missing file reference and interactively asking you for an alternative.
# -synctex=1 is required to jump between the source PDF and the text editor.
# -pvc (preview continuously) watches the directory for changes.
# -quiet suppresses most status messages (https://tex.stackexchange.com/questions/40783/can-i-make-latexmk-quieter).
%.pdf: %.tex
#latexmk -quiet -bibtex $(PREVIEW_CONTINUOUSLY) -f -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode" -use-make $<
latexmk -quiet $(PREVIEW_CONTINUOUSLY) -f -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode" -use-make $<
# The .PHONY rule keeps make from processing a file named "watch" or "clean".
.PHONY: watch
# Set the PREVIEW_CONTINUOUSLY variable to -pvc to switch latexmk into the preview continuously mode
watch: PREVIEW_CONTINUOUSLY=-pvc
watch: ${FILE}.pdf
.PHONY: clean
# -bibtex also removes the .bbl files (http://tex.stackexchange.com/a/83384/79184).
clean:
latexmk -CA -bibtex
rm -f ${FILE}.run.xml
rm -rf *.tdo *.err *.lua *.out _*
dot:
dot -Tpdf -o images/singularity.pdf images/singularity.dot
info:
python bin/sysinfo.py
manual:
wget -O rivanna-manual.md https://raw.githubusercontent.com/laszewsk/mlcommons/main/www/content/en/docs/tutorials/rivanna.md
pandoc -o rivanna-manual-DONT.md rivanna-manual.md
changelog:
rm -rf changelog-donotchange.tex
@echo "\\\\section{Changelog}" >> changelog-donotchange.tex
@echo "\\\\begin{enumerate}" >> changelog-donotchange.tex
@echo "\\\\itemsep0em" >> changelog-donotchange.tex
git log --pretty=format:'\item \href{http://github.com/cyberaide/NIST-analytics/commit/%H}{%s}' >> changelog-donotchange.tex
@echo "\n\\\\end{enumerate}" >> changelog-donotchange.tex
cat changelog-donotchange.tex
zip:
rm -rf $(FILE).tar.gz
rm -rf $(UPLOAD)
mkdir -p $(UPLOAD)/images
mkdir -p $(UPLOAD)/section
mkdir -p $(UPLOAD)/usecase/images
cp $(FILE).bbl $(UPLOAD)
cp $(FILE).bib $(UPLOAD)
cp *.tex $(UPLOAD)
cp section/*.tex $(UPLOAD)/section
cp usecase/*.tex $(UPLOAD)/usecase
cp usecase/images/*.png $(UPLOAD)/usecase/images
cp usecase/images/*.pdf $(UPLOAD)/usecase/images
cp images/*.pdf $(UPLOAD)/images
cp images/*.png $(UPLOAD)/images
# cp *.pygtex $(UPLOAD)
# cd upload; zip -x "*/.DS*" "*/*.git*" "*/*bin*" "*/*zip" "*/*.md" "*/Makefile" "*/*.log" "*/*.aux" "*/*.blg" "vonLaszewski-cloudmesh-cc.pdf" -r ../$(FILE)-2.zip .
# cd upload; tar cvf cv . ../$(FILE).tar.gz
cd upload; zip -x "*/.DS*" "*/*.git*" "*/*bin*" "*/*zip" "*/*.md" "*/Makefile" "*/*.log" "*/*.aux" "*/*.blg" "vonLaszewski-cloudmesh-cc.pdf" -r ../$(FILE)-6.zip .