If a file/directory does not exist, `$(wildcard file)` returns the empty string.  Therefore you can make these tests a little less verbose via:
```
ifneq ($(wildcard libgit2/.git),)
```

Not a huge deal, just a little easier to read.