@reyalp
funny, I was just thinking about contacting you about that ! It's true, a conditional.inc
would make parsing and specially rewriting a bit easier. On the other hand, I would
still need to be able to find them in makefile.inc too (backward compatibility).
So actually, my preference would be to just add an 'end' marker.
I can then first scan for '# build time optional components' then collect all
lines starting with 'OPT_' or '#OPT_' in a temp file, then 'treat' that and write it
back. In the new scheme I could stop scanning at the end maker, and even use
the end marker to backfix old builds accordingly.
Plus, less work for you

wim