From d2fd6d64c02578a5bfabdacc320b593efb11cd51 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Sat, 7 Aug 2021 18:49:24 +0800 Subject: [PATCH] Tweak pdfLaTeX related commands --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index fd97442..a784b3a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ -all: lkmpg.tex - rm -rf _minted-main - pdflatex -shell-escap lkmpg.tex - bibtex main >/dev/null || echo +PROJ = lkmpg +all: $(PROJ).pdf + +$(PROJ).pdf: lkmpg.tex + rm -rf _minted-$(PROJ) + pdflatex -shell-escap $< + bibtex $(PROJ) >/dev/null || echo pdflatex -shell-escape $< 2>/dev/null >/dev/null html: lkmpg.tex html.cfg