1#!/bin/bash
2# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3
4# Assume script is located under tools/testing/selftests/bpf/. We want to start
5# build attempts from the top of kernel repository.
6SCRIPT_REL_PATH=$(realpath --relative-to=$PWD $0)
7SCRIPT_REL_DIR=$(dirname $SCRIPT_REL_PATH)
8KDIR_ROOT_DIR=$(realpath $PWD/$SCRIPT_REL_DIR/../../../../)
9cd $KDIR_ROOT_DIR
10
11for tgt in docs docs-clean; do
12	make -s -C $PWD/$SCRIPT_REL_DIR $tgt;
13done
14