I'm writing a C++ application that has source files in a source directory, within which there is a build directory. The build directory contains the Makefile, so when I build the program I do so from the build directory.
I want git to ignore the build directory because it doesn't contain source files. However, I do want git to track the Makefile. What's the best practice for tracking the Makefile but ignoring the other build files? Should I be using another directory structure?
Thanks!