Use the -r
switch ("recurse") when launching the Thrift compiler. This will compile all included
files too.
Or enter thrift --help
to view all the options.
Alternatively, you could iterate through all *.thrift files via loop (depends on your OS). This would also do what you want to achieve but may be more cumbersome.