Increase configurability of doc/Makefile

Changes included:

1. Variables could not be set from the command line previously, as the comments in the file indicated. Changing "=" to "?=" fixes this.
2. Allow specifying the python executable.

When running ``make`` without specifying any of the variables, the behaviour is identical to what it is without these changes.