For any project you can apply the command entered in the build script to all sub folders of the initial directory by specifying the token %r immediately preceding the files to be built. The effect of this is that Enterprise Architect iteratively replaces the token with any subpath found under the root and executes the command again.
The output from this Java example is shown below
Note: The path being built is displayed along with the exit code.