-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 706 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 706 Bytes
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
32
33
34
35
36
37
SOURCES=main.tex
PDF_OBJECTS=$(SOURCES:.tex=.pdf)
LATEXMK=latexmk
LATEXMK_OPTIONS=-lualatex
DOCKER=docker
DOCKER_COMMAND=run --rm -w /tex/ --env LATEXMK_OPTIONS_EXTRA=$(LATEXMK_OPTIONS_EXTRA)
DOCKER_MOUNT=-v`pwd`:/tex
DOCKER_CONTAINER=texlive/texlive:TL2023-historic
all: figures tex
pdf: $(PDF_OBJECTS)
%.pdf: %.tex
@echo Input file: $<
$(LATEXMK) $(LATEXMK_OPTIONS_EXTRA) $(LATEXMK_OPTIONS) $<
clean:
-$(LATEXMK) -C main
dist-clean: clean
@cd data && $(MAKE) clean
.PHONY: tex
tex:
$(DOCKER) $(DOCKER_COMMAND) $(DOCKER_MOUNT) $(DOCKER_CONTAINER) \
make pdf
.PHONY: figures
figures:
cd data && $(MAKE)
debug:
$(DOCKER) $(DOCKER_COMMAND) -it $(DOCKER_MOUNT) $(DOCKER_CONTAINER) \
bash