Does anyone know what's wrong with this Makefile? I thought the Makefile would be smart enough to know whether or not any of the .tex files have changed, and therefore not run pdflatex if they weren't ...
Code:
# List all the files that are used when producing the pdf
FILES = \
main.tex \
chap1.tex \
chap2.tex \
chap3.tex \
chap4.tex \
chap5.tex \
appendix.tex
# this line should only execute when a single file from above has been altered
# The only problem is that isn't the case ...
all: $(FILES)
pdflatex main.tex
Of course, that's a tab before the pdflatex command ...
Bookmarks