latex-template/makefile

13 lines
295 B
Makefile
Raw Permalink Normal View History

2022-02-09 11:07:33 +08:00
NAME = paper
BIB = references
.PHONY: all clean
all: $(NAME).pdf
clean:
find ./ -type f -regex ".*/\($(NAME)\|$(BIB)\).*" ! -regex ".*/\($(NAME).tex\|$(BIB).bib\)" -exec rm '{}' \;
$(NAME).pdf: $(NAME).tex $(BIB).bib
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" $(NAME).tex