Embedding binary resources

I’m embedding a binary resource in a cpp file using incbin:
(GitHub - AlexIII/incbin-arduino: Include binary files in C/C++ Arduino project).

How do I tell PlatformIO to rebuild the cpp file whenever the binary resource is updated?

-Matt

I did find this topic:

…and managed to get that approach working.

But it would seem to me that this is a fairly common need. I would not expect it to require a scripted extension like this. Am I missing something?