Autogen: Iterate over all makefile sources only once
In QtAutoGen we used to iterate over all makefile source two times to
extract file parameters for
uic respectively. This patch merges both
iterations into one loop. This makes the code easier to understand and likely
faster to execute as well.