-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 706 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (22 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
CONTAINER_IMAGE = ghcr.io/xu-cheng/texlive-debian:latest
TEX_FILE = dusan-haustein-cv-eng.tex
PDF_FILE = $(TEX_FILE:.tex=.pdf)
WORK_DIR = $(shell pwd)
all: $(PDF_FILE)
# build the inside container
$(PDF_FILE): $(TEX_FILE)
podman run --rm \
-v $(WORK_DIR):/workspace:z \
-w /workspace \
$(CONTAINER_IMAGE) \
pdflatex -interaction=nonstopmode $(TEX_FILE)
clean:
rm -f *.pdf *.aux *.log *.out *.fdb_latexmk *.fls *.synctex.gz
rebuild: clean all
help:
@echo "Available targets:"
@echo " all - Build PDF from TEX file (default)"
@echo " clean - Remove generated files"
@echo " rebuild - Clean and build"
@echo " help - Show this help message"
.PHONY: all clean rebuild help