Add .{git,hg}ignore.  Create bin directory during build.