selftests/bpf: Templatize man page generation
authorJoe Stringer <joe@cilium.io>
Tue, 2 Mar 2021 17:19:44 +0000 (09:19 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 5 Mar 2021 02:39:45 +0000 (18:39 -0800)
commit62b379a233a79e6f4d2e8b14750ae8fa13b8caf8
treef577e8abb39ca9891eca81ca4e561c79530ab7e7
parenta01d935b2e0916d32cb567f90c32a0c4eb46993c
selftests/bpf: Templatize man page generation

Previously, the Makefile here was only targeting a single manual page so
it just hardcoded a bunch of individual rules to specifically handle
build, clean, install, uninstall for that particular page.

Upcoming commits will generate manual pages for an additional section,
so this commit prepares the makefile first by converting the existing
targets into an evaluated set of targets based on the manual page name
and section.

Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20210302171947.2268128-13-joe@cilium.io
tools/testing/selftests/bpf/Makefile.docs