A suffix like “cmo” is repeated several times for [the definition of two variables](https://github.com/ocaml/ocamlbuild/blob/7115a9441ed11a736834305ea17a42ab1f251a4d/Makefile#L36 "Update candidate"). I suggest to avoid this. * [The function “addsuffix”](https://www.gnu.org/software/make/manual/html_node/File-Name-Functions.html#index-addsuffix "Appending a suffix automatically") can perform the desired data transformation for you. * It can also be a bit more efficient to append suffixes at other places instead of replacing them, can't it?