2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 06:34:17 +08:00
linux-next/tools/bpf/bpftool/Documentation
Quentin Monnet 92426820f7 tools: bpftool: exit doc Makefile early if rst2man is not available
If rst2man is not available on the system, running `make doc` from the
bpftool directory fails with an error message. However, it creates empty
manual pages (.8 files in this case). A subsequent call to `make
doc-install` would then succeed and install those empty man pages on the
system.

To prevent this, raise a Makefile error and exit immediately if rst2man
is not available before generating the pages from the rst documentation.

Fixes: ff69c21a85 ("tools: bpftool: add documentation")
Reported-by: Jason van Aaardt <jason.vanaardt@netronome.com>
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-02-08 11:59:50 +01:00
..
bpftool-cgroup.rst tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
bpftool-map.rst tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
bpftool-prog.rst tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
bpftool.rst tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
Makefile tools: bpftool: exit doc Makefile early if rst2man is not available 2018-02-08 11:59:50 +01:00