I have to create a make file for building pdf and dvi files separately from 2 tex files.. resume.tex and article tex. What I have made looks like this:
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 *~
What happens is when I run make
on my terminal. Only the pdf for resume.tex is created. Nothing else happens. Same for all other definitions. Only the first target is executed.