blob: d4234538e4eee8d80c31f1620663551cb31ff859 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# SPDX-License-Identifier: GPL-2.0
# Makefile wrapper for the kapi tool (Rust userspace binary).
#
# See Documentation/dev-tools/kernel-api-spec.rst for details.
PREFIX ?= /usr/local
.PHONY: all build release debug clean install test fmt clippy
all: release
release:
cargo build --release
build: release
debug:
cargo build
test:
cargo test
fmt:
cargo fmt --all -- --check
clippy:
cargo clippy --all-targets --all-features -- -D warnings
clean:
cargo clean
install: release
install -D -m 0755 target/release/kapi $(DESTDIR)$(PREFIX)/bin/kapi
|