Simplify some rules and and protect pdflatex which return 1 even on succes on OSX.
whitespace.
ignore intermediate latex files produced by pdflatex.