libbpf,selftests/bpf: Fix clean targets
authorAndrii Nakryiko <andriin@fb.com>
Fri, 10 Jan 2020 05:17:14 +0000 (21:17 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Jan 2020 05:55:08 +0000 (21:55 -0800)
commit2031af28a42f18cc65ec3aa85b4e5cfdf5ee0fe8
tree6995c76f5a0f89d50ee8501893adc087f427aede
parent492ab0205f500ebd20b4f0c9e95a1ba007b0c542
libbpf,selftests/bpf: Fix clean targets

Libbpf's clean target should clean out generated files in $(OUTPUT) directory
and not make assumption that $(OUTPUT) directory is current working directory.

Selftest's Makefile should delegate cleaning of libbpf-generated files to
libbpf's Makefile. This ensures more robust clean up.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200110051716.1591485-2-andriin@fb.com
tools/lib/bpf/Makefile
tools/testing/selftests/bpf/Makefile