Add .PRECIOUS to Makefile to avoid deleting sample.tex during building time.