-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
81 lines (55 loc) · 1.67 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
SHELL=/bin/bash
TEXFILE := wrroc.tex
ALLDOCS := $(TEXFILE)
Basename := $(TEXFILE:.tex=)
drawio_svgs := $(wildcard *.drawio.svg)
image_pdfs := $(drawio_svgs:.drawio.svg=.pdf)
epss := $(image_pdfs:.pdf=.eps)
# List of all generated image files (resulting from conversions)
intermediate_images := $(image_pdfs) $(epss)
final_images := Fig1.eps Fig2.eps Fig3.eps Fig4.eps Fig5.eps
LATEXMKOPTS:= -pdf
default: images
latexmk $(LATEXMKOPTS) $(TEXFILE)
images: $(final_images)
force: images
latexmk $(LATEXMKOPTS) -gg $(TEXFILE)
preview: images
latexmk $(LATEXMKOPTS) -pvc $(TEXFILE)
all: images
latexmk $(LATEXMKOPTS) $(ALLDOCS)
forceall: images
latexmk $(LATEXMKOPTS) -gg $(ALLDOCS)
# Rules to convert images to PDF
%.pdf : %.drawio.svg
drawio --export --crop --format pdf --output $@ $<
%.eps : %.pdf
# pdftops is part of poppler
pdftops -eps -origpagesizes $< $@
# Hack to get all the images renamed
Fig1.eps: figure-process-rc-uml.eps
cp $< $@
Fig2.eps: figure-example.eps
cp $< $@
Fig3.eps: figure-workflow-rc-uml.eps
cp $< $@
Fig4.eps: figure-provenance-rc-uml.eps
cp $< $@
Fig5.eps: figure-venn.eps
cp $< $@
littleclean:
latexmk $(LATEXMKOPTS) -c
rm -f *.bbl *.gl* *.a* $(intermediate_images) *-eps-converted-to.pdf indent.log
distclean: littleclean
latexmk $(LATEXMKOPTS) -C
rm -f $(final_images)
#diff-draft.pdf: default ./original_submission/wrroc.tex
# #latexdiff --encoding=utf8 ./original_submission/wrroc.tex wrroc.tex > wrroc-diff.tex
# latexmk ${LATEXMKOPTS} wrroc-diff
#
#diff: diff-draft.pdf
push:
git commit -av -m "text"; git push
pull:
git pull --rebase
.PHONY: distclean littleclean push pull