init-projects/latex/book/Makefile

20 lines
359 B
Makefile
Raw Normal View History

2024-04-18 18:13:43 +02:00
NAME = book
TEX = $(NAME).tex
SRC = $(TEX)
PDF = $(TEX:.tex=.pdf)
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
2024-04-20 15:33:56 +02:00
RM = rm -rf
2024-04-18 18:13:43 +02:00
.PHONY: $(PDF)
all: $(PDF)
$(PDF): %.pdf: %.tex
$(TEXMK) $<
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc bbl blg sta
clean:
2024-04-20 15:33:56 +02:00
$(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))