It looks like using the menhir stanza does not work if the file to be generated is in a sub-directory included via include_subdirs unqualified. Something like:
(include_subdirs unqualified)
(menhir
(modules parser))
Where parser.ml is located in subdir/parser.ml