jherico / OculusSDK

Oculus SDK for Virtual Reality
Other
201 stars 114 forks source link

Should Makefile be included in the .gitignore? #30

Closed b3sigma closed 10 years ago

b3sigma commented 10 years ago

While I have some of the cmake output excluded by a global git ignore, that doesn't make sense for Makefile as there are projects which use it directly. As a result, can it be included in the project .gitignore or is there a better approach?

jherico commented 10 years ago

The same argument could be made for all sorts of platform specific project files. I'd rather not add them all to the .gitignore. My solution to the problem is to do 'out of tree' builds. Specifically I create a 'build' directory and then run 'cmake ..' from that build directory. The name 'build' is added to my global .gitignore, so none of the artifacts generated inside it ever appear as part of my 'git status' output.

b3sigma commented 10 years ago

That works, thanks!