Ok, this sets me in the right direction. I need to store these in an array, and then I need to count how many array entries I made in order to produce the definition of the "all" target in the makefile, then dump the array one at a time for each target into the makefile. Thanks!