artifacts = [ index_html, css, schematic, bom, simulation, bootloader, application_signed, ] foreach artifact : artifacts custom_target( output: [fs.name(artifact.full_path())], command: [ cp, artifact.full_path(), meson.current_build_dir(), ], depends: artifact, build_by_default: true, ) endforeach