Skip to content

Commit adb2d21

Browse files
committed
Fix the pdf generation code in Makefile
The current Makefile is missing one more pdflatex pass. The correct steps are : pdflatex -> bibtex -> pdflatex -> pdflatex [1]. Otherwise, bib items will not be showing properly. [1] https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-recipes Signed-off-by: Chun-Hung Tseng <[email protected]>
1 parent 60bed94 commit adb2d21

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ PROJ = lkmpg
22
all: $(PROJ).pdf
33

44
$(PROJ).pdf: lkmpg.tex
5-
pdflatex -shell-escap $<
6-
bibtex $(PROJ) >/dev/null || echo
7-
pdflatex -shell-escape $< 2>/dev/null >/dev/null
85
rm -rf _minted-$(PROJ)
6+
latexmk -shell-escape lkmpg.tex -pdf
97

108
html: lkmpg.tex html.cfg assets/Manrope_variable.ttf
119
sed $ 's/\t/ /g' lkmpg.tex > lkmpg-for-ht.tex
@@ -19,7 +17,7 @@ indent:
1917
(cd examples; find . -name '*.[ch]' | xargs clang-format -i)
2018

2119
clean:
22-
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc
20+
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc lkmpg.fdb_latexmk lkmpg.fls
2321
rm -rf html
2422

2523
.PHONY: html

0 commit comments

Comments
 (0)