swc-installation-test-2.py: Add MakeDependency class
On the fairly ancient SunOS 5.10 (January 2005), `make` doesn't
support `--version`. Looking into the POSIX.2 specs [1], it doesn't
have to. On FreeBSD [2] and in GNU Make [3], there is a MAKE_VERSION
variable, and the Sun executable has something similar:
$ strings make | grep MAKE_VERSION
.MAKE_VERSION
but it just expands to an empty string.
Since reading a makefile from stdin *is* in POSIX [1], we can use that
to test `make` if `make --version` fails. If we get something for
MAKE_VERSION, use that. If we get something for MAKE (required by
POSIX [2]), then call that a valid, but unkown, version.
[1]: http://pubs.opengroup.org/onlinepubs/
009695399/utilities/make.html#tag_04_84_04
[2]: http://lists.freebsd.org/pipermail/freebsd-questions/2010-October/222214.html
[3]: http://www.gnu.org/software/make/manual/html_node/Features.html#index-MAKE_005fVERSION-1021
[4]: http://pubs.opengroup.org/onlinepubs/
009695399/utilities/make.html#tag_04_84_13_08