When working on projects which use multiple kinds of build-systems, sometimes I want to run a make command based on the project, without having to manually setup project spesific hooks.
Is there a good way to perform this in Emacs?
To expand on this question to give some context,
I might have many projects on my computer and load a C file from a project that uses GNUMakefiles, then another project that uses CMake, and a third project that uses Meson.
Along with this, I might also have some documentation in reStructuredText or Markdown that has a GNUMakefile, which is useful to run to build the documentation.
Neither major-modes have anything to do with GNU Make, it's just convenient to use a GNUMakefile sometimes.
By knowing the language is C or the document is reStructuredText doesn't give me a hint as to the build system, so I would like a way to detect this.