A Makefile is provided. You no longer need to worry about how to completely compile it. Just simply generate the PDF file by typing
make main
or replace 'main' by the file name you assigned to the main file.
To cleanup the temporary files, run
make clean