文件夹内容
.
├── bibliography.bib
├── Makefile
└── template.tex
Makefile
all: make_pdflatex make_glossaries make_bibtex make_pdflatex make_pdflatex
make_pdflatex:
pdflatex template.tex
make_glossaries:
makeglossaries template.glo
make_bibtex:
bibtex template
bibliography.bib
@misc{
forensic_engineering,
title={Finding answers with forensic engineering - White paper},
author={{RoyalHaskoningDHV}},
note={blabla},
year={2021}
}
template.tex
\documentclass[a4paper]{article}
\usepackage[nonumberlist]{glossaries}
\usepackage{cite}
\makeglossaries
\newglossaryentry{NCG}
{
name=NCG,
description={blabla}
}
\begin{document}
Hello world ~\cite{forensic_engineering}
\clearpage
\bibliography{bibliography}
\bibliographystyle{apalike}
\clearpage
\printglossaries
\end{document}
问题
以下命令:
make all | grep "pdflatex template.tex\|makeglossaries template.glo\|bibtex template"
生成以下输出:
pdflatex template.tex
makeglossaries template.glo
bibtex template
这表明make all
无法运行该all
指令后面的所有五个命令。我原本期望输出以下结果:
pdflatex template.tex
makeglossaries template.glo
bibtex template
pdflatex template.tex
pdflatex template.tex
运行命令后,pdf 中的引用没有正确更新make all
,因此我必须多次运行它才能使引用起作用。
为什么make all
忽略最后两个实例make_pdflatex
?