-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
47 lines (37 loc) · 958 Bytes
/
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
SHELL := /bin/bash
# Makefile for papers
PAPER := paper
MANUAL_FIGURES :=
AUTO_FIGURES :=
.DEFAULT_GOAL := $(PAPER).pdf
$(PAPER).pdf: $(PAPER).tex $(AUTO_FIGURES) $(MANUAL_FIGURES) References.bib
pdflatex -file-line-error $<
bibtex $(PAPER)
pdflatex -file-line-error $<
pdflatex -file-line-error $<
# Automatically make pdf files from .gpi (gnuplot) scripts
%.pdf: %.gpi
gnuplot $<
# Automatically make pdf files from .fig files
%.pdf: %.fig
fig2mpdf $<
# Automatically make pdf files from .svg files
%.pdf: %.svg
inkscape -D -z --file=$< --export-pdf=$@
# Automatically make pdf files from .agr files
%.pdf:%.agr
xmgrace -hardcopy -hdevice EPS -printfile epsfig.eps $<
epstopdf --outfile=$@ epsfig.eps
rm -f epsfig.eps
# Automatically make pdf files from .py files
%.pdf:%.py
python $<
clean:
@rm -f *.aux
@rm -f *.out
@rm -f *.log
@rm -f *.bbl
@rm -f *.blg
@rm -f $(PAPER)Notes.bib
@rm -f $(AUTO_FIGURES)
@rm -f $(PAPER).pdf