-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 1.12 KB
/
Makefile
File metadata and controls
42 lines (31 loc) · 1.12 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
#The Makefile is released under a Creative Commons Attribution license.
#The full text of the license is available here.
#
#http://creativecommons.org/licenses/by/2.5/ca/
#
#Users of this code should attribute the work to the Open Data Structures
#project by displaying a notice stating their product contains code
#and/or text from the Open Data Structures Project and/or linking to
#opendatastructures.org.
texs=$(wildcard *-*.tex)
OBJECTS = $(texs:.tex=.pdf)
LATEXMK = latexmk -recorder -use-make -pdf -interaction=nonstopmode
pdf: $(OBJECTS)
%.pdf : %.tex
$(LATEXMK) -pdf $<
clean:
rm -f ./*.pdf ./figures/*.pdf *.snm *.nav *.vrb && latexmk -c
sources=$(wildcard figures/*.ipe)
pdfs=$(sources:.ipe=.pdf)
burstpdfs=$(sources:.ipe=-1.pdf)
svgfigs=$(wildcard figures/*.svg)
svgfigspdf=$(svgfigs:.svg=.pdf)
figs: $(pdfs) $(burstpdfs) $(externalfigs) $(svgfigspdf)
%-1.pdf : %.pdf
pdftk $< burst output $(<:.pdf=-%d.pdf)
%.pdf : %.ipe
ipetoipe -pdf $<
%.pdf : %.svg
inkscape $< --export-pdf=$@
publish:
test -d ~/Documenti/Didattica/Elementi-Bioinformatica/slides && cp -u *.pdf ~/Documenti/Didattica/Elementi-Bioinformatica/slides/