Xcode - how to add a custom clean step or action

On clean we need need to remove some additional files generated during the build via a custom makefile. With the Legacy build system, we use to do that with a dependency (target) running a build script with custom actions. Is there a way to do that with the new build system? If yes please point to the docs or describe.

Xcode - how to add a custom clean step or action
 
 
Q