makefile: Convert to non-recursive make files.

https://embeddedartistry.com/blog/2017/4/9/recursive-make-considered-harmful

> There are numerous problems with recursive make, and they are usually
> observed daily in practice. Some of these problems include:
>
> * It is very hard to get the order of the recursion into the
>   sub-directories correct. This order is very unstable and frequently
>   needs to be manually “tweaked.” Increasing the number of
>   directories, or increasing the depth in the directory tree, cause
>   this order to be increasingly unstable.
>
> * It is often necessary to do more than one pass over the sub-
>   directories to build the whole system. This, naturally, leads to
>   extended build times.
>
> * Because the builds take so long, some dependency information is
>   omitted, otherwise development builds take unreasonable lengths of
>   time, and the developers are unproductive. This usually leads to
>   things not being updated when they need to be, requiring frequent
>   “clean” builds from scratch, to ensure everything has actually been
>   built.
>
> * Because interdirectory dependencies are either omitted or too hard
>   to express, the Makefiles are often written to build too much to
>   ensure that nothing is left out.
>
> * The inaccuracy of the dependencies, or the simple lack of
>   dependencies, can result in a product which is incapable of building
>   cleanly, requiring the build process to be carefully watched by a
>   human.
>
> * Related to the above, some projects are incapable of taking
>   advantage of various “parallel make” implementations, because the
>   build does patently silly things.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/v2x/mux_gen.py b/v2x/mux_gen.py
index 32d3d83..716be05 100755
--- a/v2x/mux_gen.py
+++ b/v2x/mux_gen.py
@@ -27,7 +27,7 @@
 
 parser.add_argument(
     '--verbose', '--no-verbose',
-    action=ActionStoreBool, default=os.environ.get('V', '')==1,
+    action=ActionStoreBool, default=os.environ.get('V', '')=='1',
     help="Print lots of information about the generation.")
 
 parser.add_argument(
@@ -354,7 +354,7 @@
 
     f.write('endmodule\n')
 
-output_block("sim.v", open(sim_pathname).read())
+output_block(sim_filename, open(sim_pathname).read())
 
 if args.type == 'logic':
     subckt = args.subckt or args.name_mux
@@ -413,3 +413,5 @@
 output_block(pbtype_xml_filename, pb_type_str)
 with open(os.path.join(outdir, pbtype_xml_filename), "w") as f:
     f.write(pb_type_str)
+
+print("Generated mux {} in {}".format(args.name_mux, outdir))