Hello,
As said previously, the solution Bob is suggesting is working. However it seems this is a common issue and that we could do it in a simpler way.
Do you see a future in having a way to configure the order in which files are built according to their extension? If yes, we can discuss on how you want to do it.

Regards,
Pierre