【发布时间】:2012-07-09 04:00:43
【问题描述】:
我创建了一个 .NET C# 项目,我使用类似于 ///<summary>A summary...</summary> 的块对其进行了评论,我想使用 Doxygen 对其进行记录。我已经设置了 Doxygen,它运行生成了大约 100 个 .tex 文件和一个 Makefile。
据我了解,Makefile 是将文档生成为 PDF 的关键,但我无法使用它。
当我在 Doxygen LaTeX 输出目录中时,我正在使用 Mac 通过在终端中写入 make -f Makefile 来执行 LaTeX 和 Doxygen 位。
all: refman.pdf
pdf: refman.pdf
refman.pdf: clean refman.tex
pdflatex refman
makeindex refman.idx
pdflatex refman
latex_count=5 ; \
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
do \
echo "Rerunning latex...." ;\
pdflatex refman ;\
latex_count=`expr $$latex_count - 1` ;\
done
clean:
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
运行时,我收到以下消息:
MacBook-Pro-13:latex sehlstrom$ make
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
make: *** No rule to make target `refman.tex', needed by `refman.pdf'. Stop.
我怎样才能让 Makefil 工作?
【问题讨论】:
-
你先运行 doxygen 了吗? Doxyfile 中是否启用了 LaTeX 输出?是否创建了
refman.tex? -
@BenVoigt 是的,我已经运行了 Doxygen,它在目标文件夹中给了我大约 100 个 .tex 文件。如问题所示,Doxygen 还创建了 Makefile。但是没有创建文件
refman.tex- 我必须创建该文件吗?如果是这种情况,是否有一种特定的方式应该编写该文档以使 Makefile 兼容? -
我认为这应该是由 Doxygen 生成的。
doxygen命令完成时没有错误吗? -
@BenVoigt 它没有错误地完成。