summaryrefslogtreecommitdiff
path: root/papers
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-08-07 17:32:24 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-08-07 18:05:51 +0200
commitc409a920eeb6448cec79c91d67c7fb3b74062d20 (patch)
treed08fc335ad51db78a772fa52230b25496a66579f /papers
parent3355ee695d00390e23bc7f41936f86ae1be1cf34 (diff)
Makefile for paper
Diffstat (limited to 'papers')
-rw-r--r--papers/LOCO-24/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/papers/LOCO-24/Makefile b/papers/LOCO-24/Makefile
new file mode 100644
index 0000000..cb5664f
--- /dev/null
+++ b/papers/LOCO-24/Makefile
@@ -0,0 +1,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