NOJIRA: (make-release) Update version numbers to bampfa_4.0-40 and generate release notes.