-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (22 loc) · 864 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
SINGLE = 6
# page number for "make single"
default:
# Before doing this for the first time, do a "make figures".
pdflatex tahquitz
pdflatex tahquitz
single:
# Extract a single page to post on mountainproject.
# Change SINGLE above to the relevant page number.
pdfseparate -f $(SINGLE) -l $(SINGLE) tahquitz.pdf foo.pdf
pdftoppm -r 300 foo.pdf z
convert z-1.ppm topo.jpg
rm -f foo.pdf z-1.ppm
@echo "Output is in topo.jpg."
figures:
# Create pdf versions of the svg figures.
# For this to work, the scripts in the scripts directory need to be executable.
# Inkscape 0.47 or later is required.
# To force rendering of all figures, even if they seem up to date, do FORCE=1 make figures
perl -e 'foreach my $$f(<figs/*.svg>) {system("scripts/render_one_figure.pl $$f $(FORCE)")}'
clean:
rm -f *~ *.aux *.log *.idx *.toc *.ilg *.bak *.toc topo.jpg