summaryrefslogtreecommitdiff
path: root/papers/LOCO-24/Makefile
blob: cb5664fa8ba4d8d89f6679a6faf99bccfa28d33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AUX			?= aux
FILE		?= contents.latex
FLAGS		?= -interaction=batchmode
AUXFILE		= $(AUX)/$(addsuffix ".aux", $(basename $(FILE)))
TARGET		= $(addsuffix ".pdf", $(basename $(FILE)))

all: $(TARGET)

$(TARGET): $(FILE)
	mkdir -p $(AUX)
	pdflatex $(FLAGS) -output-directory=$(AUX) $(FILE)
	bibtex $(AUXFILE)
	pdflatex $(FLAGS) -output-directory=$(AUX) $(FILE)
	pdflatex $(FLAGS) -output-directory=$(AUX) $(FILE)
	cp $(AUX)/$(TARGET) .

clean:
	rm -r $(TARGET) $(AUX)

.PHONY: all clean