Fix metadata.json

The current metadata.json includes an invalid `depends` key. This PR re-generates the JSON using a new bit of hackery in a `Makefile`.