One idea,
Rather than create a custom line-based format, perhaps it's better to use XML for this recipe file?
or an even more far-out idea might be,
To make it a standard C2 file and use language constructs within?
The full power of the language would then be available for executing various build configurations.
Cheers,
Mark.