Makefile: rework repo creation target


The current repo target may produce some error messages and creates a tmprepo.XX... directory each time make is called.  This series reworks the repo creation target so that it doesn't produce those errors, and also installs the git repository a little more efficiently.

-Brandon