init-projects/latex/book/Makefile

23 lines
418 B
Makefile
Raw Normal View History

2024-04-18 18:13:43 +02:00
NAME = book
2024-07-23 20:51:10 +02:00
PDF = $(NAME).pdf
2024-04-18 18:13:43 +02:00
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
2024-04-25 12:09:03 +02:00
QPDF = qpdf --linearize --replace-input
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) $<
2024-04-25 12:09:03 +02:00
@$(QPDF) $@ 2>/dev/null |:
2024-04-18 18:13:43 +02:00
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc bbl blg sta
clean:
$(RM) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
full-clean: clean
$(RM) $(PDF)