Build the directive.