Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mirror: fix building documentation targets
The callable `descend` command in Makefile.include is currently broken due to two reasons: 1. It is defined only for cases when the output is not suppressed by either `V=1` or `-s`. 2. The condition for checking the absence of `-s` is broken and it fails every time there is a variable definition containing the letter 's'. The `descend` command is used in documentation targets and due to these errors, these targets fail to build in the following cases: $ make V=1 doc make: Nothing to be done for 'doc'. $ make prefix="/usr" doc # <- `prefix="/usr"` contains letter 's' make: Nothing to be done for 'doc'. This fixes the two above issues by (1) defining `descend` for all cases and (2) fixing the `-s` check by querying the first word of `MAKEFLAGS` which is the correct approach for make-4.0 and higher. Signed-off-by: Viktor Malik <viktor.malik@gmail.com>
- Loading branch information