def make_build(self):
for asset in self.assets.values():<EOL><INDENT>if asset.has_bundles():<EOL><INDENT>asset.collect_files()<EOL><DEDENT><DEDENT>if not os.path.exists(self.config.output_dir):<EOL><INDENT>os.makedirs(self.config.output_dir)<EOL><DEDENT>if self.config.copy_only_bundles:<EOL><INDENT>for asset in self.assets.values():<EOL><INDENT>if not asset.minify and asset.files:<EOL><INDENT>for f in asset.files:<EOL><INDENT>copy_file(f.abs_path, self._get_output_path(f.abs_path))<EOL><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>copy_excludes = {}<EOL>for asset in self.assets.values():<EOL><INDENT>if asset.minify and asset.files:<EOL><INDENT>for f in asset.files:<EOL><INDENT>copy_excludes[f.abs_path] = f<EOL><DEDENT><DEDENT><DEDENT>for root, dirs, files in os.walk(self.config.input_dir):<EOL><INDENT>for fpath in files:<EOL><INDENT>current_file_path = os.path.join(root, fpath)<EOL>if current_file_path not in copy_excludes:<EOL><INDENT>copy_file(current_file_path, self._get_output_path(current_file_path))<EOL><DEDENT><DEDENT><DEDENT><DEDENT>self._minify()<EOL>
Move files / make static build