问题描述
我的Makefile就像下面这样:
all:
pdflatex file.tex
pdflatex file.tex
pdflatex file.tex
bibtex file
pdflatex file.tex
pdflatex file.tex
clean:
rm -rf *.aux *.toc *.log *.out *.bbl *.blg
一切正常,但最后,带有以上扩展名的文件中的没有被删除。
我没有收到任何错误消息,因为输出的结尾如下:
Output written on file.pdf (175 pages,35867283 bytes).
Transcript written on file.log.
有人猜为什么?谢谢!
解决方法
在命令行中输入“ make clean”,它将清除这些内容
,您可以使用
进行编译,而不必执行许多不必要的命令 latexmk -c -pdf file
latexmk
将自动确定需要运行多少次乳胶,bibtex等,并使用-c
选项,将清除所有非必需文件