Make the doc makefile work on windows.
Merge pull request #1911 from matham/makefile

Make the doc makefile work on windows.