You will need a LaTeX Distribution like TeX Live. Then you can simply compile the document with
make
To cleanup all documents except the actual .tex files and pictures (like all files generated by compiling) run
.tex
git clean -Xf