Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile.mk: expect NROFF variable instead of auto-detection
Auto-detection used either `command -v` (for unixy shells) or `where` (for Windows ones). The former is an internal command, and it fails to run from an MSYS2 shell via a non-MSYS2 GNU Make, because make executes it as-is via `CreateProcess()`. This also results in a warning. Prepending `$(SHELL) -c` would fix it, but would also need to enclose the rest of the command line in quotes, what makes this code overly complex for little benefit. Using `which` would also solve it, but this isn't the correct way to check for tool presence and some *nix systems don't have it. Resolve this by dropping auto-detection and expect the caller to set the `NROFF` variable to `nroff`/`groff` tool, in case someone wants to rebuild the manual and such tool is available. Closes #10000 [ci skip]
- Loading branch information