blob: 8fdc2e5e3289e0b59fe7e220782662167abc3e52 (
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 ..
|