forked from gc3-uzh-ch/python-course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 804 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
default:
@echo "Type 'make ACTION', where ACTION is one of the following:"
@echo
@echo "clean -- Remove all temporary LaTeX files"
@echo
@echo "all -- Recompile all LaTeX files"
@echo
# clean up temporary LaTeX files
clean:
rm -f *~ *.aux *.log *.nav *.out *.rel *.snm *.toc *.vrb
# remake all LaTeX files
all: $(patsubst %.tex,%.pdf,$(wildcard part*.tex))
# the default wildcard rule for generating PDFs from `.tex` files
%.pdf: %.tex s3it.sty
pdflatex $<
pdflatex $<
# additional per-file dependencies
#
# these were generated from `\includegraphics` commands in the LaTeX source with::
#
# $ egrep --only-matching '\\includegraphics\[.+\]\{([A-Za-z0-9/._-]+)\}' *.tex \
# | sed -r -e 's|^([a-zA-Z0-9]+)\.tex:\\includegraphics.+\{([a-zA-Z0-9/._-]+)\}|\1.pdf: \1.tex \2|'
#