Added .gitignore files for target directories.