Refactor Makefile.am to use a non-recursive build

Hi Timo,

Here's an update to your Flex+Bison C++ example. Many thanks go to Flameeyes who helped with the hardest part. The main idea is to remove the recursive invocations of make.

Maciej