Environment aware build tool and code generation from custom templates.