blob: 44cb223f9cad35abef593100c7b59357334dd67e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
SHELL=bash
TARGET=$(subst .tex,.pdf,$(wildcard opdracht*/opdracht*.tex) paper/paper.tex)
all: $(TARGET)
paper/paper.pdf: paper/paper*.tex paper/paper.bib
cd paper && \
pdflatex -shell-escape paper && \
bibtex paper.aux && \
pdflatex -shell-escape paper && \
pdflatex -shell-escape paper && \
cd ..
%.pdf : %.tex
cd `dirname $<` && \
pdflatex -shell-escape `basename $<` && \
bibtex `basename -s .tex $<`.aux; \
pdflatex -shell-escape `basename $<` && \
pdflatex -shell-escape `basename $<` && \
cd ..
|