mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-24 21:40:18 +08:00
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 <henrybear327@gmail.com>
This commit is contained in:
parent
60bed94bad
commit
adb2d21af2
6
Makefile
6
Makefile
|
@ -2,10 +2,8 @@ PROJ = lkmpg
|
|||
all: $(PROJ).pdf
|
||||
|
||||
$(PROJ).pdf: lkmpg.tex
|
||||
pdflatex -shell-escap $<
|
||||
bibtex $(PROJ) >/dev/null || echo
|
||||
pdflatex -shell-escape $< 2>/dev/null >/dev/null
|
||||
rm -rf _minted-$(PROJ)
|
||||
latexmk -shell-escape lkmpg.tex -pdf
|
||||
|
||||
html: lkmpg.tex html.cfg assets/Manrope_variable.ttf
|
||||
sed $ 's/\t/ /g' lkmpg.tex > lkmpg-for-ht.tex
|
||||
|
@ -19,7 +17,7 @@ indent:
|
|||
(cd examples; find . -name '*.[ch]' | xargs clang-format -i)
|
||||
|
||||
clean:
|
||||
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc
|
||||
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc lkmpg.fdb_latexmk lkmpg.fls
|
||||
rm -rf html
|
||||
|
||||
.PHONY: html
|
||||
|
|
Loading…
Reference in New Issue
Block a user