def build_static(self, *args, **options):
logger.debug("<STR_LIT>")<EOL>if self.verbosity > <NUM_LIT:1>:<EOL><INDENT>self.stdout.write("<STR_LIT>")<EOL><DEDENT>management.call_command(<EOL>"<STR_LIT>",<EOL>interactive=False,<EOL>verbosity=<NUM_LIT:0><EOL>)<EOL>target_dir = path.join(<EOL>self.build_dir,<EOL>settings.STATIC_URL.lstrip('<STR_LIT:/>')<EOL>)<EOL>target_dir = smart_text(target_dir)<EOL>if os.path.exists(self.static_root) and settings.STATIC_URL:<EOL><INDENT>if getattr(settings, '<STR_LIT>', False):<EOL><INDENT>self.copytree_and_gzip(self.static_root, target_dir)<EOL><DEDENT>else:<EOL><INDENT>logger.debug("<STR_LIT>".format("<STR_LIT>", self.static_root, self.fs_name, target_dir))<EOL>copy.copy_dir("<STR_LIT>", self.static_root, self.fs, target_dir)<EOL><DEDENT><DEDENT>robots_src = path.join(target_dir, '<STR_LIT>')<EOL>if self.fs.exists(robots_src):<EOL><INDENT>robots_target = path.join(self.build_dir, '<STR_LIT>')<EOL>logger.debug("<STR_LIT>".format(self.fs_name, robots_src, self.fs_name, robots_target))<EOL>self.fs.copy(robots_src, robots_target)<EOL><DEDENT>favicon_src = path.join(target_dir, '<STR_LIT>')<EOL>if self.fs.exists(favicon_src):<EOL><INDENT>favicon_target = path.join(self.build_dir, '<STR_LIT>')<EOL>logger.debug("<STR_LIT>".format(self.fs_name, favicon_src, self.fs_name, favicon_target))<EOL>self.fs.copy(favicon_src, favicon_target)<EOL><DEDENT>
Builds the static files directory as well as robots.txt and favicon.ico