Generator for .target and category.xml