19 lines
345 B
Makefile
19 lines
345 B
Makefile
|
NAME = book
|
||
|
|
||
|
TEX = $(NAME).tex
|
||
|
SRC = $(TEX)
|
||
|
PDF = $(TEX:.tex=.pdf)
|
||
|
|
||
|
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
|
||
|
|
||
|
.PHONY: $(PDF)
|
||
|
|
||
|
all: $(PDF)
|
||
|
|
||
|
$(PDF): %.pdf: %.tex
|
||
|
$(TEXMK) $<
|
||
|
|
||
|
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc bbl blg sta
|
||
|
clean:
|
||
|
rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
|