add .gitignore; build target in build directory