1. read the GNU Make manual 2. Write a tiny build system with Make or use any of the precanned ones. I use this: https://github.com/dkogan/mrbuild/ but there are many others
In any case, learning how to actually use Make is a prerequisite to having an opinion here.