Only generate Doxyfile if generating docs.

Fixes #307.
Merge remote-tracking branch 'upstream/master'