-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (40 loc) · 1.29 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
################################################
SRC = brainsci-2069565_accepted
SRC_rev = manuscript_rev1
# SRC_rev = brainsci-2069565
#LATEXMK = latexmk -pdf -pdflatex=lualatex
LATEXMK = latexmk -pdf
BIBTEX = bibtex
################################################
default: diff
pdf: $(SRC).pdf 2022-12-28_coverletter.pdf
diff: $(SRC)_trackedchanges.pdf
################################################
LATEXMK = latexmk -bibtex -pdf
# -pdflatex=pdflatex
################################################
install_local:
python3 -m pip install --user -r requirements.txt
install_global:
python3 -m pip install -r requirements.txt
# post-production
$(SRC)_trackedchanges.tex: $(SRC).tex $(SRC_rev).tex
latexdiff --graphics-markup=both $(SRC_rev).tex $(SRC).tex > $(SRC)_trackedchanges.tex
response_to_reviewers.pdf: response_to_reviewers.tex $(SRC).tex $(SRC).bib
$(LATEXMK) response_to_reviewers.tex
touch:
touch *.tex
git:
git pull
git commit -am'Another pass'
git push
# macros
%.pdf: %.tex
$(LATEXMK) $<
%.pdf: %.svg
$(INKSCAPE) --without-gui $< --export-pdf=$@
%.png: %.svg
$(INKSCAPE) --without-gui $< --export-png=$@ -d 450
# cleaning macro
clean:
rm -f *.dvi *.fls *.ilg *.ind *idx *.bcf *.run.xml *.dvi *.ps *.out *.log *.aux *.bbl *.blg *.fdb_latexmk *.snm *.nav *.toc *.info *.synctex.gz*