#488 Improved api doc makefile to avoid warnings