我必须创建一个make文件,用于分别从2个tex文件构建pdf和dvi文件.. resume.tex和article tex。我所做的是这样的:
all: resume_all article_all
dvi: article_dvi resume_dvi
pdf: resume_pdf article_pdf
article_dvi : article.tex
latex article.tex
article_pdf : article.tex ref.bib
pdflatex article.tex
bibtex article
pdflatex article.tex
pdflatex article.tex
article_all : article.tex ref.bib
latex article.tex
bibtex article
pdflatex article.tex
pdflatex article.tex
resume_dvi : resume.tex
latex resume.tex
resume_pdf : resume.tex
pdflatex resume.tex
resume_all : resume.tex
pdflatex resume.tex
latex resume.tex
clean:
rm -f *.log *.bak *.aux *.bbl *.blg *.idx *.toc *.out *~
clean-all:
rm -f *.dvi *.log *.bak *.aux *.bbl *.blg *.idx *.ps *.eps *.pdf *.toc *.out *~
当我在终端上运行make
时会发生什么。仅创建了resume.tex的pdf。没有其他事情发生。所有其他定义也是如此。只执行第一个目标。